Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2007-04-04
9
528 Views
Last Modified: 2013-12-14
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
Comment
Question by:pras_gupta
9 Comments
 
LVL 17

Expert Comment

by:mokule
ID: 18851641
float
0
 
LVL 1

Author Comment

by:pras_gupta
ID: 18851651
not working.. :(
0
 
LVL 5

Expert Comment

by:xr1140
ID: 18867960

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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 17

Accepted Solution

by:
mokule earned 125 total points
ID: 18868302
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
 
LVL 17

Expert Comment

by:mokule
ID: 18868310
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
 
LVL 1

Expert Comment

by:bhavesh_joshi
ID: 18944354
equivalent of Delphi "Single" would be "int" in Visual C++
0
 
LVL 1

Expert Comment

by:bhavesh_joshi
ID: 18944362
equivalent of Delphi "Single" would be "Short" / "Unsigned Short" in Visual C++
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21156539
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question