|
Great post. Since I have worked almost exclusively in business development (one embedded product and one PS2/XBox game ) I tend to skew my thoughts to that segment. I will try to remind myself of the other aspects of the industry when reading these types of threads in the future.
|
|
|
|
|
|
Thank you for answering my questions.Can you give me some tips for learning MFC & C#,like recommanding some good books for read,it must be very famous so I can get it easily.
|
|
|
|
|
Jeff Prosise, "Programming Windows with MFC", Microsoft Press
It's the one standard compendium. Old, but good.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
bornunique wrote: ...so I can get it easily.
Are you allergic to work?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
bornunique wrote: it must be very famous so I can get it easily.
What is your C++ background? If you are just beginning C++ I don't recommend starting with a MFC book as they are mostly written for experienced C++ developers.
|
|
|
|
|
I am earning money to live by coding using MFC What else you need to know?
- NS -
|
|
|
|
|
Just recommand me some good books ,I know C++ but never used MFC,I need a book for me to start this journey.Thank you again!
|
|
|
|
|
Microsoft Foundation Classes(MFC) Library is created with Microsoft that customize win32 library(if you remember Win32 was for c and it has some limited) and insert some things to it.
|
|
|
|
|
Why does that answer to the OP question ?
Furthermore, your answer is not really correct. First, win32 is not for C. It has a C API but that doesn't mean that you need to write C code to use it. And it doesn't really have some limitations: everything you can do with MFC, you can do that with the win32 API also (of course, this will probably much more time, but still).
Second, MFC are basically wrapper classes around the win32 API, which mean they don't really add functionality, they just provide a OO wrapper.
|
|
|
|
|
Win32 Library and Win32 was written in c not for C++,MFC was originaly a customize of Win32 then it inserting object orientation(for example classes) to it also support of somethings was little in it.
|
|
|
|
|
Cedric Moonen wrote: First, win32 is not for C.
It is.
You can call it from C++ (due to the inherent backward-compatibility), but it is a simple C-API. Quite old fasioned C, that is. No object orientation or interfaces or derivation like e.g. GTK+ has.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
It's popular where I'm at for large applications
|
|
|
|
|
My advice would be to look at what you want to do and then examine which
language and/or framework is best for the job.
Do some research. Only you can know what's appropriate. Your decision should be based
on what the best tool for the job is and not the tool's popularity.
MFC, as mentioned in other posts, is a semi-object-oriented, C++ wrapper around the Win32
APIs. If Win32 is what you want to use for your Windows development, and C++ is your
language of choice (or the language you already know) then MFC is certainly an option.
MFC is still supported by Microsoft. There's new stuff added for VS 2008,
and there will be more new stuff added in the next Visual Studio version after
that.
Look into the .NET languages as well. The .NET framework provides many more
"canned" solutions to common programming tasks than MFC ever will.
Just my 2 cents...
Good luck!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Honestly take a look at the MFC videos on MSDN Channel 9 (sorry dont have the link handy).
Also if you are unsure of which type of skills companies are looking for (if thats what you are getting at), always take a look at job posting boards for those skills.
I can say from a personal view is that MFC is still needed and the push MS has done with MFC for the Visual Studio orcas release indicates that.
However what you will find is a lot of companies adopting C# as their programming language and tool set of choice. They usually believe that a garbage collector is safer and will speed up development.
You may also be interested in looking at C++/CLI.
one word of advice, do not learn one thing. Only one thing is permanent in life... and thats CHANGE ! ;)
|
|
|
|
|
what is meaning of const int * & int * const.
|
|
|
|
|
The difference is where the const applied; is it applied to the pointer, or what is being pointed to. The first one is a pointer to a const int , meaning that the pointer can change (you can have the pointer point to a different int ), but not what is pointed to.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
const int * a constant pointer to an int
int * const a int pointer to a constant int
it is a little confusing. And it isnt the best way to code such thing.
Greetings from Germany
|
|
|
|
|
i Think u r not clear from above two ans so i m explaing u ...
Pointer To Const
syntex:
int const *ptr;
or
const int *ptr;
that means they are pointer to const int. so we can't change the value of they are pointing. we can change what they r pointing....
for example:
int i = 10;
int b = 20;
int const *ptr = & i;
(*ptr)++ ; // will give error
ptr = & b ; // OK
Const pointer:
syntex :
int * const ptr1;
it is const pointer so what it is pointing is const so we must initialize at the time of declaration
so synetx is like
int * const ptr1 = & someintegervarible;
for example:
int i = 10;
int b = 20;
int * const ptr1 = & i; //required initialization
(*ptr1)++ ;//OK
ptr1 = & b; // Error
we also have
const pointer to const :
syntex :
int const * const ptr2 = & i; // required initialization
or
const int * const ptr2 = & i; // required initialization
Neither address which that pointer is pointing nor the value that pointer pointing will change.
Hiren Thakkar
|
|
|
|
|
I am creating an dll using VC++.NET, am using it for serial key validation(Customer Information) at Msi installation, while the dll is doing some process i want to execute an exe.
Using the code "ShellExecute(NULL,"Open","test.exe","TEST",NULL,SW_MAXIMIZE); " i can able to run the exe, but the exe should be presented in the WINNT folder, i want to run the exe, which may be presented in any part of the system(physical drive). Also how to declare a string and assign a value in the VC++(sorry for this silly question, i am new to VC++).
Also is it possible to communicate an VC++ with SQL server? If possible, plz show me some examples, so that i can learn and implement in my project.
Thanks is advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
if you want to communicate with a SQL-Server I strongly recommand (tata): SQL
Look for samples of SQL, ODBC you'll find them.
Greetings from Germany
|
|
|
|
|
Hi
Thanks for your suggestion. Actually i am new to this concept. plz suggest me some simple sample source to learn
Know is Drop, Unknown is Ocean
|
|
|
|
|
|
Exelioindia wrote: Actually i am new to this concept
new to what? Searching? Learning?
CodeProject has a mountain of Articles about Database access using C++ and .NET. They all come with sample source code. Stop asking for people to give you stuff and start searching and reading.
|
|
|
|
|
There's many ways to access databases from C++.
For info on data access technologies included with Windows, see here[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|