I have a c++ dll with functions it in it use pointers. How can i use this in c#?? i cant get it to work. Below is my code
this is the c++ dll function header
BOOL LAPLSEC_GetLoginPassword(LPSTR szUserPassword)
public static extern int LAPLSEC_GetLoginName([MarshalAs(string password);
I also tried
public static extern int LAPLSEC_GetLoginName([MarshalAs(UnmanagedType.LPStr)] StringBuilder pBuffer);
I havent been able to get the string to pass properly experts please help!!!