I asked about c# and harbour dll, but there was no answer. I try otherwise..
There is a function in the source *.prg code:
function test()
local a := 2
return a
I found out that in the built dll file the function name is HB_TEST()
and the entry point 335. I try to use this dll in c# .net application.
class Program
{
[DllImport("c:\\roboczy\\mwdll.dll", EntryPoint = "#335")]
public static extern int SampleMethod();
static void Main(string[] args)
{
int a = SampleMethod();
System.Console.WriteLine(a);
System.Console.ReadKey();
}
}
The program raises the memory violation exception.
What of type returns the function?
Is there anybody who sucessfully use a harbour dll in c, c++ applications?
Thanks in advance
--
/|/| _ _ ' __ ( /_ _ _ __ /
/ |(// /(/_) /_ |/|/(/((// (-_) /_(//(
----------- [email protected]
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users