Click here to Skip to main content
15,897,032 members
Home / Discussions / C#
   

C#

 
GeneralRe: HtmlAgilityPack Weirdness [modified] Pin
#realJSOP4-May-10 0:09
professional#realJSOP4-May-10 0:09 
QuestionHow to license my product Pin
Jamal Abdul Nasir3-May-10 0:08
Jamal Abdul Nasir3-May-10 0:08 
AnswerRe: How to license my product Pin
Peace ON3-May-10 0:51
Peace ON3-May-10 0:51 
GeneralRe: How to license my product Pin
Jamal Abdul Nasir3-May-10 5:36
Jamal Abdul Nasir3-May-10 5:36 
GeneralRe: How to license my product Pin
Peace ON3-May-10 21:01
Peace ON3-May-10 21:01 
GeneralRe: How to license my product Pin
Johnny J.12-May-10 13:01
professionalJohnny J.12-May-10 13:01 
QuestionWebservice to receive SOAP/XML data Pin
sirTachyon3-May-10 0:01
sirTachyon3-May-10 0:01 
QuestionUsing cards.dll in Windows 7 Pin
Mc_Topaz2-May-10 23:21
Mc_Topaz2-May-10 23:21 
Hello!

I have been looking in this article: Drawing Cards with Cards.dll[^] and wanted to try it out myself.

But I have not find out how to initialize the cards.dll on Windows 7. I downloaded cards.dll and put in under: c:\windows\system32. This is my code so far:

public partial class Form1 : Form
{
   [DllImport("cards.dll")]
   private static extern bool cdtInit(ref int width, ref int height);

   public Form1()
   {
      InitializeComponent();

      int width = 12, height = 12;

      if (!cdtInit(ref width, ref height))
         throw new Exception("cards.dll did not load");
   }
}


The if-statement crashes with the a BadImageFormatException with this message (translated from Swedish to English):
"An attempt to read the program/application with bad format was made. (Exception from HRESULT: 0x8007000B)"

How shall I make this work?
AnswerRe: Using cards.dll in Windows 7 Pin
Ghydo2-May-10 23:38
Ghydo2-May-10 23:38 
GeneralRe: Using cards.dll in Windows 7 Pin
Mc_Topaz2-May-10 23:59
Mc_Topaz2-May-10 23:59 
QuestionHi! is it possible that my dbase is sql2005 using php and javascript Pin
crisjala2-May-10 23:11
crisjala2-May-10 23:11 
AnswerRe: Hi! is it possible that my dbase is sql2005 using php and javascript Pin
Michel Godfroid2-May-10 23:48
Michel Godfroid2-May-10 23:48 
Questiontypeof() ???? Pin
reza assar2-May-10 23:09
reza assar2-May-10 23:09 
AnswerRe: typeof() ???? [modified] Pin
#realJSOP2-May-10 23:47
professional#realJSOP2-May-10 23:47 
GeneralRe: typeof() ???? Pin
reza assar4-May-10 23:26
reza assar4-May-10 23:26 
AnswerRe: typeof() ???? Pin
PIEBALDconsult3-May-10 4:34
mvePIEBALDconsult3-May-10 4:34 
GeneralRe: typeof() ???? Pin
reza assar4-May-10 23:31
reza assar4-May-10 23:31 
GeneralRe: typeof() ???? Pin
PIEBALDconsult5-May-10 4:13
mvePIEBALDconsult5-May-10 4:13 
QuestionNew Project Ideas? Pin
CoderForEver2-May-10 19:56
CoderForEver2-May-10 19:56 
AnswerRe: New Project Ideas? Pin
Pete O'Hanlon2-May-10 20:42
mvePete O'Hanlon2-May-10 20:42 
GeneralRe: New Project Ideas? Pin
Roger Wright2-May-10 21:11
professionalRoger Wright2-May-10 21:11 
JokeRe: New Project Ideas? Pin
Michel Godfroid2-May-10 22:48
Michel Godfroid2-May-10 22:48 
GeneralRe: New Project Ideas? Pin
MollyTheCoder3-May-10 4:43
MollyTheCoder3-May-10 4:43 
AnswerRe: New Project Ideas? [modified] Pin
wangbo02392-May-10 20:50
wangbo02392-May-10 20:50 
GeneralRe: New Project Ideas? Pin
Pete O'Hanlon2-May-10 20:54
mvePete O'Hanlon2-May-10 20:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.