Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create menuItems dynamic on Popup event? Pin
Wizard_0127-Dec-03 3:05
Wizard_0127-Dec-03 3:05 
GeneralRe: How to create menuItems dynamic on Popup event? Pin
Chris Richner27-Dec-03 3:29
Chris Richner27-Dec-03 3:29 
GeneralRe: How to create menuItems dynamic on Popup event? Pin
Heath Stewart27-Dec-03 5:29
protectorHeath Stewart27-Dec-03 5:29 
GeneralRe: How to create menuItems dynamic on Popup event? - what I did with a couple of classes Pin
Bryan White1-Jan-04 22:20
Bryan White1-Jan-04 22:20 
GeneralC# and COM - Further information Pin
Tristan Rhodes27-Dec-03 1:17
Tristan Rhodes27-Dec-03 1:17 
GeneralRe: C# and COM - Further information Pin
Nick Parker27-Dec-03 4:30
protectorNick Parker27-Dec-03 4:30 
GeneralRe: C# and COM - Further information Pin
27-Dec-03 5:15
suss27-Dec-03 5:15 
GeneralRe: C# and COM - Further information Pin
Heath Stewart27-Dec-03 5:26
protectorHeath Stewart27-Dec-03 5:26 
The Catalyst wrote:
So basicaly, I'd like to find the translation guide.

There is no "translation guide". Translation is done by knowing the Win32 APIs and the .NET SDK well. For example, why are the HRESULTs translated to void when interoping? Because most COM error codes are thrown using a COMException in .NET, specifying the result code (these can even be used for success codes, like S_FALSE). If you need that HRESULT, you have to attribute your method with the PreserveSigAttribute(true), or specify PreserveSig=true in any DllImportAttribute attributed methods.

I'm talking about knowing what marshaling means and what it does, I'm talking about knowing how to use the MarshalAsAttribute, the DllImportAttribute, the StructLayoutAttribute, the PreserveSigAttribute, and the various COM-related attributes (where appropriate) effectively. You must read about these and understand them well.

Knowing which managed type to use for a native type is simply understanding the bit-length and matter of the two types. A native char is 8 bits and and unsigned char is 8 bits unsigned, just like a System.Byte.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow can I make a newline in "net send" Pin
bookwormXP26-Dec-03 19:50
bookwormXP26-Dec-03 19:50 
AnswerRe: How can I make a newline in "net send" Pin
leppie27-Dec-03 0:39
leppie27-Dec-03 0:39 
GeneralRe: How can I make a newline in "net send" Pin
bookwormXP27-Dec-03 1:01
bookwormXP27-Dec-03 1:01 
GeneralRe: How can I make a newline in "net send" Pin
leppie27-Dec-03 1:20
leppie27-Dec-03 1:20 
GeneralRe: How can I make a newline in "net send" Pin
bookwormXP27-Dec-03 1:26
bookwormXP27-Dec-03 1:26 
GeneralRe: How can I make a newline in "net send" Pin
LongRange.Shooter30-Dec-03 9:35
LongRange.Shooter30-Dec-03 9:35 
AnswerRe: How can I make a newline in "net send" Pin
Heath Stewart27-Dec-03 5:19
protectorHeath Stewart27-Dec-03 5:19 
AnswerRe: How can I make a newline in "net send" Pin
Mazdak27-Dec-03 8:53
Mazdak27-Dec-03 8:53 
General"The file isn't specified" error for opening documents Pin
tchaka26-Dec-03 15:40
tchaka26-Dec-03 15:40 
GeneralRe: "The file isn't specified" error for opening documents Pin
eggie526-Dec-03 18:04
eggie526-Dec-03 18:04 
GeneralRe: "The file isn't specified" error for opening documents Pin
tchaka26-Dec-03 20:22
tchaka26-Dec-03 20:22 
GeneralRe: "The file isn't specified" error for opening documents Pin
eggie527-Dec-03 6:51
eggie527-Dec-03 6:51 
GeneralRe: "The file isn't specified" error for opening documents Pin
Heath Stewart27-Dec-03 5:16
protectorHeath Stewart27-Dec-03 5:16 
GeneralRe: "The file isn't specified" error for opening documents Pin
tchaka27-Dec-03 12:53
tchaka27-Dec-03 12:53 
GeneralRe: "The file isn't specified" error for opening documents Pin
eggie51-Jan-04 6:40
eggie51-Jan-04 6:40 
GeneralManually setting MIME type in WebBrowser Pin
Alex Korchemniy26-Dec-03 13:06
Alex Korchemniy26-Dec-03 13:06 
GeneralLOL Pin
Alex Korchemniy26-Dec-03 15:08
Alex Korchemniy26-Dec-03 15:08 

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.