Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ DLL help
Message
 
À
20/08/2008 19:54:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01340071
Message ID:
01340686
Vues:
11
Hi James,

>Warning 1 warning LNK4003: invalid library format; library ignored d:\projects\Pope\FSSample\FSSample\FSSample\SampleSelectDLL.dll 1

This sounds as if you had specified the DLL file instead of the LIB file in the Linker properties (where you also have WINAPIMS.LIB).

> CString s1( (char *) _HandToPtr(parm->p[0].val.ev_handle));

Sorry, forgot the cast operation.

>I can't get the third float parameter to work. Get an erorr that says can't convert float * to float.

How are you getting the third parameter? You don't have to pass the value as a string. Instead defines the parameter type in the Foxinfo structure as "CCN" instead of "CCC". Then use

parm->p[0].val.ev_real

as the value for the third parameter.

> I added #define _AFXDLL that fixed the compile error but maybe the dll does not like this?

If you can compile, you should try the FLL. This is getting into regions where my knowledge bases on having it done once or read about. <s> When writing C++ libraries I tried to avoid MFC where ever I could.
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform