COM object written in C#, Consumed in Delphi.

3 Responses

  1. ErickEDG says:

    522 / 5000
    Resultados de traducción
    Hello, very good job, you helped me a lot. Fix Johan’s problem, if no parameters are sent in the procedure, in the Delphi declaration it is to avoid putting “()”.
    Create a DLL with several forms within this library, and it also has a database model, and it is the one that is causing me an error, because it asks me to declare the connection String in the app.Config, but in the DLL already I have it added, and in Delphi there is no app.config file like in visual studio, any help?

    Greetings from Mexico!

  2. Hi

    Thanks for the video, great work. I followed your video, and implemented a basic HelloWorld function. Unfortunately I get an error on the Delphi side the moment the function logic gets called which states “Invalid number of parameters”.Its just an error popup that gets thrown by the application.
    If you perhaps know off the bat what the solution to the problem is, I would appreciate it, but if you need more information like code etc, I will be more than happy to post it.

    Thanks a lot.

    • Obviously I can’t make promises, but I’m happy to take a look. Off the top of my head I don’t know, however, an invalid parameter list suggests possibly an issue with the registered method header. Be sure you’ve un-registered any previously registered COM class by the same name (i.e. if you made previous attempts and altered the method header). Post your C# Class and Method header + the Delphi calling code at http://pastebin.com/ and share the link with me, I’ll give it a look.

Leave a Reply