Discussion:
adding packages into the IDE via the Open Tools API
(too old to reply)
David Novo
2008-01-27 22:38:38 UTC
Permalink
Hello,

Does anyone know a way to add/remove packages via the toosl API? I
found the IOTAPackageServices which seems like it will give you the
list of all the current packages that are loaded, but I cannot seem to
find a way to add or remove them.

My idea is to hook the IOTAProjectFileStorageNotifier and then
depending on which project is loaded, add or remove some packages via
the ToolsAPI.

Can this be done?

Thanks,
Dave
--
Michael
2008-02-24 17:58:22 UTC
Permalink
Theoretically,
supplied with the package name.
GetModuleHandle returns a handle to be used with
UnloadPackage(Windows::HINST Module);

--
Michael
Post by David Novo
Hello,
Does anyone know a way to add/remove packages via the toosl API? I
found the IOTAPackageServices which seems like it will give you the
list of all the current packages that are loaded, but I cannot seem to
find a way to add or remove them.
My idea is to hook the IOTAProjectFileStorageNotifier and then
depending on which project is loaded, add or remove some packages via
the ToolsAPI.
Can this be done?
Thanks,
Dave
--
Erik Berry
2008-02-24 21:35:24 UTC
Permalink
Post by David Novo
Does anyone know a way to add/remove packages via the toosl API? I
found the IOTAPackageServices which seems like it will give you the
list of all the current packages that are loaded, but I cannot seem to
find a way to add or remove them.
This is a common request, but there is nothing built into the OTA for this.
There is a request somewhere in QC for this feature you can vote for, I
believe. In addition to LoadPackage and friends in the RTL you might use to
to simulate this feature, you might also need to call Register/IDERegister on
the package after loading it to get the components loaded, etc.

Erik

Loading...