473,395 Members | 1,456 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,395 software developers and data experts.

Bug in __hook

In event source side i have:

namespace NXmlParser
{
[event_source(managed)]
public __gc class CXmlParser
{
public:
/**
* Class constructor
*/
CXmlParser();

/**
* Class destructor
*/
~CXmlParser();

public:
__event NCommon::TError ReEventCall( NCommon::TEventCall aEventCall );
..
..
..
}
}

and in event receiver side i Have

__hook(&NXmlParser::CXmlParser::ReEventCall, iXmlParser,
&NPlayerApi::CPlayerApi::EventCall);

and
function itself
NCommon::TError NPlayerApi::CPlayerApi::EventCall( NCommon::TEventCall
aEventCall )
{.........}

in Debug side it compiles ok, but in Release side it gives me strange error,
where
both sides of convert error are identical.

NPlayerApi.cpp(30) : error C2664: 'NXmlParser::CXmlParser::add_ReEventCall'
: cannot convert parameter 1 from
'NXmlParser::CXmlParser::__Delegate_ReEventCall __gc *' to
'NXmlParser::CXmlParser::__Delegate_ReEventCall __gc *'
Please dores anyone have workaround ????
Nov 17 '05 #1
0 958

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

Similar topics

1
by: Vladimir Scherbina Nickolaevich | last post by:
hello all, I need to hook some event handler in Managed C++code into event, that is declared, and is fired in C# code. as i understand, this maybe achieved via __hook, but when i write code...
1
by: | last post by:
Serious bug discovered in VC .NET (2002) compiler. Example below should work if I understand the Microsoft documentation correctly. Hopfelly there is some compiler upgrade that fixes this bug?...
0
by: | last post by:
I am trying to use my unmanaged c++ class library in managed classes. So far everything seems to be ok, just passing on the __events from unmanaged to managed code using the __hook functions is a...
0
by: Carl Clawson | last post by:
The C++ compiler is choking on what looks like a valid dispinterface method declaration. I have an ATL object "A" that fires COM events, and an object "B" that receives them. CA is attributed...
0
by: hantheman | last post by:
Hi, I have a few __hook calls to handle COM events in an event_receiver. However, the call to __hook throws an unknown exception. I can query the connection point just fine, but the hooking...
5
by: Joe Thompson | last post by:
Hi, I am using VC++.Net 2003 with WinForms to write a serial port application. I downloaded the newest VC++ examples from MSDN and found a project called Using the COM Port. In it, there is a...
3
by: Ashok Kumar K | last post by:
Hi all, Where can I get some insight on using the __hook, __unhook, event_source and event_receiver for specifically COM events. The documentation given in MSDN is very minimal. I have the...
6
by: PGP | last post by:
Anybody here using __event? Could you please discuss any potential issues with it other than portability? Priyesh
2
by: Masterchief | last post by:
HY! I have a problem hooking an event. I get an compiler error, that my callback isn´t a memeber of the containing class. I canßt find anything I am doing wrong. I found a small coed example...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.