www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - commdlg.h

reply "Steve & Denise De Chellis" <dbouton snet.net> writes:
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
Jun 19 2002
next sibling parent "Walter" <walter digitalmars.com> writes:
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
Jun 19 2002
prev sibling next sibling parent Jan Knepper <jan smartsoft.cc> writes:
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
Jun 19 2002
prev sibling parent "Steve & Denise De Chellis" <dbouton snet.net> writes:
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
Jun 20 2002