Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MyVeryOwn FLL won't load
Message
 
 
To
04/04/2002 07:55:29
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00636723
Message ID:
00641161
Views:
22
Peter,

These DLLs do not get registered. You should be building a Windows Dynamic Link Library, not a COM DLL.

Did you model the VC++ project after one of them from my website? Those have all of the settings you need and they are hard to incorporate into a message here. One problem is that the options are set on about a dozen tabs in the VC++ project file.

What error are you getting?

The easily missed item is using the .DEF file to mark the exported functions:

; dequote.def : Declares the module parameters for the DLL.

LIBRARY "dequote"
DESCRIPTION 'dequote Windows Dynamic Link Library'

EXPORTS
; Explicit exports can go here
DeQuote @1
Reverse @2

These are case sensitive as is the VFP DECLARE command.

You just add the functions you want to export as Member Functions of the C++ code.

The easiest way to get something up and running might be to just add a test function into the DeQuote.DLL and see if you can get that working.

>It sounded like a great idea, and I'm sure it is, but we must be doing something wrong, because even when declaring the functions, the DLL does not work.
>
>Registering goes ok, but when calling the function(s), the DLL won't load.
>
>Like I wrote, I'm no C hawk, so I hav no idea if the guy's doing it right - but he assured me he went by the book on this.
>
>Are the any secrets we might have missed out on? Header files, libraries & stuff?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform