|
Anu_Bala wrote: ...I found CComboCompletion variable type in it...How can i add that type to Varialbe Type.
It's either there or it's not.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm trying to find out what strings to enter into the output filename field of the linker section of project properties in order to make my project always have the compile date included in the output filename. Preferably year first, then month, then day, as this will make the numbers increment more logically. Separators such as hyphens or underscores between the numbers are acceptable, but not necessary. The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.
CaptJosh
There are only 10 kinds of people in the world;
those who understand binary and those who don't.
|
|
|
|
|
I am not sure if you can do that in VS. One way to do this is to create a bat file in which you rename the generated executable file and run that bat file in post-build events.
-Saurabh
|
|
|
|
|
CaptJosh wrote: The idea is that the compile date can act as a build number, and also will tell me at a glance which compile is from when, so I have an idea of what features are in the build based on when I compiled. I did try digging around in the help files, but as usual for MS, they should be called "no help" files.
Does this help? -> http://support.microsoft.com/kb/q237870/[^]
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
This is is not what I was thinking of.
Let me describe exactly what I'm working with on the project file.
I right-click on the project in the sidebar after loading the solution. I click on properties from the popup menu and get a pop-up window of project properties which also has a sidebar. I click on "Linker" in the sidebar and the first field in the main area that shows is the Output File field. There I can change the filename. Is there anything I can enter in this field to make it automatically include the compile date in some form in the filename?
CaptJosh
There are only 10 kinds of people in the world;
those who understand binary and those who don't.
|
|
|
|
|
Hrm. I seem to have baffled the boards...
CaptJosh
There are only 10 kinds of people in the world;
those who understand binary and those who don't.
|
|
|
|
|
dear all
i want to display number what i calculated, my code is the folowing:
char buff[100];
MessageBox(buff,'number%d');
but compiler showed error: error C2015: too many characters in constant.
so what happened? thanks a lot
gentleguy
|
|
|
|
|
gentleguy wrote: MessageBox(buff,'number%d');
but compiler showed error: error C2015: too many characters in constant.
That's because you are wrapping 'number%d' in single quotes! Use double quotes "number %d".
By the way this won't work out, try this!
const int SomeNumber = 100 + 200;
char buff[100] = { 0 };
sprintf( buff, "My number is: %d", SomeNumber );
MessageBox( buff );
There is a function called CString::Format, if you are interested! And if you are further interested you can have a look at this[^].
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
modified on Wednesday, June 18, 2008 12:25 AM
|
|
|
|
|
are you trying to do something like this?
char buff[100];
sprintf( buff, "number %d", number );
MessageBox( buff );
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Sarath. wrote: char buff[100];
After working in painstaking conversion of MBCS code to UNICODE. Now, i prefer TCHAR instead of char
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Hi,
You may use like this also :
int num;
CString op;
op.Format("Number : %d",num);
AfxMessageBox(op);
::MessageBox(0,op,"Title",0);
Have Good Luck..
Jagdish Bhimbha
S/W Developer
|
|
|
|
|
who voted you down?? let me square it!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
For your strings you must be use of _T(" ") not ' '
|
|
|
|
|
Hamid. wrote: _T(" ") not ' '
Might be he want to convert character instead of string ....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
So I must be modify my reply.
|
|
|
|
|
No it will work don't worry!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Good C tutorial needed.
Hint: string literals must be enclosed by double quotes.
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
|
|
|
|
|
CPallini wrote: Good C tutorial needed.
Hint: string literals must be enclosed by double quotes.
would refer him/her for good C book
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
gentleguy wrote: MessageBox(buff,'number%d');
What in the world is this? The documentation plainly shows that MessageBox() expects four arguments.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have been created a tab control in dialog box (we called as Dialog Main). I add 3 frameless dialog box (we called as dialog A, Dialog B, Dialog C) in the tab control. The tab control working fine. I add three button (OK button, Cancel button ,Apply Button) in each frameless dialog box. However, when I clicked Cancel button in dialog A only dialog was closed. I want all dialogs(Dialog Main, dialog A, Dialog B, Dialog C) to be closed when I clicked OK of Cancel button inside each frameless dialog box(dialog A, Dialog B, Dialog C). Please anybody help me???
|
|
|
|
|
cb02061 wrote: hen I clicked Cancel button in dialog A only dialog was closed. I want all dialogs(Dialog Main, dialog A, Dialog B, Dialog C) to be closed when I clicked OK of Cancel button inside each frameless dialog box(dialog A, Dialog B, Dialog C). Please anybody help me???
Use AfxGetMainWnd()->PostMessage( WM_CLOSE ).
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Hi,
Actually i'm calling dialog box from SDI application.
When i use Use AfxGetMainWnd()->PostMessage( WM_CLOSE ) the whole application was closed.
I just want just dialogs(Dialog Main, dialog A, Dialog B, Dialog C) to be close.
|
|
|
|
|
cb02061 wrote: Actually i'm calling dialog box from SDI application.
cb02061 wrote: AfxGetMainWnd()->PostMessage( WM_CLOSE ) the whole application was closed.
I just want just dialogs(Dialog Main, dialog A, Dialog B, Dialog C) to be close.
You can then post this message(WM_CLOSE) to your dialog, or call EndDialog on this main dialog of yours.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Can u please explain me by sample codes?? Thanks a lot for ur reply
|
|
|
|
|
cb02061 wrote: Can u please explain me by sample codes??
GetParentOwner()->PostMessage( WM_CLOSE );
or
::EndDialog( GetParentOwner()->GetSafeHwnd(), IDCANCEL );
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|