Link to home
Start Free TrialLog in
Avatar of djogon
djogon

asked on

From Borland to VC 6 and MFC (OnMouseMove)

I am just begining to use VC++ 6.0. I have been using the Borland (Inprise) products for years, but it seem that every employer wants VC?! The problem is that I don't know how to map WM_MOUSEMOVE message for CButton. In ClassWizard I can map only BN_CLICKED and BN_DOUBLECLICKED. It is frustrating. By the way - I can't run ComCntrls1(2) sample applications (shipped with VC 6) on my system. The programs compile OK, but I receive Assertion Failed in Auxdata.CPP in this line ASSERT(hcurWait != NULL); I also get a bunch of these: Loaded 'C:\WINDOWS\SYSTEM\OLEPRO32.DLL', no matching symbolic information found.???????? Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

It may take some getting used to, but in a little while you will be glad you switched to VC.  
Well, i have to admit that i also used Turbo/Borland C++ up to v3.1, then i started to go for gcc and UN*X ;-) - there's a little but significiant advantage using MS compilers when developing for MS platforms: No compiler manufactures is that 'up to date' as MS is (strange, eh? <s>), concerning the newest technologies and - not to forget - headers, libraries, documentation...
I use both BC Builder and VC.  I find the two incomparible.  VC's debugging features are light years ahead of BC's, as is the one line help.  BC also has serious mistakes in its libraries.  (VC probably has some too, but I'v never experienced them.).  BC's user interface is pretty terrible too.  The only reason I use BC is that it compiles about 10 times faster than VC.
Well, i also use Watcom - the compile times are a nighmare, but the optimizer is a dream...
Avatar of djogon

ASKER

Thanks jkr. I was afraid that I must derive a new class which is not too bad - I was just hoping for some VC help on that! There is no cursor resource IDC_WAIT in ComCntrls sample project, but isn't IDC_WAIT system HourGlass cursor? Shouldn't system cursors be accessable without equivalent cursor resource in .rc file or the Microsoft people have forgot to put it there. Thanks for your answer and thanks to other people for their comment about Inprise C vs Microsoft C. I will accept the jkr answer, but please try to solve that sample application problem. Could it be that I have some different version of some system files?!

Well, IDC_WAIT is defined in winuser.h... i actually don't know which system DLL contains this resource, but it wouldn't be the 1st time that a wrong version of comctl32.dll causes trouble... Meanwhile, you might want to add this resource to the sample projects by yourself ...
Avatar of djogon

ASKER

Thanks jkr!