|
Along with any books on programing with MFC, you should look at all the great totorials on this site. As well as those presented at other sites dedicated to programing.
Trust in the code Luke. Yea right!
|
|
|
|
|
I think you should learn a little Win32 before you move on to MFC so you get a better idea of what's going on. Try Charles Petzold: Programming Windows 5th edition. I jumped into Ivor Horton's book at the beginning but was lost with all the pre-made code with MFC so I tried Win32 and I like it so much that I stuck with it.
|
|
|
|
|
Sorry some thing went wacked while I was trying to replay to this. Let's try agian.
You jumped into the wrong thread. I just recommended the totorials on this site and others that are dedicatated to programing as an addition to books recommended by others. As for Charles Petzold, I highly recommend it, since too many of us have gotten tied up in C++/OOP and forgoten the basics upon which it is all founded. C++ and MFC is great (minus the bugs) but it hides all the basic implementations ( aka. how it all works ). There are a few books on my shelf I could have sujested but they are far past what I would recommend to some one new in this area of programming.
As for 'Ivor Horton's' book I have never read it, may be I'll take a look to see if it is worth may time.
FYI: Most Visual C++/MFC Books are a rehash of whats in the MSDN Library.
Trust in the code Luke. Yea right!
|
|
|
|
|
Is there any article on CodeProject about adding an icon in a statusbar?
I have searched but found nothing!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Do you mean system tray(the place where the clock is) then yes:
Adding Icons to the System Tray[^]
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
one year of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru and Crystal Ace.
|
|
|
|
|
No, I mean the statusbar (CStatusBasr ) of a windows form or dialog on the bottom edge of the form.
|
|
|
|
|
|
I am trying to use CAsyncSocket to connect to the server
and wrote the code below:
...
CAsyncSocket asocket;
asocket.Create();//ok
asocket.Connect("server",999);//always failed
...
can anyone tell me what's the reason and how to resolve this problem.
thanks a lot.
|
|
|
|
|
did u call AfxSocketInit?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
yes, I called AfxSocketInit()
the problem is why CSocket works ok,but CAsyncSocket not?
thanks
|
|
|
|
|
GetLastError() will tell ya
|
|
|
|
|
thanks for your reply,
the error code is 10035
but i want to know what's the difference between CAsyncSocket and CSocket.
can you plz told me about that?
many many thanks
|
|
|
|
|
CSocket does work blocking (with background processing of Windows messages), CAsyncSocket does not block. That's why you get error 10035 "A non-blocking socket operation could not be completed immediately".
You should read example code to study CAsnycSocket's concept. In your case you would override OnConnect() handler.
|
|
|
|
|
Many thanks dear Moak , thanks for your kind advice,
and now the problem is gone.
|
|
|
|
|
Many thanks dear Moak , thanks for your kind advice,
and now the problem has gone.
but i am still not very clear why CSocket could do that?
Is not CSocket some kind of async socket?
|
|
|
|
|
I wrote a MFC ActiveX control and i want to define some mnemonic keys for it, but my OnGetControlInfo implementation doesn't get called by the Test Container.
Do you know why?
rechi
|
|
|
|
|
hi,
I want to make an program that reads the content of a listbox from a different source. The reason is, if there are a 1000 records requested over a network it only has to load the records that are shown. Causing that the user doesn't have to wait for the downloading of all the 1000 records.
the way i'm doing it now is by filling the listbox with empty records:
<br />
for (int i = 0; (!(i > Db.GetCount())); i++)<br />
{<br />
m_MyListBox.InsertString(i, "");<br />
}<br />
Then, Wenn the user wants to see a different part of the listbox i update the data:
<br />
int cur, max;<br />
<br />
cur = m_MyListBox.GetScrollPos(SB_VERT);<br />
max = Db.GetCount();<br />
<br />
if (!(cur + 5 > max))<br />
{<br />
max = cur + 5;<br />
}<br />
<br />
for (int i = cur; (!(i > max)); i++)<br />
{<br />
m_MyListBox.DeleteString(i);<br />
m_MyListBox.InsertString(i, Db.GetItem(i));<br />
}<br />
Now, I want to run this function wenn the Scrollbar is moved, but i dont know witch message to catch. Anyone have the solution?
I hope my explaining of the problem is correct, my english isn't that great...
[]D [] []D []
|
|
|
|
|
Consider LVN_BEGINSCROLL and LVN_ENDSCROLL.
Kuphryn
|
|
|
|
|
Hi,
I have set up a global windows hook for WH_GETMESSAGE and it works. I receive messages for each thread. But I dont seem to be getting WM_NOTIFY message for some reason.
I then tried using WH_CALLWNDPROC which works. I see WM_NOTIFY messages. The problem with CALLWNDPROC is that you cannot change the messages but WH_GETMESSAGE can.
Does anybody know a way I can make WH_GETMESSAGE see WM_NOTIFY messages.
Thanks
Ceri
|
|
|
|
|
How to get individual objects stored in CObArray object after
calling serialize function for deserialization.(A novice)
LoVe FoR aLL HaTrEd FoR NoNe
|
|
|
|
|
loop on the size (int GetSize( ) const;) and use CObject* GetAt( int nIndex ) const;
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I have fallen across the problem .In the SDI with splittered-window program,my custom classes derived from CPropertyViewPage can not switch each other.
thanks for your help!
;P
CProperView CProperViewPage
|
|
|
|
|
Hi there,
this is not such a very concrete question, but anyway:
How do you make software with different language support??
I mean, when you have to make your output present in different languages like french, english, german... (not chinese or sth.)
I'm currently using different resources and stringtables, but it's like, um, circuitous, err, like a lot of work, especially when you have to do it afterwards...
So, how do you do it ?
Thanx!
Olli!
Olli
Make it idiot proof and someone will make a better idiot......
|
|
|
|
|
|
Thank you Roger, think this helps...
Olli
Make it idiot proof and someone will make a better idiot......
|
|
|
|