How to pass hDC from C++ to PureBasic DLL

Everything else that doesn't fall into one of the other PB categories.
Worm
User
User
Posts: 20
Joined: Wed Apr 14, 2004 2:32 am
Location: Grand Rapids, MI
Contact:

How to pass hDC from C++ to PureBasic DLL

Post 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
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

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

Post by traumatic »

ProcedureDLL PlugTrans(CurPage.l, NextPage.l) :D
Good programmers don't comment their code. It was hard to write, should be hard to read.
Worm
User
User
Posts: 20
Joined: Wed Apr 14, 2004 2:32 am
Location: Grand Rapids, MI
Contact:

Post 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
Post Reply