-
February 10th, 2010, 02:20 AM
#1
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.
-
February 10th, 2010, 03:19 AM
#2
Re: IMP : SWF is not loading while setup triggers exe
Any suggestion or solution.
Don't add the 'Launch now' option to your installer.
-
February 12th, 2010, 11:47 PM
#3
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|