O 
		
								
				
				
			
		ORC
Hi,
How to transfer strings between a C# .NET application and a native DLL that
uses Unicode like:
#ifndef UNICODE
#define UNICODE
#endif
The function header in the DLL:
BOOL NewDataBase(LPCTSTR strDbFileName)
The definition in C#:
[DllImport("miniDataservice.dll", EntryPoint="NewDataBase",
SetLastError=true)]
public static extern bool NewDataBase(string FileName);
Thanks,
Ole
				
			How to transfer strings between a C# .NET application and a native DLL that
uses Unicode like:
#ifndef UNICODE
#define UNICODE
#endif
The function header in the DLL:
BOOL NewDataBase(LPCTSTR strDbFileName)
The definition in C#:
[DllImport("miniDataservice.dll", EntryPoint="NewDataBase",
SetLastError=true)]
public static extern bool NewDataBase(string FileName);
Thanks,
Ole