Jump to content
  • Advertisement
Sign in to follow this  
NetCoaster

VC++ 2003 Toolkit [NOT WORKING]

This topic is 5451 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, I downloaded the VC++ 2003 Toolkit, now I got my own little compiler! :D Than I compiled a few console programs using the "printf" command, and it all went well. Than I grabbed my little macro program that makes use of GetCursor, BitBlt, and other GDI functions (Which compiled prefectly in Visual Studio 6), and I'm getting errors... It says something like (approx). __IMP__UNRESOLVED EXTERNAL SYMBOL BITBLT(@6) Strange, cause my source code clearly imports "Windows.h" so it should have recognized BitBlt (And all the other functions too). Whats going on? [What I've tried so far] 1) Downloaded WindowsSP2 SDK, extracted all "Libs" + "Includes" into the compilers "Libs" & "Incs" folders. Recompiled, got same error. 2) Restarting without saving my files. 3) Moving my desk. halp! :(

Share this post


Link to post
Share on other sites
Advertisement
Did you link in the GDI library? From the looks of it you didn't.

Share this post


Link to post
Share on other sites
Apparently it doesn't. I'd check out all the docs of the compiler and make sure that you have all the linking options enabled....

Share this post


Link to post
Share on other sites
cl /O2 /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /MLd /W4 /TC /EHsc /Zi /GL /G7 /link Gdi32.lib cMain.c

Is what I tried just now, and it doesn't recognize the "gdi32.lib".

Any veterans know whats wrong? ;(

Share this post


Link to post
Share on other sites
Quote:
Original post by evolutional
Am I right in thinking you'll need the platform SDK installed to get the correct libs?


You should be right, when I looked at the libraries included with the toolkit, they were scarce and odd looking (Definently not the Win32 libraries found in VS6).

However, I have the Microsoft SDK, and its still not working!

Share this post


Link to post
Share on other sites
Quote:
Original post by CodeMunkie
Try searching for gdi32.lib to make sure it is actually installed.


Lol, who do you take me for?

Anyways... putting this in my program made it work. Its also a little nicer than playing around with compiler settings.
#pragma comment(lib, "gdi32.lib")
#pragma comment(lib, "user32.lib")

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!