Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Calling external C++ shared lib or DLL ?

Re: Calling external C++ shared lib or DLL ?

From: Finn Ellebaek Nielsen <_remove_fen_remove__at_changegroup.dk>
Date: Mon, 24 Mar 2003 16:29:28 +0100
Message-ID: <3e7f2457$0$42554$edfadb0f@dread11.news.tele.dk>


Hi Leopold.

Yes this is possible. You have to make a thin C interface on top of your C++ code and export that interface from the DLL, for instance:

extern "C" void __declspec(dllexport) __cdecl MyFunc()

{
  // C++ code
}

HTH. Finn

--
---------------------------------------------------------------------------
 Finn Ellebaek Nielsen                           ChangeGroup ApS
 Product Manager, Principal Consultant, Partner  Kronprinsessegade 54, 4.
 E-mail: finn.ellebaek.nielsen_at_changegroup.dk    DK-1306  Koebenhavn K
 Mobile: +45 20 32 49 25                         Denmark
 Phone:  +45 33 32 77 78                         http://www.changegroup.dk
---------------------------------------------------------------------------
ChangeGroup PL/SQL Server Pages: Web-enable PL/SQL code and developers
ChangeGroup Open System Documentary: Oracle system documentation generator

"Leopold Zyka" <leopold.zyka_at_igel.at> wrote in message
news:3E7F0F8D.293A3710_at_igel.at...

> Dear Oracle Gurus,
>
> Is it possible under Oracle8i to make an external call to a shared
> library or DLL which is written in C++ ?
> Or does this only work with C ?
>
> regards, Leopold
>
>
Received on Mon Mar 24 2003 - 09:29:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US