Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:52
yarp8-Jul-02 18:52 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Marshall8-Jul-02 10:51
Marshall8-Jul-02 10:51 
AnswerRe: malloc/new vs GlobalAlloc strategy ? Pin
Gary Kirkham8-Jul-02 11:51
Gary Kirkham8-Jul-02 11:51 
GeneralRe: malloc/new vs GlobalAlloc strategy ? Pin
yarp8-Jul-02 18:57
yarp8-Jul-02 18:57 
Generalautomation problem. excel Pin
pnpfriend8-Jul-02 9:55
pnpfriend8-Jul-02 9:55 
QuestionGDI+ Image.Save Function? Pin
Andy Brace8-Jul-02 9:41
Andy Brace8-Jul-02 9:41 
GeneralExe/Dll Dependancies. Pin
Mike Doner8-Jul-02 9:34
Mike Doner8-Jul-02 9:34 
GeneralRe: Exe/Dll Dependancies. Pin
Oliver Daniel8-Jul-02 10:08
Oliver Daniel8-Jul-02 10:08 
If you want functionality like Dependency Walker, you would have to read the PE header of the executable and locate the imports table. It lists the various modules the EXE depends on along with the functions from the modules that are needed. I can't say specifically where you can get that info but I've come across it on several occassions in the past.

There was an overview of the PE executable format in a recent MSDN magazine.
http://msdn.microsoft.com/msdnmag/issues/02/02/PE/PE.asp

Another approach is to examine the moudules that are currently in use. You can use the toolhelp32 functions for that. Basically you would create a snapshot with CreateToolhelp32Snapshot to get a snapshot of the modules in use by the process. Then call Module32First and successviely call Module32Next to get info about each module used by the process. Don't forget to call CloseHandle on the snapshot's handle when done.


GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner9-Jul-02 9:06
Mike Doner9-Jul-02 9:06 
GeneralRe: Exe/Dll Dependancies. Pin
-Dy10-Jul-02 23:45
-Dy10-Jul-02 23:45 
GeneralRe: Exe/Dll Dependancies. Pin
Mike Doner12-Jul-02 2:59
Mike Doner12-Jul-02 2:59 
GeneralWNetAddConnection2 fails with error code 1312 Pin
alma8-Jul-02 9:24
alma8-Jul-02 9:24 
GeneralRe: WNetAddConnection2 fails with error code 1312 Pin
alma11-Jul-02 1:49
alma11-Jul-02 1:49 
GeneralSTL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:13
professional#realJSOP8-Jul-02 9:13 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:38
professionalChris Losinger8-Jul-02 9:38 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP8-Jul-02 9:45
professional#realJSOP8-Jul-02 9:45 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 9:53
professionalChris Losinger8-Jul-02 9:53 
GeneralRe: STL question - Moving Items around in a list Pin
Tim Smith8-Jul-02 10:14
Tim Smith8-Jul-02 10:14 
GeneralRe: STL question - Moving Items around in a list Pin
Chris Losinger8-Jul-02 10:16
professionalChris Losinger8-Jul-02 10:16 
GeneralRe: STL question - Moving Items around in a list Pin
#realJSOP9-Jul-02 2:31
professional#realJSOP9-Jul-02 2:31 
GeneralRe: STL question - Moving Items around in a list Pin
jbarton9-Jul-02 5:23
jbarton9-Jul-02 5:23 
GeneralGeting Explorer Drop Target - Help Pin
zarco18-Jul-02 8:43
zarco18-Jul-02 8:43 
GeneralHooking windows Pin
S van Leent8-Jul-02 7:59
S van Leent8-Jul-02 7:59 
GeneralRe: Hooking windows Pin
Oliver Daniel8-Jul-02 10:11
Oliver Daniel8-Jul-02 10:11 
GeneralRe: Hooking windows Pin
S van Leent9-Jul-02 1:43
S van Leent9-Jul-02 1:43 

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.