|
But he gave the OP an unmanaged solution!
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
i saw that, but i'm assuming the OP is dumb enough not to be aware of it, so, capable of trying it, and spam the board with some "i don't understand, i doesn't work, please help, it's urgent, help meeeeeeeeeeee"
get me ?
|
|
|
|
|
toxcct wrote: and spam the board with some "i don't understand, i doesn't work, please help, it's urgent, help meeeeeeeeeeee"
I see the problem. But a crazy interop solution of some kind would be fun (not for me, for the
OP)
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
this code has nothing to do on an unmanaged forum...
ask the C++/CLI forum[^] please
|
|
|
|
|
|
double GetInvestmentAmount()
{
Console::Write(L"How much money do you want to invest? ");
String^ input = Console::ReadLine();
double amount = System::Convert::ToDouble(input);
return amount;
}
Now don't post managed c++ questions on the unmanaged C++ board or you will be tarred and
feathered!
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
|
|
Hi,
I want to define preprocessor constants in command line.
In source it would be something like this:
#define STR_SOMETHING "something"
Now how can I get the same result in command line using /D?
I tried in VS 2005, in Project Property Pages->Configuration Properties-> C/C++->Preprocessor-> Preprocessor Definitions…
Adding STR_SOMETHING=”something” doesn’t work. In Command line it looks like this:
/D "SOMETHING="something"".
The problem is with "".
Any idea how to do this?
|
|
|
|
|
forget what i said...
-- modified at 8:02 Monday 7th May, 2007
|
|
|
|
|
Are you sure? On my system (VS 2003) It doesn't work. Moreover (excerpt from MSDN):
"With one exception, defining symbols and constants with this option has the same effect as using a #define preprocessor directive at the beginning of your source file. If you use /D, quotes on the command line will be stripped whereas they are retained in a #define statement."
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
when string starts with digits, it try to parse it to number
when with charackter... identyfier
|
|
|
|
|
HI
I HANE A PROBLEM IN CONNECTION OF MYSQL TO VC++(MFC)
LINK : fatal error LNK1104: cannot open file "C:\Program.obj"
Error executing link.exe.
PLEASE GIVE ME A HINT
THANKS
hi
|
|
|
|
|
NO NEED TO SHOUT !
and isn't the error message descriptive enough ?
the linker says he doesn't find the file C:\Program.obj...
does your compiler really generate this file ?
don't you have a problem of path name ?
see both your compiler and linker settings to find which one is badly configurated
|
|
|
|
|
toxcct wrote: the linker says he doesn't find the file C:\Program.obj...
How did you know the gender of his linker?
"The difficulty lies, not in the new ideas, but in escaping from the old ones."
-- John Maynard Keyes, 1936
|
|
|
|
|
he's a friend of mine... lol
|
|
|
|
|
I HAVE GIVEN THE PATH IN PROJECT ->SETTING->LINK ->OBJECT /LIBRARY MODULE AS
C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
AND IN THE TOOLS ->OPTIONS->DIRECTORIES AS
C:\PROGRAM FILES\MYSQL\MYSQL SERVER 5.0\INCLUDE
NOW AM I WRONG SIR
PLEASE TELL ME
THANKS
hi
|
|
|
|
|
sorry, i can't read caps... please edit your message
|
|
|
|
|
I have the given path in project ->setting->link->object /library module as :
C:\Program Files\MySQL\MySQL Server 5.0\lib\opt
and in the tools ->options ->directories as :
C:\program files\mysql\mysql server 5.0\include
thanks
hi
|
|
|
|
|
What is this program.obj file ? Do you have a file that is called program.cpp (or .c) in your project ? It is strange that it is located in the root directory... Can you provide more informations about this file ?
It has probably nothing to do with mysql, you are probably doing something wrong with the settings.
|
|
|
|
|
thanks sir
i have a project.cpp file
sir where iam wrong in settings can i know this
hi
|
|
|
|
|
paras_s12 wrote: NOW AM I WRONG SIR
PLEASE TELL ME
Ok: you are wrong.
BTW, your errors are probably due to the fact that your compiler thinks you are shouting at him. See, your keyboard seems to be broken (caps lock doesn't work properly). And compilers are vexed easily.
|
|
|
|
|
sdkl;ja;ht;au4tajgfbm,.sm,.vz.v x ZKLHOPuaEAHm,lgjjdfa;dfuoasdfjkl;ajflho
Sorry; there was a spider on my keyboard.
"The difficulty lies, not in the new ideas, but in escaping from the old ones."
-- John Maynard Keyes, 1936
|
|
|
|
|
xbh'f" xbh'f" xbh'f"
i've splashed the spider :->
|
|
|
|
|
hello . I wrote one program white some toolbar . I can change the language of them. But now itn't update automatically . I have to close the toolbar and open it again to change the language . I want to know how can i update it automatically.
|
|
|
|