Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to creat a dll having a funct that converts 'int' to 'short'

Status
Not open for further replies.

Takusaan

Programmer
Sep 20, 2000
29
US
I am designing an app using Visual FoxPro 6.0 and I need to to call a function that takes a 'short' variable as parameter. However FoxPro can not pass it to the function as a 'short integer'.
So my only option is to use a plain integer that I would convert to short using a Borland C++ dll.
Can anyone help?
 
Have you tried
Code:
int A = 12;
short B = (short) A;
? James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Thank for responding James.
But I am new to C++ and I would need the step by step of how to build such a dll.
 
Here is one place to look: . I haven't created a DLL so I can't help too much.
James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
go to

"DLL,example of creating"

in the borland builder help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top