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

.NET (Core and Framework)

 
AnswerRe: Nepali Unicode Pin
Bernhard Hiller23-Mar-14 21:46
Bernhard Hiller23-Mar-14 21:46 
GeneralRe: Nepali Unicode Pin
mebishnu16-Apr-14 0:27
mebishnu16-Apr-14 0:27 
AnswerRe: Nepali Unicode Pin
jschell24-Mar-14 8:26
jschell24-Mar-14 8:26 
Questionhow to set specific time in windows service Pin
ven75322-Mar-14 19:36
ven75322-Mar-14 19:36 
AnswerRe: how to set specific time in windows service Pin
Peter Leow22-Mar-14 20:31
professionalPeter Leow22-Mar-14 20:31 
QuestionFXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd22-Mar-14 12:00
obermd22-Mar-14 12:00 
AnswerRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
Eddy Vluggen26-Mar-14 8:10
professionalEddy Vluggen26-Mar-14 8:10 
GeneralRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd26-Mar-14 8:56
obermd26-Mar-14 8:56 
I can see your point, but when you consider that many of the WinAPIs are designed to work as teams and some of them you have to call twice to get the actual size of the data before you can use the call to get the data my position is that if I have a dotNet class that is the sole user of an API call it should have the P/Invoke interface internally.

Obviously if it's an API call that will be used in multiple places it should be in a global NativeMethods static class.

I just had a thought - what if I create a private NativeMethods static class for this object? I'll have to give that a try this evening. That would have dual benefits - the API calls will be obvious when reading the class source and it keeps APIs that are specific to supporting that class in the class source code and not dependent on another source file.
GeneralRe: FXCop (VS 2013 Pro) and private P/Invoke methods Pin
obermd26-Mar-14 13:31
obermd26-Mar-14 13:31 
QuestionError on System.Web.Helpers.WebMail.Send() method in TFS 2012 Pin
trevor1519-Mar-14 4:04
trevor1519-Mar-14 4:04 
AnswerRe: Error on System.Web.Helpers.WebMail.Send() method in TFS 2012 Pin
Richard MacCutchan19-Mar-14 4:19
mveRichard MacCutchan19-Mar-14 4:19 
QuestionGetting "Handle" of DirectX Output inside a WPF Window/Containter... Pin
Christopher Koeber18-Mar-14 11:29
Christopher Koeber18-Mar-14 11:29 
QuestionIOCContainer nested dependencies and failed resolves Pin
preaa10-Mar-14 23:38
preaa10-Mar-14 23:38 
AnswerRe: IOCContainer nested dependencies and failed resolves Pin
Pete O'Hanlon11-Mar-14 12:05
mvePete O'Hanlon11-Mar-14 12:05 
GeneralRe: IOCContainer nested dependencies and failed resolves Pin
preaa11-Mar-14 21:38
preaa11-Mar-14 21:38 
GeneralRe: IOCContainer nested dependencies and failed resolves Pin
Pete O'Hanlon11-Mar-14 21:50
mvePete O'Hanlon11-Mar-14 21:50 
QuestionCréation d'un outil intelligent pour la vidéosurveillance" with vb.net 2008 Pin
Sahal Meriem10-Mar-14 9:32
Sahal Meriem10-Mar-14 9:32 
AnswerRe: Création d'un outil intelligent pour la vidéosurveillance" with vb.net 2008 Pin
Dave Kreskowiak10-Mar-14 10:11
mveDave Kreskowiak10-Mar-14 10:11 
QuestionError: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Member 105062157-Mar-14 3:12
Member 105062157-Mar-14 3:12 
AnswerRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Richard MacCutchan7-Mar-14 7:25
mveRichard MacCutchan7-Mar-14 7:25 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
Member 1050621510-Mar-14 4:30
Member 1050621510-Mar-14 4:30 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises10-Mar-14 12:15
melquimoises10-Mar-14 12:15 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises28-Mar-14 6:46
melquimoises28-Mar-14 6:46 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises28-Mar-14 6:46
melquimoises28-Mar-14 6:46 
GeneralRe: Error: Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible' Pin
melquimoises28-Mar-14 6:47
melquimoises28-Mar-14 6:47 

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.