Click here to Skip to main content
15,921,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
«_Superman_»19-Jan-09 16:05
professional«_Superman_»19-Jan-09 16:05 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
ThatsAlok19-Jan-09 21:52
ThatsAlok19-Jan-09 21:52 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Stuart Dootson19-Jan-09 22:11
professionalStuart Dootson19-Jan-09 22:11 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
«_Superman_»19-Jan-09 23:36
professional«_Superman_»19-Jan-09 23:36 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? Pin
Ahmed Charfeddine19-Jan-09 22:13
Ahmed Charfeddine19-Jan-09 22:13 
GeneralRe: Is it theoretically possible to instantiate an abstract C++ class ? How ? [modified] Pin
Stuart Dootson19-Jan-09 22:36
professionalStuart Dootson19-Jan-09 22:36 
QuestionMFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
RedSonja19-Jan-09 3:42
RedSonja19-Jan-09 3:42 
AnswerRe: MFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
Stuart Dootson19-Jan-09 4:00
professionalStuart Dootson19-Jan-09 4:00 
GeneralRe: MFC removed from project: error LNK2001: unresolved external symbol ___argv Pin
RedSonja19-Jan-09 4:33
RedSonja19-Jan-09 4:33 
QuestionMFC DLL Pin
bhanu_850919-Jan-09 2:46
bhanu_850919-Jan-09 2:46 
AnswerRe: MFC DLL Pin
Cedric Moonen19-Jan-09 3:33
Cedric Moonen19-Jan-09 3:33 
GeneralRe: MFC DLL Pin
bhanu_850919-Jan-09 5:24
bhanu_850919-Jan-09 5:24 
GeneralRe: MFC DLL Pin
Cedric Moonen19-Jan-09 7:53
Cedric Moonen19-Jan-09 7:53 
GeneralRe: MFC DLL Pin
bhanu_850919-Jan-09 20:22
bhanu_850919-Jan-09 20:22 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 2:32
Cedric Moonen20-Jan-09 2:32 
GeneralRe: MFC DLL Pin
bhanu_850920-Jan-09 2:45
bhanu_850920-Jan-09 2:45 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 2:51
Cedric Moonen20-Jan-09 2:51 
GeneralRe: MFC DLL Pin
bhanu_850920-Jan-09 3:08
bhanu_850920-Jan-09 3:08 
GeneralRe: MFC DLL Pin
Cedric Moonen20-Jan-09 4:25
Cedric Moonen20-Jan-09 4:25 
GeneralRe: MFC DLL Pin
bhanu_850920-Jan-09 23:46
bhanu_850920-Jan-09 23:46 
QuestionINF file, DelFiles not working as expected. Pin
abhijitr19-Jan-09 2:39
abhijitr19-Jan-09 2:39 
QuestionRe: INF file, DelFiles not working as expected. Pin
David Crow19-Jan-09 3:03
David Crow19-Jan-09 3:03 
AnswerRe: INF file, DelFiles not working as expected. Pin
ThatsAlok19-Jan-09 21:58
ThatsAlok19-Jan-09 21:58 
QuestionHow to pass array of byte? Pin
Joe Smith IX19-Jan-09 2:27
Joe Smith IX19-Jan-09 2:27 
AnswerRe: How to pass array of byte? Pin
Cedric Moonen19-Jan-09 2:30
Cedric Moonen19-Jan-09 2:30 
If you want to only pass the content of the array, then your method is fine. But as you want to allocate the a new array inside the function, you need to pass the array by reference. Think of it this way: a pointer is more or less the same as an integer containing an address. If you pass the integer value by value, a copy will be made in the function and the function will modify the copy and leave the original intact. It is the same with pointers: as long as you only want to access the content of the pointed memry, no problem. But if you want to assign a new address (like new is doing), then you have to pass it by reference:

void C1:GetData(BYTE* &pTemplate, DWORD &dwSize)


Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

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.