IMP : SWF is not loading while setup triggers exe
I have a problem. Don't know the exact reason.
I have created an MFC project which has a default dialog which is having Shockwave player ActiveX. This dialog is derived as
Code:
class MyClass : public CAxDialogImpl<MyClass>, public IDispEventImpl<IDC_SHOCKWAVEFLASH1, MyClass>
When I run this project or exe it get's load fine.
But when my setup runs it by choosing "Launch Now" option after successful install then it does not run. DoModal() returns -1 at this time.
While if I run it by "desktop shortcut" or "program files" shortcut then it runs fine again.
Any suggestion or solution.
Re: IMP : SWF is not loading while setup triggers exe
Quote:
Any suggestion or solution.
Don't add the 'Launch now' option to your installer.
Re: IMP : SWF is not loading while setup triggers exe
Thanks For suggestion,
Problem was really small and I was thinking a lot :)
Actually I was loading swf from current directory so when I run it through desktop-shortcut or program files at that time my exe founds swf in the same directory that was working directory.
While I was running through setup "Launch Now" then my current directory was where the setup lies so swf was not in the directory of setup and it was giving error.