Results 1 to 2 of 2

Thread: Only some API's seem to work in console mode

  1. #1

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78

    Only some API's seem to work in console mode

    Hey.

    In a console app, I included like this:

    #include <windows.h>
    #include <iostream>

    I used the MessageBox call, worked fine for me.

    However, I tried to call the SHBrowseForFolder function, and the thing said that the function wasn't defined. Nor was LPBROWSEINFOW defined. I tried the same with GetOpenFileName and GetSaveFileName it said it wasn't defined.

    Do you know what to do about this?
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Include the shellapi.h header file. Or you might also have to include shell32.lib in your project settings if it's not already there.
    Baaaaaaaaah

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