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

ATL / WTL / STL

 
AnswerRe: C++ Delegate/Events Pin
Richard MacCutchan14-Nov-12 21:57
mveRichard MacCutchan14-Nov-12 21:57 
GeneralRe: C++ Delegate/Events Pin
EDanaII15-Nov-12 14:35
MemberEDanaII15-Nov-12 14:35 
GeneralRe: C++ Delegate/Events Pin
Richard MacCutchan16-Nov-12 0:45
mveRichard MacCutchan16-Nov-12 0:45 
AnswerRe: C++ Delegate/Events Pin
xenotron20-Nov-12 3:53
Memberxenotron20-Nov-12 3:53 
GeneralRe: C++ Delegate/Events Pin
EDanaII20-Nov-12 17:23
MemberEDanaII20-Nov-12 17:23 
QuestionReturn FALSE in InitInstance causes crash in 64Bits Pin
MrKBA8-Nov-12 2:01
MemberMrKBA8-Nov-12 2:01 
AnswerRe: Return FALSE in InitInstance causes crash in 64Bits Pin
Albert Holguin10-Dec-12 5:30
professionalAlbert Holguin10-Dec-12 5:30 
QuestionHow to get used dll's path information programetically? Pin
litu kumar6-Nov-12 20:38
Memberlitu kumar6-Nov-12 20:38 
Hi,
I'm using a .net dll in a Win32 application.
I want to print the DLL file location programetically.

I tried like as below , but it still displaying the EXE's (generated by my win32 app.) path -
-----------------------------------------------------------
HMODULE hmod = GetModuleHandle(TEXT("MyApp.dll"));
TCHAR szPath[MAX_PATH + 1] = {0};
DWORD dwLen = GetModuleFileName(hmod, szPath, MAX_PATH);
wprintf(L"CURRENT DIRECTORY: %s\n" ,szPath);
-----------------------------------------------------------

Please advice any new solution or any correction required (above code stuff) for the same.
AnswerRe: How to get used dll's path information programetically? Pin
Richard MacCutchan6-Nov-12 22:40
mveRichard MacCutchan6-Nov-12 22:40 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar7-Nov-12 0:27
Memberlitu kumar7-Nov-12 0:27 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan7-Nov-12 5:54
mveRichard MacCutchan7-Nov-12 5:54 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar7-Nov-12 18:11
Memberlitu kumar7-Nov-12 18:11 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan7-Nov-12 22:34
mveRichard MacCutchan7-Nov-12 22:34 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar7-Nov-12 23:35
Memberlitu kumar7-Nov-12 23:35 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan8-Nov-12 1:16
mveRichard MacCutchan8-Nov-12 1:16 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar8-Nov-12 3:58
Memberlitu kumar8-Nov-12 3:58 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan8-Nov-12 5:03
mveRichard MacCutchan8-Nov-12 5:03 
GeneralRe: How to get used dll's path information programetically? Pin
litu kumar15-Nov-12 20:53
Memberlitu kumar15-Nov-12 20:53 
GeneralRe: How to get used dll's path information programetically? Pin
Richard MacCutchan16-Nov-12 0:50
mveRichard MacCutchan16-Nov-12 0:50 
AnswerRe: How to get used dll's path information programetically? Pin
hacker240union23-Nov-12 0:41
Memberhacker240union23-Nov-12 0:41 
Questiondetect close event with CAsyncSocket Pin
bkelly135-Nov-12 11:32
Memberbkelly135-Nov-12 11:32 
QuestionIntermediate GUI Techniques Pin
bkelly132-Nov-12 4:21
Memberbkelly132-Nov-12 4:21 
AnswerRe: Intermediate GUI Techniques Pin
Richard MacCutchan2-Nov-12 7:20
mveRichard MacCutchan2-Nov-12 7:20 
Questionproblem with sprintf_s() on win 7 Pin
Member 93537761-Nov-12 22:34
MemberMember 93537761-Nov-12 22:34 
AnswerRe: problem with sprintf_s() on win 7 Pin
Richard MacCutchan1-Nov-12 23:50
mveRichard MacCutchan1-Nov-12 23:50 

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.