By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,231 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,231 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
8 Replies


P: n/a
> 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

P: n/a
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

P: n/a

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

P: n/a

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

P: n/a
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

P: n/a

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

P: n/a
Than you should google for something like "porting win32 applications
to linux".

Feb 21 '06 #8

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.