Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to disable keyboard or mouse on desktop (All Dialogs) Pin
Amin Kha.22-Nov-03 8:28
Amin Kha.22-Nov-03 8:28 
GeneralWindow Mode question Pin
ansontong22-Nov-03 5:02
ansontong22-Nov-03 5:02 
GeneralRe: Window Mode question Pin
John R. Shaw22-Nov-03 7:30
John R. Shaw22-Nov-03 7:30 
GeneralSending SMS messages using Visual c++ Pin
nolanl22-Nov-03 4:24
nolanl22-Nov-03 4:24 
GeneralRe: Sending SMS messages using Visual c++ Pin
Joaquín M López Muñoz22-Nov-03 8:23
Joaquín M López Muñoz22-Nov-03 8:23 
GeneralRe: Sending SMS messages using Visual c++ Pin
Peter Molnar22-Nov-03 13:23
Peter Molnar22-Nov-03 13:23 
QuestionIs typedef'd or not? Pin
Dominik Reichl22-Nov-03 1:14
Dominik Reichl22-Nov-03 1:14 
AnswerRe: Is typedef'd or not? Pin
Ian Darling22-Nov-03 3:12
Ian Darling22-Nov-03 3:12 
Hmmm.

The simplest suggestion is to check that the header file "guard" that includes that typedef hasn't been defined

eg, in "standardfile.h":
#ifndef STANDARD_FILE_H<br />
#define STANDARD_FILE_H<br />
<br />
typedef TheTypeIWant;  // etc etc<br />
<br />
#endif


and in "yourfile.h"
#ifdef STANDARD_FILE_H<br />
// then TheTypeIWant is already defined<br />
#else<br />
// define the type here<br />
#endif


This would be a somewhat brittle approach though. If this is part of a cross-platform application, you might want to the more traditional approach of defining necessary types within code blocks for the specific platform. If you need to build something with VC++5.0 and 2003, then treat them as specific platforms but via the compiler versions
(I think it's VC_VER, off the top of my head - but it's in the headers - 2003 is VC-VER 1300, IIRC, and VC++5 is 1100)

HTH


--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
AnswerRe: Is typedef'd or not? Pin
Jörgen Sigvardsson22-Nov-03 4:05
Jörgen Sigvardsson22-Nov-03 4:05 
GeneralRe: Is typedef'd or not? Pin
Dominik Reichl22-Nov-03 4:24
Dominik Reichl22-Nov-03 4:24 
GeneralRe: Is typedef'd or not? Pin
Jörgen Sigvardsson22-Nov-03 6:21
Jörgen Sigvardsson22-Nov-03 6:21 
GeneralNeed urgent assistance Pin
EranC22-Nov-03 1:11
EranC22-Nov-03 1:11 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 5:13
JWood22-Nov-03 5:13 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 7:25
Ivor S. Sargoytchev22-Nov-03 7:25 
GeneralRe: Need urgent assistance Pin
JWood22-Nov-03 9:49
JWood22-Nov-03 9:49 
GeneralRe: Need urgent assistance Pin
Ivor S. Sargoytchev22-Nov-03 11:42
Ivor S. Sargoytchev22-Nov-03 11:42 
GeneralRe: Need urgent assistance Pin
BaldwinMartin22-Nov-03 21:42
BaldwinMartin22-Nov-03 21:42 
GeneralEnvironment variables Pin
cberam22-Nov-03 0:23
cberam22-Nov-03 0:23 
QuestionResizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]21-Nov-03 23:43
[ Jûroehn ]21-Nov-03 23:43 
AnswerRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling21-Nov-03 23:58
Ian Darling21-Nov-03 23:58 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]22-Nov-03 0:07
[ Jûroehn ]22-Nov-03 0:07 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling22-Nov-03 0:21
Ian Darling22-Nov-03 0:21 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
[ Jûroehn ]22-Nov-03 0:29
[ Jûroehn ]22-Nov-03 0:29 
GeneralRe: Resizing Form with ImageMouseMove: how to change cursor? Pin
Ian Darling22-Nov-03 3:03
Ian Darling22-Nov-03 3:03 
GeneralWin32 Process Pin
cberam21-Nov-03 23:39
cberam21-Nov-03 23:39 

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.