Solved

What is Visual C# equivalent of HANDLE data type?

Posted on 2009-07-06
3
1,060 Views
Last Modified: 2012-05-07
Hi

Im developing a Windows application using Visual C# and Visual Studio 2008. For part of the project I need to convert some code written in C/C++.  eg

HANDLE  idiot;

How would I define "idiot" in my visual C# code ie. what data type is equivalent to "HANDLE"?
0
Comment
Question by:rangers99
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 50 total points
ID: 24785070
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 24785083
HANDLE is used by a lot of WinAPI functions, I think you have to focus on the function itself, instead of handle.
For every function you will find application examples of C# Interop.
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 50 total points
ID: 24785085
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question