473,326 Members | 2,048 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,326 software developers and data experts.

Cannot get typeinfo

hi, guys, a quesiton about managed wrapper.

I have a unmanaged class (class A) and a managed wrapper (class ManagedA).
When I use ManagedA.GetType in C#, I got NULL return. Why I cannot get type
info from ManagedA? Is there any way that I can fix it? Thanks.

The below is the code:

class A {... }; //unmanaged class
class ManagedA //managed wrapper
{
protected:
A* a;
public:
ManagedA() { a = new A(); }
~ManagedA() { delete a; }
....
}

when I use ManagedA in C#..

ManagedA managedA = new ManagedA();
Type type = managedA.GetType();

type is NULL...

thanks again for your help.
Jan 14 '07 #1
0 759

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

Similar topics

10
by: Alex Vinokur | last post by:
What is wrong in program below? --- foo.cpp --- struct Foo {}; int main () { Foo foo1, foo2; for (int i = 0, foo1 = foo2; ; ); // Line#5 return 0; }
3
by: Firstname Lastname | last post by:
In a function call, for example function(Class(), &Class::memfunc), my compiler cannot match the 2nd argument when: (1) Class is a template parameter, and (2) the base class of Class defines...
2
by: Steven T. Hatton | last post by:
I've been working a lot with OpenSceneGraph lately. Overall it is very much in the spirit of C++. One feature OSG has which is, IMO, an eyesore, is the presence of a couple of #MACROs to assist...
3
by: Ganesh | last post by:
Hi, typeinfo class has a private constructor and only typeid can return object to typeinfo class. So here I am wondering how these two are related. Are these two related through 'friend' so that...
2
by: Divick | last post by:
Hi all, does any one know how typeinfo ( a RTTI method) is implemented? Or does anyone have idea about how RTTI actually happens? Thanks in Advance, Divick.
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
1
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.