Click here to Skip to main content
15,851,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Baes/Derived Class Question Pin
CPallini17-Apr-09 8:11
mveCPallini17-Apr-09 8:11 
AnswerRe: Baes/Derived Class Question Pin
led mike17-Apr-09 8:21
led mike17-Apr-09 8:21 
GeneralRe: Baes/Derived Class Question Pin
ForNow17-Apr-09 13:32
ForNow17-Apr-09 13:32 
GeneralRe: Baes/Derived Class Question Pin
ForNow18-Apr-09 16:38
ForNow18-Apr-09 16:38 
QuestionCreating Global Objects Pin
ForNow17-Apr-09 7:58
ForNow17-Apr-09 7:58 
AnswerRe: Creating Global Objects Pin
CPallini17-Apr-09 8:07
mveCPallini17-Apr-09 8:07 
GeneralRe: Creating Global Objects Pin
ForNow17-Apr-09 13:28
ForNow17-Apr-09 13:28 
AnswerRe: Creating Global Objects Pin
led mike17-Apr-09 8:19
led mike17-Apr-09 8:19 
ForNow wrote:
I ended up allocating the storage required on the Heap

myeventptr = HeapAlloc(GetProcessHeap(),0,sizeof(MyEvent))

and the then kicking of the constructer via myeventptr->MyEvent::MyEvent(....);

is this going to create the object for me ???


You really don't want to do that. Pallini probably has the solution you should use but what you described is covered in C++ with Placement new[^]

As always I strongly recommend novice C++ developers not to make stuff up. There exists an enormous amount of information freely available on the internet. Use it or make up your own stuff, it's your choice.
GeneralRe: Creating Global Objects Pin
ForNow18-Apr-09 16:42
ForNow18-Apr-09 16:42 
AnswerRe: Creating Global Objects Pin
Stuart Dootson17-Apr-09 10:01
professionalStuart Dootson17-Apr-09 10:01 
GeneralRe: Creating Global Objects Pin
CPallini17-Apr-09 10:12
mveCPallini17-Apr-09 10:12 
QuestionV-tables Pin
0x3c017-Apr-09 5:49
0x3c017-Apr-09 5:49 
AnswerRe: V-tables Pin
led mike17-Apr-09 6:49
led mike17-Apr-09 6:49 
GeneralRe: V-tables [modified] Pin
0x3c017-Apr-09 7:48
0x3c017-Apr-09 7:48 
GeneralRe: V-tables Pin
led mike17-Apr-09 8:02
led mike17-Apr-09 8:02 
GeneralRe: V-tables Pin
0x3c018-Apr-09 7:01
0x3c018-Apr-09 7:01 
GeneralRe: V-tables Pin
led mike21-Apr-09 13:01
led mike21-Apr-09 13:01 
GeneralRe: V-tables Pin
0x3c022-Apr-09 7:26
0x3c022-Apr-09 7:26 
GeneralRe: V-tables Pin
led mike23-Apr-09 5:41
led mike23-Apr-09 5:41 
GeneralRe: V-tables Pin
0x3c023-Apr-09 6:15
0x3c023-Apr-09 6:15 
QuestionSetting the default icon in the registry Pin
Like2Byte17-Apr-09 5:43
Like2Byte17-Apr-09 5:43 
AnswerRe: Setting the default icon in the registry Pin
led mike17-Apr-09 5:49
led mike17-Apr-09 5:49 
QuestionWhy this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
kapardhi17-Apr-09 3:55
kapardhi17-Apr-09 3:55 
AnswerRe: Why this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
Stuart Dootson17-Apr-09 4:12
professionalStuart Dootson17-Apr-09 4:12 
QuestionRegistry access problem Pin
Mogaambo17-Apr-09 3:08
Mogaambo17-Apr-09 3:08 

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.