Hi,
Thanks for the below.
I have a linked list, and want to have it in its own heap.
I use the HeapCreate(..) to create the heap , and then use multiple
HeapAlloc(s_hHeap,0,size); to create the space.
if I have something like:
class CSomeClass ; // a clas I want to have in
typedef struct{
int Use;
CSomeClass m_Class;
int Another variable;
}LinkedStruct;
HeapAlloc(s_hHeap,0,sizeof(LinkedStruct));
As this just creates the space, is there anyway I can have the class within
the structure to have its constructor called, and use it within the linked
list.
Is this possible? If so, whats the best way?
Neil
----- Original Message -----
From: "Ehsan Akhgari" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 20, 2006 12:05 PM
Subject: Re: [msvc] THIS_FILE error when compiling..
> Neil Devlin wrote:
>> Hi,
>> I have VC 6.0 , and creating my own heap function, and using operator
>> new, when I compile this (in debug) I get the following message:
>>
>> syntax error : identifier 'THIS_FILE'
>>
>> if I comment out the following that is automatically created:
>>
>> #ifdef _DEBUG
>> #undef THIS_FILE
>> static char THIS_FILE[]=__FILE__;
>> #define new DEBUG_NEW
>> #endif
>>
>> I dont get the error, anyone let mw now whats happening and the best way
>> to
>> stop this problem?
>
> You should need a special operator new definition for debug builds.
> Look up the VC header files for DEBUG_NEW to see the signature of the
> operator new definition that VC uses for debug builds.
>
>
> --
> Ehsan Akhgari
> Farda Technology <http://www.farda-tech.com/>
>
> Everybody has a photographic memory. . . . Some don't have film.
>
> _______________________________________________
> msvc mailing list
> [email protected]
> See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
> subscription changes, and list archive.
>
>
>
>
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.