• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 544
  • Last Modified:

what should be the equivalent of data type Single (Delphi) in VC++ / MFC

what should be the equivalent of data type Single (Delphi)  in VC++ / MFC . we are calling a function from a Delphi dll from VC++ / MFC  which takes Single as a parameter.
0
pras_gupta
Asked:
pras_gupta
1 Solution
 
mokuleCommented:
float
0
 
pras_guptaAuthor Commented:
not working.. :(
0
 
xr1140Commented:

Then it must be long or unsigned long. Only those 3 types (long, unsigned long and float) are the VC++ equivalent in size (4 byte) with Delphi single type.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mokuleCommented:
I would better say nothing :)
Look into this article.
http://www.drbob42.com/delphi/headconv.htm
It's the other direction but parameters types are the same.
Maybe You've got problems with calling order convension?
0
 
mokuleCommented:
Look also into this article.
Calling delphi DLL from MS Visual C++
http://www.esanu.name/delphi/DLL/Calling%20delphi%20DLL%20from%20MS%20Visual%20C.html
0
 
bhavesh_joshiCommented:
equivalent of Delphi "Single" would be "int" in Visual C++
0
 
bhavesh_joshiCommented:
equivalent of Delphi "Single" would be "Short" / "Unsigned Short" in Visual C++
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now