PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7 (permalink)  
Old 05-19-2009, 12:31 AM
volDeus's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC RhodiumW - Sprint Branded
Carrier: Sprint
Location: Las Vegas, Nevada
 
Join Date: Jun 2007
Posts: 171
Reputation: 305
volDeus is becoming a PPCGeeks regularvolDeus is becoming a PPCGeeks regularvolDeus is becoming a PPCGeeks regularvolDeus is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to volDeus Send a message via Skype™ to volDeus
Re: Running two instances of a program at the same time?

Quote:
Originally Posted by theedon View Post
get yourself a copy of ms visual studio 2008. instantiate an unmanaged code project (thats win32 C++). now compile and run. thats it... the default template has the check pre coded for you. when im back at my computer i'll post the actual lines of code. it requires the coder to specifically change the behavior. the template also hard codes the window name and the window class. the reason it does this is so that it can do a search with those two inputs to determine if the program is running. that is why changing the program name doesnt always work. the coder has to tell the program to allo such behavior. but, the default template does not allow that.

now since tcpmp is written in unmanaged code and it behaves as i have described... need i say more?
You seem to know more about the specifics than I do ... But I have MSVC 2008 and at least one small app I coded myself works with the renaming method (and a few others that I didn't)...

The app is a simple carpenter's calculator with algebraic formula parsing and common construction formula templates ... Before I added support for multiple memory slots in the calculator I used to run multiple instances of the same process when I had two things at work to keep track of at the same time...

It is unmanaged code (C++ WIN32 API + WM5 SDK) and I never did anything to it to prevent the type of checking you are talking about (obviously, since I wasn't aware of the default behavior until you mentioned it) so ... While I acknowledge that you seem to know more about the specifics than I do ... Apparently there is an exception to the rule...

In any event, I would be curious about the lines of code you mentioned but I don't want to take any more attention from the OP's original question so I'll leave off here... You could PM them to me if you are bored sometime

Last edited by volDeus; 05-19-2009 at 12:34 AM.
Reply With Quote
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:44 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com