Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Embedding lookup tables on a DLL
Message
 
À
02/01/2013 23:27:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01561178
Message ID:
01561187
Vues:
92
>I don't think you can SET PROC to a DLL. You can SET PROC to an FXP, PRG, etc.

If I recall right you can do this though:
SET PROCEDURE TO SomeFile.prg in SomeDll.dll
A DLL is basically an APP file wrapped in a small DLL wrapper.

+++ Rick ---

>
>
>>I have build a DLL in VFP 9 including some lookup tables and one dummy OLE public class in order to avoid this error.
>>
>>The path is defined in the main.prg.
>>
>>In a procedure prg I put this code to open a DBF
>>
>>
>>PROCEDURE USE3
>>PARAMETERS MDBF
>>IF NOT USED (MDBF)
>> USE (MDBF) IN 0
>>ENDIF
>>
>>SELECT (MDBF)
>>
>>
>>
>>In the calling code I put
>>
>>SET PROCEDURE readonlytables.dll ADDITIVE
>>=use3(mylookuptable)
>>
>>
>>
>>This cause the error File does not exist.
>>
>>What I´m doing wrong or I must add ?
>>
>>
>>Thanks.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform