Ver Mensaje Individual
  #1  
Antiguo 19-02-2017
pepe_baile pepe_baile is offline
Miembro
 
Registrado: dic 2007
Posts: 15
Reputación: 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:
//------------------------------------------------------------------------------------------

Código:
 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:
//---------------------------------------------------------------------------------------------------------------------------------------

Código:
  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
Responder Con Cita