Click to See Complete Forum and Search --> : Linker error 2028 and 2019


somu0915
March 17th, 2008, 04:25 AM
I am getting these two errors:


Error 2 error LNK2028: unresolved token (0A00007F) "extern "C" long __stdcall RegEnumKeyExW(struct HKEY__ *,unsigned long,wchar_t *,unsigned long *,unsigned long *,wchar_t *,unsigned long *,struct _FILETIME *)" (?RegEnumKeyExW@@$$J232YGJPAUHKEY__@@KPA_WPAK212PAU_FILETIME@@@Z) referenced in function "public: void __clrcall BuildPatch::findRegPatch(void)" (?findRegPatch@BuildPatch@@$$FQAMXXZ) FormSearchFile.obj FormSearchFile

Error 6 error LNK2019: unresolved external symbol "extern "C" long __stdcall RegQueryValueExW(struct HKEY__ *,wchar_t const *,unsigned long *,unsigned long *,unsigned char *,unsigned long *)" (?RegQueryValueExW@@$$J224YGJPAUHKEY__@@PB_WPAK2PAE2@Z) referenced in function "public: void __clrcall BuildPatch::checkRegValues(struct HKEY__ *,wchar_t * const,wchar_t * const)" (?checkRegValues@BuildPatch@@$$FQAMXPAUHKEY__@@QA_W1@Z) FormSearchFile.obj FormSearchFile

Do I have to link some library files to the linker for the code to run??
How do I know which .lib files??