Click here to Skip to main content
15,881,852 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: CListBox with wchar or WCHAR Pin
Richard MacCutchan27-May-15 21:10
mveRichard MacCutchan27-May-15 21:10 
GeneralRe: CListBox with wchar or WCHAR Pin
bkelly1328-May-15 3:40
bkelly1328-May-15 3:40 
GeneralRe: CListBox with wchar or WCHAR Pin
Richard MacCutchan28-May-15 3:55
mveRichard MacCutchan28-May-15 3:55 
GeneralRe: CListBox with wchar or WCHAR, Problem discovered Pin
bkelly1329-May-15 3:57
bkelly1329-May-15 3:57 
GeneralRe: CListBox with wchar or WCHAR, Problem discovered Pin
Richard MacCutchan29-May-15 4:33
mveRichard MacCutchan29-May-15 4:33 
Questionis it true? fells he is boast, please somebody help me test . Pin
1971 powerChina7-May-15 15:19
1971 powerChina7-May-15 15:19 
QuestionRe: is it true? fells he is boast, please somebody help me test . Pin
ZurdoDev18-May-15 4:54
professionalZurdoDev18-May-15 4:54 
QuestionServer execution failed in MFC COM Pin
Hydera29-Apr-15 23:59
Hydera29-Apr-15 23:59 
AnswerRe: Server execution failed in MFC COM Pin
achal375418-May-15 22:00
achal375418-May-15 22:00 
QuestionCListViewCtrl HitTest problem Pin
ush_28-Apr-15 9:38
ush_28-Apr-15 9:38 
Questioncannot get text of __DATE__ (resolved) Pin
bkelly1322-Apr-15 9:24
bkelly1322-Apr-15 9:24 
AnswerRe: cannot get text of __DATE__ Pin
Richard MacCutchan22-Apr-15 23:19
mveRichard MacCutchan22-Apr-15 23:19 
GeneralRe: cannot get text of __DATE__ Pin
bkelly1324-Apr-15 2:01
bkelly1324-Apr-15 2:01 
Questionfunction to delete a class (resolved) Pin
bkelly1321-Apr-15 3:42
bkelly1321-Apr-15 3:42 
AnswerRe: function to delete a class Pin
Richard MacCutchan21-Apr-15 21:11
mveRichard MacCutchan21-Apr-15 21:11 
GeneralRe: function to delete a class Pin
bkelly1322-Apr-15 4:08
bkelly1322-Apr-15 4:08 
QuestionRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 6:27
mveRichard MacCutchan22-Apr-15 6:27 
AnswerRe: function to delete a class Pin
bkelly1322-Apr-15 9:15
bkelly1322-Apr-15 9:15 
GeneralRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 22:27
mveRichard MacCutchan22-Apr-15 22:27 
I see the problem; my bad for missing it in your original question. Your function has the signature:
C++
Void Delete_Stuff( WCHAR * name, void * item )
so when you call delete item the compiler has no idea what type item is, so just throws it away. You can only call delete on an object, when it is specifically typed so the compiler knows how to deal with it. You may try casting it to the relevant class type, but you would need some way of telling your function what type each pointer is.
GeneralRe: function to delete a class Pin
bkelly1323-Apr-15 16:16
bkelly1323-Apr-15 16:16 
GeneralRe: function to delete a class Pin
Richard MacCutchan23-Apr-15 21:11
mveRichard MacCutchan23-Apr-15 21:11 
GeneralRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 23:15
mveRichard MacCutchan22-Apr-15 23:15 
QuestionAlways on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 5:45
Rainsey Long25-Mar-15 5:45 
AnswerRe: Always on top (Task Manager) C# Pin
Richard MacCutchan25-Mar-15 6:33
mveRichard MacCutchan25-Mar-15 6:33 
GeneralRe: Always on top (Task Manager) C# Pin
Rainsey Long25-Mar-15 7:01
Rainsey Long25-Mar-15 7:01 

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.