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 23 years ago (Thread Starter)
About abp
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=2805
Last Reply Posted 1/14/2004 6:43:00 AM)
Location=Altamonte Springs, Florida, USA
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?
Posted 22 years ago
About Mike Prestwood
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 )
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
Revive Thread!
Add a comment to revive this old thread and make this archived thread more useful.
Thread #10026 Counter
2805
Since 4/2/2008