Jump to content

  • Log In with Google      Sign In   
  • Create Account

dll error, I think


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Crusable   Members   -  Reputation: 594

Like
0Likes
Like

Posted 04 February 2013 - 02:38 AM

Hello, I just added audio to my pong clone but then I get this error during run time  "The application was unable to start correctly(0xc0150002). Click OK to close the application". I googled this and it seems there is a problem with the dlls, however I put the sfml-audio-d.dll in both the debug folder and the folder with the source code. I checked, and I am correctly linking all the files. I am using VS2012 express on widows 7. Thank you in advance for your help. 



Sponsor:

#2 ultramailman   Prime Members   -  Reputation: 1585

Like
0Likes
Like

Posted 04 February 2013 - 02:51 AM

I have no experience with VS, but I think the dll should be in the same folder as the game executable. Is it? If not, might be good to give it a try.

Edited by ultramailman, 04 February 2013 - 02:52 AM.


#3 Crusable   Members   -  Reputation: 594

Like
0Likes
Like

Posted 04 February 2013 - 03:02 AM

The executable is in the Debug folder, sorry I should have made that more clear. 



#4 Endurion   Crossbones+   -  Reputation: 3685

Like
0Likes
Like

Posted 04 February 2013 - 03:11 AM

I'm not sure if this still applies with VS 2012, but in older version during a run from the IDE the working directory was the project folder, not the Debug or Release sub folder.

Try putting the dll there.


Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

#5 Crusable   Members   -  Reputation: 594

Like
0Likes
Like

Posted 04 February 2013 - 03:16 AM

I have the DLL's in there. 



#6 ppodsiadly   Members   -  Reputation: 338

Like
0Likes
Like

Posted 04 February 2013 - 03:37 AM

Try checking your application with Dependency Walker, it shows which DLLs are missing.



#7 Yourself   Crossbones+   -  Reputation: 1190

Like
0Likes
Like

Posted 04 February 2013 - 03:45 AM

The error you are getting is this one :  

//
// MessageId: STATUS_SXS_CANT_GEN_ACTCTX
//
// MessageText:
//
// Windows was not able to process the application binding information.
// Please refer to your System Event Log for further information.
//
#define STATUS_SXS_CANT_GEN_ACTCTX ((NTSTATUS)0xC0150002L)

 

Basically, it says that the dll you are using is build using a different compiler or configuration (CRT most often) and so it is not compatible with your application.

You should rebuild the library using VS2012 with the same settings as your application (or find a matching binary build online).



#8 Crusable   Members   -  Reputation: 594

Like
0Likes
Like

Posted 04 February 2013 - 06:43 PM

Now it says I need openAL32.dll. what is that about?



#9 Yourself   Crossbones+   -  Reputation: 1190

Like
0Likes
Like

Posted 05 February 2013 - 02:16 AM

Now it says I need openAL32.dll. what is that about?

What is your definition of 'Now' ? after you rebuild the sfml library ?

 

SFML audio is built on top of the OpenAL library so you need that as well.

It seems though that the dll you need is inside the download package (in the extlibs/bin folder), but again, it is likely that you have to rebuild that as well...



#10 Crusable   Members   -  Reputation: 594

Like
0Likes
Like

Posted 06 February 2013 - 12:25 AM

Thank you it works now :)






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS