|
-
Jan 16th, 2002, 11:11 AM
#1
Win32 Registry App
I have some VB experince but no C++ but this is what I need.
A win32 application that will make a registry entry without a command prompt. I need to make a reg entry in a login script on workstations that hane the command prompt restricted and the reg tool disabled. win98
Code would be great because I have no clue what I am doing and I don't want to do it in VB because of all VB dll files needed to run a simple program.
Thanks
-
Jan 16th, 2002, 07:07 PM
#2
OK I got the reg thing figured out
how about I need to pass 1 command line argument into the app now. Anybody?
-
Jan 16th, 2002, 07:38 PM
#3
Are you using the API or MFC?
-
Jan 16th, 2002, 08:18 PM
#4
-
Jan 16th, 2002, 08:47 PM
#5
Hyperactive Member
command line agruments are sent to you by int Main
PHP Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
return 0;
}
-
Jan 17th, 2002, 10:01 AM
#6
int WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR szCmdLine, int iShowCmd);
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 17th, 2002, 10:38 AM
#7
OK Now what?
I told you that I was new, very new to C++
I just need to pass one command line switch in to my app
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char *sBuffer;
sBuffer = <<I need the command line switch here>>
return 0;
}
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
|