Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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++

GeneralRe: How to pass array of byte? Pin
Joe Smith IX19-Jan-09 2:49
Joe Smith IX19-Jan-09 2:49 
AnswerRe: How to pass array of byte? Pin
David Crow19-Jan-09 3:07
David Crow19-Jan-09 3:07 
QuestionHow to pass structure or complex data in IDispatch using invoke() method . Pin
Thomas_Mathews19-Jan-09 2:08
Thomas_Mathews19-Jan-09 2:08 
AnswerRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 4:09
professionalStuart Dootson19-Jan-09 4:09 
AnswerRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Radhakrishnan G.19-Jan-09 4:20
Radhakrishnan G.19-Jan-09 4:20 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 6:50
professionalStuart Dootson19-Jan-09 6:50 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Thomas_Mathews19-Jan-09 19:09
Thomas_Mathews19-Jan-09 19:09 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 19:48
professionalStuart Dootson19-Jan-09 19:48 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . [modified] Pin
Thomas_Mathews19-Jan-09 20:19
Thomas_Mathews19-Jan-09 20:19 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 22:07
professionalStuart Dootson19-Jan-09 22:07 
Questiondialog box displaying not responding Pin
VCProgrammer19-Jan-09 0:53
VCProgrammer19-Jan-09 0:53 
AnswerRe: dialog box displaying not responding Pin
Cedric Moonen19-Jan-09 1:09
Cedric Moonen19-Jan-09 1:09 
GeneralRe: dialog box displaying not responding Pin
Luc Pattyn19-Jan-09 1:15
sitebuilderLuc Pattyn19-Jan-09 1:15 
QuestionGet hour and minute value. Pin
Le@rner19-Jan-09 0:52
Le@rner19-Jan-09 0:52 
AnswerRe: Get hour and minute value. Pin
Cedric Moonen19-Jan-09 1:02
Cedric Moonen19-Jan-09 1:02 
AnswerRe: Get hour and minute value. Pin
CPallini19-Jan-09 4:50
mveCPallini19-Jan-09 4:50 
GeneralRe: Get hour and minute value. Pin
Le@rner19-Jan-09 17:12
Le@rner19-Jan-09 17:12 

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.