Re: include abc.dll - any volunteers?
- Posted by Matt Lewis <matthewwalkerlewis at gmail??om> Jan 08, 2008
- 779 views
Pete Lomax wrote: > > I wonder if there is any way to blag such things from std c header files? > Does say Watcom automatically know about AllocConsole or does it load details > from a file? (Or am I wrong and does it learn from kernel32.dll?) It depends upon the header file. Some are pretty straightforward. Others are filled with macros, or are just formatted strangely, and are a lot more difficult to figure out. Chris Bensler wrote somthing along these lines: http://www.rapideuphoria.com/dawg.zip I haven't tried it, but it's probably worth checking out before anyone goes about designing new wheels. > For that matter does Watcom give a proper compilation error if you pass > AllocConsole > the wrong number of parameters, or does it just let it bomb at run-time? A C compiler will require you to include the proper header. This gives it information regarding the prototype (name, var types, etc) for the function. When it comes time to link, it will search through all of the objects included in the linking stage to find unresolved symbols. So you have to tell the linker that you're linking against kernel32.dll, or you'll get an unresolved symbol error when you go to link. Matt