IMP : SWF is not loading while setup triggers exe
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: IMP : SWF is not loading while setup triggers exe

  1. #1
    Join Date
    Nov 2009
    Posts
    26

    Question 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.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: IMP : SWF is not loading while setup triggers exe

    Any suggestion or solution.
    Don't add the 'Launch now' option to your installer.

  3. #3
    Join Date
    Nov 2009
    Posts
    26

    Talking 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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center