Click here to Skip to main content
16,005,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: FAQ for an interview in Multithreading/C++ Pin
kumar_mk22-May-06 17:46
kumar_mk22-May-06 17:46 
AnswerRe: FAQ for an interview in Multithreading/C++ Pin
AryaSoft23-May-06 7:45
AryaSoft23-May-06 7:45 
AnswerRe: FAQ for an interview in Multithreading/C++ Pin
Laxman Auti22-May-06 18:13
Laxman Auti22-May-06 18:13 
AnswerRe: FAQ for an interview in Multithreading/C++ Pin
AryaSoft23-May-06 7:46
AryaSoft23-May-06 7:46 
QuestionAdd and Remove Program Pin
_anil_22-May-06 16:03
_anil_22-May-06 16:03 
QuestionEnumDisplayDevices Pin
zaro33322-May-06 15:39
zaro33322-May-06 15:39 
AnswerRe: EnumDisplayDevices Pin
_anil_22-May-06 16:41
_anil_22-May-06 16:41 
AnswerRe: EnumDisplayDevices Pin
zaro33323-May-06 4:56
zaro33323-May-06 4:56 
Anil, Thank for your help, but this thing is starting to get on my nerves. I can not get it to work.

I try the above and nothing, then I try to simplify it and another error, see:

#include <windows.h>

BOOL GetDisplayMonitorInfo(int nDeviceIndex, LPSTR lpszMonitorInfo)
{
FARPROC EnumDisplayDevices;
HINSTANCE hInstUser32;
DISPLAY_DEVICE DispDev;
char szSaveDeviceName[32];
BOOL bRet = TRUE;

hInstUser32 = LoadLibrary("User32.DLL");
if (!hInstUser32) return FALSE;

// Get the address of the EnumDisplayDevices function
EnumDisplayDevices = (FARPROC)GetProcAddress(hInstUser32,"EnumDisplayDevicesA");

ZeroMemory(&DispDev, sizeof(DISPLAY_DEVICE));
DispDev.cb = sizeof(DISPLAY_DEVICE);

EnumDisplayDevices(szSaveDeviceName, 0, &DispDev, 0);

FreeLibrary(hInstUser32);

return bRet;
}


void main()
{
}
The error I get is:
error C2197: 'int (__stdcall *)(void)' : too many actual parameters on EnumDisplayDevices(szSave....)

I am thinking, I will not trying to get this function to work. Dead | X|
GeneralRe: EnumDisplayDevices Pin
zaro33323-May-06 4:58
zaro33323-May-06 4:58 
GeneralRe: EnumDisplayDevices Pin
zaro33323-May-06 5:01
zaro33323-May-06 5:01 
GeneralRe: EnumDisplayDevices [modified] Pin
_anil_23-May-06 15:05
_anil_23-May-06 15:05 
AnswerRe: EnumDisplayDevices [modified] Pin
zaro33324-May-06 4:14
zaro33324-May-06 4:14 
QuestionEmbedded Chart Missing X-Axis Scale Pin
Jenleonard22-May-06 15:38
Jenleonard22-May-06 15:38 
QuestionC++ vs C# Performance Pin
Ed K22-May-06 14:37
Ed K22-May-06 14:37 
AnswerRe: C++ vs C# Performance [modified] Pin
Nibu babu thomas22-May-06 17:14
Nibu babu thomas22-May-06 17:14 
AnswerRe: C++ vs C# Performance Pin
bob1697222-May-06 17:15
bob1697222-May-06 17:15 
GeneralRe: C++ vs C# Performance Pin
Ed K23-May-06 14:06
Ed K23-May-06 14:06 
AnswerRe: C++ vs C# Performance Pin
Ryan Binns22-May-06 18:32
Ryan Binns22-May-06 18:32 
GeneralRe: C++ vs C# Performance Pin
Ed K23-May-06 14:09
Ed K23-May-06 14:09 
QuestionProcessShellCommand and DDE [modified] Pin
tbrake22-May-06 13:07
tbrake22-May-06 13:07 
AnswerRe: ProcessShellCommand and DDE [modified] Pin
Ryan Binns22-May-06 18:33
Ryan Binns22-May-06 18:33 
QuestionApplication Crash Pin
jduff22-May-06 11:36
jduff22-May-06 11:36 
AnswerRe: Application Crash [modified] Pin
Stephen Hewitt22-May-06 13:58
Stephen Hewitt22-May-06 13:58 
AnswerRe: Application Crash Pin
Stephen Hewitt24-May-06 21:28
Stephen Hewitt24-May-06 21:28 
QuestionDll load problem Pin
swatgodjr22-May-06 11:25
swatgodjr22-May-06 11:25 

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.