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

Managed C++/CLI

 
GeneralRe: 3 occurences of error C2039 Pin
toxcct5-Jun-05 3:33
toxcct5-Jun-05 3:33 
GeneralRe: 3 occurences of error C2039 Pin
joseph19506-Jun-05 2:52
joseph19506-Jun-05 2:52 
GeneralRe: 3 occurences of error C2039 Pin
toxcct6-Jun-05 2:57
toxcct6-Jun-05 2:57 
GeneralRe: 3 occurences of error C2039 Pin
joseph19506-Jun-05 7:38
joseph19506-Jun-05 7:38 
Generalremoving variable Pin
joseph19503-Jun-05 2:56
joseph19503-Jun-05 2:56 
GeneralRe: removing variable Pin
toxcct3-Jun-05 3:33
toxcct3-Jun-05 3:33 
GeneralRe: removing variable Pin
joseph19503-Jun-05 4:15
joseph19503-Jun-05 4:15 
GeneralLabel Text problems Pin
Hmmkk2-Jun-05 8:34
Hmmkk2-Jun-05 8:34 
Now I get the error;
Just-In-Time Debugging
System.NullReferenceException

This is how I want it:

lblQ->Text = myQuestions[CurrentQuestion]->getQuestion()

myQuestions is a pointer class (declared: Question myQuestions __nogc[CurrentQuestion]; ) and getQuestion returns the string theQuestion. lblQ is btw just an Label (Label *lblQ)

and also I just tried two ways:
1:
lblQ->Text = new System::String(myQuestions[CurrentQuestion]->getQuestion();.c_str());

2:
myQuestions[CurrentQuestion]->setQuestion("hi");
string temp = myQuestions[CurrentQuestion]->getQuestion();
lblQ->Text = new System::String(temp.c_str());

Both gave the Just-In-Time debugger error.

Best Regards,
Hmmkk
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:02
protectorChristian Graus2-Jun-05 10:02 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:25
Hmmkk2-Jun-05 10:25 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:30
protectorChristian Graus2-Jun-05 10:30 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:38
Hmmkk2-Jun-05 10:38 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:46
protectorChristian Graus2-Jun-05 10:46 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:48
Hmmkk2-Jun-05 10:48 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:57
Hmmkk2-Jun-05 10:57 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 12:18
protectorChristian Graus2-Jun-05 12:18 
GeneralPassing data between forms Pin
richiemac1-Jun-05 8:58
richiemac1-Jun-05 8:58 
GeneralRe: Passing data between forms Pin
Saksida Bojan1-Jun-05 19:40
Saksida Bojan1-Jun-05 19:40 
GeneralRe: Passing data between forms Pin
Lagwagon561-Jun-05 10:12
Lagwagon561-Jun-05 10:12 
GeneralRe: Passing data between forms Pin
richiemac1-Jun-05 21:32
richiemac1-Jun-05 21:32 
GeneralRe: Passing data between forms Pin
richiemac1-Jun-05 22:37
richiemac1-Jun-05 22:37 
GeneralRe: Passing data between forms Pin
Lagwagon562-Jun-05 4:27
Lagwagon562-Jun-05 4:27 
GeneralRe: Passing data between forms Pin
Saksida Bojan2-Jun-05 20:10
Saksida Bojan2-Jun-05 20:10 
GeneralRe: Passing data between forms Pin
richiemac5-Jun-05 5:34
richiemac5-Jun-05 5:34 
Generalpanel component problems Pin
richiemac31-May-05 6:44
richiemac31-May-05 6:44 

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.