Click here to Skip to main content
15,891,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC and SharedFolder on Lan Pin
David Crow2-Jun-05 9:00
David Crow2-Jun-05 9:00 
GeneralRe: VC and SharedFolder on Lan Pin
Usman Tasleem Akshaf3-Jun-05 3:54
Usman Tasleem Akshaf3-Jun-05 3:54 
GeneralRe: VC and SharedFolder on Lan Pin
David Crow3-Jun-05 4:08
David Crow3-Jun-05 4:08 
GeneralRe: VC and SharedFolder on Lan Pin
_tasleem6-Jun-05 16:40
_tasleem6-Jun-05 16:40 
GeneralRe: VC and SharedFolder on Lan Pin
David Crow7-Jun-05 3:04
David Crow7-Jun-05 3:04 
Questionstd::string convertion to System __gc * needed? Pin
Hmmkk2-Jun-05 7:49
Hmmkk2-Jun-05 7:49 
AnswerRe: std::string convertion to System __gc * needed? Pin
S. Senthil Kumar2-Jun-05 7:58
S. Senthil Kumar2-Jun-05 7:58 
GeneralRe: std::string convertion to System __gc * needed? Pin
Hmmkk2-Jun-05 8:16
Hmmkk2-Jun-05 8:16 
Well yes, I was afraid that this belonged there but I was not totally sure.
Thanks though.
But well it didnt quite solve my problem, now I get the error;
Just-In-Time Debugging
System.NullReferenceException

To make the code a little more clear, if now it matter I don't know.

This is how I want it.

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

myQuestion is a pointer class and getQuestion returns the variable theQuestion which is defined as a string.

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
GeneralSpying / Docking Pin
Peter Weyzen2-Jun-05 7:40
Peter Weyzen2-Jun-05 7:40 
GeneralRe: Spying / Docking Pin
Peter Weyzen2-Jun-05 12:38
Peter Weyzen2-Jun-05 12:38 
GeneralRe: Spying / Docking Pin
ThatsAlok2-Jun-05 19:19
ThatsAlok2-Jun-05 19:19 
Generalbit field question Pin
lynchspawn2-Jun-05 7:39
lynchspawn2-Jun-05 7:39 
GeneralRe: bit field question Pin
S. Senthil Kumar2-Jun-05 7:52
S. Senthil Kumar2-Jun-05 7:52 
GeneralRe: bit field question Pin
lynchspawn2-Jun-05 7:55
lynchspawn2-Jun-05 7:55 
GeneralRegister a Class Pin
jerry1211a2-Jun-05 6:47
jerry1211a2-Jun-05 6:47 
GeneralRe: Register a Class Pin
David Crow2-Jun-05 7:15
David Crow2-Jun-05 7:15 
GeneralWorking with CVS Pin
Trollslayer2-Jun-05 6:32
mentorTrollslayer2-Jun-05 6:32 
GeneralRe: Working with CVS Pin
Ravi Bhavnani2-Jun-05 10:25
professionalRavi Bhavnani2-Jun-05 10:25 
GeneralRe: Working with CVS Pin
Trollslayer2-Jun-05 11:07
mentorTrollslayer2-Jun-05 11:07 
GeneralRe: Working with CVS Pin
Ravi Bhavnani2-Jun-05 11:20
professionalRavi Bhavnani2-Jun-05 11:20 
GeneralRe: Working with CVS Pin
Trollslayer2-Jun-05 11:53
mentorTrollslayer2-Jun-05 11:53 
GeneralRe: Working with CVS Pin
Jörgen Sigvardsson2-Jun-05 12:01
Jörgen Sigvardsson2-Jun-05 12:01 
GeneralRe: Working with CVS Pin
Trollslayer2-Jun-05 13:21
mentorTrollslayer2-Jun-05 13:21 
Generalhelp with system("PAUSE") Pin
Jared F.2-Jun-05 6:21
Jared F.2-Jun-05 6:21 
GeneralRe: help with system("PAUSE") Pin
Budric B.2-Jun-05 6:36
Budric B.2-Jun-05 6:36 

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.