H
Huseyin Altun
I have DLL written in Delphi 6. Its prototype is below:
function EnumUserGroups(Proc: TEnumUserGroupProc; APtr: Pointer):
LongInt; stdCall;
I have declared it in c# like below: (VS 2003)
[DllImport(POSDLL)]
public static extern int EnumUserGroups(UserGroupCallBack callBack,
object obj);
when I call it from c# like:
POSSRV.EnumUserGroups(new UserGroupCallBack(Form1.GetUserGroup), null);
in delphi side the parameter APtr is not nil.
What is the correct definition of the function in c# side?
thanks.
Huseyin Altun
function EnumUserGroups(Proc: TEnumUserGroupProc; APtr: Pointer):
LongInt; stdCall;
I have declared it in c# like below: (VS 2003)
[DllImport(POSDLL)]
public static extern int EnumUserGroups(UserGroupCallBack callBack,
object obj);
when I call it from c# like:
POSSRV.EnumUserGroups(new UserGroupCallBack(Form1.GetUserGroup), null);
in delphi side the parameter APtr is not nil.
What is the correct definition of the function in c# side?
thanks.
Huseyin Altun