SilentAssasin
asked on
Use of Cards.dll in VB.NET
hi, i am making a card game in vb.net and need some help getting the cards to display. this is what have gathered so far
Declare Function cdtInit Lib "Cards.Dll" (ByVal dx As Long, ByVal dy As Long) As Long
Declare Function cdtDrawExt Lib "Cards.Dll" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal ordCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
Declare Function cdtDraw Lib "Cards.Dll" (ByVal hdc As Object, ByVal X As Long, ByVal Y As Long, ByVal iCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
Declare Function cdtTerm Lib "Cards.Dll" () As Long
after setting up the cards.dll, so to exactly draw the card, i need the following
cdtDraw(me.hdc, 100, 100, 4, 0, 1), the trouble is with the me.hdc part
it works in vb6 but not dot net
i have a picturebox and want to be able to draw the windows cards in it.
any help would be great thanks guys
Declare Function cdtInit Lib "Cards.Dll" (ByVal dx As Long, ByVal dy As Long) As Long
Declare Function cdtDrawExt Lib "Cards.Dll" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal ordCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
Declare Function cdtDraw Lib "Cards.Dll" (ByVal hdc As Object, ByVal X As Long, ByVal Y As Long, ByVal iCard As Long, ByVal iDraw As Long, ByVal clr As Long) As Long
Declare Function cdtTerm Lib "Cards.Dll" () As Long
after setting up the cards.dll, so to exactly draw the card, i need the following
cdtDraw(me.hdc, 100, 100, 4, 0, 1), the trouble is with the me.hdc part
it works in vb6 but not dot net
i have a picturebox and want to be able to draw the windows cards in it.
any help would be great thanks guys
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.developer.com/net/net/print.php/3303671