Cards32.dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xpun
    New Member
    • Apr 2007
    • 39

    Cards32.dll

    Hi all.

    I’m trying to write a card game using cards32.dll in VB 2005. I cant seem to find any examples or instructions that aren’t in VB6. I found one site but its kind of hard to follow what the hell is going on.

    I have also tried to add cards32.dll as a reference but Visual Studio 2005 won’t allow it for some reason.

    If I had just an example to display a card when i pushed a button i'd be on my way.

    Any help is appreciated

    thanks
    ~John~
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    I'm guessing cards32.dll is not your own made .dll file, well ya, some .dll's cannot be referenced to visual studio just because. Basically, that's it, some .dll files cannot be referenced, maybe it was created with a different program, or older version of visual studio no longer supported...

    joedeene

    Comment

    • xpun
      New Member
      • Apr 2007
      • 39

      #3
      Originally posted by joedeene
      I'm guessing cards32.dll is not your own made .dll file, well ya, some .dll's cannot be referenced to visual studio just because. Basically, that's it, some .dll files cannot be referenced, maybe it was created with a different program, or older version of visual studio no longer supported...

      joedeene
      naa cards32.dll is the windows dll for solitar frecell etc. I Think have actually figured out the problem, not the referencing but the code to generate cards. Once its working flawlessly I will post it.

      Comment

      • xpun
        New Member
        • Apr 2007
        • 39

        #4
        I have had this finished for quite some time now. If anyone need help using the dll or wants to see some source, let me know ...

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          I would guess that you would have to use DLLImport on the DLL since its a COM dll(?) and call the function out like that with Pinvoke

          Comment

          • vekipeki
            Recognized Expert New Member
            • Nov 2007
            • 229

            #6
            You can find a managed wrapper example at http://www.pinvoke.net/default.aspx/...dsWrapper.html, but I'm not sure which .dll it's using (it says cards.dll, but the signatures look like they might work for cards32.dll).

            Comment

            Working...