Function, Dll, and how to call them from any windows program, help Please.

R

Robert

Ref.
Windows 2000 service pack 4
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland

Greeting,this is Roberto, from Italy.

I would like to make a dll including two very simple function, like
function1 like : function1(5,7), that return "12"
function2 like :function2(hello there), that return "Hello There"

and be able to call them from any windows program.

How can i do that ?

Can You help me with a code example for

1) dll code ( including any two simple function )
2) compile code for the dll
Should i use "C" or "C++" ?

3) program code for program1.exe ( calling both the two simple function
)
4) compile code for the program
Should i use "C" or "C++" ?

Can i also call it from vba from excel 2000?

Thank You.

Robert.
 
P

pete

Robert said:
Ref.
Windows 2000 service pack 4
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland

Greeting,this is Roberto, from Italy.

I would like to make a dll including two very simple function, like
function1 like : function1(5,7), that return "12"
function2 like :function2(hello there), that return "Hello There"

and be able to call them from any windows program.

http://www.ungerhu.com/jxh/clc.welcome.txt

Maybe:
 
K

Kenny McCormack

Ref.
Windows 2000 service pack 4
Turbo C Version 2.01 Copyright (c) 1987, 1988 Borland International
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland

Greeting,this is Roberto, from Italy.

I would like to make a dll including two very simple function, like
function1 like : function1(5,7), that return "12"
function2 like :function2(hello there), that return "Hello There"

Not portable. Can't discuss it here. Blah, blah, blah.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top