Solved

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

Posted on 2007-04-04
9
524 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best Firemonkey component pack 1 86
Eclipse. How to move up/down source folders 4 74
QRReport  TQrmemo vertical stretching 1 42
Delphi: Connect to running MS Outlook 4 48
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

911 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

24 Experts available now in Live!

Get 1:1 Help Now