?
Solved

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

Posted on 2007-04-04
9
Medium Priority
?
539 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
[X]
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
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 17

Accepted Solution

by:
mokule earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
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 use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

800 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