Jump to content
  • Advertisement

DirectX install function error

Recommended Posts

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

183 (0xB7)

Cannot create a file when that file already exists.



any solutions please

Edited by abdellah

Share this post

Link to post
Share on other sites

OK, maybe DirectXSetupGetEULAW instead of DirectXSetupGetEULAA.
I guess, that DirectXSetupGetEULAA is ANSI, not UNICODE, it could be another reason.
(.NET is rather UNICODE layer). Here, I am not sure...

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!