• Advertisement

Archived

This topic is now archived and is closed to further replies.

BCB DirectX Components

This topic is 5994 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

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement