Click here to Skip to main content
16,020,706 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Declare Function LCSI_SATGRAMS! Lib "Caldata.DLL" (ByVal temp_C As Single, ByVal meters As Integer)


What I have tried:

public int LCSI_SATGRAMS! Lib "Caldata.DLL" (single temp_C,int meters)
Posted
Updated 29-Dec-17 1:16am
Comments
pkfox 29-Dec-17 6:52am    
Have a look at DllImport

1 solution

You need to use a DllImport attribute on your declaration.
Try this, but be prepared to modify it yourself, I don't know anything about your DLL file so I have to guess.
C#
[DllImport("Caldata.dll")]
public static extern int LCSI_SATGRAMS(float temp_C, int meters);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900