Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler warning about missing procedure that is externa
Message
De
08/09/2000 08:14:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00413383
Message ID:
00414050
Vues:
17
>> Look at the EXTERNAL command in the VFP Help, that should do the trick.
>In your case EXTERNAL PROCEDURE NameOfExternalProcedure should be used.
>
>Frank,
>Thanks for the suggestion. Unfortunately, however, I tried the EXTERNAL PROCEDURE command but I still have the unknown reference. I must be missing something.
>
>
>My code includes:
>
>SET PROCEDURE TO utils.exe ADDITIVE
>EXTERNAL PROCEDURE dbf2rtf
>
>lconverted = dbf2rtf("mytable.dbf","mydocument.rtf")
>
>
>When I compile, I get the error message that the dbf2rtf procedure/function is unknown.
>
>Am I doing something wrong?
>
>Thanks,
>Jeff

Jeff,

1) Make a dummy program called dbf2rtf.prg with something simple in it such as:
RETURN .F.

2) Compile your project and let the compiler add the dummy compiled code to the project. Since the dbf2rtf function now exists, the error message will no longer appear.

3) Then run MODIFY PROJECT and drill your way down to the dbf2rtf code module. Then right click and choose the EXCLUDE option.

4) Then re-compile your project again, and this time your .exe will not have any errors, however, the dummy dbf2rtf function is excluded from the .exe program. At run time, your program will search for a dbf2rtf function and will find it in the utils.exe program since you have the "SET PROCEDURE TO utils.exe" command.

David,
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform