And, as for any C function, the entry point declaration without .def file works for member functions too.
Vlad
>You can use member functions as the entry points. From VFP they look like plain functions, but they are member functions of the class derived from CWinApp. For example:
>
>In the .h
>
>class CSpyinApp : public CWinApp
>{
>public:
> int FilterData( int nStringLen, int nCharsPerWord, LPSTR cStringData );
> CSpyinApp();
>
>// Overrides
> // ClassWizard generated virtual function overrides
> //{{AFX_VIRTUAL(CSpyinApp)
> //}}AFX_VIRTUAL
>
> //{{AFX_MSG(CSpyinApp)
> // NOTE - the ClassWizard will add and remove member functions here.
> // DO NOT EDIT what you see in these blocks of generated code !
> //}}AFX_MSG
> DECLARE_MESSAGE_MAP()
>};
>
>In the .cpp:
>
>int CSpyinApp::FilterData(int nStringLen, int nCharsPerWord, LPSTR cStringData)
>{
>// code here
>}
>
>In the .def:
>
>; spyin.def : Declares the module parameters for the DLL.
>
>LIBRARY "spyin"
>DESCRIPTION 'spyin Windows Dynamic Link Library'
>
>EXPORTS
> ; Explicit exports can go here
> FilterData @1
>
>
>>You can't DECLARE to objects and object methods. If you want to use classes etc.
>>in VC++ you'll have to create wrapper functions that call the object and
>>then DECLARE those in VFP.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only