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

Advanced
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

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

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

DLL Uses Block

DLL Uses Block in Paradox Third Party Software, DLLs, and Controls topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: DLL Uses   DLL Uses Block  
abp
Altamonte Springs, Florida, USA
Boy, oh boy, I am having a lot of trouble with this dll business. I've worked a little bit with it in the past regarding Windows user32.dll, but basically I found some code, copied it, pastied it, and poof it worked. Now I'm trying to make heads or tails of it from the small documentation in Paradox 10 and the specs I have regarding the dll file but I just get one GPV after another. Can someone help?

I'm trying to create the uses block with the following specs (specs from VC Sample Code):

Boca.dll

Routine Name: proc_address
Calling Parameters: HINSTANCE hinstLib
Return Value: Integer

Routine Name: Find_USB_Printers
Calling Parameters: None
Return Value: None

Routine Name: Locate_Device
Calling Parameters: BOOL fUseDefault, int Index
Return Value: USB_HANDLE hUSB

Routine Name: Read_Data
Calling Parameters: USB_HANDLE hUSB, PVOID pBuffer, DWORD dwSize, int Pipe
Return Value: None

Routine Name: Write_Data
Calling Parameters: USB_HANDLE hUSB, PVOID pBuffer, DWORD dwSize, int Pipe
Return Value: None

Routine Name: Close_Port
Calling Parameters: USB_HANDLE hUSB
Return Value: None

Routine Name: USB_Status
Calling Parameters: USB_HANDLE hUSB
Return Value: int Status

Routine Name: Timeout_Port
Calling Parameters: PVOID pFunction, int Timeout value
Return Value: None

Routine Name: USB_Control
Calling Parameters: USB_HANDLE hUSB, PVOID pBuffer, DWORD dwSize, int Setup Packet
Return Value: Error Code

My current code that keeps on crashing with GPV looks like this:

Uses

"boca.dll"
proc_address(HINSTANCE clong, hinstLib clong)clong
Write_Data(hUSB chandle, pBuffer chandle, dwSize clong, Pipe clong)
Locate_Device(fUseDefault clong)chandle
endUses

var
hinstLib LongInt
endVar

hinstLib = proc_address(0,0)

If anyone can make some since out of all of this it would be greatly appreciated!

Note: I have put the dll calls in an external library due to the size of the dll (> 64)

Thanks for your help!
 Posted 16 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 #10026, 1 replies
Thread Started 11/19/2003 9:15:00 AM
View Counter=2161
Last Reply Posted 1/14/2004 6:43:00 AM)
Location=Altamonte Springs, Florida, USA  
Joined=18 years ago   MB Posts=88  
Most Recent Post
Moderator
Mike Prestwood
Prestwood IT
Prestwood IT office in Citrus Heights, CA
Any luck with this issue? I've used quite a few DLLs with Paradox and developed quite a few Win32 API calls, are you still having trouble?

--
Mike Prestwood
Prestwood IT Solutions

 Posted 15 years ago
Comment Quote
About Mike Prestwood -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Mike Prestwood

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Web Presence
Facebook, Prestwood IT Facebook page -- fan page. (Visit Me)
Twitter, Follow Prestwood IT on Twitter. (Visit Me)
LinkedIn, Prestwood IT company page on LinkedIn. (Visit Me)
YouTube, Prestwood IT YouTube Channel (Visit My Channel)
Website, My drum website where I sell my drum books. (http://www.play-drums.com)

Post ID #10206 (Level 1.1)  Reply to 10026
Thread Started 1/14/2004 6:43:00 AM
View Counter=2
Location=Prestwood IT office in Citrus Heights, CA 
Joined=19 years ago   MB Posts=1410   KB Posts=1805   KB Comments=73   BLOG, Topics=4  

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 = P1251A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #10026 Counter
2161
Since 4/2/2008
Follow PrestwoodBoards on: 


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