Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
GeneralRe: 4 different random numbers Pin
Arjan Einbu6-Jul-04 12:29
Arjan Einbu6-Jul-04 12:29 
GeneralRe: 4 different random numbers Pin
insurgentpyro6-Jul-04 18:52
insurgentpyro6-Jul-04 18:52 
GeneralRe: 4 different random numbers Pin
Arjan Einbu7-Jul-04 1:34
Arjan Einbu7-Jul-04 1:34 
GeneralRe: 4 different random numbers Pin
Anonymous7-Jul-04 5:39
Anonymous7-Jul-04 5:39 
GeneralRe: 4 different random numbers Pin
Arjan Einbu7-Jul-04 10:27
Arjan Einbu7-Jul-04 10:27 
GeneralRe: 4 different random numbers Pin
mikeschuld6-Jul-04 13:18
mikeschuld6-Jul-04 13:18 
GeneralRe: 4 different random numbers Pin
insurgentpyro6-Jul-04 18:50
insurgentpyro6-Jul-04 18:50 
GeneralRe: 4 different random numbers Pin
mikeschuld7-Jul-04 21:52
mikeschuld7-Jul-04 21:52 
QuestionC++ Objects in C#? Pin
So and So6-Jul-04 8:16
So and So6-Jul-04 8:16 
AnswerRe: C++ Objects in C#? Pin
Dave Kreskowiak6-Jul-04 8:31
mveDave Kreskowiak6-Jul-04 8:31 
AnswerRe: C++ Objects in C#? Pin
Heath Stewart6-Jul-04 10:03
protectorHeath Stewart6-Jul-04 10:03 
GeneralRe: C++ Objects in C#? Pin
leppie6-Jul-04 10:48
leppie6-Jul-04 10:48 
GeneralRe: C++ Objects in C#? Pin
Heath Stewart6-Jul-04 10:53
protectorHeath Stewart6-Jul-04 10:53 
GeneralRe: C++ Objects in C#? Pin
MKlucher6-Jul-04 11:22
MKlucher6-Jul-04 11:22 
GeneralRe: C++ Objects in C#? Pin
Heath Stewart6-Jul-04 12:20
protectorHeath Stewart6-Jul-04 12:20 
GeneralRe: C++ Objects in C#? Pin
MKlucher6-Jul-04 13:13
MKlucher6-Jul-04 13:13 
GeneralRe: C++ Objects in C#? Pin
Stefan Troschuetz6-Jul-04 21:16
Stefan Troschuetz6-Jul-04 21:16 
GeneralRe: C++ Objects in C#? Pin
Heath Stewart7-Jul-04 2:54
protectorHeath Stewart7-Jul-04 2:54 
"Wrapper" is such an ambiguous term, you really need to be specific. Any function or method you call uses a calling convention. When you use ThisCall when marshaling from managed to unmanaged code, the address of the object is pushed onto the execution stack before the first parameter (which becomes the second parameter, and so on).

You can wrap native APIs, too. I've written several MC++ assemblies when I've needed to wrap a whole bunch of APIs (otherwise I just P/Invoke them in C#).

All you do is write Managed C++ and call native APIs. If you want to know more about what makes the difference between managed and unmanaged C++, read Managed Extensions for C++ Programming[^] in the Visual Studio .NET documentation.

You can probably find examples here on CodeProject using the other search at the top of the page below Bob, the CodeProject alien.

 

Microsoft MVP, Visual C#
My Articles
GeneralVolume Controls and interop Pin
Oldmate6-Jul-04 4:38
Oldmate6-Jul-04 4:38 
GeneralRe: Volume Controls and interop Pin
Heath Stewart6-Jul-04 5:10
protectorHeath Stewart6-Jul-04 5:10 
GeneralRe: Volume Controls and interop Pin
Oldmate6-Jul-04 15:55
Oldmate6-Jul-04 15:55 
GeneralRe: Volume Controls and interop Pin
Heath Stewart7-Jul-04 3:04
protectorHeath Stewart7-Jul-04 3:04 
GeneralO/R mapping Pin
Serge Lobko-Lobanovsky6-Jul-04 3:11
Serge Lobko-Lobanovsky6-Jul-04 3:11 
GeneralRe: O/R mapping Pin
Steven Campbell6-Jul-04 7:48
Steven Campbell6-Jul-04 7:48 
GeneralRe: O/R mapping Pin
Serge Lobko-Lobanovsky6-Jul-04 22:34
Serge Lobko-Lobanovsky6-Jul-04 22:34 

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.