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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao