Click here to Skip to main content
15,898,984 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionModifying DMI Information - I REALLY NEED THAT!!!! Pin
honae13-Mar-06 8:27
honae13-Mar-06 8:27 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
AnswerRe: Modifying DMI Information - I REALLY NEED THAT!!!! Pin
Saksida Bojan13-Mar-06 19:39
Saksida Bojan13-Mar-06 19:39 
QuestionDMI EDITOR Pin
honae13-Mar-06 7:25
honae13-Mar-06 7:25 
AnswerRe: DMI EDITOR Pin
George L. Jackson13-Mar-06 10:31
George L. Jackson13-Mar-06 10:31 
Questionhow to know the dll export function's declare? Pin
HOW WHAT12-Mar-06 2:34
HOW WHAT12-Mar-06 2:34 
AnswerRe: how to know the dll export function's declare? Pin
oshah14-Mar-06 23:24
oshah14-Mar-06 23:24 
QuestionTemplates Pin
combatc211-Mar-06 12:57
combatc211-Mar-06 12:57 
Alright say we have the following template class:
<br />
template <class T><br />
class Data {<br />
      public:<br />
             // Constructors<br />
             Data() : data(0) { } <br />
             Data(T buff) : data(buff) { }<br />
             void updateData(T buff) { data = buff; };<br />
             // void someFunction();<br />
             T returnData() { return data; };<br />
      private:<br />
              T data;<br />
};<br />


is there anyway to find out which type was sent to the template argument T (such as int, char*, double, etc.)?

i would like to use an if or switch statement inside one of the classes functions such as:

<br />
void Data<T>::someFunction() {<br />
     if (T == int) { // If T is type integer do this<br />
     } else { // if its a different type .. <br />
       .. do this<br />
     }<br />
}<br />


Thanks in advance for any help.

Carl
AnswerRe: Templates Pin
Nemanja Trifunovic11-Mar-06 13:14
Nemanja Trifunovic11-Mar-06 13:14 
GeneralRe: Templates Pin
combatc212-Mar-06 13:29
combatc212-Mar-06 13:29 
AnswerRe: Templates Pin
George L. Jackson13-Mar-06 10:07
George L. Jackson13-Mar-06 10:07 
QuestionSleep() broken? Pin
theDawckta11-Mar-06 5:29
theDawckta11-Mar-06 5:29 
AnswerRe: Sleep() broken? Pin
Cedric Moonen12-Mar-06 23:35
Cedric Moonen12-Mar-06 23:35 
GeneralRe: Sleep() broken? Pin
2bee 12-Mar-06 23:45
2bee 12-Mar-06 23:45 
GeneralRe: Sleep() broken? Pin
Cedric Moonen12-Mar-06 23:57
Cedric Moonen12-Mar-06 23:57 
GeneralRe: Sleep() broken? Pin
theDawckta13-Mar-06 13:29
theDawckta13-Mar-06 13:29 
GeneralRe: Sleep() broken? Pin
Cedric Moonen13-Mar-06 19:57
Cedric Moonen13-Mar-06 19:57 
Question[OpenGL] Help needed!Listen to my problem please... Pin
carlsoncarlson10-Mar-06 16:45
carlsoncarlson10-Mar-06 16:45 
QuestionHandling Arrays inside the Structures in VC++ Pin
Sangeetha.R9-Mar-06 23:49
Sangeetha.R9-Mar-06 23:49 
AnswerRe: Handling Arrays inside the Structures in VC++ Pin
2bee 10-Mar-06 1:31
2bee 10-Mar-06 1:31 
QuestionC++ Console Applications Pin
Dreamspeeder9-Mar-06 22:36
Dreamspeeder9-Mar-06 22:36 
AnswerRe: C++ Console Applications Pin
toxcct9-Mar-06 22:54
toxcct9-Mar-06 22:54 
GeneralRe: C++ Console Applications Pin
Dreamspeeder10-Mar-06 7:00
Dreamspeeder10-Mar-06 7:00 
GeneralRe: C++ Console Applications Pin
georgeraafat10-Mar-06 13:34
georgeraafat10-Mar-06 13:34 
GeneralRe: C++ Console Applications Pin
Saksida Bojan10-Mar-06 19:29
Saksida Bojan10-Mar-06 19:29 

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.