Jump to content
  • Advertisement
Sign in to follow this  
toan1982

Help me now: How to Register .ax file format ???

This topic is 4576 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 all, Have question and hope i will get the help for you.. My question: I have .ax file and it was located in a folder D:\Data I want to register this file to system by writing an app to do this. I hear that i can by using function (in API???) ShellExecute. But i donot have experience in using this function. So, can you share me sample source code that use this function to register .ax file format???? Happy for any help. Thanks all.

Share this post


Link to post
Share on other sites
Advertisement
I assume that .ax files are activex. They are regular DLLs with some registering functions (DllRegisterServer and DllUnregisterServer). To register an ActiveX, you have to:
  • load the DLL (using LoadLibrary())
  • get the pointer to DllRegsiterServer (using GetProcAddress())
  • call the function
  • Unload the DLL (using FreeLibrary())

To unregister the activex, get the pointer to DllUnregisterServer instead of DllResgiterServer.

Alternatively, you can call the regsrv32 program.

Regards,

Share this post


Link to post
Share on other sites
Thanks Emmanuel Deloget for your help.

Your are same my test.
Can i ask you help me another question???
That is, i am trying to install codecs for video and audio to system and then i can play any compressed movie file.
So , my way is register .ax or dll file to system. And i can do this by running my app.
But i donot how to find(download) .ax or dll file for codecs?

Can you help me ???

Share this post


Link to post
Share on other sites
Many thank to Emmanuel Deloget.

I can play compressed viedo after using LoadLibrary function.
And i have another question, now I would like to my app can perform compressed video file.
And , i would like my app can intalls codec for video and audio to system , so my question is what dll or .ax file i will use to do that??? or can you help me how to do???

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!