Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInternet link on my about dialog box Pin
Jonathan Craig29-Aug-01 13:42
Jonathan Craig29-Aug-01 13:42 
GeneralRe: Internet link on my about dialog box Pin
Jim A. Johnson29-Aug-01 13:59
Jim A. Johnson29-Aug-01 13:59 
GeneralRe: Internet link on my about dialog box Pin
Not Active29-Aug-01 14:10
mentorNot Active29-Aug-01 14:10 
GeneralNM_RETURN vs NM_CLICK Pin
29-Aug-01 11:23
suss29-Aug-01 11:23 
GeneralRe: NM_RETURN vs NM_CLICK Pin
Joaquín M López Muñoz29-Aug-01 20:17
Joaquín M López Muñoz29-Aug-01 20:17 
GeneralC++ control to ActiveX and C++ control to DLL Pin
29-Aug-01 11:11
suss29-Aug-01 11:11 
GeneralRe: C++ control to ActiveX and C++ control to DLL Pin
29-Aug-01 11:20
suss29-Aug-01 11:20 
GeneralRe: C++ control to ActiveX and C++ control to DLL Pin
29-Aug-01 11:55
suss29-Aug-01 11:55 
But this will only make CTreeCtrl member of this ActiveX, and all methods, properties and events you'll need to put manually, like:

MyActiveX::DoSomething ()
{ MyCppControl.DoSomething();
}

Is that what you mean? If yes, I need something different. I.e.:

// my C++ control h file:

CMyControl : public CWnd
{ int DoSomething();
}

// my C++ control cpp file:
int CMyControl::DoSomething()
{ /* some processing here*/
}

// My ActiveX h file:
CMyActiveXControl : public CMyControl
{ // no redeclarations from CMyControl here
}

And than after compile I will have OCX where all public methods, properties and events will be available to other programs.

I understand, that simple declaration
CMyActiveXControl : public CMyControl
will not be correct, and I'm looking either for utility that will automatically generate code for CMyActiveXControl given code of CMyControl, or some declaration that will not require me to rewrite methods, properties and events in the cpp file for CMyActiveXControl (may be like CMyActiveXControl : public CMyControl, COleControl ???), or something else.

What I'm trying to avoid is maintaining two or three cpp files (for C++, ActiveX and DLL) that have identical code except declarations and, possible, function names (for example, COleControls has OnDraw instead of OnPaint).

Is it possible in MSVC++? (I know that in C++ Builder and Delphi they have tool allowing to do it automatically).

SY-
Kosta.
GeneralListBox Control Pin
RobJones29-Aug-01 9:42
RobJones29-Aug-01 9:42 
GeneralRe: ListBox Control Pin
Not Active29-Aug-01 14:18
mentorNot Active29-Aug-01 14:18 
GeneralRe: ListBox Control Pin
Michael Dunn29-Aug-01 14:30
sitebuilderMichael Dunn29-Aug-01 14:30 
GeneralRe: ListBox Control Pin
RobJones30-Aug-01 4:58
RobJones30-Aug-01 4:58 
GeneralOwner draw static control and memory leak Pin
Peter Pearson29-Aug-01 9:38
Peter Pearson29-Aug-01 9:38 
GeneralRe: Owner draw static control and memory leak Pin
Tomasz Sowinski29-Aug-01 9:51
Tomasz Sowinski29-Aug-01 9:51 
GeneralRe: Owner draw static control and memory leak Pin
Peter Pearson29-Aug-01 10:02
Peter Pearson29-Aug-01 10:02 
GeneralRe: Owner draw static control and memory leak Pin
Tomasz Sowinski29-Aug-01 10:01
Tomasz Sowinski29-Aug-01 10:01 
GeneralRe: Owner draw static control and memory leak Pin
Peter Pearson29-Aug-01 10:04
Peter Pearson29-Aug-01 10:04 
GeneralRe: Owner draw static control and memory leak Pin
Tomasz Sowinski29-Aug-01 10:13
Tomasz Sowinski29-Aug-01 10:13 
GeneralRe: Owner draw static control and memory leak Pin
Peter Pearson29-Aug-01 11:32
Peter Pearson29-Aug-01 11:32 
GeneralDifference between 2 CTime objects Pin
duggie29-Aug-01 9:24
duggie29-Aug-01 9:24 
GeneralRe: Difference between 2 CTime objects Pin
Tomasz Sowinski29-Aug-01 9:44
Tomasz Sowinski29-Aug-01 9:44 
GeneralRe: Difference between 2 CTime objects Pin
duggie29-Aug-01 10:06
duggie29-Aug-01 10:06 
GeneralRe: Difference between 2 CTime objects Pin
Tomasz Sowinski29-Aug-01 10:21
Tomasz Sowinski29-Aug-01 10:21 
GeneralRe: Difference between 2 CTime objects Pin
duggie29-Aug-01 10:47
duggie29-Aug-01 10:47 
GeneralCHTMLView And ActiveX Documents Pin
AJ12329-Aug-01 8:37
AJ12329-Aug-01 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.