![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Register | FAQ | Members List | Calendar | Guía de estilo | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
|