Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: help with udp code snippet... Pin
EliottA20-Sep-09 3:55
EliottA20-Sep-09 3:55 
AnswerRe: help with udp code snippet... Pin
harold aptroot20-Sep-09 4:28
harold aptroot20-Sep-09 4:28 
Questionhelp with udp code snippet... Pin
emperorhere20-Sep-09 3:17
emperorhere20-Sep-09 3:17 
AnswerRe: help with udp code snippet... Pin
N a v a n e e t h20-Sep-09 3:34
N a v a n e e t h20-Sep-09 3:34 
QuestionProgramatic Font Install Pin
HighCloud20-Sep-09 2:11
HighCloud20-Sep-09 2:11 
AnswerRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 2:32
mveRichard MacCutchan20-Sep-09 2:32 
GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 3:03
HighCloud20-Sep-09 3:03 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 3:24
sitebuilderLuc Pattyn20-Sep-09 3:24 
Hi,

P/Invoke is the way to access existing native functions, in this case they reside in system files gdi32.dll and user32.dll; the "extern" keyword tells the C# compiler only a prototype is provided, the implementation is to be found in those DLL files.

What seems to be missing in the article is the fact that your code should start with a statement
using System.Runtime.InteropServices; for the compiler to understand what DllImport means.

Smile | :)

Luc Pattyn

Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 3:51
HighCloud20-Sep-09 3:51 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 4:05
mveRichard MacCutchan20-Sep-09 4:05 
GeneralRe: Programatic Font Install Pin
HighCloud20-Sep-09 4:37
HighCloud20-Sep-09 4:37 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 5:03
sitebuilderLuc Pattyn20-Sep-09 5:03 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 5:15
mveRichard MacCutchan20-Sep-09 5:15 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 5:25
sitebuilderLuc Pattyn20-Sep-09 5:25 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 9:57
mveRichard MacCutchan20-Sep-09 9:57 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 10:10
sitebuilderLuc Pattyn20-Sep-09 10:10 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 10:28
mveRichard MacCutchan20-Sep-09 10:28 
GeneralRe: Programatic Font Install Pin
Luc Pattyn20-Sep-09 10:53
sitebuilderLuc Pattyn20-Sep-09 10:53 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan21-Sep-09 11:22
mveRichard MacCutchan21-Sep-09 11:22 
GeneralRe: Programatic Font Install Pin
harold aptroot20-Sep-09 5:19
harold aptroot20-Sep-09 5:19 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 9:55
mveRichard MacCutchan20-Sep-09 9:55 
GeneralRe: Programatic Font Install Pin
harold aptroot20-Sep-09 10:03
harold aptroot20-Sep-09 10:03 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan20-Sep-09 10:25
mveRichard MacCutchan20-Sep-09 10:25 
GeneralRe: Programatic Font Install Pin
harold aptroot21-Sep-09 0:47
harold aptroot21-Sep-09 0:47 
GeneralRe: Programatic Font Install Pin
Richard MacCutchan21-Sep-09 3:15
mveRichard MacCutchan21-Sep-09 3:15 

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.