Click here to Skip to main content
11,415,046 members (74,479 online)

ATL / WTL / STL

 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 1:44
memberDhrumilS23-Nov-12 1:44 
Newshacker240union Pin
hacker240union23-Nov-12 0:40
memberhacker240union23-Nov-12 0:40 
Questioncopying AAComBSTR to BYTE Pin
V K 220-Nov-12 21:56
memberV K 220-Nov-12 21:56 
AnswerRe: copying AAComBSTR to BYTE Pin
Richard MacCutchan20-Nov-12 22:28
mvpRichard MacCutchan20-Nov-12 22:28 
AnswerRe: copying AAComBSTR to BYTE Pin
hacker240union23-Nov-12 0:27
memberhacker240union23-Nov-12 0:27 
QuestionC++ Delegate/Events Pin
Edward G Dana14-Nov-12 18:15
memberEdward G Dana14-Nov-12 18:15 
AnswerRe: C++ Delegate/Events Pin
Richard MacCutchan14-Nov-12 21:57
mvpRichard MacCutchan14-Nov-12 21:57 
GeneralRe: C++ Delegate/Events Pin
Edward G Dana15-Nov-12 14:35
memberEdward G Dana15-Nov-12 14:35 
GeneralRe: C++ Delegate/Events Pin
Richard MacCutchan16-Nov-12 0:45
mvpRichard MacCutchan16-Nov-12 0:45 
AnswerRe: C++ Delegate/Events Pin
pasztorpisti20-Nov-12 3:53
memberpasztorpisti20-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
khaliloenit8-Nov-12 2:01
memberkhaliloenit8-Nov-12 2:01 
AnswerRe: Return FALSE in InitInstance causes crash in 64Bits Pin
Albert Holguin10-Dec-12 5:30
memberAlbert 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
mvpRichard MacCutchan6-Nov-12 22:40 
GeneralRe: How to get used dll's path information programetically? [modified] 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
mvpRichard 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
mvpRichard 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
mvpRichard MacCutchan8-Nov-12 1:16 
GeneralRe: How to get used dll's path information programetically? [modified] 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
mvpRichard 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
mvpRichard 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 [modified] 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
mvpRichard 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
mvpRichard MacCutchan1-Nov-12 23:50 
GeneralRe: problem with sprintf_s() on win 7 Pin
bkelly132-Nov-12 4:16
memberbkelly132-Nov-12 4:16 
GeneralRe: problem with sprintf_s() on win 7 Pin
Richard MacCutchan2-Nov-12 7:15
mvpRichard MacCutchan2-Nov-12 7:15 
GeneralRe: problem with sprintf_s() on win 7 Pin
Member 93537764-Nov-12 17:34
memberMember 93537764-Nov-12 17:34 
GeneralRe: problem with sprintf_s() on win 7 Pin
Richard MacCutchan4-Nov-12 22:26
mvpRichard MacCutchan4-Nov-12 22:26 
AnswerRe: problem with sprintf_s() on win 7 Pin
H.Brydon26-Nov-12 20:36
memberH.Brydon26-Nov-12 20:36 
Questionwsageterror() Pin
bkelly131-Nov-12 16:28
memberbkelly131-Nov-12 16:28 
AnswerRe: wsageterror() Pin
Richard MacCutchan1-Nov-12 23:48
mvpRichard MacCutchan1-Nov-12 23:48 
QuestionSTL map issue in VS2010 Pin
Subhash Madhukar30-Oct-12 4:47
memberSubhash Madhukar30-Oct-12 4:47 
AnswerRe: STL map issue in VS2010 Pin
Richard MacCutchan30-Oct-12 7:04
mvpRichard MacCutchan30-Oct-12 7:04 
Questionhow do i copy a CImage DIB to clipboard Pin
Member 951640015-Oct-12 12:15
memberMember 951640015-Oct-12 12:15 
AnswerRe: how do i copy a CImage DIB to clipboard Pin
Andrew Cherednik15-Oct-12 12:41
memberAndrew Cherednik15-Oct-12 12:41 
QuestionWhy does this fail - CFile / SeekToEnd? [modified] Pin
charlieg10-Oct-12 7:43
membercharlieg10-Oct-12 7:43 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg10-Oct-12 10:31
membercharlieg10-Oct-12 10:31 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
Andrew Cherednik10-Oct-12 12:23
memberAndrew Cherednik10-Oct-12 12:23 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg11-Oct-12 3:20
membercharlieg11-Oct-12 3:20 
AnswerRe: Why does this fail - CFile / SeekToEnd? Pin
Richard MacCutchan10-Oct-12 22:45
mvpRichard MacCutchan10-Oct-12 22:45 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg11-Oct-12 3:30
membercharlieg11-Oct-12 3:30 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pin
charlieg11-Oct-12 5:53
membercharlieg11-Oct-12 5:53 
GeneralRe: Why does this fail - CFile / SeekToEnd? Pin
Richard MacCutchan11-Oct-12 12:19
mvpRichard MacCutchan11-Oct-12 12:19 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150427.4 | Last Updated 24 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid