Solved

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

Posted on 2007-04-04
9
520 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
Comment Utility
float
0
 
LVL 1

Author Comment

by:pras_gupta
Comment Utility
not working.. :(
0
 
LVL 5

Expert Comment

by:xr1140
Comment Utility

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
 
LVL 17

Accepted Solution

by:
mokule earned 125 total points
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 17

Expert Comment

by:mokule
Comment Utility
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
Comment Utility
equivalent of Delphi "Single" would be "int" in Visual C++
0
 
LVL 1

Expert Comment

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

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now