Back to main page

Using with C#

Installing the engine:

Move the "Installation" folder to a location that will not be moved and run RegisterDFPGE.bat as an administrator to tell Windows that the engine can be found in that folder.

Inserting the component to a new C# project in Visual Studio 2010:

Start Visual Studio

Create a new project and choose to make a Windows Forms application in C#

Open the tool menu, select "Choose Toolbox Items", open the "COM Components tab", select "David Piuva's graphics engine" and press ok. If it is not in the list then you might have to browse for the DFPGE oxc component.

Select the graphics engine from your toolbox and drag a rectangle on your window to create the component.

Select DFPGELib from References in the Solution Explorer. Set "Embed Interop Types" to False