Welcome, Guest. Please login or register.
May 16, 2012, 03:26:55 pm
Home Help Search Login Register
News: Remember to do a search before you ask a question!!!

+  TurboCAD Forums
|-+  SDK Corner
| |-+  SDK General Discussion
| | |-+  Turbo Delphi 2006 Questions
« previous next »
Pages: [1] Go Down Print
Author Topic: Turbo Delphi 2006 Questions  (Read 1712 times)
Michael Geraghty
Sr. Member
****
Posts: 495


« on: May 31, 2009, 02:22:08 pm »

You're quite welcome.

Note that the Turbo version doesn't allow you to import type libraries from the IDE. You'll have to use tlibimp from the command line to generate a unit from the IMSIGX16 dll file.

Hello Kevan, what are the command line parameters for tlibimp in relation to IMSIGX16.dll .
Logged
kchapman
Administrator
Full Member
*****
Posts: 201


« Reply #1 on: June 01, 2009, 07:59:32 am »

what are the command line parameters for tlibimp in relation to IMSIGX16.dll .

Try this:
tlibimp -P imsigx16.dll
Logged
Michael Geraghty
Sr. Member
****
Posts: 495


« Reply #2 on: June 01, 2009, 02:29:27 pm »

what are the command line parameters for tlibimp in relation to IMSIGX16.dll .

Try this:
tlibimp -P imsigx16.dll



Hello Kevan, I tried tlibimp -P imsigx15.dll and it had a syntax problem, so then I Looked at the options and it Had -P- ,so I tried tlibimp -P- imsigx15.dll as I am using the V15 imsigx15.dll. It says Type Library Loaded, but cannnot find the unit that it has created. Am I missing something, as it has been a number of years since using Delphi ??.
Logged
kchapman
Administrator
Full Member
*****
Posts: 201


« Reply #3 on: June 01, 2009, 03:57:49 pm »

Are you using CD to get to TurboCAD's Programs folder before running tlibimp? That's the way I used it; it put the resulting IMSIGX_TLB.pas and IMSIGX_TLB.dcu files in the same directory as the dll.

As for syntax errors: yes,  I had some similar problems. Most of them are due to tlibimp not recognizing some of the properties as readonly -- get rid of the write portion of the properties that throw errors.

I also had to rename the Selection interface to IMSISelection -- looks like a naming conflict with something already in Delphi. This involved changing a number of lines -- everywhere the unit expects a Selection interface, change it to IMSISelection.

Finally, the TAppliation.DisConnect procedure is wrong somehow; for now I have simply commented out everything between the begin and end lines for that procedure.

Have a look at my modified IMSIGX_TLB.pas file in the Delphi sample project I just posted in the User Contributions area.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 17 queries.