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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# compatible data types with Delphi data types while Calling Delphi DLL function

C# compatible data types with Delphi data types while Calling Delphi DLL function

Scheduled Pinned Locked Moved C#
csharpdelphihelptutorial
2 Posts 2 Posters 0 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.

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

    R 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.

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

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Another cross-poster. Stop it. Post your question once and once only and then wait for the answer. It is extremely unlikely that someone will read your question a nano-second after you post it and then provide the answer you require. Be patient. Now, do yourself a big favor and delete all the other posts so this is only here once.

      me, me, me "The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!" Larry Niven

      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