Hi I have two projects, one written in MC++, and the other in C#.
In MC++ header file, I have:
namespace Domain
{
namespace Subdomain
{
namespace ManagedCPP
{
public class AClass
{
static void OpenWindow();
};
}
}
}
In MC++ cpp file: I have:
using namespace Domain::Subdomain::ManagedCPP;
void AClass::OpenWindow()
{
// some implementaion
}
And now in C#, I have
using namespace Domain.Subdomain.ManagedCPP;
namespace OtherDomain.Framework.UI
{
public class BClass
{
public MethodA()
{
AClass.OpenWindow();
}
}
}
I got the error CS0117: Domain.Subdomain.ManagedCPP.AClass does not
contain a definition for 'OpenWindow'
Anybody can help???
Thanks a lot 4 2868
B. wrote:
Hi I have two projects, one written in MC++, and the other in C#.
In MC++ header file, I have:
namespace Domain
{
namespace Subdomain
{
namespace ManagedCPP
{
public class AClass
{
static void OpenWindow();
};
}
}
}
In MC++ cpp file: I have:
using namespace Domain::Subdomain::ManagedCPP;
void AClass::OpenWindow()
{
// some implementaion
}
And now in C#, I have
using namespace Domain.Subdomain.ManagedCPP;
namespace OtherDomain.Framework.UI
{
public class BClass
{
public MethodA()
{
AClass.OpenWindow();
}
}
}
I got the error CS0117: Domain.Subdomain.ManagedCPP.AClass does not
contain a definition for 'OpenWindow'
Anybody can help???
Thanks a lot
Have you tried using the ildasm utility to examine the DLL generated by
the managed C++ compiler to see what the class structure looks like
after the compiler is finished with it?
Bruce Wood wrote:
B. wrote:
Hi I have two projects, one written in MC++, and the other in C#.
In MC++ header file, I have:
namespace Domain
{
namespace Subdomain
{
namespace ManagedCPP
{
public class AClass
{
static void OpenWindow();
};
}
}
}
In MC++ cpp file: I have:
using namespace Domain::Subdomain::ManagedCPP;
void AClass::OpenWindow()
{
// some implementaion
}
And now in C#, I have
using namespace Domain.Subdomain.ManagedCPP;
namespace OtherDomain.Framework.UI
{
public class BClass
{
public MethodA()
{
AClass.OpenWindow();
}
}
}
I got the error CS0117: Domain.Subdomain.ManagedCPP.AClass does not
contain a definition for 'OpenWindow'
Anybody can help???
Thanks a lot
Have you tried using the ildasm utility to examine the DLL generated by
the managed C++ compiler to see what the class structure looks like
after the compiler is finished with it?
No I didn't. However, I use F12 on AClass at C# side, it opens metadata
of AClass and it says struct AClass{} and no method in side at all.
B. wrote:
Bruce Wood wrote:
B. wrote:
Hi I have two projects, one written in MC++, and the other in C#.
In MC++ header file, I have:
>
namespace Domain
{
namespace Subdomain
{
namespace ManagedCPP
{
public class AClass
{
static void OpenWindow();
};
}
}
}
>
In MC++ cpp file: I have:
>
using namespace Domain::Subdomain::ManagedCPP;
>
void AClass::OpenWindow()
{
// some implementaion
}
>
And now in C#, I have
using namespace Domain.Subdomain.ManagedCPP;
>
namespace OtherDomain.Framework.UI
{
public class BClass
{
public MethodA()
{
AClass.OpenWindow();
}
}
}
>
I got the error CS0117: Domain.Subdomain.ManagedCPP.AClass does not
contain a definition for 'OpenWindow'
>
Anybody can help???
Thanks a lot
Have you tried using the ildasm utility to examine the DLL generated by
the managed C++ compiler to see what the class structure looks like
after the compiler is finished with it?
No I didn't. However, I use F12 on AClass at C# side, it opens metadata
of AClass and it says struct AClass{} and no method in side at all.
Well, I'm rusty on my C++ access modifiers, so I can't say for sure,
but you said simply "static void OpenWindow". What's the default access
for a method in C++? In C# it's "internal", which would mean
"inaccessible to other assemblies"...? Perhaps you need to specifically
say "public static void OpenWindow"?
I actually had modifiers "public" specified.
Bruce Wood wrote:
B. wrote:
Bruce Wood wrote:
B. wrote:
Hi I have two projects, one written in MC++, and the other in C#.
In MC++ header file, I have:
namespace Domain
{
namespace Subdomain
{
namespace ManagedCPP
{
public class AClass
{
static void OpenWindow();
};
}
}
}
In MC++ cpp file: I have:
using namespace Domain::Subdomain::ManagedCPP;
void AClass::OpenWindow()
{
// some implementaion
}
And now in C#, I have
using namespace Domain.Subdomain.ManagedCPP;
namespace OtherDomain.Framework.UI
{
public class BClass
{
public MethodA()
{
AClass.OpenWindow();
}
}
}
I got the error CS0117: Domain.Subdomain.ManagedCPP.AClass does not
contain a definition for 'OpenWindow'
Anybody can help???
Thanks a lot
>
Have you tried using the ildasm utility to examine the DLL generated by
the managed C++ compiler to see what the class structure looks like
after the compiler is finished with it?
No I didn't. However, I use F12 on AClass at C# side, it opens metadata
of AClass and it says struct AClass{} and no method in side at all.
Well, I'm rusty on my C++ access modifiers, so I can't say for sure,
but you said simply "static void OpenWindow". What's the default access
for a method in C++? In C# it's "internal", which would mean
"inaccessible to other assemblies"...? Perhaps you need to specifically
say "public static void OpenWindow"?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Thomas Tryde |
last post by:
Simplified code.
class A : object {
m() {}
}
class B : objet {
m() {}
}
|
by: Kerem Gümrükcü |
last post by:
Hi,
i get this error when i try to compile my code.
But why, ...everything seems to be ok!
When i try to get some files extension with this:
"File Extension: " +...
|
by: Patrick Huffer |
last post by:
When I open a certain page, I receive a "Compilation Error" as
follows:
Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlForm'
does not
contain a definition for 'ValidateInput'...
|
by: Justin Dutoit |
last post by:
Hey. I have the error CS0117 'BusinessLayer' does not contain a definition
for 'MySoapHeader'. Below is a link to the asmx source, and the code which
calls the web service. MS seems to do the same...
|
by: Justin Dutoit |
last post by:
Hey. Take a look at this link.
http://justindutoit.port5.com/QuickshopDocs/businesslayer.asmx.txt
When I call the web service, I have the error CS0117 'BusinessLayer' does
not contain a...
|
by: Nikhil Patel |
last post by:
Hi all,
I have a drop down in an asp.net form defined as below:
<asp:DropDownList id="dropDownLeaseType" runat="server"
OnSelectedIndexChanged="LeaseTypeChanged"></asp:DropDownList>
I have...
|
by: Luis Esteban Valencia |
last post by:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source...
|
by: manas |
last post by:
hi,
I am using showDialogModal to create a popup...
the intial page is webform1.aspx and the popup page is error.aspx,
I have the <base target="_self"> in webform1.aspx
and the code i used is
...
|
by: Neo Geshel |
last post by:
Just moved to C# from VB.NET, frustrated to hell and back by inability
to get much-copied (from about 20+ different resources) literal example
to work.
Master Page content:
<meta...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |