1. I have a program ("client") written in c++ (not written by me) that is exported as a COM object. the DLL needs to be registered in the registry for it to be used...
2. Having to add some features to it, I have written a program in c# ("queue") that the client uses in some cases.
3. In order to connect them together, I have written a cpp/cli wrapper("wrapper"), that enables the use of managed code from unmanaged code.
4. Now I have: client.dll, wrapper.dll, queue.dll tat are supposed to use each other.
the c# queue compiles and works, the cpp/cli wrapper compiles and works with the queue, the client does not fail on the code using the wrapper, but failes to register output for it now. i get:
Quote:Error 15 error PRJ0050: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. client client
(per-user redirection is enabled)
5. Some tell me it can't be done - i cannot use managed code in a COM object (even though it is in a different DLL?) and some say i can, but i need to register the other DLLs as well, so i add, in VS:
- make assembly COM visable.
- register for COM interop.
now the c# queue fails to register, here i get:
Quote:Error 91 error MSB8011: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 756 6 wrapper
can it be done?
does one DLL care if the DLLs it uses are managed code or unmanaged code?
is there a simple way to sort this out..?
Hope I have written all the info needed for your kind help.