 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Delphi Sleuth Guest
|
Posted: Fri Jan 30, 2004 3:54 pm Post subject: Delphi.NET dropping assembly reference |
|
|
heres the problem: in either a Winforms or ASPX project try adding a
reference to some Microsoft.<what-ever>.dll . We are currently trying
to use Microsoft.Sharepoint.dll and/or one of the other Interop
libraries. The reference adds just fine but if you then go to one of
your .pas files and try to add Microsoft.<what-ever>.dll to your uses,
you get a [Fatal Error] Package Not Found! Can anyone tell me what I
am doing wrong? This ain't cool.
Hal Diggs
[email]banditdiggs-delphi (AT) yahoo (DOT) com[/email]
|
|
| Back to top |
|
 |
Jose Perez Guest
|
Posted: Fri Jan 30, 2004 5:18 pm Post subject: Re: Delphi.NET dropping assembly reference |
|
|
"Delphi Sleuth" <hdiggs (AT) star-telegram (DOT) com> wrote
| Quote: | heres the problem: in either a Winforms or ASPX project try adding a
reference to some Microsoft.<what-ever>.dll . We are currently trying
to use Microsoft.Sharepoint.dll and/or one of the other Interop
libraries. The reference adds just fine but if you then go to one of
your .pas files and try to add Microsoft.<what-ever>.dll to your uses,
you get a [Fatal Error] Package Not Found! Can anyone tell me what I
am doing wrong? This ain't cool.
|
I don't have access to Delphi.NET, but I am familiar with C#. In C#, after
adding the reference to the assembly, the namespace in the DLL then needs a
"uses" statement. You don't need to duplicate the reference to the DLL; the
uses gives you access to the contents of the DLL.
| Quote: |
Hal Diggs
[email]banditdiggs-delphi (AT) yahoo (DOT) com[/email]
|
|
|
| Back to top |
|
 |
Hey Out There Guest
|
Posted: Fri Jan 30, 2004 5:40 pm Post subject: Re: Delphi.NET dropping assembly reference |
|
|
Thanks. In Delphi we have a uses clause that works like C# except
that I can declare everything in one statement:
uses
System.Collections, System.ComponentModel,
System.Data, System.Drawing, Borland.Data.Web,
however, I try just adding the Microsoft.Sharepoint.dll as a
reference and compiling... never made a call to anything that actually
needs this assembly.
I get [Fatal Error] File not found "Microsoft.Sharepoint.Security.dll"
normally I'd figure that the assembly in question needs a refernce of
its own to Microsoft.Sharepoint.Security.dll. The weird thing is that
I can't find a copy of this dll anywhere... even directly on the
server that Sharepoint is running on. This same dll seems to be
needed anytime we try to use any Microsoft assembly but we just do not
seem to have a copy anywhere.
In contrast, the same project in csharp uses the same reference and
has this uses statement:
....
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Utilities;
and is works fine. If anyone else has Delphi.Net assembly problems or
any other nutty ideas to try I'd appreciate it. Thanks for the effort
though. I might just be a victim of version 1.0 of Delphi.Net.
Hal Diggs
[email]banditdiggs-delphi (AT) yahoo (DOT) com[/email]
On Fri, 30 Jan 2004 17:18:15 GMT, "Jose Perez"
<jomperez (AT) optonline (DOT) net> wrote:
| Quote: | "Delphi Sleuth" <hdiggs (AT) star-telegram (DOT) com> wrote in message
news:234d4a75.0401300754.6ca423de (AT) posting (DOT) google.com...
heres the problem: in either a Winforms or ASPX project try adding a
reference to some Microsoft.<what-ever>.dll . We are currently trying
to use Microsoft.Sharepoint.dll and/or one of the other Interop
libraries. The reference adds just fine but if you then go to one of
your .pas files and try to add Microsoft.<what-ever>.dll to your uses,
you get a [Fatal Error] Package Not Found! Can anyone tell me what I
am doing wrong? This ain't cool.
I don't have access to Delphi.NET, but I am familiar with C#. In C#, after
adding the reference to the assembly, the namespace in the DLL then needs a
"uses" statement. You don't need to duplicate the reference to the DLL; the
uses gives you access to the contents of the DLL.
Hal Diggs
[email]banditdiggs-delphi (AT) yahoo (DOT) com[/email]
|
|
|
| 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
|
|