Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Go Back   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Register FAQ Members List Calendar Guía de estilo Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 19/02/2017
pepe_baile pepe_baile is offline
Miembro
 
Join Date: Dec 2007
Posts: 15
Poder: 0
pepe_baile Va por buen camino
Unhappy Este código Delphi como sería en C++ Builder

Hola amigos,
me han pasado un código en Delphi para un lector de documentos, podría alguien ayudarme para escribirlo en C++ Builder,
el código es:

//------------------------------------------------------------------------------------------
// For example, the initialise and shutdown APIs can be declared using code similar to:
//------------------------------------------------------------------------------------------

Code:
 function MMMReader_Initialise(aDataCallback : MMMReaderHLDataCallback;
                                         aEventCallback : MMMReaderEventCallback;
                                         aErrorCallback : MMMReaderErrorCallback;
                                         aCertCallback : MMMReaderCertificateCallback;
                                         boolean : boolean;
                                         aProcessInputMessages : boolean;
                                         aParam : integer) : MMMReaderErrorCode; cdecl;

  function MMMReader_Shutdown() : MMMReaderErrorCode; cdecl;
//---------------------------------------------------------------------------------------------------------------------------------------
//The parameters required can be identified either from the C++ header files, or form the definitions in the Programmers’ Guide. Note the use of the //“cdecl” keyword, to tell Delphi to use this calling convention.
//These would then be implemented using the following lines:
//---------------------------------------------------------------------------------------------------------------------------------------

Code:
  function MMMReader_Initialise; external 'MMMReaderHighLevelAPI.dll' name 'MMMReader_Initialise';
  function MMMReader_Shutdown; external 'MMMReaderHighLevelAPI.dll' name 'MMMReader_Shutdown';
//---------------------------------------------------------------------------------------------------------------------------------------
//These lines tell Delphi the name of the DLL to import the functions from, and the name of the functions. The names of all functions in the 3M Page //Reader SDK are “undecorated”, and so are simply the function names as used.
//---------------------------------------------------------------------------------------------------------------------------------------


pongo también la explicación para más claridad,
muchas gracias
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Como compilo este codigo dll en delphi ? helio Varios 5 31/08/2016 22:04
Pasar este mini-codigo a C++Builder aguml C++ Builder 10 24/06/2014 21:09
¿Cómo sería este código de Python en pesudocódigo? Javier_920 Python 2 21/12/2012 21:58
Como implementar este codigo en delphi 7 freddiaz07 Internet 4 16/09/2011 22:34
Como sería ese PHP en delphi? cslbcn OOP 26 26/08/2008 07:59


All times are GMT +2. The time now is 08:51.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi