Page 1 of 1

How to pass hDC from C++ to PureBasic DLL

Posted: Wed Jul 13, 2005 2:23 pm
by Worm
I have an app that allows for plugins. The SDK distributed is for C++, but I'd like to roll my own with PB. One function the main app calls uses a hDC as one of it's parameters

void PlugTrans(HDC CurPage, HDC NextPage)

how would I write this with PB?

thanks

Re: How to pass hDC from C++ to PureBasic DLL

Posted: Wed Jul 13, 2005 2:26 pm
by traumatic
ProcedureDLL PlugTrans(CurPage.l, NextPage.l) :D

Posted: Wed Jul 13, 2005 2:31 pm
by Worm
I guess that shows why I want to convert it to PB :D

I should have dug deeper myself, I assumed it would be more complicated