Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RemoveDirectory() not working in Win2000 Pin
J. Dunlap15-Oct-03 20:27
J. Dunlap15-Oct-03 20:27 
GeneralRe: RemoveDirectory() not working in Win2000 Pin
Randhir Sinha16-Oct-03 2:19
Randhir Sinha16-Oct-03 2:19 
GeneralSocket problem here Pin
Cyberizen15-Oct-03 20:01
Cyberizen15-Oct-03 20:01 
GeneralRe: Socket problem here Pin
jmkhael15-Oct-03 22:33
jmkhael15-Oct-03 22:33 
Generalarabic support Pin
Anonymous15-Oct-03 19:40
Anonymous15-Oct-03 19:40 
GeneralLinker errors on Unicode version of BCGSoft library Pin
Uwe Keim15-Oct-03 19:39
sitebuilderUwe Keim15-Oct-03 19:39 
GeneralRe: Linker errors on Unicode version of BCGSoft library Pin
sexywetdeath17-Oct-03 2:34
sexywetdeath17-Oct-03 2:34 
QuestionHow do I declare a function ? Pin
Anonymous15-Oct-03 18:58
Anonymous15-Oct-03 18:58 
I just got Visual C++ .NET tonight and I started messing around with it. I'm a java developer and have been kind of curious of the .NET I'm really stuck i've search google.com but the word .NET brings up alot of junk. I'm stuck on declaring a function not sure how. I keep getting an error (error C3602: 'String': a __gc type object cannot be passed by value) It's right when I pass it to the function that will make the string to uppercase. Not sure what it means a __gc could someone help me out or show me where i can look at some online docs for newbies thanks.


<br />
	private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)<br />
			 { <br />
				 this->label1->Text = this->textBox1->Text;<br />
				 this->strBox = this->textBox1->Text;<br />
				 //MessageBox::Show(strBox,S"Text in Box", MessageBoxButtons::OK, MessageBoxIcon::Information);<br />
				 this->upperCase = this->makeUpperCase(strBox);				<br />
				 this->daString(upperCase);<br />
			 }<br />
<br />
	public: System::Void daString(System::String * blah)<br />
			{<br />
				 MessageBox::Show(blah,S"Testing Function daString", MessageBoxButtons::OK, MessageBoxIcon::Information);<br />
			}<br />
<br />
	String makeUpperCase(System::String * upper)<br />
			{<br />
				//upper->ToUpper;<br />
				return upper->ToUpper();<br />
			}<br />
<br />
	private: System::Void Form1_Load(System::Object *  sender, System::EventArgs *  e)<br />
			 {<br />
				 MessageBox::Show(S"Message Box Demo",S"My Application", MessageBoxButtons::OK, MessageBoxIcon::Asterisk);<br />
			 }<br />
<br />
	};<br />
}<br />
<br />
<br />

AnswerRe: How do I declare a function ? Pin
Randhir Sinha15-Oct-03 20:17
Randhir Sinha15-Oct-03 20:17 
AnswerRe: How do I declare a function ? Pin
PremL17-Oct-03 6:09
PremL17-Oct-03 6:09 
GeneralMFC DLL Help Pin
Mike Danberg15-Oct-03 17:21
Mike Danberg15-Oct-03 17:21 
GeneralRe: MFC DLL Help Pin
Mike Danberg15-Oct-03 19:36
Mike Danberg15-Oct-03 19:36 
GeneralRe: MFC DLL Help Pin
Mike Dimmick16-Oct-03 1:18
Mike Dimmick16-Oct-03 1:18 
GeneralRe: MFC DLL Help Pin
Mike Danberg16-Oct-03 6:41
Mike Danberg16-Oct-03 6:41 
GeneralVisual Studio.Net C++ bug Pin
Anonymous15-Oct-03 17:12
Anonymous15-Oct-03 17:12 
GeneralRe: Visual Studio.Net C++ bug Pin
Steve S15-Oct-03 21:57
Steve S15-Oct-03 21:57 
GeneralHTML Help with VC++ in .net Pin
dhhlam15-Oct-03 13:39
dhhlam15-Oct-03 13:39 
GeneralChange the size of the console window Pin
hkl15-Oct-03 13:05
hkl15-Oct-03 13:05 
Questionstd::bad_alloc exception when plenty of memory available? Pin
IGx8915-Oct-03 12:56
IGx8915-Oct-03 12:56 
AnswerRe: std::bad_alloc exception when plenty of memory available? Pin
IGx8915-Oct-03 13:32
IGx8915-Oct-03 13:32 
GeneralRe: std::bad_alloc exception when plenty of memory available? Pin
IGx8915-Oct-03 13:47
IGx8915-Oct-03 13:47 
GeneralInstallShield request Pin
Gary R. Wheeler15-Oct-03 12:46
Gary R. Wheeler15-Oct-03 12:46 
GeneralBEGINNER help me here Pin
15-Oct-03 12:06
suss15-Oct-03 12:06 
GeneralRe: BEGINNER help me here Pin
Terry O'Nolley15-Oct-03 16:15
Terry O'Nolley15-Oct-03 16:15 
GeneralRe: BEGINNER help me here Pin
LOSTTWARE.com15-Oct-03 19:44
LOSTTWARE.com15-Oct-03 19: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.