Click here to Skip to main content
15,889,856 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Call Into or Notify Other Instances Of Your App Pin
Eddy Vluggen21-Aug-17 9:22
professionalEddy Vluggen21-Aug-17 9:22 
GeneralRe: Call Into or Notify Other Instances Of Your App Pin
Kevin Marois16-Aug-17 7:16
professionalKevin Marois16-Aug-17 7:16 
GeneralRe: Call Into or Notify Other Instances Of Your App Pin
jschell18-Aug-17 12:11
jschell18-Aug-17 12:11 
AnswerRe: Call Into or Notify Other Instances Of Your App Pin
Gerry Schmitz15-Aug-17 7:40
mveGerry Schmitz15-Aug-17 7:40 
Questionplatform for an app for Ease of Access searched Pin
Erhy31-Jul-17 6:07
Erhy31-Jul-17 6:07 
AnswerRe: platform for an app for Ease of Access searched Pin
Afzaal Ahmad Zeeshan31-Jul-17 6:30
professionalAfzaal Ahmad Zeeshan31-Jul-17 6:30 
GeneralRe: platform for an app for Ease of Access searched Pin
Erhy31-Jul-17 6:51
Erhy31-Jul-17 6:51 
AnswerRe: platform for an app for Ease of Access searched Pin
Afzaal Ahmad Zeeshan31-Jul-17 7:38
professionalAfzaal Ahmad Zeeshan31-Jul-17 7:38 
P/Invoke is actually a technology, which allows you to invoke the native and unmanaged code functions from your managed applications. For instance, your WPF app is a managed application, whereas the low-level function SendInput is an unmanaged one — and others written in C or C++ runtimes etc. Thus, to execute them you would need to use P/Invoke, it lets you specify where your function exists.

It is similar to using the extern modifier in C or C++ to guide compiler, that the function exists somewhere else (kernel.dll, user32.dll, custom.dll etc.). The statement are similar to something like this,
C#
// Your DLL path, and other settings
[DllImport("custom.dll")]
static extern void Add(int a, int b); // Name, entry points, parameters, their types, stacks
You would require to control how these things actually go about. Marshalling, for instance, allows you to actually go deep down and control how data is passed at the boundary of unmanaged and managed code. Strings, arrays, integers and other stuff requires this much control so you need to make sure that your application easily takes care of all of that.

Platform Invoke Tutorial (C#)
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: platform for an app for Ease of Access searched Pin
Erhy22-Aug-17 10:39
Erhy22-Aug-17 10:39 
QuestionDesign and Architecture Pin
ijekhuenmen eromosele26-Jul-17 5:02
ijekhuenmen eromosele26-Jul-17 5:02 
AnswerRe: Design and Architecture Pin
Richard MacCutchan26-Jul-17 5:10
mveRichard MacCutchan26-Jul-17 5:10 
GeneralLooking for technological suggestion Pin
Kishor Mhaske20-Jul-17 0:08
Kishor Mhaske20-Jul-17 0:08 
QuestionAPI for online collaboration and file sharing Pin
petter201210-Jul-17 13:49
petter201210-Jul-17 13:49 
AnswerRe: API for online collaboration and file sharing Pin
Pete O'Hanlon10-Jul-17 20:06
mvePete O'Hanlon10-Jul-17 20:06 
GeneralRe: API for online collaboration and file sharing Pin
petter201211-Jul-17 0:22
petter201211-Jul-17 0:22 
GeneralRe: API for online collaboration and file sharing Pin
Gerry Schmitz11-Jul-17 6:56
mveGerry Schmitz11-Jul-17 6:56 
GeneralRe: API for online collaboration and file sharing Pin
petter201211-Jul-17 9:12
petter201211-Jul-17 9:12 
AnswerRe: API for online collaboration and file sharing Pin
jschell13-Jul-17 6:47
jschell13-Jul-17 6:47 
QuestionBusiness language Solution? Pin
Joer4x425-Jun-17 9:08
Joer4x425-Jun-17 9:08 
AnswerRe: Business language Solution? Pin
Richard MacCutchan25-Jun-17 21:04
mveRichard MacCutchan25-Jun-17 21:04 
GeneralRe: Business language Solution? Pin
Gerry Schmitz26-Jun-17 9:49
mveGerry Schmitz26-Jun-17 9:49 
GeneralRe: Business language Solution? Pin
Joer4x429-Jun-17 11:18
Joer4x429-Jun-17 11:18 
GeneralRe: Business language Solution? Pin
Richard MacCutchan29-Jun-17 21:39
mveRichard MacCutchan29-Jun-17 21:39 
GeneralRe: Business language Solution? Pin
Joer4x430-Jun-17 12:03
Joer4x430-Jun-17 12:03 
GeneralRe: Business language Solution? Pin
Gerry Schmitz11-Jul-17 7:05
mveGerry Schmitz11-Jul-17 7:05 

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.