Compiling MQAuth Issue

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Demetious
decaying skeleton
decaying skeleton
Posts: 3
Joined: Mon Apr 17, 2006 4:08 pm

Compiling MQAuth Issue

Post by Demetious » Fri Apr 21, 2006 1:18 pm

The following steps have been taken from the Wiki and applied.

Download VS2005 Express (Installed)
Download SDK Platform (Installed)
Download Latest Source (Unzipped)
Gone through tutorial as described in Wiki (Very helpful)
Wiki edited with a link here
http://www.macroquest2.com/wiki/index.p ... _Compiling
MQAuth WAS run prior to attempted compile.
The errors are listed in wikki and if more code is needed, I can link the entire build log here or in Wiki, did not want to spam a page of code on Wiki and not sure if it is needed here. Thanks for any help.

Demetious
decaying skeleton
decaying skeleton
Posts: 3
Joined: Mon Apr 17, 2006 4:08 pm

RE: MQ2 Complile

Post by Demetious » Fri Apr 21, 2006 1:35 pm

Just wanted to add that I realize the problem is with VS2005 Express.
When I try to make the dummy program as stated in wiki, it will not even rebuild that. it states an error that the application I made called "Test" is out of date. Even though I just made it. THIS is what I feel the problem is to compiling MQ2. Not sure it would say it is outdated and nothing in Wiki talks about it. Thank you again and I hop this gives you a better understanding.

JTPlayer
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri Mar 24, 2006 11:17 pm

Post by JTPlayer » Fri Apr 21, 2006 3:55 pm

Did you do the following to your 2005 Express Install before compiling?

Wiki Says
If you installed using defualt directories navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults and edit corewin_express.vsprops using notepad.
Change AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"

Next navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\ and open AppSettings.htm in notepad and comment out lines 441-444 like this:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;

Demetious
decaying skeleton
decaying skeleton
Posts: 3
Joined: Mon Apr 17, 2006 4:08 pm

RE: JTPalyer

Post by Demetious » Fri Apr 21, 2006 4:39 pm

That was it, I missed parts of the Additional Dependencies. Thank you so much. It compiled right but now it says to recompile but I have yet to do the release thing which I will look up before asking any questions. Thanks a bunch!

Phlogiston
decaying skeleton
decaying skeleton
Posts: 1
Joined: Fri Jun 30, 2006 12:21 am

Post by Phlogiston » Fri Jun 30, 2006 1:44 am

I also can't get the dummy app to run. I did comment out those lines, and I edited the dependencies. This is the error I get:

------ Build started: Project: Stuff, Configuration: Debug Win32 ------
Linking...
Stuff.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__LoadAcceleratorsW@8 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__LoadStringW@16 referenced in function _wWinMain@16
Stuff.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExW@4 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__LoadIconW@8 referenced in function "unsigned short __cdecl MyRegisterClass(struct HINSTANCE__ *)" (?MyRegisterClass@@YAGPAUHINSTANCE__@@@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "int __cdecl InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YAHPAUHINSTANCE__@@H@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__DialogBoxParamW@20 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
Stuff.obj : error LNK2019: unresolved external symbol __imp__EndDialog@8 referenced in function "int __stdcall About(struct HWND__ *,unsigned int,unsigned int,long)" (?About@@YGHPAUHWND__@@IIJ@Z)
C:\Documents and Settings\Steven Smith\My Documents\Visual Studio 2005\Projects\Stuff\Debug\Stuff.exe : fatal error LNK1120: 19 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Steven Smith\My Documents\Visual Studio 2005\Projects\Stuff\Stuff\Debug\BuildLog.htm"
Stuff - 20 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========