Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Instantiating CalendarEvent in PB17
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Instantiating CalendarEvent in PB17

 Post Reply Post Reply
Author
Message
JHess View Drop Down
Newbie
Newbie


Joined: 06 March 2018
Location: Phoenix, AZ
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote JHess Quote  Post ReplyReply Direct Link To This Post Topic: Instantiating CalendarEvent in PB17
    Posted: 06 March 2018 at 5:28pm
I'm working with the demo version of Calendar, v18.3. So far I am unable to instantiate the CalendarEvent class. 

I found this statement in a sample project from v13.1 (sometime in 2009). It fails saying the file is not found which makes sense because the class name is not a file. Perhaps it was at one point.
rc = iOleEvent.ConnectToObject("Codejock.CalendarControl.CalendarEvent.18.3.0")

I tried the same statement like this to force the class name. The result is class name not found.
rc = iOleEvent.ConnectToObject("", "Codejock.CalendarControl.CalendarEvent.18.3.0")

Looking at the documentation, the CalendarEvent class does not appear to be a subclass of CalendarControl. So, I tried these with no success:
rc = iOleEvent.ConnectToObject("Codejock.CalendarEvent.18.3.0")
rc = iOleEvent.ConnectToObject("", "Codejock.CalendarEvent.18.3.0")

Finally, I decided to just create a new object with these attempts, but I still receive a response of class name not found.
rc = iOleEvent.ConnectToNewObject("Codejock.CalendarEvent.18.3.0")
rc = iOleEvent.ConnectToNewObject("Codejock.CalendarControl.CalendarEvent.18.3.0")

These statements work:
rc= OleCalendarDialog.ConnectToNewObject("Codejock.CalendarDialogs.18.3.0")
rc= iOleEvent.ConnectToNewObject("Codejock.CalendarThemeOffice2007.18.3.0")


Any guidance would be helpful.

Thank you


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.