Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
ganesa moorthy3-Apr-08 19:36
ganesa moorthy3-Apr-08 19:36 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
Mark Salsbery4-Apr-08 6:04
Mark Salsbery4-Apr-08 6:04 
GeneralRe: reg., CImage sources (UNICODE COMPATIBLE) to load GIF, JPEG Pin
Hamid_RT7-Apr-08 4:07
Hamid_RT7-Apr-08 4:07 
QuestionMixed metaphor problem Pin
Matthew Faithfull2-Apr-08 4:22
Matthew Faithfull2-Apr-08 4:22 
GeneralRe: Mixed metaphor problem Pin
Nemanja Trifunovic2-Apr-08 4:42
Nemanja Trifunovic2-Apr-08 4:42 
GeneralRe: Mixed metaphor problem [modified] Pin
Matthew Faithfull2-Apr-08 4:50
Matthew Faithfull2-Apr-08 4:50 
GeneralRe: Mixed metaphor problem Pin
CPallini2-Apr-08 4:50
mveCPallini2-Apr-08 4:50 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 5:06
Matthew Faithfull2-Apr-08 5:06 
I was trying to keep the example simple, obviously I failed Smile | :) .

<br />
class CSomething<br />
{<br />
public:<br />
<br />
  //...<br />
  enum<br />
  {<br />
    E_IsCool = 1;<br />
  };<br />
};<br />
<br />
<br />
#ifdef USE_MYSOMETHING<br />
typedef CMySomething CSomething<br />
#else<br />
//Other CSomething alternatives<br />
#endif<br />
<br />
<br />
//Then later conditional compilation based on E_IsCool<br />
<br />
#if (CMySomething::E_IsCool)<br />
#define _LONG_SUFFIX(_X) _X#L<br />
#else<br />
//Insert uncool code here<br />
#define _LONG_SUFFIX(_X) _X<br />
#endif<br />
<br />


This is closer to what I'm really doing which is somewhat more complicated. It has to work on different compilers as that really is the point of this so any template tricks will need to be MSVC6 friendly

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: Mixed metaphor problem Pin
led mike2-Apr-08 5:10
led mike2-Apr-08 5:10 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 5:16
Matthew Faithfull2-Apr-08 5:16 
GeneralRe: Mixed metaphor problem Pin
led mike2-Apr-08 5:31
led mike2-Apr-08 5:31 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 5:50
Matthew Faithfull2-Apr-08 5:50 
GeneralRe: Mixed metaphor problem Pin
led mike2-Apr-08 5:54
led mike2-Apr-08 5:54 
GeneralRe: Mixed metaphor problem Pin
CPallini2-Apr-08 5:18
mveCPallini2-Apr-08 5:18 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 5:28
Matthew Faithfull2-Apr-08 5:28 
GeneralRe: Mixed metaphor problem Pin
led mike2-Apr-08 5:37
led mike2-Apr-08 5:37 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 5:49
Matthew Faithfull2-Apr-08 5:49 
GeneralRe: Mixed metaphor problem Pin
led mike2-Apr-08 5:53
led mike2-Apr-08 5:53 
GeneralRe: Mixed metaphor problem Pin
Michael Dunn2-Apr-08 10:18
sitebuilderMichael Dunn2-Apr-08 10:18 
GeneralRe: Mixed metaphor problem Pin
Matthew Faithfull2-Apr-08 12:16
Matthew Faithfull2-Apr-08 12:16 
Questioncheck file opened or not? Pin
George_George2-Apr-08 3:55
George_George2-Apr-08 3:55 
AnswerRe: check file opened or not? Pin
David Crow2-Apr-08 4:16
David Crow2-Apr-08 4:16 
GeneralRe: check file opened or not? Pin
George_George2-Apr-08 20:40
George_George2-Apr-08 20:40 
GeneralRe: check file opened or not? Pin
David Crow3-Apr-08 3:06
David Crow3-Apr-08 3:06 
GeneralRe: check file opened or not? Pin
George_George3-Apr-08 3:39
George_George3-Apr-08 3: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.