CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    May 2009
    Posts
    88

    regarding running .chm file in vc++

    i have designed a help file in .chm format and i wish to attach to this to one of the menu options......can someone please tell me how can i run this file through one of the menu buttons.....is it something like execute or ..........please help as soon as possible...

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: regarding running .chm file in vc++

    You can try ShellExecute.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    May 2009
    Posts
    88

    Re: regarding running .chm file in vc++

    can u please tell how to use it going through msdn and other sites for syntax was of not much to help.........the thing is i wish to open a file file1.hlp which is saved in the same directory where all other files of the project are saved.............thnx

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

    Re: regarding running .chm file in vc++

    Code:
    ShellExecute (NULL, "open", "c:\\somedir\\somehelpfile.hlp", "", "", SW_SHOW);

  5. #5
    Join Date
    May 2009
    Posts
    88

    Re: regarding running .chm file in vc++

    isn't this will become computer dependent??

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

    Re: regarding running .chm file in vc++

    Quote Originally Posted by pinnachio View Post
    isn't this will become computer dependent??
    Dependent on what ?

  7. #7
    Join Date
    May 2009
    Posts
    88

    Re: regarding running .chm file in vc++

    also this code is not working.......i attached this code with the menu click event but thier seems to be no response!!

  8. #8
    Join Date
    May 2009
    Posts
    88

    Re: regarding running .chm file in vc++

    by dependent i wish to say that if the same project is copied on some other computer the path of the file would be different...............if not please explain??

  9. #9
    Join Date
    Jun 2009
    Posts
    7

    Re: regarding running .chm file in vc++


  10. #10
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    Re: regarding running .chm file in vc++

    Since your trying to use .chm files from within your program, the correct way to do this is by using HtmlHelp.

    See this thread (especially starting with post 6) for more information.

    Hope that helps.
    Be sure to rate those who help!
    -------------------------------------------------------------
    Karl - WK5M
    PP-ASEL-IA (N43CS)
    PGP Key: 0xDB02E193
    PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

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
  •  





Click Here to Expand Forum to Full Width

Featured