Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: EnvDTE + visual studio .net addin Pin
cbiacca13-May-03 13:49
cbiacca13-May-03 13:49 
GeneralImageList(contd..) Pin
Kant12-May-03 12:50
Kant12-May-03 12:50 
GeneralRe: ImageList(contd..) Pin
James T. Johnson12-May-03 15:04
James T. Johnson12-May-03 15:04 
GeneralRe: ImageList(contd..) Pin
Kant12-May-03 15:25
Kant12-May-03 15:25 
GeneralEnumerating Top Level Windows Pin
Waleed Eissa12-May-03 12:12
Waleed Eissa12-May-03 12:12 
GeneralRe: Enumerating Top Level Windows Pin
leppie12-May-03 13:36
leppie12-May-03 13:36 
GeneralwinAPI functions Pin
datainjector12-May-03 12:06
datainjector12-May-03 12:06 
GeneralRe: winAPI functions Pin
Jon Newman12-May-03 12:20
Jon Newman12-May-03 12:20 
You can import functionality from a native dll.

For example:
[DllImport("kernel32", SetLastError=true)]
static extern IntPtr CreateFile(
string filename,
uint desiredAccess,
uint shareMode,
uint attributes,
uint creationDisposition,
uint flagsAndAttributes,
uint templateFile
);


You can then call CreateFile as you would a normal C# method.

You will need to know the basic conversion types from C++ to C#.
Or you can use [MarshalAs(UnmanagedType...)] attribute on a field.


"If you just say porn then you get all manner of chaff and low grade stuff."
- Paul Watson, Lounge 25 Mar 03
"If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?"
- Anon



Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
GeneralRe: winAPI functions Pin
Paresh Gheewala12-May-03 12:51
Paresh Gheewala12-May-03 12:51 
GeneralCoverting string to int32 Pin
datainjector12-May-03 11:34
datainjector12-May-03 11:34 
GeneralRe: Coverting string to int32 Pin
Tomas Petricek12-May-03 11:41
Tomas Petricek12-May-03 11:41 
General.NET button that supports images and XP style Pin
jtilly9912-May-03 10:52
jtilly9912-May-03 10:52 
GeneralRe: .NET button that supports images and XP style Pin
jtilly9912-May-03 13:36
jtilly9912-May-03 13:36 
GeneralStarting external programs Pin
BoudewijnEctor12-May-03 10:46
BoudewijnEctor12-May-03 10:46 
GeneralRe: Starting external programs Pin
Jon Newman12-May-03 12:08
Jon Newman12-May-03 12:08 
GeneralHTML control Pin
BoudewijnEctor12-May-03 10:40
BoudewijnEctor12-May-03 10:40 
GeneralRe: HTML control Pin
J. Dunlap12-May-03 10:43
J. Dunlap12-May-03 10:43 
GeneralRe: HTML control Pin
BoudewijnEctor14-May-03 3:48
BoudewijnEctor14-May-03 3:48 
GeneralRe: HTML control Pin
Kant12-May-03 11:30
Kant12-May-03 11:30 
GeneralRe: HTML control Pin
J. Dunlap12-May-03 12:18
J. Dunlap12-May-03 12:18 
GeneralSystem.IO.FileSystemWatcher Pin
Chris Richner12-May-03 9:52
Chris Richner12-May-03 9:52 
GeneralRe: System.IO.FileSystemWatcher Pin
leppie12-May-03 13:32
leppie12-May-03 13:32 
Generalir driver Pin
grv57512-May-03 9:38
grv57512-May-03 9:38 
GeneralRe: ir driver Pin
leppie12-May-03 13:39
leppie12-May-03 13:39 
GeneralRe: ir driver Pin
grv57513-May-03 3:25
grv57513-May-03 3:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.