Click here to Skip to main content
15,905,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to display a csv file on a click of button Pin
keerthihaasan23-Nov-08 18:11
keerthihaasan23-Nov-08 18:11 
GeneralRe: How to display a csv file on a click of button Pin
Chandrasekharan P23-Nov-08 18:16
Chandrasekharan P23-Nov-08 18:16 
GeneralRe: How to display a csv file on a click of button Pin
Cedric Moonen23-Nov-08 20:25
Cedric Moonen23-Nov-08 20:25 
QuestionHow does the Windows Explorer status bar know file details? Pin
Xiphias323-Nov-08 7:42
Xiphias323-Nov-08 7:42 
Questionconverting float[][] to float** in function params Pin
Chesnokov Yuriy23-Nov-08 5:04
professionalChesnokov Yuriy23-Nov-08 5:04 
QuestionRe: converting float[][] to float** in function params Pin
CPallini23-Nov-08 8:23
mveCPallini23-Nov-08 8:23 
AnswerRe: converting float[][] to float** in function params Pin
Chesnokov Yuriy23-Nov-08 19:22
professionalChesnokov Yuriy23-Nov-08 19:22 
QuestionCheck windows workstation is locked or not Pin
masaniparesh22-Nov-08 22:25
masaniparesh22-Nov-08 22:25 
Hi Friends,

I have written below code for checking whether windows machine is locked or not but its gives always window is locked though its not locked. Could anyone suggest what is wrong here or can give alternative solution?

bool lockedHost = false;
HMODULE hUser32;
FARPROC LockWorkStation;
hUser32 = GetModuleHandle("user32.dll");
if (hUser32) {
LockWorkStation = GetProcAddress(hUser32, "LockWorkStation");
if (LockWorkStation) {
lockedHost = true;
MessageBox(0, "locked1", "Info", MB_OK);
}
}

Thanks in advanced,
Paresh
AnswerRe: Check windows workstation is locked or not Pin
fantasy121522-Nov-08 23:34
fantasy121522-Nov-08 23:34 
AnswerRe: Check windows workstation is locked or not [modified] Pin
Jijo.Raj23-Nov-08 1:00
Jijo.Raj23-Nov-08 1:00 
Questionaccess violation exception dump debug Pin
George_George22-Nov-08 17:31
George_George22-Nov-08 17:31 
AnswerRe: access violation exception dump debug Pin
Hamid_RT22-Nov-08 18:13
Hamid_RT22-Nov-08 18:13 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 18:30
George_George22-Nov-08 18:30 
GeneralRe: access violation exception dump debug Pin
Hamid_RT22-Nov-08 18:39
Hamid_RT22-Nov-08 18:39 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 19:43
George_George22-Nov-08 19:43 
GeneralRe: access violation exception dump debug Pin
Hamid_RT22-Nov-08 20:29
Hamid_RT22-Nov-08 20:29 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 20:34
George_George22-Nov-08 20:34 
GeneralRe: access violation exception dump debug Pin
Hamid_RT22-Nov-08 21:23
Hamid_RT22-Nov-08 21:23 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 22:01
George_George22-Nov-08 22:01 
GeneralRe: access violation exception dump debug Pin
Hamid_RT23-Nov-08 3:25
Hamid_RT23-Nov-08 3:25 
GeneralRe: access violation exception dump debug Pin
Cedric Moonen22-Nov-08 21:54
Cedric Moonen22-Nov-08 21:54 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 22:03
George_George22-Nov-08 22:03 
GeneralRe: access violation exception dump debug Pin
Cedric Moonen22-Nov-08 22:11
Cedric Moonen22-Nov-08 22:11 
GeneralRe: access violation exception dump debug Pin
George_George22-Nov-08 22:19
George_George22-Nov-08 22:19 
GeneralRe: access violation exception dump debug Pin
Cedric Moonen22-Nov-08 22:35
Cedric Moonen22-Nov-08 22:35 

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.