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

C / C++ / MFC

 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
CPallini22-Oct-09 0:17
mveCPallini22-Oct-09 0:17 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
002comp22-Oct-09 0:30
002comp22-Oct-09 0:30 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
CPallini22-Oct-09 0:41
mveCPallini22-Oct-09 0:41 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
Michael Schubert22-Oct-09 0:54
Michael Schubert22-Oct-09 0:54 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
Richard MacCutchan22-Oct-09 1:40
mveRichard MacCutchan22-Oct-09 1:40 
GeneralRe: how to use lpfnhook to keep view of dialog? Pin
David Crow22-Oct-09 3:10
David Crow22-Oct-09 3:10 
Questionexpression evaluation problem Pin
fcis200821-Oct-09 23:05
fcis200821-Oct-09 23:05 
AnswerRe: expression evaluation problem Pin
Rajesh R Subramanian21-Oct-09 23:15
professionalRajesh R Subramanian21-Oct-09 23:15 
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

GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 0:32
Michael Schubert22-Oct-09 0:32 
GeneralRe: expression evaluation problem Pin
CPallini22-Oct-09 0:54
mveCPallini22-Oct-09 0:54 
GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 0:55
Michael Schubert22-Oct-09 0:55 
GeneralRe: expression evaluation problem Pin
CPallini22-Oct-09 1:42
mveCPallini22-Oct-09 1:42 
GeneralRe: expression evaluation problem Pin
Michael Schubert22-Oct-09 1:49
Michael Schubert22-Oct-09 1:49 
GeneralRe: expression evaluation problem Pin
CPallini22-Oct-09 1:54
mveCPallini22-Oct-09 1:54 
JokeRe: expression evaluation problem Pin
Rajesh R Subramanian22-Oct-09 21:06
professionalRajesh R Subramanian22-Oct-09 21:06 
JokeRe: expression evaluation problem Pin
CPallini22-Oct-09 21:11
mveCPallini22-Oct-09 21:11 
AnswerRe: expression evaluation problem Pin
Cedric Moonen21-Oct-09 23:15
Cedric Moonen21-Oct-09 23:15 
AnswerRe: expression evaluation problem Pin
CPallini21-Oct-09 23:22
mveCPallini21-Oct-09 23:22 
AnswerRe: expression evaluation problem Pin
Stuart Dootson22-Oct-09 0:44
professionalStuart Dootson22-Oct-09 0:44 
Question[Message Deleted] Pin
Nicholas Amh21-Oct-09 22:51
Nicholas Amh21-Oct-09 22:51 
AnswerRe: Need urgent help for CFile read mode Pin
Richard MacCutchan21-Oct-09 23:04
mveRichard MacCutchan21-Oct-09 23:04 
QuestionIn different LAN Client know each Extranet IP and Port can they success connect? [modified] Pin
jeansea21-Oct-09 21:59
jeansea21-Oct-09 21:59 
AnswerRe: In different LAN Client know each Extranet IP and Port can they success connect? Pin
Randor 21-Oct-09 22:13
professional Randor 21-Oct-09 22:13 
GeneralRe: In different LAN Client know each Extranet IP and Port can they success connect? Pin
Rajesh R Subramanian21-Oct-09 22:44
professionalRajesh R Subramanian21-Oct-09 22:44 
GeneralRe: In different LAN Client know each Extranet IP and Port can they success connect? Pin
jeansea22-Oct-09 17:25
jeansea22-Oct-09 17:25 

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.