October 30, 2025, 04:16:29 PM

News:

IWBasic runs in Windows 11!


Conversion question

Started by LarryMc, June 30, 2012, 01:15:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

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)?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

GWS

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



Tomorrow may be too late ..