|
Why does everyone want everything for free ?
Like someone else said, learn C++ first, THEN MFC. My first book was 'teach yourself C++ in 24 hours' and while it didn't make me a professional programmer, it was a great *first* book.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Do you know already C++ ?
|
|
|
|
|
you can try the following books
1)Programming Windows With MFC by Jeff Prosise
2)Programming Windows by Charles Petzold
hope that helps.....
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
|
|
Have you considered searching MSDN or CodeProject? Examples are plentiful.
"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
|
|
|
|
|
actually I did , but I have not successfully find what I need ,
I need tutorials for a very beginner person, tutorials for starting a win32 project from the .net framework(the c++ projects in the .net visual studio)
thanks
There is always something to learn
modified on Wednesday, April 23, 2008 2:44 PM
|
|
|
|
|
Knowledgestudent wrote: actually I did , but I have not successfully find what I need ,
I need tutorials for a very beginner person,
Did you use Visual Studio to create a DLL project? One of the options is to create such a project with a few exported symbols (e.g., one class, one function, one variable). I changed the function to look like:
ADD_API int fnAdd( int a, int b )
{
return a + b;
} Use VS again to create a plain Win32 application that utilizies your DLL. You can either implicitly or explicitly link to it.
I called the exported function like:
FNADD fnAdd = (FNADD) GetProcAddress(hLibrary, "fnAdd");
if (fnAdd != NULL)
int sum = (*fnAdd)(6, 22);
"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 appologise for asking non programming question here, but i fail to find any better place. can anybody here suggest any good book on data structure with c++ to start with. i have a basic knowledge of c++.
Thanks and regards
amit
|
|
|
|
|
The ones currently on my shelf are:
Data Structures by Esakov and Weiss
Algorithms in C++ by Sedgewick
Data Structures and Algorithms in C by Weiss
Introduction to Algorithms by Cormen, Leiserson, and Rivest
Data Structures Using C by Tenebaum, Langsam, and Augenstein
"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
|
|
|
|
|
Google.com by Google
led mike
|
|
|
|
|
And just how in the world did you go about finding that one?
"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
|
|
|
|
|
thanks for reply. actually I am using Data Structure and Algorithms in C++ by Adam Drozdek. Is it the right one to start of.
Regards
amit
modified on Thursday, April 24, 2008 2:38 AM
|
|
|
|
|
in which college are you studying??
"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/codeProject$$>
|
|
|
|
|
astalavita baby :
"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/codeProject$$>
|
|
|
|
|
I using VS2003 - and i have some project that i wrote that have dll output.
I want to compile this dll and in the compile time i want to create also lib file - but the lib file will be in path A and the dll in path B.
How can i do it ?
Thanks.
|
|
|
|
|
Set different path for dll and lib file. I dont have VS 2003 so this may not be exact. DLL file path is in under Linker -> General -> Output file and LIB path is under Linker -> Advanced -> Import Library.
-Saurabh
|
|
|
|
|
I need to move some file to other place after compile the file - how to do it ?
thanks.
|
|
|
|
|
In the post build event write : copy "source file" "destination path".
-Saurabh
|
|
|
|
|
Hi all
I am trying to serialize my classes efficiently.
I would like first to set/get members of my classes AT ONCE to memory
i.e. using not a list of >> for each members but something to be called at once!
Have you any suggestion or path to follow?
Many thank
CODE I WANT TO AVOID
void Deserialize( std::iostream& stream, CMyClass& obj )
{
stream >> MyClass.iMyMember1;
stream >> MyClass.iMyMember2;
stream >> MyClass.iMyMember3;
}
|
|
|
|
|
Have a look at the write function sample of this page [^].
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
|
|
|
|
|
Wow! That's veeeeery nice function!!
Do you think that function sputn do the same i.e. is equivalent for std::streambuf?
Seems very good for efficient and quick operations!
P.S. If you Pass for Amsterdam and we will have a beer! ah!ah!
Manustone
modified on Thursday, August 28, 2008 6:13 PM
|
|
|
|
|
manustone wrote: Do you think that function sputn do the same i.e. is equivalent for std::streambuf?
Well, for serialization I would use read .
BTW, keep the beer cold, I'm arriving.
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
modified on Wednesday, April 23, 2008 11:03 AM
|
|
|
|
|
Hi Pallini
Many thanks for good suggestion!
Bye Manustone
|
|
|
|