|
steffw wrote: I've programming experience with c# (2 years)...
u have 2 years of programming experience in C# and you are trying to learn C++ now???
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
I got your point though I don't see it is surprising. I know lots of people who know C# [and/or Java] but have no clear understanding of what is C++; they think C++ is hard to learn and to use so why to do hard things when one could earn by 'easy programming'. But I think C++ is great and in any time with any experience if someone has decided to learn it, by no matters it is late.
--
=====
Arman
|
|
|
|
|
Arman Z. Sahakyan wrote: I don't see it is surprising.
well, i did find it a little surprising. I believe that most of the people learn programming starting with C/C++, which i still believe is the right approach.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
not at my school
The guy who is trying to teach programming is a disaster...
Stef
|
|
|
|
|
steffw wrote: The guy who is trying to teach programming is a disaster...
This is the scenario in most of the schools and collages i suppose.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
Like everyone said, C# and C++ are very different, you should work through a book even if you know a lot of stuff already.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
no problem, do you know a good book about it?
What are your experiences?
Stef
|
|
|
|
|
You just go through BOOK Programming in C++ Written by Balgurus wamy.
Avadhut
Software Developer
|
|
|
|
|
You just go through BOOK Programming in C++ Written by Balguruswamy.
Avadhut
Software Developer
|
|
|
|
|
Since you are used to programming, i can recommend you the following books (in no order of priority).
The C++ Programming Language - by Bjarne Stroustrup.
C++ - The Complete Reference.
C++ Primer - by Stanley Lippman and Josse Lajoie.
you can use any of the above book to start with.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
Avadhut_mane wrote: Programming in C++ Written by Balguruswamy.
Nah... i guess its good for beginners and not for someone who already has a programming experience.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
Thank you for the reply
i will consider it
Stef
|
|
|
|
|
|
Try Koenig/Moo "Accelerated C++" (Teaser here[^])
A little old, but your target isn't moving too fast....
Failure is not an option - it's built right in.
|
|
|
|
|
|
|
|
hmmm.. looks usefull!
Thanks!
Stef
|
|
|
|
|
You're welcome,learn it early;)
|
|
|
|
|
How do I add a bitmap to a MENU
|
|
|
|
|
See Here[^] & here.[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You just search BCMenu on google .You will get Project for Bitmap on Menu
Avadhut
Software Developer
|
|
|
|
|
Avadhut_mane wrote: search BCMenu on google
I think I saw BCMenu on the codeproject.;)
|
|
|
|
|
|
Hi All!
I have a Working Thread that send a message to the application by ::PostMessage, in parameter WPARAM a put it a pointer to a new class instace:
SEND CODE
UINT CServerSocket::ThreadPipe(LPVOID pParam)
{
.
.
.
while(*bContinue) {
EnterCriticalSection(&m_csPipeMsg);
.
.
.
pManageEventCommandData = new CGeneralData();
pManageEventCommandData->SetSocketAddress(*pSocketAddress);
pManageEventCommandData->SetEvent(EventQCDReceiveSocketACK);
::PostMessage(aHwnd,WM_USER_MANAGE_EVENT_COMMAND,(WPARAM)pManageEventCommandData,(LPARAM)0);
.
.
.
LeaveCriticalSection(&m_csPipeMsg);
::Sleep(200);
}
.
.
.
}
RECEIVE CODE
When I receive message the class instance is delete
LRESULT CMainFrame::OnManageEventCommand(WPARAM wParam, LPARAM lParam)
{
int nManageEventResult;
CString sMessage;
CGeneralData* pManageEventCommandData= reinterpret_cast<CGeneralData*>(wParam);
if( pManageEventCommandData == NULL )
return 0;
if( pManageEventCommandData != NULL ) {
delete pManageEventCommandData;
pManageEventCommandData = NULL;
}
return 0;
}
This work fine, but the problem is......sometimes when I close the application I see memoryleaks,
I think that the problem is legacy to the fact that the PostMessage does not come received and the class remains allotted...but I not sure...
Any Idea
Thanks in advance
Too many plans make the health badly!!
|
|
|
|