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

__event and __delegate question

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 class called Rs232. It has three
lines of code:

// These events allow the program using this class to react to Comm Port
events.

__event DataReceived(Rs232* Source, Byte DataBuffer[]);

__event TxCompleted(Rs232* Source);

__event CommEvent(Rs232* Source, EventMasks* Mask);
In the example program a timer fires every 200 ms and reads from the port.
I would rather have an event fire and tell me there is data ready. It lloks
to me like that is possible with this class. I've included the Rs232.h file
in my Form1.h file. I don't understand this __event and __delegate stuff
and am looking for some help here. What methods do I need to write? What
should they look like? Where should I put them?

Thank you,
Joe
Nov 17 '05 #1
5 2856
Joe Thompson wrote:
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 class
called Rs232. It has three lines of code:

// These events allow the program using this class to react to Comm
Port events.

__event DataReceived(Rs232* Source, Byte DataBuffer[]);

__event TxCompleted(Rs232* Source);

__event CommEvent(Rs232* Source, EventMasks* Mask);
In the example program a timer fires every 200 ms and reads from the
port. I would rather have an event fire and tell me there is data
ready. It lloks to me like that is possible with this class. I've
included the Rs232.h file in my Form1.h file. I don't understand
this __event and __delegate stuff and am looking for some help here.
What methods do I need to write? What should they look like? Where
should I put them?


The __events you see above mean that the Rs232 class is going to trigger
events when something happens. I think you have left out a return value on
the __event but it is always 'void' anyway. In order to have your form
handle an event, you create a handler member function in your form's class
with the same signature as an __event but without the __event keyword. You
then can hook your event handler to the event so that when the event is
triggered, your member function gets called. What you are doing is hooking
your event handler to both the event and a particular object of the class
which is generating the __event. In order to hook your event handler, look
at the documentation for the __hook keyword and how it is used.

As an example for the DataReceived event:

1) Add a member function to your form class with the signature: "void
MyHandler(Rs232* Source, Byte DataBuffer[]);". Implement this function to
handle the event as you see fit.

2) Instanatiate the Rs232 object somewhere in your form class. We will call
the pointer "Rs232ObjectPointer".

3) When you want to handle the DataReceived event from the instantiated
Rs232 object, your code in one of your form's member functions would be:
__hook(Rs232::DataReceived, Rs232ObjectPointer,MyForm::MyHandler);

4) When you no longer want to handle the event, your code would
be:__unhook(Rs232::DataReceived, Rs232ObjectPointer,MyForm::MyHandler);

OK, that is for this event. If the event itself is specified through a
delegate, then you have to create a delegate which points to your event
handler and use the += syntax to add your event handler to the list of event
handlers for the event ( equivalent of __hook ) and use the -= syntax to
remove your event handler from the list of event handlers for the event.

As an example, imagine that the __event signature for the DataReceived event
was actually:

__delegate void DataReceivedDelegate(Rs232* Source, Byte DataBuffer[]); //
outside the Rs232 class

__event DataReceivedDelegate * DataReceived; // inside the Rs232 class

Now do steps 1) and 2) above but for step 3 and 4 we now have:

3) When you want to handle the DataReceived event from the instantiated
Rs232 object, your code in one of your form's member functions would be:

DataReceivedDelegate * drg = new
DataReceivedDelegate(this,MyForm::MyHandler);
Rs232ObjectPointer -> DataReceived += drg;

4) When you no longer want to handle the event, your code would be:
Rs232ObjectPointer -> DataReceived -= drg;

I will heartily recommend that you read the MSDN documentation of delegates
and events and, if you still find things confusing and you have the money to
spend, get Richard Grimes book "Programming with Managed Extensions for
Visual C++ .NET". The latter has inside information on nearly everything you
will ever think to ask about MC++, along with delegates and events.
Nov 17 '05 #2
Hi Edward,

Thank you for your detailed reply. I tried adding a handler like this:

