|
Go into your project properties, you'll find a 'tab' (depends of which IDE you are using) called "Build events". You can specify a command line to execute during the "Pre-Build Event".
|
|
|
|
|
|
Y K Kishore Kumar wrote: run the applications developed in Visual C++ 6.0 / MFC in Windows Vista
Okay... just for your information, you will probably get no help at all unless you provide at least some information as to what your problem is.
Why is it that you think that MFC apps are not compatible with Vista?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
Did you use the /MAKEVISTACOMPATIBLE compiler switch?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
It's deprecated.
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
|
Hi everybody,
if i add a text to the statusbar, the font-color is gray and not black.
The same like the NUM,CapsLock and ScrollLock, if one is deactivated the
label "NUM" in statusbar is gray, if it's activated it's black.
What i need to change to color it to black?
Big thanks
|
|
|
|
|
This is a very brief post to point you in the right direction...
You would do it by creating an onUiUpdate message for that pain ID. Then create an OnUiUpdate message handler and simply set the text and then enable it like this:
void CMainFrame::OnUpdateCurPosIndicator(CCmdUI *pCmdUI)
{
pCmdUI->SetText("MyText"); // Just a simple text string...
pCmdUI->Enable(1); // this is what will remove the "grayed" text
}
|
|
|
|
|
Could someone give me a link or a couple to some good articles on MFC serialization?
Thanks in advance!
Keshav Kamat
India
|
|
|
|
|
Keshav V. Kamat wrote: Could someone give me a link or a couple to some good articles on MFC serialization?
Have you typed "MFC serialization" into the search box at the top of the page?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
yup. have done that. there are quite a few articles.
i have tried googling it out too.
I wanted some other sites offering a similar content with different styles.
Keshav Kamat
India
|
|
|
|
|
There are a few articles there and on MSDN to get you going. What's your problem specifically?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Keshav V. Kamat wrote: there are quite a few articles.
So what's the problem then?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Dear all
in C language we can create dynamic multi dimentional arrays by using malloc operator.
But how we can create multidimentional arrays by using new operator in C++.
Please note that length of each dimention is dynamic and is not apparant in compile time.
Regards
Mahdi
|
|
|
|
|
You can do that in C++.
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.
|
|
|
|
|
A code example for a two dimensional array:
int** pArray;
pArray = new int*[10];
for (int i=0; i<10; i++)
pArray[i] = new int[10];
This will create a 10 X 10 array.
|
|
|
|
|
For instance:
int ** p;
int n=3;
int m=4;
p = new int *[n];
p[0]= new int [5];
p[1] = new int [m];
p[2] = new int [10];
p[0][1]=13;
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.
|
|
|
|
|
what about std::vector<std::vector<YourType> >
|
|
|
|
|
|
I am trying to develop an application which will be able to convert several
European currencies to Euros and back, using visual C++
I need to convert 3 currencies to euros and theother way.
I also need to connecting it to a database where currency data
from at least 10 European countries will be stored.
The user must be able to choose to convert any of the
currencies included in the database, or add more currencies of his
choice, using application’s database link.
Can you help me out ?
|
|
|
|
|
cmvr wrote: I am trying to develop an application which will be able to convert several
European currencies to Euros and back, using visual C++
Not a daunting task.
Please make, at least an attempt, then post specific questions whenever you find yoursef in troubles.
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.
|
|
|
|
|
|
Programm3r wrote: But as far as I can see there is no semicolon missing !!
There is. To complete class defintion, semicolon must be there.
So class CMyClass {} is not valid statement, its valid when you give semicolon.
Prasad
MS MVP - VC++
|
|
|
|
|
prasad_som wrote: So class CMyClass {} is not valid statement, its valid when you give semicolon
I am well aware of that fact, I was trying to say that I did put a semicolon after the class definition.
But I include this file shlobj.h and then I receive the error, when I comment this file out the project builds successfully.
Why is this ???
Many Thanks.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|