BCB DirectX Components

Started by
0 comments, last by MemoryLeak 22 years, 5 months ago
Good day, I''ve made two simple DirectX Components and When I look in the project manager while Installing packages (editing my components) When I drop down my components files there is a huge list of files seemingly included with my component, Does a DxSurface component need all those files? Will I get some "codebloating" from this? Any help would be appreciated Mike Go Canuck Go!
Go Canuck Go!
Advertisement
Welcome to the wonderful world of C where one include file can include many other include files than can include many other include files that can include...

The way around this is to only include those files that are absolutely necessary. If including windows.h, define WIN32_LEAN_AND_MEAN to cut out some unnecessary stuff. I think there is also a WIN32_EXTRA_LEAN_AND_MEAN, but I have not confirmed its existence.

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers

This topic is closed to new replies.

Advertisement