Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Delphi
  4. Delphi DLL function calling from VB.net and C#.net paramters compatibility

Delphi DLL function calling from VB.net and C#.net paramters compatibility

Scheduled Pinned Locked Moved Delphi
csharpdelphihelptutorial
2 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijay victory
    wrote on last edited by
    #1

    Hi All, I have created one DLL having some functions as follows.. I want to call them from VB.net and C#.net.

    1. Function CONVERTPWDATA ( PASS1,PASS2 : INTEGER; IpStr : PWord; OpStr : PChar;
      LangName : LongInt; AFontType, BFontType : LongInt ) : PChar; StdCall;export;

    2. Function CONVERTDATAEX ( PASS1,PASS2 : INTEGER; IpStr : PChar; OpStr : PWord;
      LangName : LongInt; AFontType, BFontType : LongInt ) : PChar; StdCall;export;

    Can anyone help me for Compatible Data types in .net for Delphi Data Types. My Second Question IS **How to pass Unicode Data from .net and How to receive it back from Delphi DLL.** Thanks in Advance..

    I have never failed,I just found 1000 ways that never works. Regards, Victory.

    M 1 Reply Last reply
    0
    • V vijay victory

      Hi All, I have created one DLL having some functions as follows.. I want to call them from VB.net and C#.net.

      1. Function CONVERTPWDATA ( PASS1,PASS2 : INTEGER; IpStr : PWord; OpStr : PChar;
        LangName : LongInt; AFontType, BFontType : LongInt ) : PChar; StdCall;export;

      2. Function CONVERTDATAEX ( PASS1,PASS2 : INTEGER; IpStr : PChar; OpStr : PWord;
        LangName : LongInt; AFontType, BFontType : LongInt ) : PChar; StdCall;export;

      Can anyone help me for Compatible Data types in .net for Delphi Data Types. My Second Question IS **How to pass Unicode Data from .net and How to receive it back from Delphi DLL.** Thanks in Advance..

      I have never failed,I just found 1000 ways that never works. Regards, Victory.

      M Offline
      M Offline
      mobius111001
      wrote on last edited by
      #2

      Here is a site I used when doing the same thing. Everything worked perfect for me. http://www.netcoole.com/delphi2cs/datatype.htm In regards to your Unicode question, I'm have no experience, so I can't comment. Hope the chart helps.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups