Re: [Dev-C++] How do I call a Windows function?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2009-05-15 05:58:01
|
Not sure what you mean. You say that you get the error when you are linking, so are you bulding an EXE file or a DLL? The linking step is for an EXE file, and then you must add a reference to used libraries - this also includes any Windows libraries used. It is only the RTL libraries part of the language that the linker may pick up automatically. /pwm On Thu, 14 May 2009, Andrew S Katz (tb) wrote: > My program has the following: > > #include <windows.h> > > And later on, > LineTo( hDC, sx+2, sy+h+2 ); > > And when I link, I get the error: > [Linker error] undefined reference to `LineTo@12' > > NOTE: I am creating my own DLL and I want it to access the Windows DLL. > > A. K. > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |