471,595 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

equivalent c data types for vc++ data types

Hi

I have to call a vc++ function in a c program.
suppose i have a function

dword fun(dword arg1, bstr arg2); in vc++.

I have to call this function in c. But I don't have dword datatype in
c. So when i call this function in c, i have to convert all the data
tpyes of vc++ into c data types. Or I must have equivalent data types
in c.
And then i have to replace those equivalent datatypes in the function
and then I must execute the function in c.

One more thing am using linux to run c program and windows for Vc++.

Can anyone give me an idea how to achieve this?
Thanks in Advance

Feb 20 '06 #1
2 6129
ramu wrote:
I have to call a vc++ function in a c program.
suppose i have a function

dword fun(dword arg1, bstr arg2); in vc++.

I have to call this function in c. But I don't have dword datatype in
c. So when i call this function in c, i have to convert all the data
tpyes of vc++ into c data types. Or I must have equivalent data types
in c.
And then i have to replace those equivalent datatypes in the function
and then I must execute the function in c.

One more thing am using linux to run c program and windows for Vc++.

Can anyone give me an idea how to achieve this?


strictly this is off topic to this newsgroup. You need to ask on a
microsoft
specific group.

But I'm a little confused. How are you calling windows specific
functions
without including MS specific headers (eg. windows.h). If the headers
are
present then the MS datatypes should be.
--
Nick Keighley

Feb 20 '06 #2

ramu wrote:
Hi

I have to call a vc++ function in a c program.
suppose i have a function

dword fun(dword arg1, bstr arg2); in vc++.

I have to call this function in c. But I don't have dword datatype in
c. So when i call this function in c, i have to convert all the data
tpyes of vc++ into c data types. Or I must have equivalent data types
in c.
And then i have to replace those equivalent datatypes in the function
and then I must execute the function in c.

One more thing am using linux to run c program and windows for Vc++.

Can anyone give me an idea how to achieve this?
Thanks in Advance


The dword should be written as DWORD, and windows.h should be also
included. If it isn't so, then you should typedef it for yourself (
DWORD is unsigned long ).

Feb 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Peter | last post: by
1 post views Thread by neeraj | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.