How to Call a "C" Program

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to Call a "C" Program

Michael Gross-4

            Hi,

 

                 I need some help as I want to invoke an external “C” program from Smalltalk.

                 Could someone let me know how I would go about this? I am currently using VW3.0 if that matters.

 

 

            Thanks !

 

Michael Gross

Solution Center
Blue Heron Consulting
90 Airpark Dr, Suite 200
Rochester, NY 14624

www.BlueHeron-Consulting.com

Office: 800-253-3449 / 585-464-8035 (x207)
Fax:    800-464-9901 / 585-464-9760

 

Reply | Threaded
Open this post in threaded view
|

AW: How to Call a "C" Program

Georg Heeg

Michael,

 

There is a component called DLL & C Connect which is well documented.

 

Georg

 


Von: Michael Gross [mailto:[hidden email]]
Gesendet: Mittwoch, 28. Juni 2006 20:43
An: [hidden email]
Betreff: How to Call a "C" Program

 

            Hi,

 

                 I need some help as I want to invoke an external “C” program from Smalltalk.

                 Could someone let me know how I would go about this? I am currently using VW3.0 if that matters.

 

 

            Thanks !

 

Michael Gross

Solution Center
Blue Heron Consulting
90 Airpark Dr, Suite 200
Rochester, NY 14624

www.BlueHeron-Consulting.com

Office: 800-253-3449 / 585-464-8035 (x207)
Fax:    800-464-9901 / 585-464-9760

 

Reply | Threaded
Open this post in threaded view
|

RE: How to Call a "C" Program

Sattler, Thomas (IT)
In reply to this post by Michael Gross-4
Michael,
 
DLLCC is useful for calling a function that exists inside a DLL (on windows) or inside an ".so" file (on unix).  If you are trying to just invoke a program, you can go do a callout to the operating system.  Under Unix, you use the #cshOne: method in the UnixProcess class.  If you want to run the command "startMyProgram", you'd say:
 
"UnixProcess cshOne: startMyProgram".
 
 
 
 


From: Michael Gross [mailto:[hidden email]]
Sent: Wednesday, June 28, 2006 2:43 PM
To: [hidden email]
Subject: How to Call a "C" Program

            Hi,

 

                 I need some help as I want to invoke an external “C” program from Smalltalk.

                 Could someone let me know how I would go about this? I am currently using VW3.0 if that matters.

 

 

            Thanks !

 

Michael Gross

Solution Center
Blue Heron Consulting
90 Airpark Dr, Suite 200
Rochester, NY 14624

www.BlueHeron-Consulting.com

Office: 800-253-3449 / 585-464-8035 (x207)
Fax:    800-464-9901 / 585-464-9760

 


NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.

Reply | Threaded
Open this post in threaded view
|

Re: How to Call a "C" Program

Travis Griggs

On Jun 28, 2006, at 13:50, Sattler, Thomas ((IT)) wrote:

Michael,
 
DLLCC is useful for calling a function that exists inside a DLL (on windows) or inside an ".so" file (on unix).  If you are trying to just invoke a program, you can go do a callout to the operating system.  Under Unix, you use the #cshOne: method in the UnixProcess class.  If you want to run the command "startMyProgram", you'd say:
 
"UnixProcess cshOne: startMyProgram".

And if you upgrade to vw7.4, you don't have to use the heinous csh anymore. You can just use shOne:

:)

--
Travis Griggs
Objologist
10 2 letter words: "If it is to be, it is up to me"



DISCLAIMER: This email is bound by the terms and conditions described at http://www.key.net/disclaimer.htm