mars
asked on
How to use OWL class from lib or dll ?
Title - How to use OWL class from lib or dll ?
Sdk - BC5/Win95
Hi
I've made a control by using OWL class (TControl ....), and i've put it in a static lib file (for exe).
Here is my header :
class _MYCONTROLCLASS Txxxxxx : public TControl
{
..........
I compiled my sources in a dynamic way, replacing _MYCONTROLCLASS by _export.
And everything are ok.
To use my new lib file in another project, i replaced _MYCONTROLCLASS by _import and the linking process told me : >> Error: Unresolved external 'TWindow::Dispatch(TEventH andler::TE ventInfo&, int,long)' referenced from module notetabx.cpp <<
What's wrong with my method ?
Is there a method who also works with DLL ?
Thank you
Dan
Sdk - BC5/Win95
Hi
I've made a control by using OWL class (TControl ....), and i've put it in a static lib file (for exe).
Here is my header :
class _MYCONTROLCLASS Txxxxxx : public TControl
{
..........
I compiled my sources in a dynamic way, replacing _MYCONTROLCLASS by _export.
And everything are ok.
To use my new lib file in another project, i replaced _MYCONTROLCLASS by _import and the linking process told me : >> Error: Unresolved external 'TWindow::Dispatch(TEventH
What's wrong with my method ?
Is there a method who also works with DLL ?
Thank you
Dan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try to leave the _export tag in you exe too :) ( i.e. don't replace it with _import )