FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
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 |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Como compilo este codigo dll en delphi ? | helio | Varios | 5 | 31-08-2016 22:04:24 |
Pasar este mini-codigo a C++Builder | aguml | C++ Builder | 10 | 24-06-2014 21:09:12 |
¿Cómo sería este código de Python en pesudocódigo? | Javier_920 | Python | 2 | 21-12-2012 21:58:32 |
Como implementar este codigo en delphi 7 | freddiaz07 | Internet | 4 | 16-09-2011 22:34:39 |
Como sería ese PHP en delphi? | cslbcn | OOP | 26 | 26-08-2008 07:59:13 |
|