Re: iCards Class For Vb .Net
I am attempting to create a card game in VB.NET, although movements have been slow since I am new to VB.NET and Windows programming altogether. I am a Web Programmer trying to get use to some Windows Programming (VB.NET). Since I did code ASP.NET (VB.NET) before it has been a fairly easy transition.
Right now as a test application I am trying to create a game very similar in nature to Euchre. Would this class you provide help and where can I get it?
Regards,
Josh
1 Attachment(s)
Re: iCards Class For Vb .Net
Well i've not had time to clean it up properly yet, but it could be used for any card game, here is a black game I have made using the class (I know the code is messy I havent had chance to clear it up)
Re: iCards Class For Vb .Net
If you use this code anywhere please make it clear where you found it. I've seen an article on the net and the code looks identical.
Re: iCards Class For Vb .Net
Hey Pino, your ICards class did help me a lot in understanding the usage of cards.
I have one remark on speed of drawing when using your class.
You use GethDCc and ReleasehDC for each and every card-drawing seperatly.
When drawing only a limited number of cards that would be no problem, however in a patience like game (like FreeCells) you could have 2 complete decks on screen (104 cards), in this case this way of dealing with the hDC will consume much time.
I suggest to do the GethDC/ReleasehDC only once for each COMPLETE drawing action.
Re: iCards Class For Vb .Net
Quote:
Originally Posted by opus
Hey Pino, your ICards class did help me a lot in understanding the usage of cards.
I have one remark on speed of drawing when using your class.
You use GethDCc and ReleasehDC for each and every card-drawing seperatly.
When drawing only a limited number of cards that would be no problem, however in a patience like game (like FreeCells) you could have 2 complete decks on screen (104 cards), in this case this way of dealing with the hDC will consume much time.
I suggest to do the GethDC/ReleasehDC only once for each COMPLETE drawing action.
Yea this is a good idea, I think alot of the class could be improved but it did the trick at the time.
Thanks for the feedback! :thumb:
Re: iCards Class For Vb .Net
when i extract the zip it tells me im missing cards.dll
am i missing something?
Re: iCards Class For Vb .Net
card32.dll was used. Not sure if this ships with new versions of windows (vista etc)