Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SDI MFC APP -- Change title Pin
James R. Twine21-Jun-06 6:38
James R. Twine21-Jun-06 6:38 
QuestionHow to select tabs from the menu bar? Pin
Ashutosh Bagaria21-Jun-06 5:53
Ashutosh Bagaria21-Jun-06 5:53 
QuestionCTypedPtrArray and CTypedPtrMap [modified] Pin
bob1697221-Jun-06 5:34
bob1697221-Jun-06 5:34 
AnswerRe: CTypedPtrArray and CTypedPtrMap Pin
bob1697221-Jun-06 7:17
bob1697221-Jun-06 7:17 
QuestionList of network interface Pin
fabiotriolo21-Jun-06 5:30
fabiotriolo21-Jun-06 5:30 
AnswerRe: List of network interface Pin
lordxx21-Jun-06 5:37
lordxx21-Jun-06 5:37 
AnswerRe: List of network interface Pin
David Crow21-Jun-06 5:46
David Crow21-Jun-06 5:46 
Questionerror LNK2001 & error LNK1120 with GUIDs Pin
kitty521-Jun-06 4:56
kitty521-Jun-06 4:56 
I'm creating an MFC application.
I was provided by the manufacturer the following code in a .h file:

#ifdef DEFINE_GUID

// The GUID that is used to identify this device's interface
// {AF1B231E-1180-420b-8CB6-2ED2A53F9F92}
DEFINE_GUID(GUID_DEVINTERFACE_ALTGENERIC, 0xaf1b231e, 0x1180, 0x420b, 0x8c, 0xb6, 0x2e, 0xd2, 0xa5, 0x3f, 0x9f, 0x92);

#endif

I #include this .h file into my .cpp file.

This is the way I use it:
HDEVINFO hDeviceInfo;

hDeviceInfo = SetupDiGetClassDevs(
(LPGUID)&GUID_DEVINTERFACE_ALTGENERIC, NULL, NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);

I get the following errors:
alt.obj: error LNK2001: unresolved external symbol
_GUID_DEVINTERFACE_ALTGENERIC
c:\...exe: fatal error LNK1120: 1 unresolved externals.

Could someone tell me if I forgot to include a library or something....

Thanks.



Kitty5
AnswerRe: error LNK2001 & error LNK1120 with GUIDs [modified] Pin
Viorel.21-Jun-06 5:06
Viorel.21-Jun-06 5:06 
QuestionPorting code to PPC WinCE Pin
Mike Doner21-Jun-06 4:50
Mike Doner21-Jun-06 4:50 
QuestionDebug vs. Release Build Pin
Bob X21-Jun-06 4:34
Bob X21-Jun-06 4:34 
AnswerRe: Debug vs. Release Build Pin
kitty521-Jun-06 4:43
kitty521-Jun-06 4:43 
GeneralRe: Debug vs. Release Build Pin
Bob X21-Jun-06 5:01
Bob X21-Jun-06 5:01 
AnswerRe: Debug vs. Release Build Pin
Viorel.21-Jun-06 4:59
Viorel.21-Jun-06 4:59 
GeneralRe: Debug vs. Release Build [modified] Pin
Bob X21-Jun-06 5:05
Bob X21-Jun-06 5:05 
GeneralRe: Debug vs. Release Build Pin
John M. Drescher21-Jun-06 5:07
John M. Drescher21-Jun-06 5:07 
GeneralRe: Debug vs. Release Build Pin
Viorel.21-Jun-06 5:10
Viorel.21-Jun-06 5:10 
GeneralRe: Debug vs. Release Build Pin
Bob X21-Jun-06 5:13
Bob X21-Jun-06 5:13 
GeneralRe: Debug vs. Release Build Pin
Maximilien21-Jun-06 5:19
Maximilien21-Jun-06 5:19 
GeneralRe: Debug vs. Release Build Pin
Viorel.21-Jun-06 5:22
Viorel.21-Jun-06 5:22 
GeneralRe: Debug vs. Release Build Pin
Bob X21-Jun-06 5:25
Bob X21-Jun-06 5:25 
GeneralRe: Debug vs. Release Build Pin
Viorel.21-Jun-06 5:32
Viorel.21-Jun-06 5:32 
GeneralRe: Debug vs. Release Build Pin
Bob X21-Jun-06 7:03
Bob X21-Jun-06 7:03 
QuestionInitialization part in SDI MFC project. Pin
tingu21-Jun-06 4:25
tingu21-Jun-06 4:25 
AnswerRe: Initialization part in SDI MFC project. Pin
David Crow21-Jun-06 4:32
David Crow21-Jun-06 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.