www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
→ "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
→ 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
→ "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