473,573 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6309
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7675
by: Peter | last post by:
Please, could anyone tell me what differences is in using C# data types or ..NET types. For example in what situations I would have to use .NET types instead of C# types. Lets take C# bool and .NET Boolean for example. The help is very much appreciated. Thanks.
7
4077
by: Jenny | last post by:
Hi, I have a class foo which will construct some objects in my code. some of the objects store int values into the data deque, while others store float values to the deque. template <class TYPE> class foo { protected:
3
7237
by: MJ | last post by:
Is there a VB.NET (1.1 or 2.0) equivalent for Excel's ? Below is a copy of an example of the Excel VBA that I have been using to pull some data off a webpage. I've got a couple of simple application that currently live in an Excel workbook as VBA solely for this one function. I'd like to move this to a VB.NET Windows form application that...
8
3263
by: ramu | last post by:
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...
4
4484
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
12
2413
by: Sam Kong | last post by:
Hi, JavaScript hides its memory structure. I know that numbers, booleans, null and undefined are value types (value is directed saved in a variable). I want to know: - How JavaScript distinguishes value types from reference types by seeing the variable content?
0
1420
by: asenthil | last post by:
Hai, this is senthil... i'm now working in the field of VC++.. i have to convert text data into xml data... i will explain u clearly what i have to do... i'm having XML codings for creating a table in a mysql database... these xml codings are written into a single field in a database...
1
9905
by: neeraj | last post by:
Hi All Can any give me the code for convert "DataColumn" data type of "DataTable". Even if data table already populated (have data) Actually I am creating one search module which searches the data from "DataView" using "RowFilter" method. Here I m using like operator for searching, its work fine for string but if data type of "Data Column"...
3
2106
by: oruccim | last post by:
hi my friends; i have got a problem.i thing you can help me a='\x80\x02}q\x00(K\x02K\x03K\x04K\x06K\x05K\x07u.' i want to store database but i don't know which encoding and data ytpe pls help me sorry for my bed english... thanks all
1
1452
by: Tracey Marshall | last post by:
The program is designed to collect and print data from user. It loops through the options. The user can input data, print the data to screen and then choose to input data again adding to the already exiting data or return to the menu. The problem is with appending the data. The program is not stopping for the user to enter yes or no in scanf...
0
7755
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...
0
7679
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7992
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8190
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...
1
7756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6385
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...
1
5571
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...
0
3722
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...
0
3722
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.