Solved

What is Visual C# equivalent of HANDLE data type?

Posted on 2009-07-06
3
1,048 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now