|
Learn formatting strings.
Pick your bags and go back to the school ))
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: Pick your bags and go back to the school
Hey, I think this is correct solution for this guy.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
i am not fetching system date but i am fetching date from mysql table
or u tel mw that solution is in this link but that link fetch only system date
Please mail me
|
|
|
|
|
yogendra kaushik wrote: i am not fetching system date but i am fetching date from mysql table
or u tel mw that solution is in this link but that link fetch only system date
You just have to modify 2006-05-05 date which you fetched from the MYSQL database
CString strTestDate("2006-05-05");<br />
or strTestDate=Fetcheddate;<br />
and System Time is taken for synchronisation of the date which is already explained in the post.
Hope you got the solution now.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
If the date is returning from mysql is in different format then ou have to eplcitly reformat it....
and if not then you can change the format of date in MySql database.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Hello,
Can anyone tell me how to specify the file name to open using PostMessage,
The code:
PostMessage(hwnd,WM_COMMAND,(WPARAM)ID_FILE_OPEN,NULL), works fine but still I have to specify the file name.
Note: the window i posted the message is another application window, this is what I asked for!
PostMessage(hwnd=Other app main frame window, ...)
Kind regards.
Wassim
-- modified at 4:49 Tuesday 13th June, 2006
|
|
|
|
|
|
If your intention is to open a known file in an MFC application without prompting the user, I think you can try this:
AfxGetApp()->OpenDocumentFile("file path");
|
|
|
|
|
As u have to debug my program,i use breakpoint in my program,after i press f5 to start debugging,but an error dialog is came like that "One or more breakpoints cannot be set abd have been disabled.Execution will stop at the beginning of the program"
And the breakpoint get disabled and i could not debug the program.
How can i do this?
Pls..
|
|
|
|
|
It seems like you have a Release configuration active. Setting the Current Configuration to Debug should help.
this is this.
|
|
|
|
|
Check if your program is compiled under debug mode and contains debug information (you have to check that in the project properties which are specific to the IDE you are using). Check also that the breakpoint is on a valid line (a line that produces assembler code). For example, putting a breakpoint on a variable declaration won't work (as it doesn't produce any assembler instruction).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hey buddies... Just want to ask if anyone knows how to have total control in using C++.. I'd rather have my own interface rather than that already-made-c++ - controls.. Thanks pals...
The death of April is the genesis of all sorrows..
|
|
|
|
|
What do you exactly mean by total control?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Do you mean Owner-Drawn controls? The controls available in the VC++ IDE are standard Windows® controls.
They are not just pictures.
Anyway, your question is not clear.
this is this.
|
|
|
|
|
Are you talking about Activex/Components currently installed into system?
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hi
I am working in MFC. I have placed a multiline edit box on my dialog box. what i am doing it is that i write some text in another edit box and append it with the previous data in multiline text box. How can i force the text that is being appeneded to multiline text box in such a way that it is always displayed in new line.
I tried this thing.
multilinetextbox = multilinetextbox + "\n"+ texbox;
But it does not work.
Please tell me some tip to do it.
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
You should also have added a '\r' to it like: "\r\n" .
this is this.
|
|
|
|
|
Assalamolaikum
Thank you very much. It works.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Try "\r\n" as line separator.
|
|
|
|
|
Thank you very much. It works.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
wrote:
multilinetextbox = multilinetextbox + "\n"+ texbox;
Use multilinetextbox = multilinetextbox + CString("\n"+texbox); which may reduce one extra call to CString constructer or + Operator
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
How can I trap all windows messages - not only the ones sent to my application but all messages in the system?
modified 9-Mar-17 17:21pm.
|
|
|
|
|
You will have to deal with the messages using Hooks.
It's a suggestion that hooks should only be used if necessary.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Daniel Kanev wrote: How can I trap all windows messages - not only the ones sent to my application but all messages in the system?
Check Here to get sample of message hooking.
Knock out 't' from can't,
You can if you think you can
|
|
|
|