B
bgibbons
Hello,
in my asp.net app I have declared the following
[DllImport("UADLL.dll",EntryPoint="GetTMDataRepositoryUsage",CharSet=CharSet
..Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int
GetTMDataRepositoryUsage([Out][MarshalAs(UnmanagedType.LPStr)] ref string
szComputerName)/
while in my unmanaged dll I have
extern "C" __declspec(dllexport) int GetTMConfigRepositoryUsage ( char*
szComputerName )
I call the function in asp.net this way
string szComputerName = "test";
GetTMDataRepositoryUsage ( szComputerName ) ;
When i debug the code "test" is passed in correctly to
GetTMDataRepositoryUsage function but when it returns it's always NULL.
Any assistance is greatly appreciated.
Bill
in my asp.net app I have declared the following
[DllImport("UADLL.dll",EntryPoint="GetTMDataRepositoryUsage",CharSet=CharSet
..Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int
GetTMDataRepositoryUsage([Out][MarshalAs(UnmanagedType.LPStr)] ref string
szComputerName)/
while in my unmanaged dll I have
extern "C" __declspec(dllexport) int GetTMConfigRepositoryUsage ( char*
szComputerName )
I call the function in asp.net this way
string szComputerName = "test";
GetTMDataRepositoryUsage ( szComputerName ) ;
When i debug the code "test" is passed in correctly to
GetTMDataRepositoryUsage function but when it returns it's always NULL.
Any assistance is greatly appreciated.
Bill