public __gc class Form1 : public System::Windows::Forms::Form
{
private:

Rs232* m_CommPort;

public:

Form1(void)
{

InitializeComponent();
m_CommPort = new Rs232;
__hook(Rs232::DataReceived, m_CommPort,
Form1::DataReceivedHandler);
}

public:

void DataReceivedHandler(Rs232* Source, Byte DataBuffer[])
{
// do something here
}

but keep getting a compiler error on the __hook line (error C3709:
'Rs232::DataReceived': improper syntax for specifying event in
__hook/__unhook). The documentation looks the same as you explained. I
noticed that the documentation and examples all have 2 classes involved -
source and handler and then a program. Can't my form contain the handler?
You mentioned that I may have forgot the "void" in the event but that is
copied straight from the class. I would really appreciate if you could look
into this class (Rs232) if you have some time. I am really getting
frustrated with serial port access in .net.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Joe Thompson wrote:
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 class
called Rs232. It has three lines of code:

// These events allow the program using this class to react to Comm
Port events.

__event DataReceived(Rs232* Source, Byte DataBuffer[]);

__event TxCompleted(Rs232* Source);

__event CommEvent(Rs232* Source, EventMasks* Mask);
In the example program a timer fires every 200 ms and reads from the
port. I would rather have an event fire and tell me there is data
ready. It lloks to me like that is possible with this class. I've
included the Rs232.h file in my Form1.h file. I don't understand
this __event and __delegate stuff and am looking for some help here.
What methods do I need to write? What should they look like? Where
should I put them?
The __events you see above mean that the Rs232 class is going to trigger
events when something happens. I think you have left out a return value on
the __event but it is always 'void' anyway. In order to have your form
handle an event, you create a handler member function in your form's class
with the same signature as an __event but without the __event keyword. You
then can hook your event handler to the event so that when the event is
triggered, your member function gets called. What you are doing is hooking
your event handler to both the event and a particular object of the class
which is generating the __event. In order to hook your event handler,

look at the documentation for the __hook keyword and how it is used.

As an example for the DataReceived event:

1) Add a member function to your form class with the signature: "void
MyHandler(Rs232* Source, Byte DataBuffer[]);". Implement this function to
handle the event as you see fit.

2) Instanatiate the Rs232 object somewhere in your form class. We will call the pointer "Rs232ObjectPointer".

3) When you want to handle the DataReceived event from the instantiated
Rs232 object, your code in one of your form's member functions would be:
__hook(Rs232::DataReceived, Rs232ObjectPointer,MyForm::MyHandler);

4) When you no longer want to handle the event, your code would
be:__unhook(Rs232::DataReceived, Rs232ObjectPointer,MyForm::MyHandler);

OK, that is for this event. If the event itself is specified through a
delegate, then you have to create a delegate which points to your event
handler and use the += syntax to add your event handler to the list of event handlers for the event ( equivalent of __hook ) and use the -= syntax to
remove your event handler from the list of event handlers for the event.

As an example, imagine that the __event signature for the DataReceived event was actually:

__delegate void DataReceivedDelegate(Rs232* Source, Byte DataBuffer[]); //
outside the Rs232 class

__event DataReceivedDelegate * DataReceived; // inside the Rs232 class

Now do steps 1) and 2) above but for step 3 and 4 we now have:

3) When you want to handle the DataReceived event from the instantiated
Rs232 object, your code in one of your form's member functions would be:

DataReceivedDelegate * drg = new
DataReceivedDelegate(this,MyForm::MyHandler);
Rs232ObjectPointer -> DataReceived += drg;

4) When you no longer want to handle the event, your code would be:
Rs232ObjectPointer -> DataReceived -= drg;

I will heartily recommend that you read the MSDN documentation of delegates and events and, if you still find things confusing and you have the money to spend, get Richard Grimes book "Programming with Managed Extensions for
Visual C++ .NET". The latter has inside information on nearly everything you will ever think to ask about MC++, along with delegates and events.

Nov 17 '05 #3
Joe Thompson wrote:
Hi Edward,

Thank you for your detailed reply. I tried adding a handler like
this:

