S
shaps
hi!
how can i convert C++ code to
[b:086285aeef]C#[/b:086285aeef]?
[b:086285aeef]cpp: [/b:086285aeef]
#include "library.h"
TProcReadIEEE32 ReadIEEE32;
HINSTANCE hOwenLib;
...
hOwenLib = LoadLibrary("library.dll");
ReadIEEE32 = (TProcReadIEEE32)GetProcAddress(hOwenLib,"ReadIEEE32");
...
float val;
int tm;
...
res = ReadIEEE32(8,0,"rd", val, tm, 0);
printf("rd=[%f], t=[%5d]\n", val, tm);
[b:086285aeef]library.h: [/b:086285aeef]
...
typedef int (_stdcall *TProcReadIEEE32)
unsigned long, unsigned long, char *, float&, int&, int);
...
how can i convert C++ code to
[b:086285aeef]C#[/b:086285aeef]?
[b:086285aeef]cpp: [/b:086285aeef]
#include "library.h"
TProcReadIEEE32 ReadIEEE32;
HINSTANCE hOwenLib;
...
hOwenLib = LoadLibrary("library.dll");
ReadIEEE32 = (TProcReadIEEE32)GetProcAddress(hOwenLib,"ReadIEEE32");
...
float val;
int tm;
...
res = ReadIEEE32(8,0,"rd", val, tm, 0);
printf("rd=[%f], t=[%5d]\n", val, tm);
[b:086285aeef]library.h: [/b:086285aeef]
...
typedef int (_stdcall *TProcReadIEEE32)
unsigned long, unsigned long, char *, float&, int&, int);
...