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

C / C++ / MFC

 
GeneralRe: diference between C++ and VC++ Pin
markkuk12-Mar-05 0:45
markkuk12-Mar-05 0:45 
GeneralRe: diference between C++ and VC++ Pin
deldeep12-Mar-05 2:59
deldeep12-Mar-05 2:59 
GeneralRe: diference between C++ and VC++ Pin
John R. Shaw12-Mar-05 13:46
John R. Shaw12-Mar-05 13:46 
GeneralaHelp with SSL through anuthenticating proxy in WinInet Pin
Nickmatic11-Mar-05 14:50
Nickmatic11-Mar-05 14:50 
Generalcritical error Pin
mpapeo11-Mar-05 13:00
mpapeo11-Mar-05 13:00 
GeneralRe: critical error Pin
John R. Shaw12-Mar-05 14:17
John R. Shaw12-Mar-05 14:17 
GeneralRe: critical error Pin
mpapeo13-Mar-05 11:16
mpapeo13-Mar-05 11:16 
GeneralRe: critical error Pin
John R. Shaw15-Mar-05 10:23
John R. Shaw15-Mar-05 10:23 
The code you gave should not compile on any compiler period! Let alone give any error messages when run. I can not remember ever seeing so many basic programming errors. If by some miricle it did run, then (Yep) it would probubly crash. Heck you stand a better chance of crashing the whole system than making that code work (as written).

As for VirtualQueryEx: Why are you even trying to call it? The call appears to be used to retrieve information that needs to be stored in the structure pointed to by lpBuffer, but lpBuffer does not point to a structure, it points to NULL. The only reason the dwLength argument is correct, is that it is 0, since lpBuffer is NULL. You are also passing it a 5th argument GetLastError, for who knows what reason (it only takes 4 arguments and this is not one of them).

I recomend you start all over again from scatch. What ever it is you are trying to accomplish, this will not do it.

P.S. Sorry but if I was an employer, the code you gave would get you fired.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
QuestionHow to check wheter a specified path is a dir? Pin
Member 1219625211-Mar-05 12:32
Member 1219625211-Mar-05 12:32 
AnswerRe: How to check wheter a specified path is a dir? Pin
PJ Arends11-Mar-05 12:41
professionalPJ Arends11-Mar-05 12:41 
AnswerRe: How to check wheter a specified path is a dir? Pin
Ravi Bhavnani11-Mar-05 14:42
professionalRavi Bhavnani11-Mar-05 14:42 
AnswerRe: How to check wheter a specified path is a dir? Pin
Michael Dunn11-Mar-05 15:15
sitebuilderMichael Dunn11-Mar-05 15:15 
GeneralGetting rights for OpenSCManager Pin
bepperso11-Mar-05 11:02
bepperso11-Mar-05 11:02 
Generaldisplay a html page which is in memory Pin
includeh1011-Mar-05 10:31
includeh1011-Mar-05 10:31 
GeneralRe: display a html page which is in memory Pin
Ravi Bhavnani11-Mar-05 10:55
professionalRavi Bhavnani11-Mar-05 10:55 
Generalmemory allocation in dll Pin
NMiceli11-Mar-05 8:59
NMiceli11-Mar-05 8:59 
GeneralRe: memory allocation in dll Pin
Chris Losinger11-Mar-05 9:43
professionalChris Losinger11-Mar-05 9:43 
GeneralRe: memory allocation in dll Pin
NMiceli11-Mar-05 10:30
NMiceli11-Mar-05 10:30 
GeneralRe: memory allocation in dll Pin
cmk11-Mar-05 15:56
cmk11-Mar-05 15:56 
GeneralRe: memory allocation in dll Pin
Anonymous11-Mar-05 16:10
Anonymous11-Mar-05 16:10 
GeneralRe: memory allocation in dll Pin
cmk11-Mar-05 17:13
cmk11-Mar-05 17:13 
QuestionIs there a easy to move focus among controls using arrow key? Pin
transoft11-Mar-05 7:51
transoft11-Mar-05 7:51 
AnswerRe: Is there a easy to move focus among controls using arrow key? Pin
Michael Dunn11-Mar-05 9:23
sitebuilderMichael Dunn11-Mar-05 9:23 
GeneralRe: Is there a easy to move focus among controls using arrow key? Pin
transoft11-Mar-05 10:21
transoft11-Mar-05 10:21 
GeneralRe: Is there a easy to move focus among controls using arrow key? Pin
Branislav11-Mar-05 19:37
Branislav11-Mar-05 19:37 

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.