Results 1 to 7 of 7

Thread: Win32 Registry App

  1. #1
    RStout
    Guest

    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

  2. #2
    RStout
    Guest

    OK I got the reg thing figured out

    how about I need to pass 1 command line argument into the app now. Anybody?

  3. #3
    amac
    Guest
    Are you using the API or MFC?

  4. #4
    RStout
    Guest

    API

    API

  5. #5
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    command line agruments are sent to you by int Main

    PHP Code:
    #include <stdio.h>

    int main(int argcchar *argv[])
    {
      return 
    0;

    VS.NET 2003

    Need to email me?

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  7. #7
    RStout
    Guest

    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
  •  



Click Here to Expand Forum to Full Width