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

Managed C++/CLI

 
AnswerRe: Invoke to dynamic library with custom object Pin
S. Senthil Kumar8-Apr-06 13:50
S. Senthil Kumar8-Apr-06 13:50 
GeneralRe: Invoke to dynamic library with custom object Pin
dawei.code8-Apr-06 15:12
dawei.code8-Apr-06 15:12 
GeneralRe: Invoke to dynamic library with custom object Pin
S. Senthil Kumar8-Apr-06 18:50
S. Senthil Kumar8-Apr-06 18:50 
AnswerThat will do for now Pin
dawei.code9-Apr-06 15:14
dawei.code9-Apr-06 15:14 
Question'System.NullReferenceException' Pin
Kranti12519846-Apr-06 23:31
Kranti12519846-Apr-06 23:31 
AnswerRe: 'System.NullReferenceException' Pin
2bee 7-Apr-06 1:01
2bee 7-Apr-06 1:01 
GeneralRe: 'System.NullReferenceException' Pin
Kranti12519847-Apr-06 1:47
Kranti12519847-Apr-06 1:47 
GeneralRe: 'System.NullReferenceException' Pin
2bee 7-Apr-06 2:08
2bee 7-Apr-06 2:08 
Hmm,

is it correct that your testlibcontrol class is unmanaged?
I mean, as far as i know it should be like this if it's a managed one:

testlib::testlibControl __gc* tmp1 __gc [];

Though i suppose you have created a managed array of unmanaged testlibcontrol pointers? However you said that it is crashing on this line:

tmp1[i]->Location = System::Drawing::Point(x,y); //exception

Therefore it can be only one of the two things, either x or y have not been initialized (which is very unlikely) or your array is not properly initialized. IMHO it is related to the second one. Therefore I would suggest that you'll have a close look into your testlibcontrol class (constructor etc.) and the initialization of that array again. Furthermore you should step through your code with the debugger and check if it has really initialized an object of the type testlibcontrol here:

tmp1[i] = new testlib::testlibControl;

regards Tobias
GeneralRe: 'System.NullReferenceException' Pin
Kranti12519849-Apr-06 20:15
Kranti12519849-Apr-06 20:15 
Questionwrite and read an object of user defined class into file. Pin
anilksingh6-Apr-06 22:26
anilksingh6-Apr-06 22:26 
AnswerRe: write and read an object of user defined class into file. Pin
toxcct6-Apr-06 22:54
toxcct6-Apr-06 22:54 
QuestionParallel Port input/output Pin
cullercoats6-Apr-06 3:45
cullercoats6-Apr-06 3:45 
AnswerRe: Parallel Port input/output Pin
Gordon Brandly11-Apr-06 7:40
Gordon Brandly11-Apr-06 7:40 
Questionmanaged c++ in mobile development Pin
GDavy5-Apr-06 0:25
GDavy5-Apr-06 0:25 
Questionproject help Pin
reyou4-Apr-06 5:42
reyou4-Apr-06 5:42 
AnswerRe: project help Pin
George L. Jackson4-Apr-06 12:44
George L. Jackson4-Apr-06 12:44 
AnswerRe: project help Pin
toxcct4-Apr-06 22:02
toxcct4-Apr-06 22:02 
AnswerRe: project help Pin
Cedric Moonen4-Apr-06 23:02
Cedric Moonen4-Apr-06 23:02 
GeneralRe: project help Pin
reyou5-Apr-06 4:43
reyou5-Apr-06 4:43 
QuestionI got some parameter problems Pin
GDavy4-Apr-06 2:26
GDavy4-Apr-06 2:26 
AnswerRe: I got some parameter problems Pin
toxcct4-Apr-06 2:31
toxcct4-Apr-06 2:31 
GeneralRe: I got some parameter problems Pin
GDavy4-Apr-06 3:22
GDavy4-Apr-06 3:22 
Questionis there any function similar to sprintf in C++.Net? Pin
Kranti12519844-Apr-06 1:08
Kranti12519844-Apr-06 1:08 
AnswerRe: is there any function similar to sprintf in C++.Net? Pin
2bee 4-Apr-06 1:22
2bee 4-Apr-06 1:22 
GeneralRe: is there any function similar to sprintf in C++.Net? Pin
George L. Jackson4-Apr-06 12:35
George L. Jackson4-Apr-06 12: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.