Click here to Skip to main content
12,452,344 members (51,438 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: MFC
Hi
I wanna Load a texture(Image) in my MFC Dialog with OpenGL.
i used AUX_Imagerec fuction,but it reruens external unresolved error.

How Can I Do it?
Thanks
Posted 5-Apr-11 0:21am
Updated 10-Dec-12 2:21am
v3
Comments
CPallini 6-Dec-12 17:43pm
   
Please show us the exact error message and the code wherein the error occurs.
Mahdi Nejadsahebi 7-Dec-12 8:16am
   
error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char const *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PBD@Z)
Richard MacCutchan 10-Dec-12 9:30am
   
You are missing a .lib reference in your Linker input properties.
Mahdi Nejadsahebi 19-May-13 3:17am
   
i've solved it
i just have add this code:

#pragma comment(lib,"glaux.lib")

i'm sorry
Mahdi Nejadsahebi 11-Dec-12 5:45am
   
thanks dear richard
well, how can i understand what "lib" i missed?
what name?
can you explain for me?
thanks agian friend

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100