public __gc class Form1 : public System::Windows::Forms::Form
{
private:

Rs232* m_CommPort;

public:

Form1(void)
{

InitializeComponent();
m_CommPort = new Rs232;
__hook(Rs232::DataReceived, m_CommPort,
Form1::DataReceivedHandler);
}

public:

void DataReceivedHandler(Rs232* Source, Byte DataBuffer[])
{
// do something here
}

but keep getting a compiler error on the __hook line (error C3709:
'Rs232::DataReceived': improper syntax for specifying event in
__hook/__unhook).
My fault in the explanation. Try

__hook(&Rs232::DataReceived, m_CommPort, &Form1::DataReceivedHandler);

instead. The address-of operator may be needed. At least that is what the
doc on __hook and __unhook shows.
The documentation looks the same as you explained.
I noticed that the documentation and examples all have 2 classes
involved - source and handler and then a program. Can't my form
contain the handler? You mentioned that I may have forgot the "void"
in the event but that is copied straight from the class. I would
really appreciate if you could look into this class (Rs232) if you
have some time. I am really getting frustrated with serial port
access in .net.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Joe Thompson wrote:
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 class
called Rs232. It has three lines of code:

// These events allow the program using this class to react to Comm
Port events.

__event DataReceived(Rs232* Source, Byte DataBuffer[]);

__event TxCompleted(Rs232* Source);

__event CommEvent(Rs232* Source, EventMasks* Mask);
In the example program a timer fires every 200 ms and reads from the
port. I would rather have an event fire and tell me there is data
ready. It lloks to me like that is possible with this class. I've
included the Rs232.h file in my Form1.h file. I don't understand
this __event and __delegate stuff and am looking for some help here.
What methods do I need to write? What should they look like? Where
should I put them?


The __events you see above mean that the Rs232 class is going to
trigger events when something happens. I think you have left out a
return value on the __event but it is always 'void' anyway. In order
to have your form handle an event, you create a handler member
function in your form's class with the same signature as an __event
but without the __event keyword. You then can hook your event
handler to the event so that when the event is triggered, your
member function gets called. What you are doing is hooking your
event handler to both the event and a particular object of the class
which is generating the __event. In order to hook your event
handler, look at the documentation for the __hook keyword and how it
is used.

As an example for the DataReceived event:

1) Add a member function to your form class with the signature: "void
MyHandler(Rs232* Source, Byte DataBuffer[]);". Implement this
function to handle the event as you see fit.

2) Instanatiate the Rs232 object somewhere in your form class. We
will call the pointer "Rs232ObjectPointer".

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be: __hook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

4) When you no longer want to handle the event, your code would
be:__unhook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

OK, that is for this event. If the event itself is specified through
a delegate, then you have to create a delegate which points to your
event handler and use the += syntax to add your event handler to the
list of event handlers for the event ( equivalent of __hook ) and
use the -= syntax to remove your event handler from the list of
event handlers for the event.

As an example, imagine that the __event signature for the
DataReceived event was actually:

__delegate void DataReceivedDelegate(Rs232* Source, Byte
DataBuffer[]); // outside the Rs232 class

__event DataReceivedDelegate * DataReceived; // inside the Rs232
class

Now do steps 1) and 2) above but for step 3 and 4 we now have:

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be:

DataReceivedDelegate * drg = new
DataReceivedDelegate(this,MyForm::MyHandler);
Rs232ObjectPointer -> DataReceived += drg;

4) When you no longer want to handle the event, your code would be:
Rs232ObjectPointer -> DataReceived -= drg;

I will heartily recommend that you read the MSDN documentation of
delegates and events and, if you still find things confusing and you
have the money to spend, get Richard Grimes book "Programming with
Managed Extensions for Visual C++ .NET". The latter has inside
information on nearly everything you will ever think to ask about
MC++, along with delegates and events.

Nov 17 '05 #4
Hi Edward,

That was the problem. I don't know how you can read that stuff but I'm sure
glad. I also had to change my return type to int instead of void on the
handler. I really appreciate your help. By the way, I am coming from
Borland C++ Builder and read your posts there quite often. I still think
VC++.net has a ways to go before being as easy to use but maybe that's just
because I'm used to Borland. I really don't like how everything is in the
..h files.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Joe Thompson wrote:
Hi Edward,

Thank you for your detailed reply. I tried adding a handler like
this:

public __gc class Form1 : public System::Windows::Forms::Form
{
private:

Rs232* m_CommPort;

public:

Form1(void)
{

InitializeComponent();
m_CommPort = new Rs232;
__hook(Rs232::DataReceived, m_CommPort,
Form1::DataReceivedHandler);
}

public:

void DataReceivedHandler(Rs232* Source, Byte DataBuffer[])
{
// do something here
}

but keep getting a compiler error on the __hook line (error C3709:
'Rs232::DataReceived': improper syntax for specifying event in
__hook/__unhook).


My fault in the explanation. Try

__hook(&Rs232::DataReceived, m_CommPort, &Form1::DataReceivedHandler);

instead. The address-of operator may be needed. At least that is what the
doc on __hook and __unhook shows.
The documentation looks the same as you explained.
I noticed that the documentation and examples all have 2 classes
involved - source and handler and then a program. Can't my form
contain the handler? You mentioned that I may have forgot the "void"
in the event but that is copied straight from the class. I would
really appreciate if you could look into this class (Rs232) if you
have some time. I am really getting frustrated with serial port
access in .net.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Joe Thompson wrote:
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 class
called Rs232. It has three lines of code:

// These events allow the program using this class to react to Comm
Port events.

__event DataReceived(Rs232* Source, Byte DataBuffer[]);

__event TxCompleted(Rs232* Source);

__event CommEvent(Rs232* Source, EventMasks* Mask);
In the example program a timer fires every 200 ms and reads from the
port. I would rather have an event fire and tell me there is data
ready. It lloks to me like that is possible with this class. I've
included the Rs232.h file in my Form1.h file. I don't understand
this __event and __delegate stuff and am looking for some help here.
What methods do I need to write? What should they look like? Where
should I put them?

The __events you see above mean that the Rs232 class is going to
trigger events when something happens. I think you have left out a
return value on the __event but it is always 'void' anyway. In order
to have your form handle an event, you create a handler member
function in your form's class with the same signature as an __event
but without the __event keyword. You then can hook your event
handler to the event so that when the event is triggered, your
member function gets called. What you are doing is hooking your
event handler to both the event and a particular object of the class
which is generating the __event. In order to hook your event
handler, look at the documentation for the __hook keyword and how it
is used.

As an example for the DataReceived event:

1) Add a member function to your form class with the signature: "void
MyHandler(Rs232* Source, Byte DataBuffer[]);". Implement this
function to handle the event as you see fit.

