PDA

Click to See Complete Forum and Search --> : Only some API's seem to work in console mode


dubae524
Jun 24th, 2002, 07:45 PM
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?

abdul
Jun 24th, 2002, 09:05 PM
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.