- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The cvf DLL has a questionable routine wrapped in a execption catching c-wrapper. Is there a way to export the c-wrapper to the outside world also?
yes, another cvf "wrapper" can wrap the c-wrapper and I know how to export that, but that trick is altogether too ugly.
Will appreciate any hints.
Tim
yes, another cvf "wrapper" can wrap the c-wrapper and I know how to export that, but that trick is altogether too ugly.
Will appreciate any hints.
Tim
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Should be possible. Either use _declspec(dllexport) in the code (immediately after type-spec), or create a .DEF file and add it to your project:
Jugoslav
EXPORTS MyCWrapper = _MyCWrapper@40where the former is exported name (as in ALIAS) and the latter is mangled name.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you,
__declspec(dllexport)
is the way to go.
__declspec(dllexport)
is the way to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav is right but indulge me, please, what do you expect to achieve by exporting the wrapper?
Ciao,
Gerry T.
Ciao,
Gerry T.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is a means to directly calling an otherwise exported routine in the DLL (from the outside) with exception catching protection.
Tim
Tim

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page