Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-04-04
9
Medium Priority
?
540 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
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!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

604 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