Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
FAQ (misc)
 
.
Summary
>Common questions and their answers
Question
Why is [DllImport] giving me Compiler Error CS0246: The type or namespace name 'type/namespace' could not be found

You need to add:

using System.Runtime.InteropServices;

Question
What is the wiki way for adding a link from one Wiki page to another?

I think putting square brackets around it will work

Here is a test Playground

also, every PascalCasedWord will be turned into a link. see the Formatting Tips in the right column in edit mode

For additional help checkout the help pages at www.flexwiki.com. http://www.flexwiki.com/default.aspx/FlexWiki/FormattingRules.html

also, every PascalCasedWord will be turned into a link. Check the Formatting Tips in the right column in edit mode

Question
Why use IntPtr in PInvoke signatures when int (Integer) works just fine?

For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine.

Question

For additional help checkout the help pages at www.flexwiki.com. http://www.flexwiki.com/default.aspx/FlexWiki/FormattingRules.html

Thanks jachymko. This wiki stuff is way cool

Question
Why use IntPtr in PInvoke signatures when int (Integer) works just fine?

For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine.

Question
Question
How can I fetch a parameterized message from an externalized ".mc" resource file using FormatMessage function ? What is the va* arguments parameter that the FormatMessage API takes as an input and how do I pass this parameter in C# ?

Product details

Product name:

FlexWiki

Product version:

1.3.0.101

Question
How can I fetch a parameterized message from an externalized ".mc" resource file using FormatMessage function ? What is the va* arguments parameter that the FormatMessage API takes as an input and how do I pass this parameter in C# ?
Question

Product details

Product name:

FlexWiki

Product version:

1.3.0.101

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions