|
-
Jan 2nd, 2002, 07:42 PM
#1
Thread Starter
Addicted Member
command line parameters
This may be a stupid question, but what is passed into winmain with regard to the command line parameters?
if it for example:
"key32.exe /a"
or is it just the extra parts: e.g.
"/a"
and if so is it just a string to take apart?! or can you simply do a case statment or if statement?
if(lpszCmdLine == "\a")
{
do this..
}
cheers in advance
Andy
-
Jan 3rd, 2002, 09:58 AM
#2
It's the whole command line - name of file plus any arguments
-
Jan 3rd, 2002, 02:21 PM
#3
Monday Morning Lunatic
I don't think the file name gets passed to WinMain - you need to use GetModuleFileName.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jan 3rd, 2002, 03:36 PM
#4
Frenzied Member
Why don't you just print it to stdout and take a look?
Harry.
"From one thing, know ten thousand things."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|