abdellah

DirectX install function error

Recommended Posts

abdellah    117

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
kubera    1589

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


  • Similar Content

    • By the incredible smoker
      Hi, i have a question about accessing the sound buffer for win32.
      How do i do that ?
       
      I like to fill it with bytes, so i can generate realtime digital audio.
       
      thanks in advance
    • By Ivanotus
      Hi, I'm the director of "Project Sentinels".
      Our game will be a 2D top-down view Action-RPG, made with Game Maker, with influences from Zelda, Dark Souls, Monster Hunter and The Witcher.
      We're actively looking for hobbyist 2D artists (ideally two) that will be tasked with the creation of the sprites and mapping for our game. The style of the art isn't fixed yet and can be talked about.
      The game, as of right now, is nothing but a good bunch of documentation and ideas waiting to be put into practice. The main story and characters, the world background and lore and game mechanics (combat, dialogues and others) are already written down.
      Synopsis:
      For the moment, there's no money involved. We're all students that use some of our free time to work on a videogame. We'll try to crowdfund our game in the future, and the money that will be potentially earned will be equally shared.
      If you're interested, send me a PM or add me in Discord (Ivanotus#0984) and there I'll answer any question you may have.

    • By Modymek
      hi all
      I want to enable and disable shader in MPCH Media player Classic
      the MPCH have shader option using HLSL shaders
      I want the shader to read each file extension before it plays the file
      so if the video file name is video.GR.Mp4 it will play it in Grayscale shader 
      if it is not and standard file name Video.Mp4 without GR. unique extension so it plays standard without shader or end the shader
      here is the shader I have for grayscale
      // $MinimumShaderProfile: ps_2_0
      sampler s0 : register(s0);
      float4 main(float2 tex : TEXCOORD0) : COLOR {
          float c0 = dot(tex2D(s0, tex), float4(0.299, 0.587, 0.114, 0));
          return c0;
      }
       
      I want to add if or block stantement or bloean to detect file name before it call the shader in order to go to the procedure or disable it or goto end direct without it
       
      any thoughts or help
    • By noodleBowl
      I've gotten to part in my DirectX 11 project where I need to pass the MVP matrices to my vertex shader. And I'm a little lost when it comes to the use of the constant buffer with the vertex shader
      I understand I need to set up the constant buffer just like any other buffer:
      1. Create a buffer description with the D3D11_BIND_CONSTANT_BUFFER flag 2. Map my matrix data into the constant buffer 3. Use VSSetConstantBuffers to actually use the buffer But I get lost at the VertexShader part, how does my vertex shader know to use this constant buffer when we get to the shader side of things
      In the example I'm following I see they have this as their vertex shader, but I don't understand how the shader knows to use the MatrixBuffer cbuffer. They just use the members directly. What if there was multiple cbuffer declarations like the Microsoft documentation says you could have?
      //Inside vertex shader cbuffer MatrixBuffer { matrix worldMatrix; matrix viewMatrix; matrix projectionMatrix; }; struct VertexInputType { float4 position : POSITION; float4 color : COLOR; }; struct PixelInputType { float4 position : SV_POSITION; float4 color : COLOR; }; PixelInputType ColorVertexShader(VertexInputType input) { PixelInputType output; // Change the position vector to be 4 units for proper matrix calculations. input.position.w = 1.0f; // Calculate the position of the vertex against the world, view, and projection matrices. output.position = mul(input.position, worldMatrix); output.position = mul(output.position, viewMatrix); output.position = mul(output.position, projectionMatrix); // Store the input color for the pixel shader to use. output.color = input.color; return output; }  
    • By ilovegames
      Beat Spirit is a fun game in the Side-Scroller genre with elements of RPG. You'll have to fight the undead in different locations and under varying conditions. The playroom is generated, so you will always have to wait for something new and different. Earn gold and discover new things! The game is quite hardcore and unusual. Try something new
      Download https://falcoware.com/BeaterSpirit.php



  • Popular Now