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

Managed C++/CLI

 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 13:10
regnwald17-Feb-09 13:10 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
N a v a n e e t h17-Feb-09 14:45
N a v a n e e t h17-Feb-09 14:45 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 19:00
regnwald17-Feb-09 19:00 
QuestionMysql Remote login Pin
Thilek16-Feb-09 1:57
Thilek16-Feb-09 1:57 
AnswerRe: Mysql Remote login Pin
ky_rerun24-Feb-09 15:06
ky_rerun24-Feb-09 15:06 
QuestionToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 15:28
TabascoSauce14-Feb-09 15:28 
AnswerRe: ToUpper and ToLower part of a string in .net C++? Pin
N a v a n e e t h14-Feb-09 18:18
N a v a n e e t h14-Feb-09 18:18 
GeneralRe: ToUpper and ToLower part of a string in .net C++? [modified] Pin
TabascoSauce15-Feb-09 11:41
TabascoSauce15-Feb-09 11:41 
Hey thanks for the help!

Sadly I am still having issues, after I tried to build it the build log gives me the error:
"1>.\TempConverter.cpp(37) : error C2440: 'return' : cannot convert from 'System::String ^' to 'int'
1> No user-defined-conversion operator available, or
1> There is no context in which this conversion is possible


Here's the block of code I have your second suggestion in (yes I am very, very new to programming, I'm trying to overachieve on an assignment in my online class):
//Determining student access and calculating desired conversion
if (name->CompareTo("ALPHA" || "BETA" || "GAMMA") != 0)
{
    //Display no-access message & end program
    Console::WriteLine("Sorry, you have insufficient rights to access to this program");
    Console::Write("Please enter 1 to end the program: ");
        endProgram = Convert::ToInt16(Console::ReadLine());
}
else
{
    //Greeting and user input
    if (name->CompareTo("ALPHA" || "BETA" || "GAMMA") == 0)
    {
        using namespace System::Threading;
 return Thread::CurrentThread->CurrentCulture->TextInfo->ToTitleCase(name);
    Console::WriteLine("Hello ", initial->ToUpper() , ". ", name);
    Console::Write("Are you converting from celsius or fahrenheit?: ");
    tempr = Convert::ToString(Console::ReadLine()->ToLower());
    }


I'm trying to get it to write something like "Hello M. Beta"
Feel free to point anything else I've done wrong (to an expert this probably looks horrible).


Again thanks for your time and anymore help you can give me!

modified on Sunday, February 15, 2009 6:31 PM

GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
N a v a n e e t h15-Feb-09 16:32
N a v a n e e t h15-Feb-09 16:32 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce16-Feb-09 12:25
TabascoSauce16-Feb-09 12:25 
QuestionFinding and mapping audio devices in windows Pin
gurindersm12-Feb-09 18:15
gurindersm12-Feb-09 18:15 
QuestionExposing a property of a nested class to .Net VB, C# etc. Pin
stempsoft12-Feb-09 12:23
stempsoft12-Feb-09 12:23 
AnswerRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
N a v a n e e t h12-Feb-09 14:03
N a v a n e e t h12-Feb-09 14:03 
GeneralRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
stempsoft12-Feb-09 15:20
stempsoft12-Feb-09 15:20 
GeneralRe: Exposing a property of a nested class to .Net VB, C# etc. Pin
N a v a n e e t h12-Feb-09 16:27
N a v a n e e t h12-Feb-09 16:27 
Questionwhich is the best method to send data to clients, without a request from client Pin
naveen_bij11-Feb-09 22:36
naveen_bij11-Feb-09 22:36 
AnswerRe: which is the best method to send data to clients, without a request from client Pin
led mike12-Feb-09 4:41
led mike12-Feb-09 4:41 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij12-Feb-09 18:05
naveen_bij12-Feb-09 18:05 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
Luc Pattyn12-Feb-09 4:47
sitebuilderLuc Pattyn12-Feb-09 4:47 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij12-Feb-09 18:31
naveen_bij12-Feb-09 18:31 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
Luc Pattyn13-Feb-09 9:00
sitebuilderLuc Pattyn13-Feb-09 9:00 
AnswerRe: which is the best method to send data to clients, without a request from client Pin
tyr200023-Feb-09 1:20
tyr200023-Feb-09 1:20 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij23-Feb-09 20:09
naveen_bij23-Feb-09 20:09 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
tyr200025-Feb-09 1:21
tyr200025-Feb-09 1:21 
GeneralRe: which is the best method to send data to clients, without a request from client Pin
naveen_bij25-Feb-09 3:53
naveen_bij25-Feb-09 3:53 

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.