Multiple instances of DC++

You’ve probably noticed that you can’t run two copies of DC++ at the same time. Well, that’s not intirely true. You can’t run DC++ at the same time. As the same user that is.
Copy DC++ to another folder and right-click on dcplusplus.exe and select to Run As another user. This only work on Windows 2000, XP and 2003 (well, and Vista… but that’s not out yet).
If you feel that you don’t want to use another user account, you can always compile DC++ to leave out the check. I usually do this if I want to compile in Release but doesn’t want to use another user account.
The code I change is:
if(dcapp.IsAnotherInstanceRunning()) {

Change it to:
if(!dcapp.IsAnotherInstanceRunning()) {

(This is in main.cpp.)

Now, there’s probably is a better way to handle this, but I suits my needs perfectly.

One Response to Multiple instances of DC++

  1. Ullner says:

    From the old blog:
    ####
    “Why not add this idea to the Prenium version, user selectiable. ”
    I’m not sure what “prenium version” you are talking about.

    Anything that has to do with what’s going into DC++, is not my choice. I may be an active patcher but I have no final say in the whole.

    If you have a request to improve DC++, use the Bugzilla: http://dcpp.net/bugzilla/
    Publicerad av Fredrik Ullner – 2006-01-30 21:11:55
    [Klicka på profilfotot för att öppna kontaktkortet]
    I have been running the DCDraga 0.674 [multi-user] for months, very handy, if this is thpatch he used it was very stable. Why not add this idea to the Prenium version, user selectiable. Then add a button color selection so it would also color the screen border. Finally add a few selectable beep tones so you go to the right screen. A tone for each user tab more fun.
    Thanks.
    jim
    Publicerad av jim sherwood – 2006-01-30 14:23:34
    [Klicka på profilfotot för att öppna kontaktkortet]
    Ah, well, of course. But that require me to write more. ;) This is just one character and for testing purposes it is sufficient. (Besides, I’m lazy.) If one use the Run as another user thingie, you don’t even need to change the code. And since most people do have multiple accounts… (I sure do.) I noticed that Trem has added in fulDC a check if the instance is coming from another directory. That’s probably the most convenient way for the user. But I’m not sure if that’s a good strategy for the main client…
    Publicerad av Fredrik Ullner (http://spaces.msn.com/members/ullner/) – 2006-01-09 11:38:19
    [Klicka på profilfotot för att öppna kontaktkortet]
    if(false) { Would be better so that it doesn’t check for other running instances of DC++ if the singleinstnace check code returns false ;)
    Publicerad av Joakim Tosteberg – 2006-01-09 08:55:18

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: