How to include space in directory path for launching help in a MFC program

device driver

    Sponsored Links


  • 1. Kernel DLLs in NDIS drivers
    > 2. Do kernel DLLs work on win9x? Yes. OHCI1394 in Win9x has "Bus1394RegisterPortDriver" import, while 1394BUS has the same export. Max
  • 2. UsbHid driver
    About 50% of HID reports (every second one) from my custom device are lost. I use ReadFile function in the loop to read reports. What is interesting that another third-party utility receives about 95% of valid data. About 5% is lost. Any idea where can be the problem ? Some more details: Device is low-speed, using interrupt endpoint for sending 8 bytes of data each 10 ms.
  • 3. Anyone familiar with USB bulk transfer?
    I need to write a terminal program that does bulk transfer to our Net2888 chip. Any help/suggestions/direction would be greatly appreciated.

How to include space in directory path for launching help in a MFC program

Postby mdjrk » Fri, 05 Nov 2004 09:11:28 GMT


   I have a MFC program. I have a help file (.chm) which I launch when
the user clicks on Help option. It works fine if I put the .chm file
in a directory path which has no spaces. However, I do want to put
this file under "Program Files\....." If I put under this directory
path, it won't find the .chm file and the help will not launch.

How do I include a space in the directory path ?



Re: How to include space in directory path for launching help in a MFC program

Postby Jeff Henkels » Fri, 05 Nov 2004 22:36:26 GMT

Two possibilities come to mind:

1.  Enclose the entire path name in "" before launching help.
2.  Use the short (8.3) path equivalent; i.e. call GetShortPathName and use 
the output for launching help.

Similar Threads:

1.How to launch a program before log on dialog pop up under Win98/ME


I want to write a program which can launch a EXE file before domain log on
dialog under Win98/ME.
Someone told me VxD can do it but I am not sure.
How can a VxD launch a EXE file?


2.Getting disp() console output from MFC Driver program.

I am trying to call a function from an mcc compiled MATLAB DLL using
an MFC Windows driver program. SInce MFC doesn't create a console by
default. I am using AllocConsole and redirecting the output/input of
STDOUT STDERR & STDIN to this console. This all works fine in my
driver but the fprintf() and disp() calls in my compiled m code does
not work? Any suggestions would be great.

3.[patch 1/1] DAC_SATA_3.4.0 marvell MV88SX50xx and MV88SX60x1 sata driver - use include directory

4.DPInst 2.01 /u infpath failed if path contains space

Yes.  It works as you specified.  Thanks a lot.

5.DDK and spaces in path?

6. DPInst 2.01 /u infpath failed if path contains space

7. user space program from keyboard driver

8. Help with Brother MFC 7300C scanner driver

Return to device driver


Who is online

Users browsing this forum: No registered users and 80 guest