Thanks for your quick response.
Do you mean I should make the dll's config file a member of the EXE Assembly? Or that I should move the settings from the dll's config to the EXE's config?
To All:
I have written a DLL using C# that has a config file called <DLLName>.dll.config. The trouble is, the DLL's config file never seems to be read unless I open the code, go to the tab that defines the config, change the value and rebuild. It seems it only exists in code?
I also have an...
I have a Delphi version 6 executable. It calls a C# DLL that I used to wrap another DLL called Vipvco that talks to a large database on an iSeries. Everything runs fine on my development box but I get the above error when I call the C# DLL from inside the Delphi EXE after I load it on another...
I have a C# dll that is called from Delphi (version 6). The parameters for the C# method are <string,string,string,...> but for some reason Delphi is insisting on <const: widestring,const: widestring,const: widestring,...> as the passed-in parms. However, I need to reassign these fields in a...
I finally got this to work with a TLB file consumed by Delphi. I'm not sure what caused the initial 'file not found' error, but I added some more functionality to the .NET dll and it started working. I had to put GUID information on every Class and Interface within the .NET dll to make them...
Thanks for your quick response.
Yes, I registered it with the command line VS function gacutil.exe which, as I understand, does the job of registration and also puts it in the GAC, right? Then I run a utility calle tlbexp which builds the TLB file.
All is well and Delphi can see the classes...
To All,
I am using Delphi 6 and trying to consume a COM object created by VS 2005 C#. I can successfuly create the DLL in VS, export it to a TLB file and import the TLB into Delphi. But when I try to instantiate a new class from the COM using Co(Classname).Create, I get the above error.
I have...
Thanks for the feedback. The C# dll is something I wrote so I have complete control. I'll look carefully at all the options and compile settings. It just seems to only expose certain things (classes but not methods, properties) and I am not sure why.
How do I consume a C# dll using Delphi 6? I have tried creating and using a TLB file that is created by Delphi as a _TLB, but it is a little buggy when I compile it and it only sees the classes and not the methods or properties in the C# dll.
Is there another way to consume the dll directly...
I am trying to use a C# dll inside Delphi and have some questions. I generated a TLB file with Delphi and I can see some of the Classes but not any methods or properties.
Is there a way to use an external dll w/o generating a TLB?
I am using Delphi version 6.
Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.