|
by: Dejun Yang |
last post by:
Could anybody help me?
How to sink an event from C++.NET in C#? For example, for
following CSource, how to sink EventTest in C#?
#pragma once
#include <windows.h>
using namespace System;
namespace CSource
{
|
by: BlueMonkMN |
last post by:
I've been trying to think of the right way to design relationships
between objects with different desired lifetimes that raise events.
If an event source is a relatively permanent object and the event sink
is on an object that can come and go, what is the proper way to deal
with adding and removing the handler to the event list? Should the
event sink make sure to remove itself from the source's event list
before all other references to it...
|
by: Bob Whiton |
last post by:
I have an unmanaged class which has a member variable:
gcroot<DataTable*> myDataTable;
I would like to sink the RowDeleting event in my UNmanaged class. However,
I can't declare an event handler in the unmanaged class because the types
are managed (compiler error C3265).
For example, I can't declare the following sink:
static void Row_Deleting(Object* sender,
System::Data::DataRowChangeEventArgs* e)
|
by: Arnaud Debaene |
last post by:
Hello all.
I've got a bunch of existing, non managed, C++ DLLs that export types
with, among other things, public events implemented using the
boost::signals library.
Now, I need to have these DLL interoperate with managed code. Among
others things, the managed code need to be able to register for
notification with the boost signals. I've tried different approaches
(trying to register a pinned delegate with the boost::signal, etc...),
|
by: techie |
last post by:
I have created an event sink in my ATL COM project. The event sink receives
events from a C# component. There is no problem with receving events but
when my COM object is released I get an access violation - (MSCORWKS.DLL):
0xC0000005: Access Violation.
Here's my event sink class:
namespace
{
static const int EVENT_ID = 111;//any arbitary value
|
|
by: Don |
last post by:
Getting errors after following the MSDN article on using VB.NET (and VS2005)
for "Implementing a Managed OnSave Event Sink" for Exchange Server 2007. Not
sure, but part of the problem may be that it's the 64-bit version of
Exchange 2007 installed on Windows Server 2003 Enterprise x64, while the
Exchange 2007 SDK samples seem mostly geared toward 32-bit. Even at that, I
was able to build the TLB and install it into COM+ Component Services,...
|
by: Dan Soendergaard |
last post by:
Hello fellow developers,
I've created a control which derives from the .NET TextBox. I then
wanted to add two events to the new control, so I added the following
to the control code:
public event EventHandler InvalidValueMatched;
public event EventHandler ValidValueMatched;
But when one of the events is raised I get this exception:
|
by: PatlaDJ |
last post by:
Java SAX parser, please need a clue how to get the raw XML code of the
currently parsing event... needed for logging, debugging purposes.
Here's and example, letting me clarify exactly what i need: (see the
comments in source)
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
//..Here... or maybe somewhere elsewhere I need on my disposal the raw
XML code of every XML tags...
|
by: =?Utf-8?B?Q29kZVJhem9y?= |
last post by:
I have an event sink which does some work to the software we use, according
to the data contained within an email. This is all working hunky dory.
What i want to know is whether it is possible to send an email from inside
of an event sink. So for example an email comes into the event sink, and then
the event sink generates a new email which it then sends.
The reason I ask this is because the event sink code sits on the exchange...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|