Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[4313] Register Program to Start Up Automatically

Last post 05-29-2005 11:59 PM by Sindu. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [4313] Register Program to Start Up Automatically

    This thread is for discussions of Register Program to Start Up Automatically.

    • Post Points: 0
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 01-21-2004 10:49 AM In reply to

    • DWB
    • Not Ranked
    • Joined on 01-21-2004
    • New Member
    • Points 10

    Comparison

    What do you as the difference between this solution and creating and installing a service?  When would you choose one over the other?
    • Post Points: 0
  • 01-22-2004 8:25 AM In reply to

    • amoibade
    • Top 25 Contributor
    • Joined on 08-08-2002
    • Guru
    • Points 4,510

    Deleting the Entry

    This is very intresting, but what about deleting my entry from the registry so that my program won't begin at start up?

    ==================================================
    Amoibade: Have fun and keep ... programming!!!
    e-mail me at: [email="amoibade3@hotmail.com"]amoibade3@hotmail.com[/email]
    ==================================================
    I am sorry if i am late to reply but i have a lot of studying, thanks...
    I am sorry for my english too...
    • Post Points: 0
  • 01-22-2004 7:54 PM In reply to

    • James Crowley
    • Top 10 Contributor
    • Joined on 12-07-2000
    • United Kingdom
    • Guru
    • Points 15,055
    • SystemAdministrator
    you'd probably want to take a look at the RegDeleteKey api function (which is also listed) - and just call that on the same key that you create in this code?
    • Post Points: 0
  • 01-23-2004 4:26 AM In reply to

    • -=D=-
    • Top 25 Contributor
    • Joined on 06-12-2002
    • Guru
    • Points 8,230
    yeah as James say, u can del it by using the regdeletekey
    or u can use the 'msconfig' in win9X and winXP to delete it...
    ______________________________________________________________
    From

    c.s.yew
    • Post Points: 0
  • 01-23-2004 4:31 AM In reply to

    • -=D=-
    • Top 25 Contributor
    • Joined on 06-12-2002
    • Guru
    • Points 8,230
    this will register when the user run the program, although u have use the 'msconfig' to del the startup,
    it will stil keep on register the program when u restart or reopen the program

    for example:
    u have a x.exe with is using this code to register to startup
    when u try to using the 'msconfig' to del the register value,
    but when u reopen the x.exe the program will register to the startup

    this was different with the installing service
    because the installing service will jz register it once, after the user using it to del the register value
    it won startup anymore.

    understand now?
    ______________________________________________________________
    From

    c.s.yew
    • Post Points: 0
  • 01-23-2004 6:04 AM In reply to

    • amoibade
    • Top 25 Contributor
    • Joined on 08-08-2002
    • Guru
    • Points 4,510
    Thank you for your help, i will try to do it so...

    ==================================================
    Amoibade: Have fun and keep ... programming!!!
    e-mail me at: [email="amoibade3@hotmail.com"]amoibade3@hotmail.com[/email]
    ==================================================
    I am sorry if i am late to reply but i have a lot of studying, thanks...
    I am sorry for my english too...
    • Post Points: 0
  • 01-25-2004 10:18 AM In reply to

    • amoibade
    • Top 25 Contributor
    • Joined on 08-08-2002
    • Guru
    • Points 4,510
    Well... It seems i failed on using RegDeleteKey properly. Can you provide me with some code please?

    Thank you very much for your help, i really appreciate it...

    ==================================================
    Amoibade: Have fun and keep ... programming!!!
    e-mail me at: [email="amoibade3@hotmail.com"]amoibade3@hotmail.com[/email]
    ==================================================
    I am sorry if i am late to reply but i have a lot of studying, thanks...
    I am sorry for my english too...
    • Post Points: 0
  • 01-25-2004 7:40 PM In reply to

    • -=D=-
    • Top 25 Contributor
    • Joined on 06-12-2002
    • Guru
    • Points 8,230
    sorry man, i jz finish my chinese new year...
    so may be late reply ur question, hope u can forgive me...

    to delete the register key u can using the following code
    Code:

    r = RegDeleteValue(keyhand, strValue)


    above code will allow u to delete the register key.
    you jz replace it on to the savestring before Code:
    regclosekey(keyhand)


    or u can create a new sub for it...

    hope this will help u...
    ______________________________________________________________
    From

    c.s.yew
    • Post Points: 0
  • 03-14-2004 10:14 PM In reply to

    Run once

    Would it be easier to run a check of the change on start up and if present not run again
    • Post Points: 0
  • 03-14-2004 10:19 PM In reply to

    • -=D=-
    • Top 25 Contributor
    • Joined on 06-12-2002
    • Guru
    • Points 8,230
    yap u can do that oso,
    before that u may need to know how to del the registry key,(the question as amoibabe asked)...D
    ______________________________________________________________
    From

    c.s.yew
    • Post Points: 0
  • 05-29-2005 11:59 PM In reply to

    • Sindu
    • Not Ranked
    • Joined on 05-17-2005
    • New Member
    • Points 70

    Converting Picture to Binary

    Hey Guys

    How to convert picture files to binary?

    Please help me!
    • Post Points: 0
Page 1 of 1 (12 items)