Click here to Skip to main content
15,913,486 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Very frustrating dllimport code.. Pin
David Moody7-Oct-04 4:10
David Moody7-Oct-04 4:10 
Generalplease please please help me Pin
youngashish5-Oct-04 22:39
youngashish5-Oct-04 22:39 
GeneralRe: please please please help me Pin
Phil J Pearson5-Oct-04 22:54
Phil J Pearson5-Oct-04 22:54 
GeneralRe: please please please help me Pin
Anonymous5-Oct-04 22:59
Anonymous5-Oct-04 22:59 
Generalproblem Pin
ISUstudent5-Oct-04 14:55
ISUstudent5-Oct-04 14:55 
GeneralRe: problem Pin
Anonymous5-Oct-04 15:27
Anonymous5-Oct-04 15:27 
GeneralRe: problem Pin
Christian Graus5-Oct-04 15:38
protectorChristian Graus5-Oct-04 15:38 
GeneralRe: problem Pin
toxcct5-Oct-04 21:13
toxcct5-Oct-04 21:13 
ISUstudent wrote:
void setVendPtr(Vendor *c_VendPtr) { VendPtr = *c_VendPtr; }

VendPtr seem to be a pointer.
two cases for you :
1 - you want to "link" the pointer in parameter to VendPtr. This way, VendPtr and c_VendPtr will point the same address :
<font style="color:blue;">void</font> setVendPtr(Vendor *c_VendPtr) {
    VendPtr = c_VendPtr;
}


2 - You prefer create a new copy of the datas pointed to by c_VendPtr and point VendPtr to this new adress :
<font style="color:blue;">void</font> setVendPtr(Vendor *c_VendPtr) {
    VendPtr = new Vendor;
    *VendPtr = *c_VendPtr;
}

I personnally prefer the second method...


TOXCCT >>> GEII power


GeneralRe: problem Pin
Anonymous6-Oct-04 4:11
Anonymous6-Oct-04 4:11 
GeneralRe: problem Pin
R.Pincince13-Oct-04 5:10
R.Pincince13-Oct-04 5:10 
GeneralProject settings Pin
Jose Vicente5-Oct-04 5:41
Jose Vicente5-Oct-04 5:41 
GeneralA CHALLENGE Pin
tobermori4-Oct-04 15:36
tobermori4-Oct-04 15:36 
GeneralDirectX 9 SDK (Summer 2004) Pin
pauldomag3-Oct-04 6:23
pauldomag3-Oct-04 6:23 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
Christian Graus5-Oct-04 15:41
protectorChristian Graus5-Oct-04 15:41 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
pauldomag5-Oct-04 22:59
pauldomag5-Oct-04 22:59 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
Christian Graus6-Oct-04 9:33
protectorChristian Graus6-Oct-04 9:33 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
pauldomag7-Oct-04 6:41
pauldomag7-Oct-04 6:41 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
Christian Graus7-Oct-04 9:55
protectorChristian Graus7-Oct-04 9:55 
GeneralRe: DirectX 9 SDK (Summer 2004) Pin
pauldomag8-Oct-04 7:36
pauldomag8-Oct-04 7:36 
GeneralDirectX bouncing cube Pin
guissella2-Oct-04 19:44
guissella2-Oct-04 19:44 
Generalautoselect in another List box Pin
PankajMishra2-Oct-04 17:26
PankajMishra2-Oct-04 17:26 
GeneralThreading Pin
jblau2-Oct-04 14:54
jblau2-Oct-04 14:54 
GeneralRe: Threading Pin
David Moody7-Oct-04 4:13
David Moody7-Oct-04 4:13 
QuestionListbox: How to ensure that last item added is visible? Pin
jblau2-Oct-04 12:53
jblau2-Oct-04 12:53 
AnswerRe: Listbox: How to ensure that last item added is visible? Pin
BAIJUMAX3-Oct-04 1:35
professionalBAIJUMAX3-Oct-04 1:35 

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.