1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

need help to link an exe with startup

Discussion in 'C' started by dssr, Jun 7, 2008.

  1. dssr

    dssr New Member

    Hii this is my first post requesting a help for u experts, i have basic knowledge of C & C++, i want to create an application which requires whenever i start the windows it starts automatically,(i.e. i want to link it with my startup) i want to run the exe whenever my windows starts

    let me clarify a bit, the exe will run but wont show on the screen, say after starting the windows when i am at my desktop and no other text editor is running, if i type something another window will pop up showing my text

    any help regarding this
  2. Bhullarz

    Bhullarz New Member

    You can use registry option to run any exe file at startup. just use the command "system()". and pass the registry command to add the file into system startup. ALl this can be done in ur c/C++ program
  3. dssr

    dssr New Member

    thanks for the help, but system command is not running in my compiler

    i have borland, turbo c++ 4.5 and an older dos based version of turbo c

    in borland the program is compiling but then giving some error
    in turbo c++ 4.5 program is not compiling at all giving error "_system command is undefined or something like this
    and in the older version of turbo c it's compiling successfully and then running but nothing comes except a blank window and if i use a print or some other command with it that's coming in this case

    can u help me out with it??

    the code i am using

    int main(void)
        return 0;
    thanxx in advance
  4. Bhullarz

    Bhullarz New Member

    try including process.h library too. I have turbo c++ compiler version 3.00. If that version is executing SYSTEM command, then ur compiler should do so.
  5. dssr

    dssr New Member

    still no help :cryin: used process.h but no help, same problem
  6. dssr

    dssr New Member

    okay used C Free compiler,it's working

Share This Page