473,698 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

linux compatible c datatypes for vc++ data types on windows

Hi,
I want to call a vc++ function from a c program on linux. So
when I do this dosen't the VC++ datatypes differ with c datatypes.
Because we don't have some vc++ data types in c. I have to convert the
vc++ datatypes into c data types or i have to use eqvivalent data
types. Can someone give me some idea how to convert or about the
equivalent data types?

Thanks in Advance,

Feb 20 '06 #1
8 3268
> ramuwrote:
Hi,
I want to call a vc++ function from a c program on linux. So
when I do this dosen't the VC++ datatypes differ with c datatypes.
Because we don't have some vc++ data types in c. I have to convert the vc++ datatypes into c data types or i have to use eqvivalent data
types. Can someone give me some idea how to convert or about the
equivalent data types?

Thanks in Advance,

I wonder, how you are going to call VC++ specific functions on Linux?

Feb 20 '06 #2
ramu wrote:
Hi,
I want to call a vc++ function from a c program on linux. So
when I do this dosen't the VC++ datatypes differ with c datatypes.
Because we don't have some vc++ data types in c. I have to convert the
vc++ datatypes into c data types or i have to use eqvivalent data
types. Can someone give me some idea how to convert or about the
equivalent data types?

What data types? classes? typedefs? Just find the definitions of those
you want and recreate them.

--
Ian Collins.
Feb 20 '06 #3

JetSnaiL wrote:
ramuwrote:

Hi,
I want to call a vc++ function from a c program on linux. So
when I do this dosen't the VC++ datatypes differ with c datatypes.
Because we don't have some vc++ data types in c. I have to convert

the
vc++ datatypes into c data types or i have to use eqvivalent data
types. Can someone give me some idea how to convert or about the
equivalent data types?

Thanks in Advance,
I wonder, how you are going to call VC++ specific functions on Linux?


The function are user defined. I will be having function definitions in
library.

Feb 20 '06 #4

Ian Collins wrote:
ramu wrote:
Hi,
I want to call a vc++ function from a c program on linux. So
when I do this dosen't the VC++ datatypes differ with c datatypes.
Because we don't have some vc++ data types in c. I have to convert the
vc++ datatypes into c data types or i have to use eqvivalent data
types. Can someone give me some idea how to convert or about the
equivalent data types?

What data types? classes? typedefs? Just find the definitions of those
you want and recreate them.


--
Ian Collins.

What data types? classes? typedefs? Just find the definitions of those
you want and recreate them


Basic data type like dword, BSTR etc. which i don't have in c and also
classes and typedefs. How to convert these basic data types into c
equivalent also the classes?

Regards

Feb 20 '06 #5
As I understand you have some C++ code written on Windows in VC++ and
some code written in C on Linux. The question is - are you going to
compile VC++ code on Linux, OR somehow use already compiled Windows
VC++ code (e.g. using CORBA or some other middleware)?

Feb 20 '06 #6

Dervish wrote:
As I understand you have some C++ code written on Windows in VC++ and
some code written in C on Linux. The question is - are you going to
compile VC++ code on Linux, OR somehow use already compiled Windows
VC++ code (e.g. using CORBA or some other middleware)?


yeah. you are right. iI have written some code in C on linux. And I
want to compile VC++ code on linux. Is there any way doing it? If so,
how can I bring the linux compatibility for vc++ data types?

regards

Feb 21 '06 #7
Than you should google for something like "porting win32 applications
to linux".

Feb 21 '06 #8
ramu wrote:
Dervish wrote:
As I understand you have some C++ code written on Windows in VC++ and
some code written in C on Linux. The question is - are you going to
compile VC++ code on Linux, OR somehow use already compiled Windows
VC++ code (e.g. using CORBA or some other middleware)?


yeah. you are right. iI have written some code in C on linux. And I
want to compile VC++ code on linux. Is there any way doing it? If so,
how can I bring the linux compatibility for vc++ data types?


This question is very open ended. What exactly is "VC++ code"?

Implementing the entire Windows SDK, and working around all the compiler
extensions is quite a large task. Depends how much of it you have used.

It is not topical here. 99% of what IS topical, is the bits that will
cause you no problems at all (i.e., the standard compliant bits that
will compile on both platforms).

You're off topic.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Feb 21 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
3472
by: Google Mike | last post by:
I guess I'm talking to get this off my chest. I guess I'm talking to the newbies out there wondering if they want to remain on ASP.NET, C#, JSP, or whatever, or whether they want to do their next project in PHP. Okay. I moved from Microsoft Windows 2000 and Visual Basic and ASP to Linux and JSP. I plan to stay on Linux now. Let's just say that I did it, but JSP was aggravating. I had to type 10 times more code than I felt I had to, and...
17
6143
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number. "Decimal Number" sometimes serves to distinguish Base 10 numbers, eg "15", from Base 2 numbers, Eg "1111". At other times "Decimal Number" serves to differentiate a number from an integer. For the rest of this post I shall only use either...
26
2463
by: Simon | last post by:
I'm doing a survey. When do you think GNU/Linux will be ready for the average Joe? What obstacles must it overcome first?
9
2048
by: Bob Stearns | last post by:
I am receiving what appears to me to be an inapplicable message from the query below. The message is also below. I see no VALUES clause nor a set operator (INTERSECT, DIFFERENCE, UNION) in the query. What am I missing? SQL0415N The data types of corresponding columns are not compatible in a fullselect that includes a set operator or in the multiple rows of a VALUES clause of an INSERT or fullselect. SQLSTATE=42825
3
1748
by: A.M | last post by:
Hi, I am planning to develop python applications on windows and run them on Linux. Are ActivePython scripts compatible with Linux? Is there any guideline that explains the compatibility issues between python in different platforms?
4
4490
by: mshetty | last post by:
Hi, We need a list of all VC++ Data Types. Searched through MSDN but could not find a single list. Since we are new to VCC+ we really don't know if what we are getting is sufficient or there is more. Would help if we could get some reference link. Thanks and Regards, M Shetty
7
15653
by: Lior | last post by:
Hi, I have small code, that compiles on Visual C++ into a shared library (DLL). I need to compile it under linux, but the code includes some data types I'm not familiar with, such as DWORD, HANDLE, __int64, ULONG etc. What are those words?
5
1762
by: Alex | last post by:
Hi, About 5 months ago I changed professions and moved from being a web programmer (ColdFusion mainly) to a Visual Basic.Net app coder, and though this is my first time to do application coding in a decade or more, I'm loving it! It's also my first time to really use OOP, which I'm slowly but surely getting the hang of. Though I've started coding in VB during the day, my home systems are all Linux. If I wanted to start developing...
11
1770
by: MartinRinehart | last post by:
I went to Python.org, DL'd Python 2.5 source code per the usual inadequate instructions and ran the make files successfully (sort of). Python 2.5 works fine. But "from Tkinter import *" gets a "What's Tkinter?" message. IDLE's no where to be found. What's not in the instructions is what directory should I be in when I download? Where should I put the ".bz2" file? What dir for running the make files? At present I'm working on a Windows...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.