- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have made a call to CoFreeUnusedLibraries
inside a com server which is built like a win32 app.
However, it cannot resolve the call to the above win32 routine.
I've tried adding use dfwin, use ole32, use oleaut32
to no avail.
What library or module are we to link to?
Thanks, TimH
inside a com server which is built like a win32 app.
However, it cannot resolve the call to the above win32 routine.
I've tried adding use dfwin, use ole32, use oleaut32
to no avail.
What library or module are we to link to?
Thanks, TimH
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CVF doesn't provide an interface to all the routines, in this case you need to defined an interface such as:
Then link against ole32.lib of course and you should be set.
James
interface subroutine CoFreeUnusedLibraries() !DEC$ ATTRIBUTES ALIAS: '_CoFreeUnusedLibraries@0' :: CoFreeUnusedLibraries end subroutine end interface
Then link against ole32.lib of course and you should be set.
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hot diggity Dawg,
Where would you look up somehting like that?
Plus that the doc clearly says:
...To include the Win32 interface definitions, do one of the following:
Add the statement USE DFWIN to include _all_ Win32 API routine definitions.
...
Thanks for the hint.
Tim
Where would you look up somehting like that?
Plus that the doc clearly says:
...To include the Win32 interface definitions, do one of the following:
Add the statement USE DFWIN to include _all_ Win32 API routine definitions.
...
Thanks for the hint.
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