Dll Impot?
-
Hello, For importing function i use
[DllImport(DLLNAME)] public static extern int function(Type Args);
into my class. and it's working fine. But for import variable which is exported by dll this method doesn't work. It will get error that "DllImport is not use for this item only use for method import". And forextern
keyword say that this will not use for this item. Plz help me. regards,
Divyang Mithaiwala
-
Hello, For importing function i use
[DllImport(DLLNAME)] public static extern int function(Type Args);
into my class. and it's working fine. But for import variable which is exported by dll this method doesn't work. It will get error that "DllImport is not use for this item only use for method import". And forextern
keyword say that this will not use for this item. Plz help me. regards,
Divyang Mithaiwala
Create a function that will expose that variable's address, then you can write to it.
-
Create a function that will expose that variable's address, then you can write to it.
dll is not my one it is made by someone else. I just downloaded it from internet & import methods using definition givin in doccument.
Divyang Mithaiwala