Click here to Skip to main content
14,642,548 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CAsyncSocket Send( arguments ) Pin
xenotron30-Sep-12 4:03
Memberxenotron30-Sep-12 4:03 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 4:13
mveRichard MacCutchan30-Sep-12 4:13 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1330-Sep-12 5:44
Memberbkelly1330-Sep-12 5:44 
GeneralRe: CAsyncSocket Send( arguments ) Pin
Richard MacCutchan30-Sep-12 6:10
mveRichard MacCutchan30-Sep-12 6:10 
GeneralRe: CAsyncSocket Send( arguments ) Pin
xenotron30-Sep-12 6:38
Memberxenotron30-Sep-12 6:38 
GeneralRe: CAsyncSocket Send( arguments ) Pin
bkelly1330-Sep-12 6:16
Memberbkelly1330-Sep-12 6:16 
GeneralRe: CAsyncSocket Send( arguments ) Pin
xenotron30-Sep-12 6:31
Memberxenotron30-Sep-12 6:31 
Questionget instance of object (in exe) from dll caller Pin
MrKBA17-Sep-12 4:38
MemberMrKBA17-Sep-12 4:38 
Hello,

I have an application exe and COM dll.

- In Exe I have like this :
class CMyExeApp : public CWinApp
{
...
public:
	CMyObject * m_pMyObject;
public:
	virtual BOOL InitInstance();
....
}
extern CMyExeApp theApp;


All works fine between the Exe and the COM dll.

What I need is to get the instance of Class CMyExeApp (theApp) to get the reference to m_pMyObject IN THE DLL

I tried this in Dll :
HMODULE hModule = GetModuleHandle(CURRENT_EXE_NAME);

but i didn't know what i do after

any help please Smile | :)
AnswerRe: get instance of object (in exe) from dll caller Pin
xenotron17-Sep-12 6:57
Memberxenotron17-Sep-12 6:57 
GeneralRe: get instance of object (in exe) from dll caller Pin
MrKBA17-Sep-12 9:32
MemberMrKBA17-Sep-12 9:32 
JokeRe: get instance of object (in exe) from dll caller Pin
xenotron17-Sep-12 13:43
Memberxenotron17-Sep-12 13:43 
GeneralRe: get instance of object (in exe) from dll caller Pin
xenotron17-Sep-12 13:48
Memberxenotron17-Sep-12 13:48 
AnswerRe: get instance of object (in exe) from dll caller Pin
Richard MacCutchan17-Sep-12 22:16
mveRichard MacCutchan17-Sep-12 22:16 
AnswerRe: get instance of object (in exe) from dll caller Pin
Stephen Hewitt18-Sep-12 18:49
MemberStephen Hewitt18-Sep-12 18:49 
QuestionCAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 6:07
Memberbkelly1316-Sep-12 6:07 
Answerunexpected behavior Pin
bkelly1316-Sep-12 10:07
Memberbkelly1316-Sep-12 10:07 
AnswerRe: CAsyncSocket Connect says in use Pin
Richard Andrew x6416-Sep-12 11:53
professionalRichard Andrew x6416-Sep-12 11:53 
AnswerRe: CAsyncSocket Connect says in use Pin
xenotron16-Sep-12 12:05
Memberxenotron16-Sep-12 12:05 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 12:55
Memberbkelly1316-Sep-12 12:55 
GeneralRe: CAsyncSocket Connect says in use Pin
xenotron16-Sep-12 13:09
Memberxenotron16-Sep-12 13:09 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 13:17
Memberbkelly1316-Sep-12 13:17 
GeneralRe: CAsyncSocket Connect says in use Pin
xenotron16-Sep-12 13:34
Memberxenotron16-Sep-12 13:34 
GeneralRe: CAsyncSocket Connect says in use Pin
bkelly1316-Sep-12 14:07
Memberbkelly1316-Sep-12 14:07 
Questionbetter version of strcpy() and printf() Pin
bkelly1315-Sep-12 10:02
Memberbkelly1315-Sep-12 10:02 
AnswerRe: better version of strcpy() and printf() Pin
Paul M Watt15-Sep-12 12:33
mentorPaul M Watt15-Sep-12 12:33 

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.