Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing Wininet - Internetopenurl is not working in proxy environment Pin
Ravi Jadhav17-Dec-07 20:18
Ravi Jadhav17-Dec-07 20:18 
GeneralCalculate the number of times a character occurs in a string Pin
littlecheer17-Dec-07 20:11
littlecheer17-Dec-07 20:11 
GeneralRe: Calculate the number of times a character occurs in a string Pin
Nelek17-Dec-07 21:31
protectorNelek17-Dec-07 21:31 
GeneralRe: Calculate the number of times a character occurs in a string Pin
pierre_ribery18-Dec-07 0:51
pierre_ribery18-Dec-07 0:51 
GeneralRe: Calculate the number of times a character occurs in a string Pin
pierre_ribery18-Dec-07 0:52
pierre_ribery18-Dec-07 0:52 
Generalrun only single instant of application Pin
trioum17-Dec-07 19:00
trioum17-Dec-07 19:00 
GeneralRe: run only single instant of application Pin
Kiran Pinjala17-Dec-07 19:54
Kiran Pinjala17-Dec-07 19:54 
GeneralRe: run only single instant of application Pin
Peter Weyzen17-Dec-07 20:52
Peter Weyzen17-Dec-07 20:52 
Use a named mutex...

HANDLE hMutex = CreateMutex( NULL, FALSE, _T("MY_UNIQUE_MUTEX_NAME") );
if ( WaitForSingleObject( hMutex, 0 ) != WAIT_OBJECT_0 )
{
CloseHandle( hMutex );
// failure case -- someone else already owns it.... (my other instance?)
exit here!
}


.... run program


ReleaseMutex( hMutex );
CloseHandle( hMutex );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>

GeneralRe: run only single instant of application Pin
Iain Clarke, Warrior Programmer17-Dec-07 23:50
Iain Clarke, Warrior Programmer17-Dec-07 23:50 
GeneralRe: run only single instant of application Pin
David Crow18-Dec-07 3:32
David Crow18-Dec-07 3:32 
QuestionHow to control one application from another application Pin
s196675m17-Dec-07 18:46
s196675m17-Dec-07 18:46 
AnswerRe: How to control one application from another application Pin
CPallini17-Dec-07 21:37
mveCPallini17-Dec-07 21:37 
GeneralHelp regarding MSI serial key validation Pin
anu8117-Dec-07 18:46
anu8117-Dec-07 18:46 
GeneralReuse of a existing Dialog Pin
naveen27gupta17-Dec-07 17:31
naveen27gupta17-Dec-07 17:31 
GeneralRe: Reuse of a existing Dialog Pin
Paresh Chitte17-Dec-07 17:54
Paresh Chitte17-Dec-07 17:54 
GeneralRe: Reuse of a existing Dialog Pin
naveen27gupta17-Dec-07 18:16
naveen27gupta17-Dec-07 18:16 
GeneralRe: Reuse of a existing Dialog Pin
Chandrasekharan P17-Dec-07 20:49
Chandrasekharan P17-Dec-07 20:49 
GeneralRe: Reuse of a existing Dialog Pin
naveen27gupta17-Dec-07 22:00
naveen27gupta17-Dec-07 22:00 
GeneralRe: Reuse of a existing Dialog Pin
Chandrasekharan P18-Dec-07 0:30
Chandrasekharan P18-Dec-07 0:30 
GeneralRe: Reuse of a existing Dialog Pin
naveen27gupta18-Dec-07 1:12
naveen27gupta18-Dec-07 1:12 
GeneralRe: Reuse of a existing Dialog Pin
David Crow18-Dec-07 3:34
David Crow18-Dec-07 3:34 
GeneralHelp about read data from a USB Pin
kcynic17-Dec-07 14:51
kcynic17-Dec-07 14:51 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 17:28
Naveen17-Dec-07 17:28 
GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 18:02
kcynic17-Dec-07 18:02 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 18:13
Naveen17-Dec-07 18:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.