 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Simon Guest
|
Posted: Wed Oct 22, 2003 1:00 pm Post subject: Cannot load unit XXX symbol information for TMyClass ?? (Why |
|
|
Folks,
I am trying to use Delphi's ActiveX control wizard to wrap up a custom
component as an ActiveX control. This is something I have done many times
before without any problems.
However now when I try to wrap up my control I get the error message 'Cannot
load unit XXX symbol information for TMyClass. Do you want to try to find
this file yourself'. When i point the wizard at the .dcu containing TMyClass
I am just asked the same question again.
Does anyone know why this might be happening and what I can do to remedy the
situation?
Thanks in advance
- Simon Moscrop
(p.s. I have reproduced this in both D6 & D7)
|
|
| Back to top |
|
 |
Brian Cook Guest
|
Posted: Wed Oct 22, 2003 4:03 pm Post subject: Re: Cannot load unit XXX symbol information for TMyClass ?? |
|
|
Fellow,
| Quote: | I am trying to use Delphi's ActiveX control wizard to wrap up a custom
component as an ActiveX control. This is something I have done many times
before without any problems.
However now when I try to wrap up my control I get the error message 'Cannot
load unit XXX symbol information for TMyClass. Do you want to try to find
this file yourself'. When i point the wizard at the .dcu containing TMyClass
I am just asked the same question again.
Does anyone know why this might be happening and what I can do to remedy the
situation?
|
If I remember correctly, unit "XXX" must be included in the project
(listed in the DPK) file used to build the package. Referencing the
unit from another unit isn't good enough.
Good luck, Brian
|
|
| Back to top |
|
 |
Simon Guest
|
Posted: Thu Oct 23, 2003 9:18 am Post subject: Re: Cannot load unit XXX symbol information for TMyClass ?? |
|
|
Brian,
Thanks for your answer.
I already had the unit containing TMyClass added explicitly to an installed
'.dpk' but still experienced the problems. I found that I had to add
references to other units (used by TMyClass) to the search path for my
ActiveX library project & that fixed it.
Thanks again
- Si Moz
"Brian Cook" <bcook@rowdydogsoftware[REMOVE].com> wrote
| Quote: | Fellow,
I am trying to use Delphi's ActiveX control wizard to wrap up a custom
component as an ActiveX control. This is something I have done many
times
before without any problems.
However now when I try to wrap up my control I get the error message
'Cannot
load unit XXX symbol information for TMyClass. Do you want to try to
find
this file yourself'. When i point the wizard at the .dcu containing
TMyClass
I am just asked the same question again.
Does anyone know why this might be happening and what I can do to remedy
the
situation?
If I remember correctly, unit "XXX" must be included in the project
(listed in the DPK) file used to build the package. Referencing the
unit from another unit isn't good enough.
Good luck, Brian
|
|
|
| Back to top |
|
 |
Sam Guest
|
Posted: Thu Oct 23, 2003 9:40 am Post subject: Re: Cannot load unit XXX symbol information for TMyClass ?? |
|
|
Hi,
This is because the directory containing this project is not included in the
Environment Options-Library-Library Path. Including this in the path should
solve the problem.
Alternative method is to provide the required DCU file. You are probably
having some more DCUs which are required to create the ActiveX, for example,
MySomeOtherClass.dcu which is a helper class for MyClass.dcu. You have to
give this when it asks for the DCU.
Good Luck,
--
Sam.
"Simon" <nospamSimonMoscrop (AT) Hotmail (DOT) com> wrote
| Quote: | Brian,
Thanks for your answer.
I already had the unit containing TMyClass added explicitly to an
installed
'.dpk' but still experienced the problems. I found that I had to add
references to other units (used by TMyClass) to the search path for my
ActiveX library project & that fixed it.
Thanks again
- Si Moz
"Brian Cook" <bcook@rowdydogsoftware[REMOVE].com> wrote in message
news:MPG.1a00663e4821668a989761 (AT) newsgroups (DOT) borland.com...
Fellow,
I am trying to use Delphi's ActiveX control wizard to wrap up a custom
component as an ActiveX control. This is something I have done many
times
before without any problems.
However now when I try to wrap up my control I get the error message
'Cannot
load unit XXX symbol information for TMyClass. Do you want to try to
find
this file yourself'. When i point the wizard at the .dcu containing
TMyClass
I am just asked the same question again.
Does anyone know why this might be happening and what I can do to
remedy
the
situation?
If I remember correctly, unit "XXX" must be included in the project
(listed in the DPK) file used to build the package. Referencing the
unit from another unit isn't good enough.
Good luck, Brian
|
|
|
| Back to top |
|
 |
|
|
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 vote in polls in this forum
|
|