Click here to Skip to main content
15,904,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointer increment Pin
Bob Stanneveld11-Jul-05 22:06
Bob Stanneveld11-Jul-05 22:06 
Questionhow to scroll a dialog window Pin
g0ju11-Jul-05 11:31
g0ju11-Jul-05 11:31 
AnswerRe: how to scroll a dialog window Pin
Jose Lamas Rios11-Jul-05 16:19
Jose Lamas Rios11-Jul-05 16:19 
GeneralColored text in static text box Pin
Member 206903511-Jul-05 11:18
Member 206903511-Jul-05 11:18 
GeneralRe: Colored text in static text box Pin
PJ Arends11-Jul-05 11:27
professionalPJ Arends11-Jul-05 11:27 
QuestionHas anyone used the SpareLib++ code? Pin
adonisv11-Jul-05 9:17
adonisv11-Jul-05 9:17 
General!running 2 instances of app concurrently Pin
Member 206903511-Jul-05 8:29
Member 206903511-Jul-05 8:29 
GeneralRe: !running 2 instances of app concurrently Pin
Geert van Horrik11-Jul-05 8:33
Geert van Horrik11-Jul-05 8:33 
Put this code in your InitInstance function:

	// Create mutex, because there cannot be 2 instances of this application<br />
	HANDLE hMutex = CreateMutex(NULL, FALSE, "MyAppName"); <br />
<br />
	// Check if mutex is created succesfully<br />
	switch(GetLastError())<br />
	{<br />
	case ERROR_SUCCESS:<br />
		// Mutex created successfully. There is no instance running<br />
		break;<br />
		<br />
	case ERROR_ALREADY_EXISTS:<br />
		// Mutex already exists so there is a running instance of our app.<br />
		return FALSE;<br />
		<br />
	default:<br />
		// Failed to create mutex by unknown reason<br />
		return FALSE;<br />
	}


Geert

Want to spread the newest version of your software automatically? Use Updater!
Visit my website: www.gvhsoftware.org
GeneralRe: !running 2 instances of app concurrently Pin
David Crow11-Jul-05 8:51
David Crow11-Jul-05 8:51 
Generalauto_ptr Pin
act_x11-Jul-05 7:45
act_x11-Jul-05 7:45 
GeneralRe: auto_ptr Pin
lemleyd11-Jul-05 8:30
lemleyd11-Jul-05 8:30 
GeneralRe: auto_ptr Pin
act_x11-Jul-05 8:51
act_x11-Jul-05 8:51 
GeneralRe: auto_ptr Pin
Jack Puppy11-Jul-05 10:40
Jack Puppy11-Jul-05 10:40 
GeneralListView with LVS_ICON style... Pin
Ian Bowler11-Jul-05 7:17
Ian Bowler11-Jul-05 7:17 
GeneralRe: ListView with LVS_ICON style... Pin
Neelesh K J Jain11-Jul-05 20:18
Neelesh K J Jain11-Jul-05 20:18 
GeneralPre-allocation of virtual memory Pin
De Nardis Andrea11-Jul-05 7:12
De Nardis Andrea11-Jul-05 7:12 
GeneralRe: Pre-allocation of virtual memory Pin
krmed11-Jul-05 7:45
krmed11-Jul-05 7:45 
GeneralRe: Pre-allocation of virtual memory Pin
Jack Puppy11-Jul-05 10:43
Jack Puppy11-Jul-05 10:43 
GeneralRe: Pre-allocation of virtual memory Pin
De Nardis Andrea11-Jul-05 21:42
De Nardis Andrea11-Jul-05 21:42 
Generalsimplistic font question. Pin
Maximilien11-Jul-05 6:53
Maximilien11-Jul-05 6:53 
GeneralI need help (fatal + urgent) Pin
TA-RS11-Jul-05 5:33
TA-RS11-Jul-05 5:33 
GeneralRe: I need help (fatal + urgent) [edited - bis] Pin
toxcct11-Jul-05 5:42
toxcct11-Jul-05 5:42 
GeneralRe: I need help (fatal + urgent) [edited - bis] Pin
TA-RS14-Jul-05 13:02
TA-RS14-Jul-05 13:02 
GeneralRe: I need help (fatal + urgent) Pin
Maximilien11-Jul-05 5:45
Maximilien11-Jul-05 5:45 
GeneralReturning a date Pin
Camron11-Jul-05 5:27
Camron11-Jul-05 5:27 

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.