2) Instanatiate the Rs232 object somewhere in your form class. We
will call the pointer "Rs232ObjectPointer".

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be: __hook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

4) When you no longer want to handle the event, your code would
be:__unhook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

OK, that is for this event. If the event itself is specified through
a delegate, then you have to create a delegate which points to your
event handler and use the += syntax to add your event handler to the
list of event handlers for the event ( equivalent of __hook ) and
use the -= syntax to remove your event handler from the list of
event handlers for the event.

As an example, imagine that the __event signature for the
DataReceived event was actually:

__delegate void DataReceivedDelegate(Rs232* Source, Byte
DataBuffer[]); // outside the Rs232 class

__event DataReceivedDelegate * DataReceived; // inside the Rs232
class

Now do steps 1) and 2) above but for step 3 and 4 we now have:

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be:

DataReceivedDelegate * drg = new
DataReceivedDelegate(this,MyForm::MyHandler);
Rs232ObjectPointer -> DataReceived += drg;

4) When you no longer want to handle the event, your code would be:
Rs232ObjectPointer -> DataReceived -= drg;

I will heartily recommend that you read the MSDN documentation of
delegates and events and, if you still find things confusing and you
have the money to spend, get Richard Grimes book "Programming with
Managed Extensions for Visual C++ .NET". The latter has inside
information on nearly everything you will ever think to ask about
MC++, along with delegates and events.


Nov 17 '05 #5
Joe Thompson wrote:
Hi Edward,

That was the problem. I don't know how you can read that stuff but
I'm sure glad.
Glad to know it is working now.
I also had to change my return type to int instead of
void on the handler. I really appreciate your help. By the way, I
am coming from Borland C++ Builder and read your posts there quite
often. I still think VC++.net has a ways to go before being as easy
to use but maybe that's just because I'm used to Borland.
Think of __delegate as being equivalent to the C++ Builder __closure, but
with more power ( multi-casting, delegating to static/global functions ) and
therefore less ease of programming use. The __event keyword is essentially a
form of __delegate creator/manipulator to make connecting an event handler
to event sources easy to do.
I really
don't like how everything is in the .h files.
You can move your member function code to the .cpp files and VC++ .NET will
pick it up fine. It is annoying that all the internal wizards work on the
header files but remember that C#, MS's preferred language, has no concept
of source/header files and puts all code in a .cs file with all member
function code in the class definition. This is, of course, the way Java does
it also.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Joe Thompson wrote:
Hi Edward,

Thank you for your detailed reply. I tried adding a handler like
this:

