Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cards.Dll
Message
 
 
À
13/02/2010 04:17:12
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01449001
Message ID:
01449037
Vues:
45
Yet another tribute to both you and Tim for the outstanding .NET support you provide here. I know I read everything either of you posts. Terrific work, guys. Not taking anything at all away from those who have already been officially recognized for their contributions, just saying I hope the club gets a little bigger.

MVP! MVP! MVP! ;-)

>>I'm trying to follow this example:
>>http://devhood.com/tutorials/tutorial_details.aspx?tutorial_id=437
>>
>>It compiles fine, but when I run it I get:
>>
>>Error while trying to run project: Could not load file or assembly 'Cards' or one of its dependencies. The module was expected to contain an assembly manifest.
>>
>>
>>What am I doing wrong?
>
>Did you just copy the source into your own project - or was there a download somewhere?
>IAC, obviously the example in the 'how to use it' bit won't work as is (cardsdll class isn't instantiated and the enums need to be cast) This worked for me:
   public partial class Form1 : Form
>    {
>        public Form1()
>        {
>        }
>
>        protected override void OnPaint(PaintEventArgs e)
>        {
>            base.OnPaint(e);
>            cards.cardsdll dll = new cards.cardsdll();
>            IntPtr hdc = e.Graphics.GetHdc();
>            dll.drawcard(hdc, 0, 0, ((int)ranks.FIVE) * 4 + (int)suits.CLUBS);
>            e.Graphics.ReleaseHdc(hdc);
>        }
>     }
with the cardsdll class used as-is in the same project.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform