Click to See Complete Forum and Search --> : Messages and LIBs


pfdeane
October 22nd, 2004, 12:05 PM
Hey peeps,

Searched for my question but didn't find answer so...
Got 2 questions here. Just started to use Visual C ++ 7, it's great but I'm kind lost.

1- How do I include a LIB? Already put the #include <rass32.h> but it gives me an error about not linking with the respective LIB.

2- How do I make my dialog gets the message from the rass LIB like (WM_RASDIALEVENT)?

Thanks,
Pedro Deane

TBONE917
October 22nd, 2004, 01:05 PM
i use VS 6.0 but i would assume the setup is pretty much the same.... to include libraries you can go to Project->Settings... the i think its the Link tab... then find the Object/Library Modules and add your library name there....

Then you should get the messages you want... try to use a SendMessage command to see if your message is defined and see if it is received in WinProc overloaded function if you have one

pfdeane
October 22nd, 2004, 09:44 PM
Great!

I searched the project -> settings menu (project -> properties in VC ++ 7) and found inside linker -> input the desired, additional dependencies. ;) (lazy to search, sorry)

But the messages question persists.
I'm not using Win32Api, I'm using MFC, so I never needed any extra message because I use the ClassWizard, but this particular message doesn't appear in Wizard so how do I get it?

Thanks again,
Pedro Deane