Jump to content
  • Advertisement
abdellah

DirectX install function error

This topic is 435 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

ERROR_ALREADY_EXISTS
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
Advertisement

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

  • 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!