News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Win32 app: help needed calling win32 function…

Started by JoseB, December 18, 2010, 04:51:32 PM

Previous topic - Next topic

JoseB

Hi,
I am trying to make a raw printer application (windows7, Code::Blocks 10.05 rev 6283). I created a new win32 application, dialog based and I created a new class when I plan to implement all the functionality. I included the #include <winspool.h>  and a reference to the winspool library. When I compile it says that it does not knows the GetDefaultPrinterA function, which is the function I need to initiaiza printer.. Please, find the project in the attach and help me solve this compiler error.
Thanks a lot!

JoseB

[Edit]: Removed attachement.

MortenMacFly

Quote from: JoseB on December 18, 2010, 04:51:32 PM
help me solve this compiler error.
This is not a compiler form, sorry. please ask in a C/C++ forum or a forum related to your compiler. Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]