winzip icon

BMDXCtls

Email
Submitted on: 1/2/2015 3:54:00 AM
By: Benjamin Marty (from psc cd)  
Level: Advanced
User Rating: By 3 Users
Compatibility: Microsoft Visual C++
Views: 1524
 
     COM Component designed to make full screen scrolling maps easy, especially from Visual Basic. This is the VC++ 6.0 source code of the graphics engine for the Scrolling Game Development Kit (which is where the screenshot comes from). This COM DLL exposes a BMDXDisplay object, which requires a simple 1-line Open call to create a full screen DirectX display. You can also create BMDXTileMap objects to contain 2-D tile maps. A CreateTileSet call will create an off-screen surface to contain tile graphics for the map (based on a COM StdPicture object, frequently and easily used in VB). Then you can use calls like DrawMap to draw the specified map onto a display, GetDC to perform custom graphic operations, TileHit to perform pixel-perfect collision detection, and much more. Includes complete context sensitive help file for all objects, methods, properties and events. Note, the licensing section of the help file is a bit out of date and neglects to mention the GPL, but the about dialog and source code does. A full project and install using this DLL can be found at the SourceForge homepage of the Scrolling Game Development Kit.

 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :BMDXCtls
//**************************************
// A sampling of include files from various files
// This should be used mainly an indication of
// which files are required to compile.
// StdAfx.h
#include <atlbase.h>
#include <atlcom.h>
#include <ocidl.h>	// Added by ClassView
#include <comdef.h>
// BMDXCtls.h
#include "rpc.h"
#include "rpcndr.h"
#include "windows.h"
#include "ole2.h"
// BMDXCtls.cpp
#include "initguid.h"
#include <ddraw.h>
// BMDXDisplay.cpp
#include "stdafx.h"
#include "resource.h"
#include <ddraw.h>
#include <stdio.h>
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.