"Unspecified error" Visio 2007 PRO - Trial

  • Thread starter sorina.negulescu
  • Start date
S

sorina.negulescu

Hello All,

There is a thread reporting a similar problem, but for some reason I
can only reply to the author and not to the group, so I decided to
open a new thread.
Anyway, here is the problem:
We did the development using Visio 2007 STD, then decided to test our
program on Visio 2007 PRO. We downloaded the trial version and
discovered that the drawing control cannot
be instantiated. IClassFactory2:: CreateInstance returns E_FAIL. At
the same time, a popup message comes up "An unspecified error has
occured". The message is not helpful at all. We figured out that we
needed to activate the trial version in order to be able to
instantiate the drawing control, but we would like to be able to
display a more helpful error message, just in case some user gets into
the same situation.
We experimented with RequestLicKey and GetLicInfo, which were both
successful and did not give a clue that CreateInstance would fail.
CreateInstanceLic fails in the same fashion.

Thanks,
Sorina
 
A

Al Edlund

I've seen the error posted and my first thought has always been to just wrap
the instantiation in a try-catch-endtry flagged for the error level that is
very well hidden in the error description. My favorite tool for this stuff is
the patterns-practices exception handling functionality.
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top