I finally got it working in c++ from the example given in this post by azzido.
http://forum.thegamecreators.com/?m=forum_view&t=200667&b=38
There wasn't much documentation for using dark gdk 2.0 with this plugin. Here is the code for anyone wanting a quick start...
#include <darkgdk.h>
#include <darkgdk-plugins.h>
#include <initDarkGDK.h>
#include <simpleWindow.h>
#include <math.h>
#include <iostream>
using namespace std;
int main()
{
int iGraphicWidth = GetSystemMetrics(SM_CXSCREEN);
int iGraphicHeight = GetSystemMetrics(SM_CYSCREEN);
// Start DarkGDK
if (!initDarkGDK("gdkengine.dll")) return -100;
// DarkGDK
dbAutoCamOff();
HWND hScreen = openWindow(0,
0,
iGraphicWidth,
iGraphicHeight,
"Testing",
WS_OVERLAPPED | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU | WS_CLIPCHILDREN,
true);
dbOpenScreen(hScreen, 0, 0, iGraphicWidth, iGraphicHeight);
ShowWindow(hScreen, SW_SHOW);
dbSyncRate(60);
// DarkCloud
DC_SetCloudy(0.5f);
DC_SetCloudHeight(3.0f);
DC_SetBrightness(1.0f);
DC_SetAutoBrightness(1);
DC_SetWind(30, 270);
DC_Init(1, 10);
DC_SetCloudHeight(3.0f);
DC_Update(9.0f);
dbTextureBackdrop(1);
//DC_MakeCubeMap(128,1,2,3,4,5,6);
float iTime = 9.0f;
while (windowEvent() != WM_CLOSE)
{
cout << iTime << endl;
iTime = iTime + 100.0f / (float)(60 * 60 * 60);
DC_Update(iTime);
dbControlCameraUsingArrowKeys(0, 1, 5);
//dbSetCubeMappingOn(1,1,2,3,4,5,6);
dbSync();
}
return 0;
}
Edit: It no longer crashes, i commented out some commands that was not needed.