473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to get a pointer to IUnknown interface unmanaged?

Thanks for your time.
In a --specific-- situation, I need a member variable to be unmanaged and I
do not want to create a __gc __interface version because **thats** why I use
managed Visual C++ and not C# in this case.

__gc public class myclass:

{

private:

IStorage * test2; <-- MUST BE UNMANAGED __nogc or __value do not help

void Test(void)
{
StgCreateStorageEx(..... reinterpret_cast<void**)(&test2));
}
public:

etc

Nov 17 '05 #1
0 1327

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Simon | last post by:
I'm a js newbie trying to use some very simple js to call an ActiveX object's methods. I need to use a pointer to call an embedded ActiveX object's method to receive a number. As I understand it,...
1
by: s.k | last post by:
Hello group. I need to use some COM components in C#. One of the components has a function that receives an argument which is an IUnknown for a different com object. In C++ it is implemented as:...
2
by: Lawrence Li via .NET 247 | last post by:
How to deal with pointer field in struct in idl So that C# can call C++ COM? e.g. in C++ COM Server IDL: typedef struct { long *xPos; long yPos; } MYPOINT;
0
by: Serve La | last post by:
I have the following IDL and let midl generate a typelibrary. interface IInterface : IUnknown { HRESULT GetValue(long *ret); };
8
by: TJ | last post by:
I need to be able to pass a pointer to a (managed code) Stream object to a COM method so it can serialize its data into the stream. I have a C# application that makes uses of Randolf Duke's...
16
by: Dave | last post by:
I'm having a problem trying to set up code in VB to handle the case where an argument in an API definition is defined as a pointer to a pointer. An excerpt from the API's definition is: void...
2
by: T Ray Humphrey | last post by:
I could not get the following code to compile: public ref class wrapper { void Read(int^ mpLen) { pin_ptr<int> pLen = mpLen; unmanaged* punman = new unmanaged(); punman->Read(pLen); return; }
1
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello Gurus; I have some strange, complicated and challenging question. This question may show a poor design, and I agree it very poor. But I have some constrainment that must be handled as I'll...
1
by: yadolov | last post by:
I have COM-object with Iface interface: typedef struct { .... } TStruct; interface Iface : IUnknown {
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.