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

Finding out if a trivial event has handlers

When I try to find out if a trivial event has handlers, by comparing the
event to nullptr, I get compiler error C3918. So my natural question is
how does one test a trivial event for handlers ?
Apr 24 '06 #1
4 2635
If you want this feature, you can't use trivial events.

"Edward Diener" <ed*******************@tropicsoft.com> wrote in message
news:eA**************@TK2MSFTNGP05.phx.gbl...
When I try to find out if a trivial event has handlers, by comparing the
event to nullptr, I get compiler error C3918. So my natural question is
how does one test a trivial event for handlers ?

Apr 24 '06 #2
Marcus Heege wrote:
If you want this feature, you can't use trivial events.

"Edward Diener" <ed*******************@tropicsoft.com> wrote in message
news:eA**************@TK2MSFTNGP05.phx.gbl...
When I try to find out if a trivial event has handlers, by comparing the
event to nullptr, I get compiler error C3918. So my natural question is
how does one test a trivial event for handlers ?


Thanks. I have changed to non-trivial events with my own backing store
to get the functionality I need.

Apr 24 '06 #3
Hi, i have the same bugs !!!

Pleaze help me to solve this error !!! error C3918: usage requires

error C3918: usage requires

error C3918: usage requires

error C3918: usage requires

error C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requireserror C3918: usage requireserror C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requires
error C3918: usage requires

From http://www.google.be/search?q=error+...&start=10&sa=N

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Jan 21 '07 #4
>
From http://www.google.be/search?q=error+...&start=10&sa=N

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
You should not use trivial events if you want to do that.
The fourth google result for that query could have told you that.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jan 21 '07 #5

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

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
1
by: emma middlebrook | last post by:
Hi I want to find out what objects are due to receive an event i.e. those that have added themselves as an event handler via +=. Yes, it's a little pointless perhaps (or can anyone give some...
8
by: Dennis C. Drumm | last post by:
I have a class derived from a SortedList called SystemList that contains a list of objects indexed with a string value. The definition of the objects contained in the SortedList have a boolean...
6
by: Tor Inge Rislaa | last post by:
Finding current Procedure I want to write errors to a log-file, where the error log contain the description of where the error occurred and what kind of error it was. Private Sub...
13
by: Charles Law | last post by:
Mr "yEaH rIgHt" posted the following link about a week ago in answer to my question about removing event handlers. > http://www.vbinfozine.com/t_bindevt.shtml Following on from that post, the...
6
by: Kevin Attard | last post by:
I am using a GridView inside a UserControl which has a template column for deleting the rows. Before databinding the gridview i am attaching the RowCommand and RowDataBound event. I am using the...
16
by: Hamed | last post by:
Hello I am developing a utility to be reused in other programs. It I have an object of type Control (a TextBox, ComboBox, etc.) that other programmers use it in applications. they may set some...
14
by: Hamed | last post by:
Hello It seems that I should implement ICloneable to implement my own clone object. the critical point for me is to make a control object based on another control object that all of its event...
6
by: Jake K | last post by:
Where is the best place to define event handlers? I need to define event handlers for a COM object referenced in my project and am doing so in the fowm load. Is this the best place?
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.