Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Can v call procedures written in other languages from a C prgm

Reply
Thread Tools

Can v call procedures written in other languages from a C prgm

 
 
Richard Bos
Guest
Posts: n/a
 
      08-12-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> "Malcolm" <(E-Mail Removed)> wrote in message news:<ceolon$kp7$(E-Mail Removed)>...
> >
> > Unfortunately there isn't a very good answer. There are no standard
> > facilities for doing so. However virtually every platform builds the
> > executable out of linked object files, and sometimes there is a way of
> > compiling another language to a C linkable .o or .obj file. Most assemblers
> > will do this, for example.

>
> SO, there isn't any way to call the functions from C prgm, written in
> a diff language then.


No portable way, that is. If you want to call, say, a function written
in Gnu Pascal, then Gnu C probably has a facility to do so; if you want
to call a function written in MicroSoft Visual Basic from MSVC, this may
well be possible; but in all such cases, the way to do so is necessarily
specific to that particular compiler, and you need to read its
documentation, or ask in a newsgroup for that compiler, to find out how.

Note that C++ is a special case: you explicitly _can_ call C functions
from C++ programs, but this is handled by the C++ Standard, not by C, so
ask about this feature in comp.lang.c++.

Richard
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call an external script/prgm and wait until execution is finished? Sven Fischer Java 2 03-09-2012 12:59 AM
"javaw.exe" does NOT prevent popup of black command prompt when starting GUI *.jar prgm Ulf Meinhardt Java 0 12-28-2009 10:06 AM
Error - Socket prgm =?Utf-8?B?cmFqYW1hbmlja2Ft?= ASP .Net 0 10-28-2004 06:05 AM
Re: Can a usercontrol written in C# be used in Web Forms that is written in VB.Net? Steve C. Orr, MCSD ASP .Net 1 08-24-2003 12:06 AM



Advertisments