Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
142 user(s) are online (91 user(s) are browsing Forums)

Members: 1
Guests: 141

afxgroup, more...

Headlines

 
  Register To Post  

.Net question
Not too shy to talk
Not too shy to talk


See User information
Hi All,

Sorry, It's not Amiga related...

I'm currently developing a .Net project...

I have a ListView populated from a Database (a servers list)... But when I try to get the text of an item I get a "NULLReferenced Objects"...

My code looks like:
ListViewItem pItem = LServerList->GetItemAt(1,0)->Text;

// LServerList is the name of the ListView on the Form...

I looked on a lot of forums... But most of them are for VB.Net or C#...

Any idea what I'm doing wrong ?

Thanks.

Jerry



Defender of my A1XE-G4 / AOS4 Final Update !
Looking for a new toy ? Then try a GP2X...
Go to top
Re: .Net question
Not too shy to talk
Not too shy to talk


See User information
@AmiGame

Never mind... I finally rewrote it in MFC (VS 2005) and it's working like a charm...

I encountered other problems like with CListCtrl sorting: solved by rewriting my own function, borrowing also the function of someone else to display a little arrow (bitmap) on the Header line.
I also rewrote a CColorLabel Custom class derived from CStatic using part on the code of the CReadOnlyEdit which was based on CEdit...

The last remaining problem to solve is with HotKey/Shortcuts... But I can live with it as the most important ones are working fine anyway !

Jerry



Defender of my A1XE-G4 / AOS4 Final Update !
Looking for a new toy ? Then try a GP2X...
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project