Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ Linking error to do with += Operator Pin
Rage16-Aug-06 1:42
professionalRage16-Aug-06 1:42 
QuestionRe: VC++ Linking error to do with += Operator Pin
David Crow16-Aug-06 2:47
David Crow16-Aug-06 2:47 
AnswerRe: VC++ Linking error to do with += Operator Pin
Zac Howland16-Aug-06 4:17
Zac Howland16-Aug-06 4:17 
GeneralRe: VC++ Linking error to do with += Operator Pin
Rage16-Aug-06 5:29
professionalRage16-Aug-06 5:29 
QuestionvbAccelerator Explorer Bar Control Pin
Hesham Desouky15-Aug-06 23:22
Hesham Desouky15-Aug-06 23:22 
QuestionDRM question Pin
shadow0115-Aug-06 23:03
shadow0115-Aug-06 23:03 
AnswerRe: DRM question Pin
Mircea Puiu16-Aug-06 23:13
Mircea Puiu16-Aug-06 23:13 
QuestionUSING FormatMessage Pin
fx920015-Aug-06 22:57
fx920015-Aug-06 22:57 
Hello;
in order to get full description of an event located in eventViewer
i used ReadEvetLog to obtain event id and source name ;
i can after read the dll which contains the message description
example for security center is xpsp2res.dll ;

1. i used load library to load the file
2. i used findRessource to find message N° 1800

the second operation fils always ;
i don't know why???

CODE
HMODULE handle;
HANDLE Res;
DWORD dwLongBuff;
char Buffer[MAX_BUFFER_SIZE];
va_list list[10];

handle=LoadLibrary("c:\\windows\\system32\\xpsp2res.dll");
if (handle==NULL) printf("failure to load"); else printf ("loading ok");

HRSRC hrsrc=FindResource(handle,"#1800",RT_MESSAGETABLE);
if (hrsrc==NULL) printf("failure to load2"); else printf ("loading ok2");

dwLongBuff=FormatMessage(FORMAT_MESSAGE_FROM_HMODULE,handle,
1036,4,Buffer,MAX_BUFFER_SIZE,list);


AnswerRe: USING FormatMessage Pin
Rage16-Aug-06 1:31
professionalRage16-Aug-06 1:31 
QuestionCovert char array to unsined char array Pin
Tuscon15-Aug-06 22:54
Tuscon15-Aug-06 22:54 
AnswerRe: Covert char array to unsined char array Pin
Rage15-Aug-06 23:03
professionalRage15-Aug-06 23:03 
AnswerRe: Covert char array to unsined char array Pin
Eytukan16-Aug-06 0:57
Eytukan16-Aug-06 0:57 
AnswerRe: Covert char array to unsined char array Pin
Zac Howland16-Aug-06 4:22
Zac Howland16-Aug-06 4:22 
Questioncallback in windows service Pin
_tasleem15-Aug-06 22:18
_tasleem15-Aug-06 22:18 
AnswerRe: callback in windows service Pin
Milton Karimbekallil15-Aug-06 23:36
Milton Karimbekallil15-Aug-06 23:36 
GeneralRe: callback in windows service [modified] Pin
_tasleem15-Aug-06 23:56
_tasleem15-Aug-06 23:56 
GeneralRe: callback in windows service Pin
Milton Karimbekallil16-Aug-06 0:43
Milton Karimbekallil16-Aug-06 0:43 
GeneralRe: callback in windows service Pin
_tasleem16-Aug-06 1:31
_tasleem16-Aug-06 1:31 
GeneralRe: callback in windows service Pin
Milton Karimbekallil16-Aug-06 3:18
Milton Karimbekallil16-Aug-06 3:18 
GeneralRe: callback in windows service Pin
_tasleem17-Aug-06 2:01
_tasleem17-Aug-06 2:01 
QuestionHow to disable USB Enhanced Host Controller by using VC++ code? Pin
momer15-Aug-06 22:16
momer15-Aug-06 22:16 
Questionproblem with LoadFrame Pin
sach!!15-Aug-06 22:06
sach!!15-Aug-06 22:06 
QuestionLinker Error Pin
tom groezer15-Aug-06 22:02
tom groezer15-Aug-06 22:02 
AnswerRe: Linker Error Pin
Rage15-Aug-06 23:05
professionalRage15-Aug-06 23:05 
GeneralRe: Linker Error Pin
tom groezer16-Aug-06 19:57
tom groezer16-Aug-06 19:57 

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.