IonicWind Software

IWBasic => General Questions => Topic started by: LarryMc on June 30, 2012, 01:15:55 PM

Title: Conversion question
Post by: LarryMc on June 30, 2012, 01:15:55 PM
I've repeatedly said that c/c++ is giberish to me, for the most part.
I have this line of code:
((CDebugProcess *)m_pDebugProcess)->BeginDebug(oSingle.outname,m_pMainWnd->GetSafeHwnd());

GetSafeHwnd is a method of Cwnd that returns a window handle
BeginDebug(oSingle.outname,m_pMainWnd) is a method of CDebugProcess that returns a BOOL
  I know where oSingle.outname and m_pMainWnd come from and what they mean.
m_pDebugProcess is a LPVOID member in yet another class

what the %&$# is that line of code doing (in IWB please)?
Title: Re: Conversion question
Post by: LarryMc on July 01, 2012, 10:16:44 AM
Guess I'm going to have to learn a little C++ on my own.
I got a copy of "C++ All-in-One for Dummies" and have started reading it.
Not that I WANT to learn C++ but I NEED to learn enough to be able to convert about 1500 lines of code + the headers.
Title: Re: Conversion question
Post by: GWS on July 01, 2012, 12:45:35 PM
Sorry I can't really help Larry .. C is gobbledegook to me as well  ::)

I can tell you though, that the 'arrow operator' is used in place of the dot operator when accessing a structure member through a pointer to the structure.

I'm not really any wiser though - it's what my C book says.

I would get no sense of achievement if I'd written that monster statement you were asking about. :o

My only other thought is to put your query on the CM forum - there might be more chance of finding a C expert there.

best wishes, :)

Graham