Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBuild .Net app, and take it to a non .NET box. Pin
Derek Smigelski13-Nov-02 5:32
Derek Smigelski13-Nov-02 5:32 
GeneralRe: Build .Net app, and take it to a non .NET box. Pin
benjymous13-Nov-02 6:18
benjymous13-Nov-02 6:18 
GeneralRe: Build .Net app, and take it to a non .NET box. Pin
Anders Molin13-Nov-02 8:30
professionalAnders Molin13-Nov-02 8:30 
QuestionHow to check when a popup window closed? Pin
Daniel Strigl13-Nov-02 4:44
Daniel Strigl13-Nov-02 4:44 
AnswerRe: How to check when a popup window closed? Pin
benjymous13-Nov-02 5:11
benjymous13-Nov-02 5:11 
GeneralMaximized and normal mdi child windows Pin
Anonymous13-Nov-02 4:36
Anonymous13-Nov-02 4:36 
GeneralRe: Maximized and normal mdi child windows Pin
Neville Franks13-Nov-02 10:34
Neville Franks13-Nov-02 10:34 
GeneralClass as a parameter in a template function Pin
Hostalet Wandosell13-Nov-02 4:25
Hostalet Wandosell13-Nov-02 4:25 
I have the following problem trying to pass a class as a parameter in a template function:

I am using a function like this:
pMainFrame->PlugNewModule(RobCtrlPage::IDD,RUNTIME_CLASS(RobCtrlPage));

the function looks like:
PlugNewModule(UINT nID, CRuntimeClass* pRTC)
{
UINT ID = nID;
CRuntimeClass* _pRTC = pRTC;
...
}

the question is, IDD belongs to RobCtrlPage, if we pass the class as a parameter we make the function easier. SOmething like:

template<typedef t=""> PlugNewModule()
{
UINT ID = T::IDD;
CRuntimeClass* _pRTC = RUNTIME_CLASS(T);
...
}

This way is easier because we just write
PlugNewModule<robctrlpage>();
instead of
PlugNewModule(RobCtrlPage::IDD,RUNTIME_CLASS(RobCtrlPage));

but i cannot compile Frown | :( Why ????

I am using Visual Studio 6.0

Thanks !

-----
Mit freundlichen Grüssen/Best Regards/Un cordial saludo.

Ing. José Manuel Hostalet Wandosell, Fraunhofer IPA, Abt.323/Robotersysteme
Nobelstrasse 12, D-70569 Stuttgart (Germany)
mailto:jose.hostalet@ipa.fhg.de, http://www.ipa.fhg.de
GeneralRe: Class as a parameter in a template function Pin
Joaquín M López Muñoz13-Nov-02 9:52
Joaquín M López Muñoz13-Nov-02 9:52 
GeneralRe: Class as a parameter in a template function Pin
Hostalet Wandosell13-Nov-02 22:09
Hostalet Wandosell13-Nov-02 22:09 
Generalrecursively search the registry and delete text found Pin
Derek Smigelski13-Nov-02 4:20
Derek Smigelski13-Nov-02 4:20 
GeneralRe: recursively search the registry and delete text found Pin
Derek Smigelski13-Nov-02 10:42
Derek Smigelski13-Nov-02 10:42 
QuestionWhy connect() fails in the worker thread but succeeds in the main thread? Pin
Wenrich13-Nov-02 4:14
Wenrich13-Nov-02 4:14 
AnswerRe: Why connect() fails in the worker thread but succeeds in the main thread? Pin
RobJones13-Nov-02 10:30
RobJones13-Nov-02 10:30 
GeneralStatus bar "CAPS" value not showing up. Pin
WREY13-Nov-02 4:03
WREY13-Nov-02 4:03 
GeneralGot if figured out. Pin
WREY13-Nov-02 5:02
WREY13-Nov-02 5:02 
GeneralHelp Pin
ed987113-Nov-02 4:00
ed987113-Nov-02 4:00 
GeneralRe: Help Pin
RobJones13-Nov-02 10:38
RobJones13-Nov-02 10:38 
Generalrealloc Pin
Hugo Hallman13-Nov-02 3:45
Hugo Hallman13-Nov-02 3:45 
GeneralRe: realloc Pin
dabs13-Nov-02 3:54
dabs13-Nov-02 3:54 
GeneralRe: realloc Pin
jbarton13-Nov-02 3:55
jbarton13-Nov-02 3:55 
GeneralRe: realloc Pin
Hugo Hallman13-Nov-02 7:22
Hugo Hallman13-Nov-02 7:22 
GeneralRe: realloc Pin
Tim Smith13-Nov-02 7:39
Tim Smith13-Nov-02 7:39 
GeneralRe: realloc Pin
jbarton13-Nov-02 7:50
jbarton13-Nov-02 7:50 
GeneralCPropertyPage Brain Fart!!! Pin
Chris Hambleton13-Nov-02 3:45
Chris Hambleton13-Nov-02 3:45 

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.