Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C callable function
Message
 
 
À
07/08/2002 07:41:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00686637
Message ID:
00687027
Vues:
56
Steve,
Because eveything is a fixed length, the structure is very easy to translate. Pass in a string with length 660. When the function works, you will have to parse out each attribute using SUBSTR().

as for the entry point error, C functions are case sensitive. Most likely, you have a case problem in the DLL declaration. Check the documentation again. If you don't have that and you have Visual Studio 6, you can use the Depends utility to open the DLL and see all the function names.

HTH.

>Hi Larry,
>
>In the VB there are two more statements. I tried to run it a got "cannot find entry point OIAorder_status in the dll"
>
>Thanks for your help Larry.
>
>Steve
>
>
>***
>Public POrderStatusA As POrderStatus
>***
>
>***
>Public Type POrderStatus
> OrderID As String * 20
> operation As String * 1
> ImageFile As String * 260
> Orig As String * 5
> Media As String * 2
> State As String * 1
> Status As String * 5
> Priority As String * 1
> targsvr As String * 4
> targline As String * 2
> outputsvr As String * 4
> OutputLine As String * 2
> dupswanted As String * 5
> dupsdone As String * 5
> tsinit As String * 14
> tsread As String * 14
> tsdone As String * 14
> Percent As String * 1
> spare As String * 300
>End Type
>***
>
>
>>****************************************
>>Public Declare Function OIAorder_status Lib _
>> "oi_api" _
>> Alias "#14" _
>> (ByVal hImgHdl As Long, _
>> ByVal OrderID As String, _
>> POrderStatusA As POrderStatus) _
>> As Long
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform