Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: win32api Pin
Tomasz Sowinski17-Oct-02 3:03
Tomasz Sowinski17-Oct-02 3:03 
GeneralRe: win32api Pin
zeki yugnak17-Oct-02 3:05
zeki yugnak17-Oct-02 3:05 
GeneralRe: win32api Pin
zeki yugnak17-Oct-02 2:59
zeki yugnak17-Oct-02 2:59 
GeneralLayered Service Provider - WinSock 2 Pin
Cristi17-Oct-02 2:41
Cristi17-Oct-02 2:41 
Generalobtaining a full path filename of a DLL Pin
Debs17-Oct-02 2:22
Debs17-Oct-02 2:22 
GeneralRe: obtaining a full path filename of a DLL Pin
Tomasz Sowinski17-Oct-02 2:25
Tomasz Sowinski17-Oct-02 2:25 
GeneralRe: obtaining a full path filename of a DLL Pin
Debs17-Oct-02 2:42
Debs17-Oct-02 2:42 
GeneralRe: obtaining a full path filename of a DLL Pin
Tomasz Sowinski17-Oct-02 2:47
Tomasz Sowinski17-Oct-02 2:47 
There's a function called DllMain in your .dll project. It's called by Windows during initialization of your .dll and gets the right HINSTANCE. You can store HINSTANCe somewhere or call GetModuleFileName right in DllMain.

DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	char buf[1024];
	GetModuleFileName(hInstance, buf, sizeof(buf));
	...
}


To find DllMain, expand 'Globals' item in ClassView.

Tomasz Sowinski -- http://www.shooltz.com

*** Purgamentum init, exit purgamentum ***

GeneralRe: obtaining a full path filename of a DLL Pin
Debs17-Oct-02 3:02
Debs17-Oct-02 3:02 
GeneralRe: obtaining a full path filename of a DLL Pin
Debs17-Oct-02 2:53
Debs17-Oct-02 2:53 
Generalsizing ListCtrl and columns Pin
Idefix17-Oct-02 1:38
Idefix17-Oct-02 1:38 
Generalworrisome exception Pin
ns17-Oct-02 1:32
ns17-Oct-02 1:32 
GeneralRe: worrisome exception Pin
Prem Kumar17-Oct-02 1:49
Prem Kumar17-Oct-02 1:49 
GeneralRe: worrisome exception Pin
ns17-Oct-02 1:52
ns17-Oct-02 1:52 
GeneralRe: worrisome exception Pin
Tomasz Sowinski17-Oct-02 1:51
Tomasz Sowinski17-Oct-02 1:51 
GeneralPlease Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages... Pin
Redeemer-dk17-Oct-02 1:23
Redeemer-dk17-Oct-02 1:23 
GeneralRe: Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages... Pin
Tomasz Sowinski17-Oct-02 1:26
Tomasz Sowinski17-Oct-02 1:26 
GeneralRe: Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages... Pin
Anonymous17-Oct-02 2:33
Anonymous17-Oct-02 2:33 
GeneralRe: Please Help! I suddenly get a ton of "missing ')'" and "missing ';'" messages... Pin
Andreas Saurwein17-Oct-02 1:35
Andreas Saurwein17-Oct-02 1:35 
QuestionHow can i get the Window Handle... Pin
Renjith Ramachandran17-Oct-02 0:46
Renjith Ramachandran17-Oct-02 0:46 
AnswerRe: How can i get the Window Handle... Pin
Tomasz Sowinski17-Oct-02 0:51
Tomasz Sowinski17-Oct-02 0:51 
GeneralRe: How can i get the Window Handle... Pin
Renjith Ramachandran17-Oct-02 0:57
Renjith Ramachandran17-Oct-02 0:57 
GeneralRe: How can i get the Window Handle... Pin
Tomasz Sowinski17-Oct-02 0:58
Tomasz Sowinski17-Oct-02 0:58 
GeneralRe: How can i get the Window Handle... Pin
Renjith Ramachandran17-Oct-02 1:00
Renjith Ramachandran17-Oct-02 1:00 
GeneralRe: How can i get the Window Handle... Pin
Tomasz Sowinski17-Oct-02 1:08
Tomasz Sowinski17-Oct-02 1:08 

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.