This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- You're not alone...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 14, 2006
07:25 PM
Agent API - C++ UpdateEvents
Hopefully someone can respond to this.
I'm using C++ and I'm trying to download an update using the API, but it doesn't look like I'm receiving any of the Update events.
Does anyone have a sample project in C++ that I can see to make sure my code isn't completely messed up?
Due to the lack of information in the API, I had to bolt mine together from various 3+ year old comments in random newsboards. It's been fun.
: /
I'm using C++ and I'm trying to download an update using the API, but it doesn't look like I'm receiving any of the Update events.
Does anyone have a sample project in C++ that I can see to make sure my code isn't completely messed up?
Due to the lack of information in the API, I had to bolt mine together from various 3+ year old comments in random newsboards. It's been fun.
: /
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 19, 2006
10:53 AM
Hi,
I'm also trying to get the update events from the API, using bits and pieces of code I found in the community.
I am trying to do it like this:
What happens is that spUpdate fails to create...
What am I doing wrong here?
By the way the agent works and it fetches the update (not silently yet but thats another issue:)
Maldon have you gotten this far?
Best regards,
Erik
I'm also trying to get the update events from the API, using bits and pieces of code I found in the community.
I am trying to do it like this:
// Receive events ...
if(!SUCCEEDED(spUpdate.CoCreateInstance(CLSID_Updates))) {
AfxMessageBox("Error creating update");
}
if(!SUCCEEDED(CComObject::CreateInstance&m_UpdateEventSink))) {
AfxMessageBox("Error creating update sink");
}
m_UpdateEventSink->Start(spUpdate);
//Create agent and get updates
if (SUCCEEDED(spAgent.CoCreateInstance(CLSID_Agent)))
{
//...AutoUpdate etc
What happens is that spUpdate fails to create...
What am I doing wrong here?
By the way the agent works and it fetches the update (not silently yet but thats another issue:)
Maldon have you gotten this far?
Best regards,
Erik