Click here to Skip to main content
15,919,340 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralATL & DHTML Pin
Leesen18-Nov-03 17:40
Leesen18-Nov-03 17:40 
GeneralRe: ATL & DHTML Pin
Peter Molnar19-Nov-03 15:27
Peter Molnar19-Nov-03 15:27 
GeneralRe: ATL & DHTML Pin
Leesen19-Nov-03 19:13
Leesen19-Nov-03 19:13 
GeneralRe: ATL & DHTML Pin
Peter Molnar20-Nov-03 2:33
Peter Molnar20-Nov-03 2:33 
GeneralRe: ATL & DHTML Pin
Leesen20-Nov-03 5:13
Leesen20-Nov-03 5:13 
GeneralRe: ATL & DHTML Pin
Peter Molnar20-Nov-03 5:34
Peter Molnar20-Nov-03 5:34 
Generalargv argc and buffer over-run HACK Pin
BaldwinMartin18-Nov-03 17:12
BaldwinMartin18-Nov-03 17:12 
GeneralRe: argv argc and buffer over-run HACK Pin
Peak18-Nov-03 20:20
Peak18-Nov-03 20:20 
any Windows application uses GetCommandLine() API
to receive a pointer to its command line arguments,
or uses a parameter which is passed to its WinMain
function that points to the program command line.

After that,if you have a main function,
C Run-Time Libraries (CRT) formats the
arguments, seperates them, and counts them and then
sends them to your main function using argv and
argc.

if you use MFC, it has some wrappers around this
command line(but you can use __argc & __argv which are globally defined),anyway the
WinApp::m_lpCmdLine contains the raw command line.

Up to here no stack overflow or other flaws exist.

now it depends on your code to how to deal with
these arguments.

if you do something like:

char myparams[100];
strcpy(myparams, AfxGetApp()->m_lpCmdLine);

or even:

printf(AfxGetApp()->m_lpCmdLine);

then you have to review your old codes. Wink | ;)

GeneralRe: argv argc and buffer over-run HACK Pin
BaldwinMartin18-Nov-03 22:17
BaldwinMartin18-Nov-03 22:17 
GeneralRe: argv argc and buffer over-run HACK Pin
David Crow19-Nov-03 4:21
David Crow19-Nov-03 4:21 
QuestionHow to use GDI+ in MFC framework Pin
Member 65339918-Nov-03 16:43
Member 65339918-Nov-03 16:43 
AnswerRe: How to use GDI+ in MFC framework Pin
PJ Arends18-Nov-03 19:04
professionalPJ Arends18-Nov-03 19:04 
GeneralDetecting Virtual Adapters Pin
dafunkt18-Nov-03 16:22
dafunkt18-Nov-03 16:22 
Generaldetecting minimized view in MFC Pin
tgintz18-Nov-03 16:15
tgintz18-Nov-03 16:15 
GeneralRe: detecting minimized view in MFC Pin
PJ Arends18-Nov-03 19:08
professionalPJ Arends18-Nov-03 19:08 
GeneralRe: detecting minimized view in MFC Pin
tgintz18-Nov-03 19:23
tgintz18-Nov-03 19:23 
GeneralRe: detecting minimized view in MFC Pin
tgintz18-Nov-03 23:15
tgintz18-Nov-03 23:15 
QuestionNewB Memory Leak ? Pin
LOSTTWARE.com18-Nov-03 15:22
LOSTTWARE.com18-Nov-03 15:22 
AnswerRe: NewB Memory Leak ? Pin
Prakash Nadar18-Nov-03 16:07
Prakash Nadar18-Nov-03 16:07 
AnswerRe: NewB Memory Leak ? Pin
Peter Molnar19-Nov-03 14:43
Peter Molnar19-Nov-03 14:43 
GeneralNeed Help Pin
Cory Renfrow18-Nov-03 14:18
Cory Renfrow18-Nov-03 14:18 
GeneralRe: Need Help Pin
David Crow18-Nov-03 14:26
David Crow18-Nov-03 14:26 
GeneralRe: Need Help Pin
Cory Renfrow18-Nov-03 14:40
Cory Renfrow18-Nov-03 14:40 
GeneralRe: Need Help Pin
David Crow19-Nov-03 2:25
David Crow19-Nov-03 2:25 
GeneralRe: Need Help Pin
Roger Allen19-Nov-03 2:27
Roger Allen19-Nov-03 2:27 

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.