Click here to Skip to main content
15,916,215 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Managed strings and buffers to nonmanaged Pin
jspano11-Jul-03 7:51
jspano11-Jul-03 7:51 
GeneralRe: Managed strings and buffers to nonmanaged Pin
Nathan Blomquist11-Jul-03 11:02
Nathan Blomquist11-Jul-03 11:02 
GeneralRe: Managed strings and buffers to nonmanaged Pin
jspano15-Jul-03 8:56
jspano15-Jul-03 8:56 
Generalstorage of images into oracle database using vc++.net Pin
Shaffiq7-Jul-03 7:49
Shaffiq7-Jul-03 7:49 
GeneralSetup for networks using Vstudio .NET 2003 Pin
BoudewijnEctor3-Jul-03 23:34
BoudewijnEctor3-Jul-03 23:34 
GeneralRe: Setup for networks using Vstudio .NET 2003 Pin
Heath Stewart11-Jul-03 5:59
protectorHeath Stewart11-Jul-03 5:59 
GeneralLinking Errors (operator new redifined) mixing MFC and .NET Pin
DarrylB29-Jun-03 23:56
DarrylB29-Jun-03 23:56 
GeneralMore on mixing managed code and API code Pin
Jeremy Osner27-Jun-03 4:13
Jeremy Osner27-Jun-03 4:13 
Okay, now that I've gotten past my first hurdle I am facing a little more complex problem -- how can I map handles to managed objects? I have a callback entry point and would like to retrieve an existing instance of a managed class to deal with the callback, based on the handle that the function gets as a parameter. But I can't have a global map from handle to class *, because .NET forbids non-managed classes from storing pointers to managed classes; and managed classes can't have non-local linkage. What do I do? There's got to be some way of doing it -- picture going from your WndProc to a window object.

My desired sequence of events is: object is created by a managed client. Object then registers a callback with the API and gets back a handle. Callback enters, sees handle and passes it to a lookup function which retrieves the object. Object deals with callback and returns. etc.

Can I have a map from handle to class * as a static member of the managed class? Something tells me I cannot...
GeneralRe: More on mixing managed code and API code Pin
Jeremy Osner27-Jun-03 8:42
Jeremy Osner27-Jun-03 8:42 
GeneralCreating Inherited forms Pin
sivaramakrishna26-Jun-03 19:44
sivaramakrishna26-Jun-03 19:44 
GeneralRe: Creating Inherited forms Pin
Nick Hodapp9-Jul-03 7:04
sitebuilderNick Hodapp9-Jul-03 7:04 
QuestionHow to mix managed code and API code? Pin
Jeremy Osner26-Jun-03 7:41
Jeremy Osner26-Jun-03 7:41 
AnswerRe: Figured it out! Pin
Jeremy Osner26-Jun-03 7:49
Jeremy Osner26-Jun-03 7:49 
GeneralRe: Figured it out! Pin
Nathan Blomquist27-Jun-03 1:54
Nathan Blomquist27-Jun-03 1:54 
GeneralRe: Figured it out! Pin
Jeremy Osner27-Jun-03 2:20
Jeremy Osner27-Jun-03 2:20 
Generalconverting an idl file to .h Pin
si_6926-Jun-03 0:37
si_6926-Jun-03 0:37 
GeneralRe: converting an idl file to .h Pin
leppie26-Jun-03 7:17
leppie26-Jun-03 7:17 
Generalmouse pointer movement Pin
mujay23-Jun-03 2:42
mujay23-Jun-03 2:42 
GeneralShared Assembly Problem Pin
SuperGeek20-Jun-03 15:31
SuperGeek20-Jun-03 15:31 
GeneralRe: Shared Assembly Problem Pin
James T. Johnson20-Jun-03 15:49
James T. Johnson20-Jun-03 15:49 
GeneralRe: Shared Assembly Problem Pin
SuperGeek20-Jun-03 16:07
SuperGeek20-Jun-03 16:07 
GeneralRe: Shared Assembly Problem Pin
James T. Johnson20-Jun-03 17:18
James T. Johnson20-Jun-03 17:18 
GeneralRe: Shared Assembly Problem Pin
SuperGeek21-Jun-03 6:44
SuperGeek21-Jun-03 6:44 
GeneralRe: Shared Assembly Problem Pin
James T. Johnson21-Jun-03 7:02
James T. Johnson21-Jun-03 7:02 
GeneralRe: Shared Assembly Problem Pin
SuperGeek21-Jun-03 8:33
SuperGeek21-Jun-03 8:33 

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.