Announcement

Collapse
No announcement yet.

Trying to use CcTalkCommLib2.dll - Anyone ever used it?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to use CcTalkCommLib2.dll - Anyone ever used it?

    Hi. I am trying to add some DLL Function calls for CcTalkCommLib2.dll but I could not find how to use it, yet. Its used for a coin validator (put in 1€ before you can use the PC/Software) and I need it to check if the right amount was inserted.

    Did anyone ever use this DLL? I found a helpfile for it but the ccTalkCommunication2.chm is empty (only blank pages) and not really helpful.
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    Post a link to the dll, google shows just 3 results for the dll.

    Comment


    • #3
      And you know on Windows 7 + chm files downloaded from the internet need to be right clicked and unblocked before they show content.

      Comment


      • #4
        Hi. You can download it here:
        www.playbird.at/temp/ccTalk/CcTalkCommLib2.dll
        www.playbird.at/temp/ccTalk/ccTalkCommunication2.chm
        Got it from the device manufacturer.
        Bl4ckSh33p-Soft - Custom Software and Indie Games

        Comment


        • #5
          The chm does work if unblocked and appears quite detailed, try it with MemoryEx dll calling functions.

          Comment


          • #6
            Indeed, the documentation is quite detailed. To enable the CHM's content (as Shrek is suggesting), open the properties window of the CHM file and click Unblock (in your language, of course )
            Bas Groothedde
            Imagine Programming :: Blog

            AMS8 Plugins
            IMXLH Compiler

            Comment


            • #7
              The helpfile is working now.
              But the author told me this one above is for .net/C and will not work with the AMS DLL call and sent me another DLL file which should work - but is not maintained anymore and was last updated 2004.
              Bl4ckSh33p-Soft - Custom Software and Indie Games

              Comment


              • #8
                Did you try MemoryEx dll call? You can use structures and pointers etc like the dll needs?

                Comment


                • #9
                  Not yet, but I will try it this weekend. I never used DLLs or MemoryEx.
                  Bl4ckSh33p-Soft - Custom Software and Indie Games

                  Comment


                  • #10
                    Hi. I tried the other DLL I got but it was last updated 10 years ago and does not seem to work with the device I got (it returns -99 which is not shown in error code examples). I will try to use MemoryEx and the .net/C DLL.
                    Bl4ckSh33p-Soft - Custom Software and Indie Games

                    Comment


                    • #11
                      I downloaded the MemoryEx plugin and tried to load the CcTalkCommLib2.dll from above but I never used DLLs or C/.net and don't know how to use it properly. I tried to call some of the items from the manual like a function but it always returns nil.

                      Can anyone give me some hints how to use it, please?
                      Bl4ckSh33p-Soft - Custom Software and Indie Games

                      Comment


                      • #12
                        Originally posted by Bl4ckSh33p View Post
                        I downloaded the MemoryEx plugin and tried to load the CcTalkCommLib2.dll from above but I never used DLLs or C/.net and don't know how to use it properly. I tried to call some of the items from the manual like a function but it always returns nil.

                        Can anyone give me some hints how to use it, please?
                        If you don't specifically show us what you have tried so far, we can't give any pointers.
                        Bas Groothedde
                        Imagine Programming :: Blog

                        AMS8 Plugins
                        IMXLH Compiler

                        Comment


                        • #13
                          I did overwrite some parts but I tried to rewrite what I tried so far:
                          Code:
                          ***ll = Library.Load("C:\\Users\\Alexander\\Documents\\AutoPlay Media Studio 8\\Projects\\SchwarzesBrett\\ccTalk_Communication_V1.0.17.9\\Developer\\CcTalkCommLib2.dll", false);
                          cctype = type(***ll);
                          Dialog.Message("DEBUG", "Type: "..cctype, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                          cccount = Table.Count(***ll);
                          Dialog.Message("DEBUG", "Count: "..cccount, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                          
                          Desktop = Shell.GetFolder(SHF_DESKTOP);
                          
                          
                          for i,v in pairs(***ll) do
                          	--Dialog.Message("DEBUG", "Index: "..i.."Value: "..v, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                          	TextFile.WriteFromTable(Desktop.."\\test.txt", ***ll, false);
                          --[[textfile contains:
                          1
                          91488256
                          ]]--
                          end
                          
                          
                          if ***ll then
                          
                          test = ***ll:whCcTalkLibraryInfo();
                          Dialog.Message("DEBUG", "Message: "..test, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
                          
                          end
                          
                          ***ll:Close_();
                          
                          --[[
                          test = whCcTalkLibraryInfo(); - nil
                          test = whCcTalkLibraryInfo(Build); - nil
                          test = whCcTalkLibraryInfo.Build(); - nil
                          test = whCcTalkLibraryInfo:Build(); - nil
                          test = ***ll:whCcTalkLibraryInfo(); - function not found
                          test = ***ll.whCcTalkLibraryInfo(); - function not found
                          ]]--
                          Bl4ckSh33p-Soft - Custom Software and Indie Games

                          Comment


                          • #14
                            Hi. I tried to load an CCTalk C#/.net example in Visual Studio to use it to create a textfile or registry entry if someone inserts a coin and AMS can then read this to use the data (amount and time). But I never used Visual Studio or C or .net.
                            Is anyone experienced with it? You don't have to do it for free. Or does someone know how to use the .dll directly in AMS?
                            Bl4ckSh33p-Soft - Custom Software and Indie Games

                            Comment

                            Working...
                            X