Wrappering C functions

Hello all,

I am trying to call an API function from within Forte on a Windows

95 PC. I have written the C++ wrappering and have compiled this

separately successfully into a dll file.

However, the 'Integrating With External Systems' manual says that two

additional files are created when then library project is created and

installed - a '.cc' and '.cdf' file. The required compiler on a

Windows 95 PC is Microsoft C++ v5.0 which I have, but this does not

recognize a '.cc' file. If this file is renamed to be a '.c' file

and then compiled, the class definitions in the included '.cdf' files

do not match the compilers expected format.

I have tried using FCOMPILE in the directory with the '.bom' file and

the '.cc' and '.cdf' files, specifying the path to the compiled

wrapper code, but this did not produce any output.

Can anyone tell me PLEASE:

How should I be compiling these '.cc' and'.cdf' files with my C++

wrappering file to produce the final dll file that Forte is

expecting?

Do I need to specify to Forte the location of the compiler somehow?

Thanks in advance

Simon Larcher

[1262 byte] By [] at [2007-11-25 5:01:21]
# 1

I have written Forte C project file to call Action Workflow API

functions using forte 2.0, Microsoft VC++ 5.0 for our

Intranet application. Here are some comments:

*Checking environment variables for both forte and VC++.

*Make sure the xxx.lib file is in the right directory as you

specify the path in your Forte C project file.

Step 3: Compile and Link Shared Libraries

1. Open Program/Command Prompt. Change directory to

Forte_Root/appdist/environment_id/xxx/cl0/Codegen/xxx,

and make sure that you have following files:

xxx.cc

xxx.cdf

xxx.def

xxx.exp

xxx.mar

xxx.nti

2. Make sure file xxx.lib in the directory \...\xxx.lib.

4. Type fcompile, press enter.

5. Make sure that you have the following generated

distribution files in the

same directory:

xxx.dll

xxx.lib

xxx.obj

*Make a new xxx.lib file using VC++ if you still have problems.

*It is more convinent to install Forte AutoCompiler.

John Liang

> -

> From: simonl@[194.168.133.1][SMTP:simonl@[194.168.133.1]]

> Reply To: simonl@[194.168.133.1]

> Sent: Tuesday, December 16, 1997 6:38 AM

> To:forte users

> Subject:Wrappering C functions

>

> Hello all,

>

> I am trying to call an API function from within Forte on a Windows

> 95 PC. I have written the C++ wrappering and have compiled this

> separately successfully into a dll file.

>

> However, the 'Integrating With External Systems' manual says that two

> additional files are created when then library project is created and

> installed - a '.cc' and '.cdf' file. The required compiler on a

> Windows 95 PC is Microsoft C++ v5.0 which I have, but this does not

> recognize a '.cc' file. If this file is renamed to be a '.c' file

> and then compiled, the class definitions in the included '.cdf' files

> do not match the compilers expected format.

>

> I have tried using FCOMPILE in the directory with the '.bom' file and

> the '.cc' and '.cdf' files, specifying the path to the compiled

> wrapper code, but this did not produce any output.

>

> Can anyone tell me PLEASE:

>How should I be compiling these '.cc' and'.cdf' files with my C++

> wrappering file to produce the final dll file that Forte is

> expecting?

>Do I need to specify to Forte the location of the compiler somehow?

>

>

> Thanks in advance

>Simon Larcher

>

at 2007-6-29 9:20:48 > top of Java-index,Application & Integration Servers,Integration Servers...
# 2

There are some environment variables (aka registry entries) that must be

entered to specify the location of your compiler. You may need to call

Forte support for the exact names of these settings.

Simonl Wrote:

From: simonl@[194.168.133.1]

Date: Tue, 16 Dec 1997 12:38:24 +0000

Subject: Wrappering C functions

Hello all,

I am trying to call an API function from within Forte on a Windows

95 PC. I have written the C++ wrappering and have compiled this

separately successfully into a dll file.

However, the 'Integrating With External Systems' manual says that two

additional files are created when then library project is created and

installed - a '.cc' and '.cdf' file. The required compiler on a

Windows 95 PC is Microsoft C++ v5.0 which I have, but this does not

recognize a '.cc' file. If this file is renamed to be a '.c' file

and then compiled, the class definitions in the included '.cdf' files

do not match the compilers expected format.

I have tried using FCOMPILE in the directory with the '.bom' file and

the '.cc' and '.cdf' files, specifying the path to the compiled

wrapper code, but this did not produce any output.

Can anyone tell me PLEASE:

How should I be compiling these '.cc' and'.cdf' files with my C++

wrappering file to produce the final dll file that Forte is

expecting?

Do I need to specify to Forte the location of the compiler somehow?

Thanks in advance

Simon Larcher

at 2007-6-29 9:20:48 > top of Java-index,Application & Integration Servers,Integration Servers...