Connecting Tech Pros Worldwide Forums | Help | Site Map

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

ramu
Guest
 
Posts: n/a
#1: Feb 20 '06
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,


JetSnaiL
Guest
 
Posts: n/a
#2: Feb 20 '06

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


> ramuwrote:
Hi,[color=blue]
> 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[/color]
the[color=blue]
> 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,[/color]
I wonder, how you are going to call VC++ specific functions on Linux?

Ian Collins
Guest
 
Posts: n/a
#3: Feb 20 '06

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


ramu wrote:[color=blue]
> 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?
>[/color]
What data types? classes? typedefs? Just find the definitions of those
you want and recreate them.

--
Ian Collins.
ramu
Guest
 
Posts: n/a
#4: Feb 20 '06

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



JetSnaiL wrote:
[color=blue][color=green]
> > ramuwrote:[/color]
> Hi,[color=green]
> > 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[/color]
> the[color=green]
> > 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?[/color][/color]

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

ramu
Guest
 
Posts: n/a
#5: Feb 20 '06

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



Ian Collins wrote:
[color=blue]
> ramu wrote:[color=green]
> > 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.[/color]
>
> --
> Ian Collins.[/color]
[color=blue][color=green]
>> What data types? classes? typedefs? Just find the definitions of those
> >you want and recreate them[/color][/color]

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

Dervish
Guest
 
Posts: n/a
#6: Feb 20 '06

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


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)?

ramu
Guest
 
Posts: n/a
#7: Feb 21 '06

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



Dervish wrote:[color=blue]
> 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)?[/color]

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

Dervish
Guest
 
Posts: n/a
#8: Feb 21 '06

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


Than you should google for something like "porting win32 applications
to linux".

Ben Pope
Guest
 
Posts: n/a
#9: Feb 21 '06

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


ramu wrote:[color=blue]
> Dervish wrote:[color=green]
>> 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)?[/color]
>
> 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?[/color]

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...
Closed Thread