|
Re: Add dll reference to C# project: msg#00049lisp.corman
Unfortunately the DLLs created by Corman Lisp are standard Windows Win32 DLLs, and they are neither assemblies nor COM components. A .NET assembly, although it uses a .dll extension and is a PE (portable executable) format, is a very different thing from a normal DLL. It is all managed code, compiled to run under .NET. Corman Lisp does not currently support .NET. You can certainly run it from Visual C++, even from Managed C++ code under .NET. However, C++ offers transparent ability to link to Win32 DLLs and C# does not. There may be some way to do it but I don't know C# well. Roger -------------------- At 01:58 PM 3/11/2003 -0700, you wrote: >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 > > > > > >To unsubscribe from this group, send an email to: >cormanlisp-unsubscribe@xxxxxxxxxxxxxxx > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ------------------------ 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: cormanlisp-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Screamer ported to Corman Lisp.: 00049, Chris Double |
|---|---|
| Next by Date: | Re: Add dll reference to C# project: 00049, Chris Double |
| Previous by Thread: | Add dll reference to C# projecti: 00049, Jim Kelley |
| Next by Thread: | Re: Add dll reference to C# project: 00049, Chris Double |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |