Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet number of 1s in a set of binary numbers Pin
hearties6-Jun-01 23:04
hearties6-Jun-01 23:04 
GeneralRe: Get number of 1s in a set of binary numbers Pin
Mark Jones6-Jun-01 23:53
Mark Jones6-Jun-01 23:53 
GeneralRe: Get number of 1s in a set of binary numbers Pin
markkuk7-Jun-01 0:38
markkuk7-Jun-01 0:38 
Generalpreviewing word documents Pin
Kannan Kalyanaraman6-Jun-01 21:19
Kannan Kalyanaraman6-Jun-01 21:19 
GeneralChart in VC++ MFC Pin
Aky6-Jun-01 19:59
Aky6-Jun-01 19:59 
GeneralRe: Chart in VC++ MFC Pin
Christian Graus7-Jun-01 13:29
protectorChristian Graus7-Jun-01 13:29 
GeneralWhat's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 19:25
Li Lirong6-Jun-01 19:25 
GeneralRe: What's wrong with my code? (class template) Pin
Vivek Rajan6-Jun-01 20:00
Vivek Rajan6-Jun-01 20:00 
Lirong -

Pls try reposting with "<" and ">" for the < and > symbols.
Some key statements are missing..

But I think I might know the answer, some compilers are really anal about this stuff. They expect all template functions to be defined in one file (.h or .cpp), in other words ONE Translation Unit.. (boo hoo !! ) I suspect VC++ is one of those compilers. ( Maybe an expert can confirm).

So, try writing the "test" function of the inner class within the class defn. things should be ok.

Eg.
...
class nested {
public:
void test()
{
// put your function body here
};
...

Hooe this helps-
Vivek
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 21:02
Li Lirong6-Jun-01 21:02 
GeneralRe: What's wrong with my code? (class template) Pin
7-Jun-01 4:23
suss7-Jun-01 4:23 
GeneralRe: What's wrong with my code? (class template) Pin
Ghazi H. Wadi7-Jun-01 14:36
Ghazi H. Wadi7-Jun-01 14:36 
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong7-Jun-01 17:09
Li Lirong7-Jun-01 17:09 
GeneralRe: What's wrong with my code? (class template) Pin
Jim Crafton7-Jun-01 18:57
Jim Crafton7-Jun-01 18:57 
GeneralScrolling the content Pin
Mangesh Sardesai6-Jun-01 18:55
Mangesh Sardesai6-Jun-01 18:55 
GeneralJoystick / Gamepad Pin
6-Jun-01 16:50
suss6-Jun-01 16:50 
GeneralRe: Joystick / Gamepad Pin
Christian Graus6-Jun-01 16:56
protectorChristian Graus6-Jun-01 16:56 
GeneralRe: Joystick / Gamepad Pin
7-Jun-01 10:36
suss7-Jun-01 10:36 
GeneralPut Enter character !!! Pin
Hadi Rezaee6-Jun-01 16:40
Hadi Rezaee6-Jun-01 16:40 
GeneralRe: Put Enter character !!! Pin
Christian Graus6-Jun-01 16:57
protectorChristian Graus6-Jun-01 16:57 
GeneralRe: Really? Pin
Masaaki Onishi6-Jun-01 17:15
Masaaki Onishi6-Jun-01 17:15 
GeneralRe: Really? Pin
Christian Graus6-Jun-01 17:43
protectorChristian Graus6-Jun-01 17:43 
GeneralRe: Put Enter character !!! Pin
Vivek Rajan6-Jun-01 20:13
Vivek Rajan6-Jun-01 20:13 
Generalinsert bitmap in a MDI child window Pin
Pou6-Jun-01 15:58
Pou6-Jun-01 15:58 
GeneralRe: insert bitmap in a MDI child window Pin
Christian Graus6-Jun-01 16:22
protectorChristian Graus6-Jun-01 16:22 
GeneralRe: insert bitmap in a MDI child window Pin
Tomasz Sowinski6-Jun-01 23:42
Tomasz Sowinski6-Jun-01 23:42 

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.