Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC question Pin
Beer2612-Aug-03 4:28
Beer2612-Aug-03 4:28 
GeneralRe: MFC question Pin
Nish Nishant12-Aug-03 4:39
sitebuilderNish Nishant12-Aug-03 4:39 
GeneralRe: MFC question Pin
Beer2612-Aug-03 5:52
Beer2612-Aug-03 5:52 
GeneralODBC Pin
Ortie12-Aug-03 4:16
Ortie12-Aug-03 4:16 
GeneralRe: ODBC Pin
basementman12-Aug-03 4:24
basementman12-Aug-03 4:24 
GeneralHelp on DLLs Pin
Radha Nair12-Aug-03 4:03
Radha Nair12-Aug-03 4:03 
GeneralRe: Help on DLLs Pin
Chris Meech12-Aug-03 5:01
Chris Meech12-Aug-03 5:01 
GeneralRe: Help on DLLs Pin
Nish Nishant12-Aug-03 5:53
sitebuilderNish Nishant12-Aug-03 5:53 
Chris Meech wrote:
I'm sure someone will try to proove me wrong, though

Not trying to prove anything. But maybe something like this can be done?

//header file
class ExportedClass
{
public:
    ExportedClass();
    ~ExportedClass
    void Abc();
};

ExportedClass* GetExportedClass()
{
    return new ExportedClass();
}


Now in the main exe, do something like :-

GETEXPORTEDCLASS func = GetProcAddress(...,"GetExportedClass");
ExportedClass* pec = (func)();
pec->Abc();


This is untested code and it might not work for various reasons (member name mangling for one) but it's worth a try. If this is a stupid idea, please forgive my relative ignorance in such matters Smile | :)

Nish


Extending MFC Applications with the .NET Framework [NW] (My book with Tom)
Summer Love and Some more Cricket [NW] (My first novel)
Shog's review of SLASMC [NW]
Come with me if you want to live
GeneralRe: Help on DLLs Pin
Chris Meech12-Aug-03 6:11
Chris Meech12-Aug-03 6:11 
GeneralRe: Help on DLLs Pin
Radha Nair12-Aug-03 6:22
Radha Nair12-Aug-03 6:22 
GeneralRe: Help on DLLs Pin
igor196012-Aug-03 10:51
igor196012-Aug-03 10:51 
GeneralRe: Help on DLLs Pin
Rick York12-Aug-03 12:55
mveRick York12-Aug-03 12:55 
GeneralRe: Help on DLLs Pin
Radha Nair13-Aug-03 3:13
Radha Nair13-Aug-03 3:13 
GeneralContext menu on ActiveX control Pin
Ed K12-Aug-03 3:40
Ed K12-Aug-03 3:40 
GeneralI need help in timers or conversions Pin
Snyp12-Aug-03 3:37
Snyp12-Aug-03 3:37 
GeneralRe: I need help in timers or conversions Pin
David Crow12-Aug-03 3:48
David Crow12-Aug-03 3:48 
GeneralRe: I need help in timers or conversions Pin
Anonymous12-Aug-03 4:24
Anonymous12-Aug-03 4:24 
GeneralRe: I need help in timers or conversions Pin
Snyp12-Aug-03 6:28
Snyp12-Aug-03 6:28 
GeneralRe: I need help in timers or conversions Pin
PremL12-Aug-03 5:26
PremL12-Aug-03 5:26 
GeneralRe: functions Pin
Maximilien12-Aug-03 3:38
Maximilien12-Aug-03 3:38 
GeneralRe: functions Pin
David Crow12-Aug-03 3:46
David Crow12-Aug-03 3:46 
GeneralMDI Frame Title Pin
Simon Steele12-Aug-03 3:07
Simon Steele12-Aug-03 3:07 
GeneralRe: MDI Frame Title Pin
G. Steudtel12-Aug-03 5:59
G. Steudtel12-Aug-03 5:59 
GeneralCPropertySheet woes Pin
DodgyG12-Aug-03 2:59
DodgyG12-Aug-03 2:59 
GeneralRe: CPropertySheet woes Pin
David Crow12-Aug-03 3:11
David Crow12-Aug-03 3:11 

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.