Solved

What is Visual C# equivalent of HANDLE data type?

Posted on 2009-07-06
3
1,087 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

733 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