problem z importowaniem dll'a

0

Witam

Mam problem przy importowaniu dll'a

Robie tak:

[DllImport("vhrgrablinkcontrol.dll",SetLastError=true,CharSet= CharSet.Unicode,ExactSpelling=true,CallingConvention= CallingConvention.StdCall)]
public static extern int PSL_VHR_Init(string path);

I mam tak:

Exception System.TypeLoadException was thrown in debuggee:
Could not load type 'camera.MainClass' from assembly 'camera, Version=1.0.2645.18697, Culture=neutral, PublicKeyToken=null' because the method 'PSL_VHR_SetTriggerMode' has no implementation (no RVA).

[???] POMOCY !!!

0

sam pisałeś tą bibliotekę?

0

nie bibioteka jest dostarczana przez producenta sprzetu ktory ma obslugiwac program

0

a nie musisz przypadkiem podać jeszcze EntryPoint :>, np
[DllImport("vhrgrablinkcontrol.dll", EntryPoint = "PSL_VHR_Init", SetLastError=true, CharSet= CharSet.Unicode, ExactSpelling=true, CallingConvention= CallingConvention.StdCall)]
public static extern int PSL_VHR_Init(string path);

0

dodanie EntryPoint nie pomaga :(

0

to niestety nie mam innych pomysłów poza tym, że biblioteka jest źle napisana

1 użytkowników online, w tym zalogowanych: 0, gości: 1