Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George14-Dec-07 17:56
George_George14-Dec-07 17:56 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer14-Dec-07 22:28
Iain Clarke, Warrior Programmer14-Dec-07 22:28 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 2:24
George_George16-Dec-07 2:24 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer16-Dec-07 8:02
Iain Clarke, Warrior Programmer16-Dec-07 8:02 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 20:50
George_George16-Dec-07 20:50 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer16-Dec-07 22:13
Iain Clarke, Warrior Programmer16-Dec-07 22:13 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 22:35
George_George16-Dec-07 22:35 
QuestionHow to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 18:19
kcynic13-Dec-07 18:19 
I downloaded a slip code from http://support.microsoft.com/kb/308669[^].And build a console project and insert the source files in VS2005.
But there are such errors occured like bellow:

1>main2.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "void __cdecl DebugPrint(unsigned short,char *,...)" (?DebugPrint@@YAXGPADZZ)
1>main2.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "void __cdecl DebugPrint(unsigned short,char *,...)" (?DebugPrint@@YAXGPADZZ)
1>main2.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
1>main2.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function _main
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function _main
1>main2.obj : error LNK2019: unresolved external symbol __imp__CM_Reenumerate_DevNode@8 referenced in function "int __cdecl GetRegistryProperty(void *,unsigned long)" (?GetRegistryProperty@@YAHPAXK@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceRegistryPropertyA@28 referenced in function "int __cdecl GetRegistryProperty(void *,unsigned long)" (?GetRegistryProperty@@YAHPAXK@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__CM_Get_Device_IDA@16 referenced in function "int __cdecl GetRegistryProperty(void *,unsigned long)" (?GetRegistryProperty@@YAHPAXK@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInfo@12 referenced in function "int __cdecl GetRegistryProperty(void *,unsigned long)" (?GetRegistryProperty@@YAHPAXK@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "void __cdecl GetInquiryData(char const *)" (?GetInquiryData@@YAXPBD@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "void __cdecl GetInquiryData(char const *)" (?GetInquiryData@@YAXPBD@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__CM_Get_Sibling@12 referenced in function "void __cdecl GetChildDevices(unsigned long)" (?GetChildDevices@@YAXK@Z)
1>main2.obj : error LNK2019: unresolved external symbol __imp__CM_Get_Child@12 referenced in function "void __cdecl GetChildDevices(unsigned long)" (?GetChildDevices@@YAXK@Z)


And I also include <stdarg.h>,<rtcapi.h> in the code.
Someone would like to tell me,how to resolve such errors?
Thanks.

GOOD LUCK
AnswerRe: How to resolve such compile errors in VC++2005 Pin
Mark Salsbery13-Dec-07 19:27
Mark Salsbery13-Dec-07 19:27 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 19:40
kcynic13-Dec-07 19:40 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
Mark Salsbery13-Dec-07 19:49
Mark Salsbery13-Dec-07 19:49 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 19:57
kcynic13-Dec-07 19:57 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
buidinhba514-Sep-08 17:05
buidinhba514-Sep-08 17:05 
QuestionHow to count number of files in a folder Pin
santhoshv8413-Dec-07 18:17
santhoshv8413-Dec-07 18:17 
AnswerRe: How to count number of files in a folder Pin
kcynic13-Dec-07 18:28
kcynic13-Dec-07 18:28 
GeneralRe: How to count number of files in a folder Pin
santhoshv8413-Dec-07 18:46
santhoshv8413-Dec-07 18:46 
GeneralRe: How to count number of files in a folder Pin
Hamid_RT14-Dec-07 20:04
Hamid_RT14-Dec-07 20:04 
GeneralSeraching criteria Pin
neha.agarwal2713-Dec-07 17:55
neha.agarwal2713-Dec-07 17:55 
GeneralRe: Seraching criteria Pin
Karismatic13-Dec-07 19:09
Karismatic13-Dec-07 19:09 
GeneralRe: Seraching criteria Pin
vijay_aroli13-Dec-07 19:17
vijay_aroli13-Dec-07 19:17 
GeneralConsole application and MFC-DLL application Pin
CodingLover13-Dec-07 17:15
CodingLover13-Dec-07 17:15 
GeneralDetecting internet connection using InternetGetConnectedState in VC++ Pin
Kogee San13-Dec-07 16:58
Kogee San13-Dec-07 16:58 
GeneralRe: Detecting internet connection using InternetGetConnectedState in VC++[Modified] Pin
Naveen13-Dec-07 17:11
Naveen13-Dec-07 17:11 
GeneralRe: Detecting internet connection using InternetGetConnectedState in VC++[Modified] Pin
Kogee San13-Dec-07 17:19
Kogee San13-Dec-07 17:19 
GeneralRe: Detecting internet connection using InternetGetConnectedState in VC++[Modified] Pin
Naveen13-Dec-07 18:34
Naveen13-Dec-07 18:34 

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.