Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
jmkhael18-May-04 1:06
jmkhael18-May-04 1:06 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
HENDRIK R18-May-04 1:22
HENDRIK R18-May-04 1:22 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
ohadp18-May-04 1:38
ohadp18-May-04 1:38 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
HENDRIK R18-May-04 1:56
HENDRIK R18-May-04 1:56 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
ohadp18-May-04 2:04
ohadp18-May-04 2:04 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
HENDRIK R18-May-04 2:10
HENDRIK R18-May-04 2:10 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
David Crow18-May-04 2:34
David Crow18-May-04 2:34 
GeneralGeneral C++ tempaltes related Pin
rajandpayal17-May-04 19:42
rajandpayal17-May-04 19:42 
Hi All,

I was trying to make a code similar to this work.

template <class t=""> class myclass
{
private:
t num;
public:
myclass() {}
~myclass() {}
};

class myclass1
{
public:
void abc(myclass <class t="">* obj)
{
}
};

int main(int argc, char* argv[])
{
myclass <int> obj;
myclass1 obj1;

obj1.abc(&obj);

return 0;
}

My basic idea is to have a template class myclass (which will take structure as template parameter). Now have another class myclass1 which will have a function taking this template class as one parameter. I want to make this member function of class myclass1 generic. i.e depending on the object of class myclass I create, this function should work.

Am getting compilation error.

Can we do such a thing at all with templates?

Thanks
Rajdeep
GeneralRe: General C++ tempaltes related Pin
Ryan Roberts17-May-04 20:00
Ryan Roberts17-May-04 20:00 
GeneralRe: General C++ tempaltes related Pin
Paul Ranson18-May-04 5:23
Paul Ranson18-May-04 5:23 
GeneralCOM Container for office file Pin
vishalmore17-May-04 19:24
vishalmore17-May-04 19:24 
GeneralDrawing text to the Desktop wnd Pin
TigerNinja_17-May-04 17:54
TigerNinja_17-May-04 17:54 
GeneralRe: Drawing text to the Desktop wnd Pin
alex.barylski17-May-04 18:58
alex.barylski17-May-04 18:58 
GeneralRe: Drawing text to the Desktop wnd Pin
TigerNinja_18-May-04 15:45
TigerNinja_18-May-04 15:45 
GeneralRe: Drawing text to the Desktop wnd Pin
alex.barylski18-May-04 17:15
alex.barylski18-May-04 17:15 
GeneralRe: Drawing text to the Desktop wnd Pin
parths17-May-04 20:18
parths17-May-04 20:18 
GeneralRe: Drawing text to the Desktop wnd Pin
Ravi Bhavnani18-May-04 1:46
professionalRavi Bhavnani18-May-04 1:46 
QuestionBinary file reading? Pin
Indrawati17-May-04 17:26
Indrawati17-May-04 17:26 
AnswerRe: Binary file reading? Pin
valikac17-May-04 18:27
valikac17-May-04 18:27 
GeneralRe: Binary file reading? Pin
Indrawati17-May-04 20:05
Indrawati17-May-04 20:05 
GeneralRe: Binary file reading? Pin
valikac17-May-04 20:24
valikac17-May-04 20:24 
GeneralHELP!! - Miniport Dev Guide Pin
vnm617-May-04 17:21
vnm617-May-04 17:21 
GeneralRe: HELP!! - Miniport Dev Guide Pin
Prakash Nadar17-May-04 22:07
Prakash Nadar17-May-04 22:07 
GeneralRe: HELP!! - Miniport Dev Guide Pin
Mike Dimmick18-May-04 1:32
Mike Dimmick18-May-04 1:32 
GeneralRe: HELP!! - Miniport Dev Guide Pin
vnm618-May-04 23:05
vnm618-May-04 23:05 

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.