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

C / C++ / MFC

 
GeneralRe: Problem with slider-control and NM_CUSTOMDRAW Pin
Member 7988338-Jan-04 6:53
Member 7988338-Jan-04 6:53 
GeneralMouse Highlighting Pin
Anthony98878-Jan-04 3:44
Anthony98878-Jan-04 3:44 
GeneralRe: Mouse Highlighting Pin
Maximilien8-Jan-04 4:05
Maximilien8-Jan-04 4:05 
GeneralHelp for Toggling toolbar buttons Pin
Ruchit Sharma8-Jan-04 1:29
Ruchit Sharma8-Jan-04 1:29 
GeneralHelp for Toggling toolbar buttons Pin
Ruchit Sharma8-Jan-04 1:29
Ruchit Sharma8-Jan-04 1:29 
GeneralRe: Help for Toggling toolbar buttons Pin
Monty28-Jan-04 1:40
Monty28-Jan-04 1:40 
GeneralMDI Problem! Pin
skylonely8-Jan-04 1:25
skylonely8-Jan-04 1:25 
GeneralDeclaring a global variable of a template type Pin
tguzella8-Jan-04 1:21
tguzella8-Jan-04 1:21 
Hi there

I am writing a program to use linked lists using templates, and i am trying to make it as fast as possible, so i am thinking of storing the address of the last inserted item.
Each node of the list if declared as follows:

template <class ItemType>
struct NodeList
{
ItemType *item;
NodeList<ItemType> *next;
}

what i am trying to do is to declare a global variable like

template <class ItemType>
NodeList<ItemType> *last_inserted=NULL;

, but the compiler won't allow me to do that. If instead i declare it as
NodeList<<int>> *last_inserted=NULL, it is ok, but it would work for integers only.

How can I get this to work???

Thanks
GeneralRe: Declaring a global variable of a template type Pin
Johnny ²8-Jan-04 5:23
Johnny ²8-Jan-04 5:23 
GeneralRe: Declaring a global variable of a template type Pin
tguzella11-Jan-04 13:21
tguzella11-Jan-04 13:21 
GeneralCreate transparent objects Pin
swarnamanoo8-Jan-04 1:00
swarnamanoo8-Jan-04 1:00 
GeneralRe: Create transparent objects Pin
Selvam R8-Jan-04 1:57
professionalSelvam R8-Jan-04 1:57 
GeneralRe: Create transparent objects Pin
Anonymous8-Jan-04 6:17
Anonymous8-Jan-04 6:17 
GeneralSaving ColeServerDoc Pin
kevcs28-Jan-04 0:58
kevcs28-Jan-04 0:58 
GeneralRe: Saving ColeServerDoc Pin
Selvam R8-Jan-04 1:53
professionalSelvam R8-Jan-04 1:53 
GeneralDirectSound - Window Handle problem Pin
elza8-Jan-04 0:31
elza8-Jan-04 0:31 
GeneralRe: DirectSound - Window Handle problem Pin
tareqsiraj25-Mar-04 1:53
tareqsiraj25-Mar-04 1:53 
Generaldelete [] pCharPointer Pin
utkarsharma8-Jan-04 0:28
utkarsharma8-Jan-04 0:28 
GeneralRe: delete [] pCharPointer Pin
Mike Dimmick8-Jan-04 0:48
Mike Dimmick8-Jan-04 0:48 
GeneralRe: delete [] pCharPointer Pin
John R. Shaw8-Jan-04 4:37
John R. Shaw8-Jan-04 4:37 
GeneralRe: delete [] pCharPointer Pin
Jörgen Sigvardsson8-Jan-04 8:12
Jörgen Sigvardsson8-Jan-04 8:12 
GeneralIcons on the status area Pin
codevisio8-Jan-04 0:20
codevisio8-Jan-04 0:20 
GeneralRe: Icons on the status area Pin
utkarsharma8-Jan-04 0:47
utkarsharma8-Jan-04 0:47 
GeneralRe: Icons on the status area Pin
Monty28-Jan-04 1:21
Monty28-Jan-04 1:21 
GeneralRe: Icons on the status area Pin
codevisio8-Jan-04 2:40
codevisio8-Jan-04 2:40 

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.