Thread overview
commdlg.h
Jun 20, 2002
Walter
Jun 20, 2002
Jan Knepper
June 20, 2002
I'm having trouble implementing the load common dialog function.

I keep getting an error of:

Error: C:\DM\HMCG\HMCG.OBJ(HMCG) (62194): Symbol Undefined
_GetOpenFileNameA@4

I've included commdlg.h and can find no reason for this.

I downloaded some code from planetcpp.com that includes  the common dialog function for loading bitmaps and that code gave the same error when compiling.

Steve De Chellis


June 20, 2002
You need to include comdlg32.lib in your link command.

"Steve & Denise De Chellis" <dbouton@snet.net> wrote in message news:aer6h3$4ma$1@digitaldaemon.com...
> I'm having trouble implementing the load common dialog function.
>
> I keep getting an error of:
>
> Error: C:\DM\HMCG\HMCG.OBJ(HMCG) (62194): Symbol Undefined
> _GetOpenFileNameA@4
>
> I've included commdlg.h and can find no reason for this.
>
> I downloaded some code from planetcpp.com that includes  the common dialog function for loading bitmaps and that code gave the same error when compiling.
>
> Steve De Chellis
>
>


June 20, 2002
I think you will need to incluse COMDLG32.LIB in your project. Jan



Steve & Denise De Chellis wrote:

> I'm having trouble implementing the load common dialog function.
>
> I keep getting an error of:
>
> Error: C:\DM\HMCG\HMCG.OBJ(HMCG) (62194): Symbol Undefined
> _GetOpenFileNameA@4
>
> I've included commdlg.h and can find no reason for this.
>
> I downloaded some code from planetcpp.com that includes  the common dialog function for loading bitmaps and that code gave the same error when compiling.
>
> Steve De Chellis

June 21, 2002
Thanks,

I added in the lib file and now it works.

Steve

"Steve & Denise De Chellis" <dbouton@snet.net> wrote in message news:aer6h3$4ma$1@digitaldaemon.com...
> I'm having trouble implementing the load common dialog function.
>
> I keep getting an error of:
>
> Error: C:\DM\HMCG\HMCG.OBJ(HMCG) (62194): Symbol Undefined
> _GetOpenFileNameA@4
>
> I've included commdlg.h and can find no reason for this.
>
> I downloaded some code from planetcpp.com that includes  the common dialog function for loading bitmaps and that code gave the same error when compiling.
>
> Steve De Chellis
>
>