Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remove items from the list box in C# windows application Pin
nagendrathecoder3-May-10 0:52
nagendrathecoder3-May-10 0:52 
AnswerRe: Remove items from the list box in C# windows application Pin
Abdul Rahman Hamidy3-May-10 0:53
Abdul Rahman Hamidy3-May-10 0:53 
AnswerRe: Remove items from the list box in C# windows application Pin
Henry Minute3-May-10 3:32
Henry Minute3-May-10 3:32 
AnswerRe: Remove items from the list box in C# windows application Pin
PIEBALDconsult3-May-10 4:44
mvePIEBALDconsult3-May-10 4:44 
QuestionHtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 0:10
professional#realJSOP3-May-10 0:10 
AnswerRe: HtmlAgilityPack Weirdness Pin
Ravi Bhavnani3-May-10 2:42
professionalRavi Bhavnani3-May-10 2:42 
AnswerRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 2:47
sitebuilderLuc Pattyn3-May-10 2:47 
AnswerRe: HtmlAgilityPack Weirdness Pin
Pete O'Hanlon3-May-10 2:50
mvePete O'Hanlon3-May-10 2:50 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 5:54
professional#realJSOP3-May-10 5:54 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:09
sitebuilderLuc Pattyn3-May-10 6:09 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 6:46
professional#realJSOP3-May-10 6:46 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 6:57
sitebuilderLuc Pattyn3-May-10 6:57 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 13:47
professional#realJSOP3-May-10 13:47 
GeneralRe: HtmlAgilityPack Weirdness Pin
Luc Pattyn3-May-10 13:59
sitebuilderLuc Pattyn3-May-10 13:59 
GeneralRe: HtmlAgilityPack Weirdness Pin
#realJSOP3-May-10 23:23
professional#realJSOP3-May-10 23:23 
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 

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.