Variable conversion...

This is a discussion on Variable conversion... within the Windows Programming forums, part of the Platform Specific Boards category; How would I convert an OPENFILENAME to a const CHAR* ? I need to for the ShellExecute command... I've tried ...

  1. #1
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942

    Variable conversion...

    How would I convert an OPENFILENAME to a const CHAR* ?

    I need to for the ShellExecute command...

    I've tried casting, but it can't convert it...

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    167
    OPENFILENAME is a struture. You can pass the lpstrFile member to the shellexecute function.
    silk.odyssey

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,662
    Perhaps you want the lpstrFile of the OPENFILENAME structure.

    gg

  4. #4
    Rad gcn_zelda's Avatar
    Join Date
    Mar 2003
    Posts
    942
    Originally posted by Codeplug
    Perhaps you want the lpstrFile of the OPENFILENAME structure.

    gg
    Yeah. I was being stupid. :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C variable
    By webstarsandeep in forum C Programming
    Replies: 1
    Last Post: 10-23-2008, 01:26 AM
  2. Static Local Variable vs. Global Variable
    By arpsmack in forum C Programming
    Replies: 7
    Last Post: 08-21-2008, 03:35 AM
  3. static class variable vs. global variable
    By nadamson6 in forum C++ Programming
    Replies: 18
    Last Post: 09-30-2005, 03:31 PM
  4. variable being reset
    By FoodDude in forum C++ Programming
    Replies: 1
    Last Post: 09-15-2005, 12:30 PM
  5. variable type conversion
    By Cbuild in forum C++ Programming
    Replies: 7
    Last Post: 02-25-2004, 11:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21