Click here to Skip to main content
15,887,302 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hiding Toolbar Pin
Mazdak2-May-04 21:11
Mazdak2-May-04 21:11 
GeneralRe: Hiding Toolbar Pin
Nick Parker2-May-04 5:02
protectorNick Parker2-May-04 5:02 
GeneralRe: Hiding Toolbar Pin
Mazdak2-May-04 5:16
Mazdak2-May-04 5:16 
GeneralRe: Hiding Toolbar Pin
Nick Parker2-May-04 6:10
protectorNick Parker2-May-04 6:10 
GeneralProblem with app.config and myfile.exe.config Pin
PEDRO_PASAMAR1-May-04 21:03
PEDRO_PASAMAR1-May-04 21:03 
GeneralRe: Problem with app.config and myfile.exe.config Pin
Heath Stewart2-May-04 6:37
protectorHeath Stewart2-May-04 6:37 
GeneralC#/C++ interoperability Pin
sharonz1-May-04 20:38
sharonz1-May-04 20:38 
GeneralRe: C#/C++ interoperability Pin
Heath Stewart2-May-04 6:34
protectorHeath Stewart2-May-04 6:34 
You should really read the .NET Framework SDK documentation. Interop'ing correctly between managed and unmanaged code also requires some knowledge of both, like knowing that a LONG in unmanaged C/C++ is a 32-bit integer, so it is an int in managed code.

You can read more about interoperability by reading Interoperability with Unmanaged Code[^] in the .NET Framework SDK online in the MSDN Library.

Also, all the primitive types are marshalled automatically by the CLR. You can also marshal structs (though nested structs are not supported by the CLR, nor are marshalling structs at all supported by the .NET Compact Framework (CF)) and reference types.

It also helps to know about the differences between reference and values type. For example, if you were P/Invoking a pointer to a struct (a value type), you'd use the ref or out keyword in both the method declaration as well as the parameter when calling the method. If you needed to pass a pointer to an interface, you wouldn't use either keyword because an interface is a reference type already.

 

Microsoft MVP, Visual C#
My Articles
GeneralTransparent Controls Pin
DougW481-May-04 19:24
DougW481-May-04 19:24 
GeneralRe: Transparent Controls Pin
Heath Stewart2-May-04 6:29
protectorHeath Stewart2-May-04 6:29 
GeneralDesigner Defaults Pin
gUrM33T1-May-04 19:10
gUrM33T1-May-04 19:10 
GeneralRe: Designer Defaults Pin
leppie1-May-04 22:38
leppie1-May-04 22:38 
GeneralHelp with this PieChart control Pin
Alan Zhao1-May-04 16:51
Alan Zhao1-May-04 16:51 
GeneralRe: Help with this PieChart control Pin
leppie1-May-04 22:31
leppie1-May-04 22:31 
GeneralRe: Help with this PieChart control Pin
Alan Zhao2-May-04 13:19
Alan Zhao2-May-04 13:19 
GeneralDeployment to Quick Launch Toolbar Pin
betterc1-May-04 13:18
betterc1-May-04 13:18 
GeneralRe: Deployment to Quick Launch Toolbar Pin
gUrM33T1-May-04 18:07
gUrM33T1-May-04 18:07 
GeneralRe: Deployment to Quick Launch Toolbar Pin
betterc2-May-04 6:08
betterc2-May-04 6:08 
GeneralRe: Deployment to Quick Launch Toolbar Pin
Heath Stewart2-May-04 6:26
protectorHeath Stewart2-May-04 6:26 
GeneralRe: Deployment to Quick Launch Toolbar Pin
betterc2-May-04 6:36
betterc2-May-04 6:36 
GeneralRe: Deployment to Quick Launch Toolbar Pin
Heath Stewart2-May-04 6:56
protectorHeath Stewart2-May-04 6:56 
GeneralRe: Deployment to Quick Launch Toolbar Pin
betterc2-May-04 7:00
betterc2-May-04 7:00 
GeneralRe: Deployment to Quick Launch Toolbar Pin
Heath Stewart2-May-04 7:04
protectorHeath Stewart2-May-04 7:04 
GeneralRe: Deployment to Quick Launch Toolbar Pin
betterc2-May-04 7:16
betterc2-May-04 7:16 
GeneralRe: Deployment to Quick Launch Toolbar Pin
Heath Stewart2-May-04 6:20
protectorHeath Stewart2-May-04 6:20 

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.