I.T. Discussion Community!
-Collapse +Expand
Search Paradox Group:

-Collapse +Expand Paradox To/From
-Collapse +Expand Paradox Store

Prestwood eMagazine

January Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Third Party Software, DLLs, and Controls Topic   Print This     

get going with dll's

get going with dll's in Paradox Third Party Software, DLLs, and Controls topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: get going   get going dll  
Altamonte Springs, Florida, USA

I'm having trouble defining the methods from a dll in uses.

name of dll:  sim.dll

method name: GetBatchStatus

return value:  String

this is what I have so far:

Uses "sim.dll"

GetBatchStatus(status CPTR) String

Quite honestly, I'm shooting in the dark here.  Very unfamilar with dll's in general.  Some quick questions.

Do I need to register the ActiveX control in Paradox?  
I'm guessing, Yes, so I tried doing so interactively thru "Tools/Register ActiveX Control" and I received the following error:  
"This control file does not support self-registration."

I reported this result to the developer of the .dll and they responded with:  
"The SIM.DLL is a .net component and does not need to be registered. If you are using a language and IDE like Visual Studio .net, you should be able to directly reference the control. If you need to reference the SIM in unmanaged code like Delphi, please follow the instructions regarding unmanaged code at the end of the manual."

Instructions for unmanaged code from "manual":
"It is possible to have the SIM run in Debug with Unmanaged Code. This is any environment outside .NET. The environment
could be Vb6, C++, FoxPro, etc. It is, however, necessary to run the COM-Dev.bat file on the development machine. This is
located with the SIM development kit files. Please make sure to change the path in the .bat file prior to running it. This
.bat file will create a .tlb file in the SIM path. This is the file you will need to reference in your code.
In the client environment the .tlb file is not necessary. The SIM will still need to be registered on any client machine when
dealing with Unmanaged Code (anything other than .NET). Upon deployment, the integrator should run the COM.bat file
Note: When using the .bat file it is important to make sure there are no spaces in the path.
C:\Program Files � Incompatible Path
C:\VeriFone\SIM � Compatible Path"

I followed these directions...which created a SIM.tbl file.  But now what?  Here again, not sure if I'm barking up the wrong tree here...

I know someone out there knows what to do here.  Please help!


 Posted 11 years ago (Thread Starter)
Comment Quote
About abp -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.

Post ID #13701, 1 replies
Thread Started 10/16/2009 1:54:34 PM
View Counter=3553
Last Reply Posted 10/25/2009 5:07:41 AM)
Location=Altamonte Springs, Florida, USA  
Joined=19 years ago   MB Posts=88  
Most Recent Post
ric s
-- UNK


I'd ignore all the info about .tlb files.  These are definition files that let your app see the objects/methods/properties of the objects in the DLL once they are linked.  Unless you need to debug the calls to the dll, you shouldn't need to bother with this.

You seem to want a return from the dll - the sample code :

GetBatchStatus(status CPTR) String

does not retrieve anything from the dll call.  Is it meant to tell you what the batch progress is?  If so, you'll need to get the return value somehow - normally by assigning it to a local variable.  Perhaps (and I'm guessing - it's been 14 years since I last used PDox for Windows) 

var varStatus  String

varStatus = GetBatchStatus(status CPTR)?



 Posted 11 years ago
Comment Quote
About ric s -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #13710 (Level 1.1)  Reply to 13701
Thread Started 10/25/2009 4:58:50 AM
Location=-- UNK 
Joined=11 years ago   MB Posts=7  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1272A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #13701 Counter
Since 10/16/2009

Follow PrestwoodBoards on: 

©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech