Add dll reference to C# project

"Jim Kelley" <[email protected]>
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
Hi,

I am attempting to add a reference to the dllsample.dll, which I built
following the instructions in the documentation, to a C# project in VS .Net.
When I browse and select the dllsample.dll file using the add reference
dialog after clicking OK I get the error:

A reference to 'C:\lisp\dll\dllsample.dll could not be added.  This is not a
valid assembly or COM component.  Only assemblies         with  extension
'dll' and COM components can be referenced.  Please make sure that the file
is accessible , and that it is a valid assembly or COM component.

If I try to register the dll using regsvr32 I get the error:

dllsample.dll was loaded, but the DllRegisterServer entry point was not
found.  This file cannot be registered.

I was able to get the example to work (almost, there was a fatal memory
access problem when I ran it)  following the instructions for the VC++ files
in the dllclient directory but because I am completely unfamiliar with VC++
and COM for that matter, I was unable to extend that solution to my
particular task.  All the references that I found the to the Lib command
were related to VC++ and C# seems to want to do things differently.

I suspect (hope) that this problem has an obvious solution.

thanks

Jim




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/xGHJAA/SyjtlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.