BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi.NET dropping assembly reference

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Delphi Sleuth
Guest





PostPosted: Fri Jan 30, 2004 3:54 pm    Post subject: Delphi.NET dropping assembly reference Reply with 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.


Hal Diggs
[email]banditdiggs-delphi (AT) yahoo (DOT) com[/email]
Back to top
Jose Perez
Guest





PostPosted: Fri Jan 30, 2004 5:18 pm    Post subject: Re: Delphi.NET dropping assembly reference Reply with quote



"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





PostPosted: Fri Jan 30, 2004 5:40 pm    Post subject: Re: Delphi.NET dropping assembly reference Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.