hi everyone
i want to convert the C++ code of the DirectXSetupGetEULAA() function to a vb.NET code; so my code is look like this:
Public Declare Function DirectXSetupGetEULAA Lib _
"G:\Microsoft DirectX SDK (June 2010)\Redist\DSETUP.dll" _
(ByRef lpszEULA As String,
ByVal cchEULA As UInteger,
ByVal LangID As Integer) As Integer
the original code (C++) is :
int DirectXSetupGetEULA(
LPTSTR lpszEULA,
UINT cchEULA,
WORD LangID
)
theresult is : that this function does not return the specified string and the GetLastError() returns the error 183
ERROR_ALREADY_EXISTS
183 (0xB7)
Cannot create a file when that file already exists.
any solutions please
↧