|
Michael Schubert wrote:
By the way, you seem to have some sort of keyboard malfunction:
Sadly, I think the keyboard is doing exactly what it was instructed to do.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
How Can I evaluate an axpression in string ?
for example :
string x = "(6+9)/5-9";
string y = "Ln(10)+cos(30)-55";
How Can I evaluate that in visual studio ?
Is there a FREE parser that does these operations ?
I'm using vb 6
|
|
|
|
|
fcis2008 wrote: string x = "(6+9)/5-9";
C++ isn't something like VB, where you can assign dump anything into any datatype. C++ requires you to know what you're doing.
If the result of your expression is a number, then assign it to a number and then 'store' it into the string with one of those string formatting functions.
int nVal = (6+9)/5-9;
TCHAR str[42];
_tprintf(str, _T("%d"), nVal);
You could alternatively write your own string class which does the conversion implicitly for you, by having the appropriate operators overloaded and enabling you to write statements of that sort where you assign an expression to a your string class object.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Rajesh R Subramanian wrote: C++ isn't something like VB, where you can dump anything into any datatype. C++ requires you to know what you're doing.
Well said! Take 5.
|
|
|
|
|
Michael Schubert wrote: Rajesh R Subramanian wrote:
C++ isn't something like VB, where you can dump anything into any datatype. C++ requires you to know what you're doing.
Well said! Take 5.
Anyway, that's no true.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Anyway, that's no true.
Which part?
|
|
|
|
|
"VB, where you can dump anything into any datatype"
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Really? Maybe they changed that in VB.NET. I haven't looked at VB in many years.
|
|
|
|
|
I'm talking about VB6.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I know you have a secret fetish for VB6 (the main reason why you got into programming), but there's no need to support it here.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Rajesh R Subramanian wrote: I know you have a secret fetish for VB6 (the main reason why you got into programming)
The only reason!
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
fcis2008 wrote: I'm using vb 6
Is this a typo ? Are you using visual basic or visual C++ ? Because this is the C++ forum, so if it is a question for Visual Basic, then you should post in the VB forum.
Anyway, if you are using C++, take a look at this article[^]
|
|
|
|
|
You application may host a scripting language.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
If you're using C++ (and if not, why have you posted in this forum?), then this article[^] contains just what you need.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Nicholas Amh wrote: Can someone help me out.
How many more times do you need to have this explained to you before you realise that you are totally out of your depth on this? You have had lots of suggestions as to what you need to do but you obviously don't have the basic knowledge to implement them. I would suggest that you get hold of some books on basic C++ and Windows Programming and work through the sample code to get the understanding and skills you need to solve this problem.
Reposting the same question every day is just getting you more confused.
|
|
|
|
|
hey everybody
I want to implement file transmisstion between two client peer in
different LAN.
they get each Extranet IP and Port through http server(when they visit a
site like www.codeproject.com i will return other Extranet IP and Port)
when CLientA get ClienB Extranet Ip And Port ClientA will connect To ClinetB
in the same time ClientB Will Bind To Local Port and begin listen
my problem that can the connect oK ?,I have tested is fail but i want to know
why failed can someone tell me why
thanks
modified on Thursday, October 22, 2009 4:42 AM
|
|
|
|
|
Hi,
Sounds like an excellent project. When will you have it completed?
Best Wishes,
-David Delaune
|
|
|
|
|
*click*
Message marked as answered.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
somebody who know the Principle may will help me to solve the problem
thank you
|
|
|
|
|
Hi jeansea,
Your question is very difficult for us to understand. Please improve the question and we can help you. You need to be very specific about the problem you are trying to solve.
Best Wishes,
-David Delaune
|
|
|
|
|
|
I have created a Windows service in VC6 and wanted to know how can I implement a WndProc to handle Windows Messages inside the same.
Regards,
Kushagra
I hate coding but I luv to develop
|
|
|
|
|
You want to get the message of which window(s)?
i cannot understand.
Величие не Бога может быть недооценена.
|
|
|
|
|
Standard Windows Messages like WM_COMMAND,WM_TIMER and so on
|
|
|
|