Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProgramatically determine if windows updates are being installed Pin
nwunder16-Apr-08 9:43
nwunder16-Apr-08 9:43 
QuestionRe: Programatically determine if windows updates are being installed Pin
David Crow16-Apr-08 10:09
David Crow16-Apr-08 10:09 
GeneralRe: Programatically determine if windows updates are being installed Pin
nwunder16-Apr-08 10:40
nwunder16-Apr-08 10:40 
QuestionAssertion failure Pin
sunguy16-Apr-08 6:55
sunguy16-Apr-08 6:55 
GeneralRe: Assertion failure Pin
Cedric Moonen16-Apr-08 7:38
Cedric Moonen16-Apr-08 7:38 
QuestionRe: Assertion failure Pin
David Crow16-Apr-08 10:10
David Crow16-Apr-08 10:10 
GeneralRe: Assertion failure Pin
Moak16-Apr-08 23:58
Moak16-Apr-08 23:58 
QuestionHow do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 6:54
USAFHokie8016-Apr-08 6:54 
I've never really had to use dlls before like this... So I'm not sure what to do. I need to get the GDI and user object count for a process. There is a function named "int GetCurrentProcess(HANDLE,DWORD)" that does this in the user32.dll.

So I used LoadLibrary to load the dll and I used GetProcAddress to get the address of the function. But I can't figure out how to call the function.

HMODULE myDll = LoadLibrary("user32.dll");
void* myFunc = GetProcAddress(myDll, "GetGuiResources");


So how do I use the pointer to call the function? I've tried a few things I found on Google, but I can't get it to work.
GeneralRe: How do I use GetProcAddress & function pointer? Pin
Cedric Moonen16-Apr-08 7:40
Cedric Moonen16-Apr-08 7:40 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 8:20
USAFHokie8016-Apr-08 8:20 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
peterchen16-Apr-08 8:41
peterchen16-Apr-08 8:41 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 9:13
USAFHokie8016-Apr-08 9:13 
QuestionRe: How do I use GetProcAddress & function pointer? Pin
David Crow16-Apr-08 10:13
David Crow16-Apr-08 10:13 
QuestionRe: How do I use GetProcAddress & function pointer? Pin
David Crow16-Apr-08 10:12
David Crow16-Apr-08 10:12 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 10:19
USAFHokie8016-Apr-08 10:19 
GeneralCArray in File Mapping Pin
krishnan.s16-Apr-08 5:34
krishnan.s16-Apr-08 5:34 
GeneralRe: CArray in File Mapping Pin
peterchen16-Apr-08 8:13
peterchen16-Apr-08 8:13 
GeneralRe: CArray in File Mapping Pin
Joseph Marzbani16-Apr-08 10:59
Joseph Marzbani16-Apr-08 10:59 
GeneralRe: CArray in File Mapping Pin
peterchen16-Apr-08 12:43
peterchen16-Apr-08 12:43 
QuestionDoDataExchange doesn't like pointers ? Pin
cagespear16-Apr-08 5:33
cagespear16-Apr-08 5:33 
AnswerRe: DoDataExchange doesn't like pointers ? Pin
CPallini16-Apr-08 5:40
mveCPallini16-Apr-08 5:40 
AnswerRe: DoDataExchange doesn't like pointers ? Pin
David Crow16-Apr-08 10:20
David Crow16-Apr-08 10:20 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
cagespear16-Apr-08 20:53
cagespear16-Apr-08 20:53 
QuestionRe: DoDataExchange doesn't like pointers ? Pin
David Crow17-Apr-08 2:55
David Crow17-Apr-08 2:55 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
cagespear17-Apr-08 19:52
cagespear17-Apr-08 19:52 

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.