mibuso.com

Microsoft Business Solutions online community
It is currently Wed May 22, 2013 12:38 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Creating dotnet objects with events
PostPosted: Wed Nov 16, 2011 5:41 pm 
Offline

Joined: Mon Jun 12, 2006 10:18 am
Posts: 235
Location: Istanbul
Country: Turkey (tr)
Hello,

I create a simple .NET class to simulate phone calls. I would use this class as an dotnet variable to catch some events from it. But it is impossible to create dotnet variable with events. So I decided to build the dll with registering for COM interop, also made the assembly COM-visible.

I am now enable to declare my class as automation variable. But when I set withevents property of the variable to yes, I can not see any additional function as an event handler.

I am sure that I miss something but I don't know what :)

_________________
Cem Karaer
http://www.pargesoft.com.tr


Top
 Profile  
 
 Post subject: Re: Creating dotnet objects with events
PostPosted: Wed Nov 16, 2011 5:58 pm 
Online
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7496
Location: Milan
Country: Italy (it)
As far as I remember, it is not supported yet.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: Creating dotnet objects with events
PostPosted: Thu Nov 17, 2011 9:36 am 
Offline

Joined: Mon Jun 12, 2006 10:18 am
Posts: 235
Location: Istanbul
Country: Turkey (tr)
Thank you kriki!

So I must create the COM class with classic methods?

_________________
Cem Karaer
http://www.pargesoft.com.tr


Top
 Profile  
 
 Post subject: Re: Creating dotnet objects with events
PostPosted: Thu Nov 17, 2011 7:49 pm 
Online
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7496
Location: Milan
Country: Italy (it)
If you want events, yes.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: Creating dotnet objects with events
PostPosted: Sun Nov 20, 2011 8:03 pm 
Offline

Joined: Mon Jun 12, 2006 10:18 am
Posts: 235
Location: Istanbul
Country: Turkey (tr)
Hello,

I found a helpful link:

http://msdn.microsoft.com/en-us/library/aa973247.aspx

_________________
Cem Karaer
http://www.pargesoft.com.tr


Top
 Profile  
 
 Post subject: Re: Creating dotnet objects with events
PostPosted: Mon Nov 21, 2011 11:00 am 
Online
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7496
Location: Milan
Country: Italy (it)
Very interesting link!

[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Tips & Tricks' forum]

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: