I have a very big problem!
( i'm importing that dll!)
I have a c++(i think 6.0) .dll and .NET makes nothing!
In VB 6.0 it works great, but in VB .NET not!
So I import it with DLLImport but it do everything well,
but at finish the arraylength is only 1 and the result is a integer, that is nowhere in the dll!
So i think .Net can't really find the Entrypoint or can't interprete it!

I import it as following:

VB Code:
  1. <DllImport("C:\VB_SchockKurve.dll", EntryPoint:="CalculateSchockDaten", CallingConvention:=CallingConvention.ThisCall, CharSet:=CharSet.None, SetLastError:=True, ExactSpelling:=True)> _
  2.     Public Shared Function CalculateSchockDaten(ByRef arr1() As Long, ByRef arr2() As Single, ByRef arr3() As Single) As Long

and the result:
VB Code:
  1. result = CalculateSchockDaten(array1, array2, array3)

the code is right and options of the function are the right too.
But where the problem? Can't .Net import c++ 6.0 dlls???
Can't it find the entrypoint(but there is no error, but probably it can jump to nothing!)?

I have anybody here an idea?


mfg trevex
PS sorry for bad english, i'm just a german pupil