public __gc class Form1 : public System::Windows::Forms::Form
{
private:

Rs232* m_CommPort;

public:

Form1(void)
{

InitializeComponent();
m_CommPort = new Rs232;
__hook(Rs232::DataReceived, m_CommPort,
Form1::DataReceivedHandler);
}

public:

void DataReceivedHandler(Rs232* Source, Byte DataBuffer[])
{
// do something here
}

but keep getting a compiler error on the __hook line (error C3709:
'Rs232::DataReceived': improper syntax for specifying event in
__hook/__unhook).


My fault in the explanation. Try

__hook(&Rs232::DataReceived, m_CommPort,
&Form1::DataReceivedHandler);

instead. The address-of operator may be needed. At least that is
what the doc on __hook and __unhook shows.
The documentation looks the same as you explained.
I noticed that the documentation and examples all have 2 classes
involved - source and handler and then a program. Can't my form
contain the handler? You mentioned that I may have forgot the "void"
in the event but that is copied straight from the class. I would
really appreciate if you could look into this class (Rs232) if you
have some time. I am really getting frustrated with serial port
access in .net.

Thanks again,
Joe

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Joe Thompson wrote:
> 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
> class called Rs232. It has three lines of code:
>
> // These events allow the program using this class to react to
> Comm Port events.
>
> __event DataReceived(Rs232* Source, Byte DataBuffer[]);
>
> __event TxCompleted(Rs232* Source);
>
> __event CommEvent(Rs232* Source, EventMasks* Mask);
>
>
> In the example program a timer fires every 200 ms and reads from
> the port. I would rather have an event fire and tell me there is
> data ready. It lloks to me like that is possible with this
> class. I've included the Rs232.h file in my Form1.h file. I
> don't understand this __event and __delegate stuff and am looking
> for some help here. What methods do I need to write? What should
> they look like? Where should I put them?

The __events you see above mean that the Rs232 class is going to
trigger events when something happens. I think you have left out a
return value on the __event but it is always 'void' anyway. In
order to have your form handle an event, you create a handler
member function in your form's class with the same signature as an
__event but without the __event keyword. You then can hook your
event handler to the event so that when the event is triggered,
your member function gets called. What you are doing is hooking
your event handler to both the event and a particular object of
the class which is generating the __event. In order to hook your
event handler, look at the documentation for the __hook keyword
and how it is used.

As an example for the DataReceived event:

1) Add a member function to your form class with the signature:
"void MyHandler(Rs232* Source, Byte DataBuffer[]);". Implement this
function to handle the event as you see fit.

2) Instanatiate the Rs232 object somewhere in your form class. We
will call the pointer "Rs232ObjectPointer".

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be: __hook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

4) When you no longer want to handle the event, your code would
be:__unhook(Rs232::DataReceived,
Rs232ObjectPointer,MyForm::MyHandler);

OK, that is for this event. If the event itself is specified
through a delegate, then you have to create a delegate which
points to your event handler and use the += syntax to add your
event handler to the list of event handlers for the event (
equivalent of __hook ) and use the -= syntax to remove your event
handler from the list of event handlers for the event.

As an example, imagine that the __event signature for the
DataReceived event was actually:

__delegate void DataReceivedDelegate(Rs232* Source, Byte
DataBuffer[]); // outside the Rs232 class

__event DataReceivedDelegate * DataReceived; // inside the Rs232
class

Now do steps 1) and 2) above but for step 3 and 4 we now have:

3) When you want to handle the DataReceived event from the
instantiated Rs232 object, your code in one of your form's member
functions would be:

DataReceivedDelegate * drg = new
DataReceivedDelegate(this,MyForm::MyHandler);
Rs232ObjectPointer -> DataReceived += drg;

4) When you no longer want to handle the event, your code would be:
Rs232ObjectPointer -> DataReceived -= drg;

I will heartily recommend that you read the MSDN documentation of
delegates and events and, if you still find things confusing and
you have the money to spend, get Richard Grimes book "Programming
with Managed Extensions for Visual C++ .NET". The latter has inside
information on nearly everything you will ever think to ask about
MC++, along with delegates and events.

Nov 17 '05 #6

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

Similar topics

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: Edward Diener | last post by:
Scenario: base class in one assembly, derived class in another assembly, __event in base class, testing if event has any handlers in derived class with 'if (OnTestEvent) { //etc. }'. Result:...
1
by: | last post by:
I want to hook events handlers but need to test of any event handler is assigned or not. I need something like this: __event void OnEventHandler(Myfunc) .... if (OnEventHandler)...
0
by: Fireangel | last post by:
I'm trying to create a recursive class (Something like a tree), but I have an external function that needs to be called. I'm using __delegate to hold a pointer to this function, which only requires...
0
by: Lord2702 | last post by:
Sun. Aug. 29, 2004 5:00 PM PT I have a user control class which defined as follows... public __gc class MyControl : public UserControl { //---- //-- other fields methods and properties....
0
by: Dave L | last post by:
I just upgraded from VS .NET 2002 to 2003. Everything built okay, but strange bugs started appearing. Apparently there is a bug in the managed C++ compiler in regards to handling of static...
12
by: glutz7878 | last post by:
I have no trouble passing __delegate ptrs to native C functions in DLLs, however when attempting to pass the __delegate ptr to a native C++ function in a DLL I get the following runtime exception:...
1
by: Edward Diener | last post by:
I have a __gc class, let's call it ClassB, derived from ClassA, which has an __event, and eventually derived from System::ComponentModel::Component. This ClassB has no __event. I derived another...
6
by: PGP | last post by:
Anybody here using __event? Could you please discuss any potential issues with it other than portability? Priyesh
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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: 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: 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...
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
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
0
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...

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.