Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
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 
Dave's right - a managed wrapper using a mixed-mode Managed C++ assembly would be the easiest. When compiled, the assembly can be used by any other managed language.

You can, however (if you understand P/Invoke and marshaling well), use DllImportAttribute with the CallingConvention.ThisCall and some added class factory functions exported from your native DLL (to create and destroy the class). Read about CallingConvention.ThisCall in the .NET Framework SDK for more information.

Again, though, I'm not recommending this over Dave's reply. I'd definitely go that route; I'm only providing an alternative for completeness.

 

Microsoft MVP, Visual C#
My Articles
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 
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 
Generalpicture manipulation Pin
sreejith ss nair6-Jul-04 1:42
sreejith ss nair6-Jul-04 1:42 
GeneralRe: picture manipulation Pin
Heath Stewart6-Jul-04 4:36
protectorHeath Stewart6-Jul-04 4:36 
GeneralRe: picture manipulation Pin
Anonymous6-Jul-04 20:13
Anonymous6-Jul-04 20:13 

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.