Click here to Skip to main content
15,903,362 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow receive video stream in code ? [modified] Pin
Yanshof10-Aug-10 2:44
Yanshof10-Aug-10 2:44 
AnswerRe: How receive video stream in code ? Pin
Abhinav S10-Aug-10 19:52
Abhinav S10-Aug-10 19:52 
QuestionFileWatcher class and WMI Pin
NetQuestions9-Aug-10 20:08
NetQuestions9-Aug-10 20:08 
AnswerRe: FileWatcher class and WMI Pin
dan!sh 10-Aug-10 5:08
professional dan!sh 10-Aug-10 5:08 
GeneralRe: FileWatcher class and WMI Pin
NetQuestions10-Aug-10 19:46
NetQuestions10-Aug-10 19:46 
GeneralRe: FileWatcher class and WMI Pin
dan!sh 10-Aug-10 23:23
professional dan!sh 10-Aug-10 23:23 
QuestionSQL Reporting Services - Print Button not shown in Mozilla Pin
Prosanta Kundu online9-Aug-10 18:02
Prosanta Kundu online9-Aug-10 18:02 
QuestionP/Invoke "why" question Pin
Gordon Kushner9-Aug-10 8:07
Gordon Kushner9-Aug-10 8:07 
Here is one for you Win32 experts. When I as a Framework developer need to use a Win API function, I can declare the function with parameters I need rather than with strict type checking.

For example, check out the underlined code in SendMessage()

<br />
[DllImport("user32.dll", CharSet = CharSet.Auto)]<br />
public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);<br />


<br />
[DllImport("user32.dll", CharSet = CharSet.Auto)]<br />
public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, StringBuilder lParam);<br />


StringBuilder? Hello? What perplexes me is that the API is expecting a pointer but we pass in a .NET StringBuilder.

Please explain to a semi-newbie what dark magic allows this to happen.

Thank you.

Gordon
AnswerRe: P/Invoke "why" question Pin
Luc Pattyn9-Aug-10 8:22
sitebuilderLuc Pattyn9-Aug-10 8:22 
GeneralRe: P/Invoke "why" question Pin
Gordon Kushner9-Aug-10 8:54
Gordon Kushner9-Aug-10 8:54 
GeneralRe: P/Invoke "why" question Pin
Luc Pattyn9-Aug-10 9:06
sitebuilderLuc Pattyn9-Aug-10 9:06 
AnswerRe: P/Invoke "why" question Pin
DaveyM6910-Aug-10 22:15
professionalDaveyM6910-Aug-10 22:15 
GeneralRe: P/Invoke "why" question Pin
Luc Pattyn11-Aug-10 1:44
sitebuilderLuc Pattyn11-Aug-10 1:44 
GeneralRe: P/Invoke "why" question Pin
Gordon Kushner11-Aug-10 3:02
Gordon Kushner11-Aug-10 3:02 
AnswerRe: P/Invoke "why" question Pin
Daniel Grunwald11-Aug-10 1:55
Daniel Grunwald11-Aug-10 1:55 
GeneralRe: P/Invoke "why" question Pin
Gordon Kushner11-Aug-10 3:02
Gordon Kushner11-Aug-10 3:02 
QuestionCustomizable menu Pin
Member 32222648-Aug-10 22:14
Member 32222648-Aug-10 22:14 
AnswerRe: Customizable menu Pin
Luc Pattyn9-Aug-10 1:31
sitebuilderLuc Pattyn9-Aug-10 1:31 
AnswerRe: Customizable menu Pin
JF201511-Aug-10 18:59
JF201511-Aug-10 18:59 
QuestionRead/Write image metadata in VB2008 [modified] Pin
Archdeacon6-Aug-10 23:11
Archdeacon6-Aug-10 23:11 
Generalasp.net updatepanel with dropdownlists-can not select a different item Pin
Martin_6-Aug-10 8:09
Martin_6-Aug-10 8:09 
GeneralRe: asp.net updatepanel with dropdownlists-can not select a different item Pin
Not Active6-Aug-10 8:48
mentorNot Active6-Aug-10 8:48 
GeneralRe: asp.net updatepanel with dropdownlists-can not select a different item Pin
T M Gray9-Aug-10 6:02
T M Gray9-Aug-10 6:02 
QuestionMessage Removed Pin
5-Aug-10 23:51
sr1595-Aug-10 23:51 
AnswerRe: i created mysqldump application using C#. it is saving to some path which i given. but how to make that application to save dump automatically at every 3 or 4 hours once daily [modified] Pin
Pete O'Hanlon6-Aug-10 0:26
mvePete O'Hanlon6-Aug-10 0:26 

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.