🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7209

Re: Calling one app's function from another app

#7209
From: Remy Lebeau (TeamB)
Date: Thu, 03 Mar 2005 02:08
24 lines
1804 bytes
"Greg Bullock" <greg dot bullock at atk dot com> wrote in message
news:4226686a$1@newsgroups.borland.com...

> AppOne exports a function declared as follows:
>
> TMyStruct __stdcall __declspec(dllimport) GetMyStruct(
>           const char *StrA,
>           const char *StrB,
>           const SYSTEMTIME& DateTime);

That is not an export.  That is an import.

> AppTwo attempts to call this function using code something
> like the following:

I do not suggest you do it that way.  Why do you need applications to call
each other's functions in the first place?  That is not a very good design.
Shared code should be placed into a DLL instead.  Otherwise, you should use
Automation or RPC to allow applications to call each others functions in a
safe manner.


Gambit
Technical Details
Message-ID: <42267292@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4226686a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ce3b76f66924fcaa
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4226686a$1@newsgroups.borland.com>
Subject: Re: Calling one app's function from another app
Date: Wed, 2 Mar 2005 18:08:56 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42267292@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109815954 68.69.17.41 (2 Mar 2005 18:12:34 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail