Visual C++ dll to Delphi
"s_david77" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Hallo,
I am trying to convert one dll from Visual C++ to Delphi
but I did find some difficulties on the conversion.
First of all I do not how to traslate the WINAPI
Calling convention for the Win32 API.
Can someone help me in this task?
Thanx
//-----------------Implementaion.h------------------------------------
------------
#pragma once
// #include <windows.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <time.h>
#include <conio.h>
#include <windowsx.h>
#include <afxwin.h>
#define MAX_THREAD 10
#define DllImport __declspec( dllimport )
#define DllExport __declspec( dllexport )
#ifdef __cplusplus
extern "C" {
#endif
typedef struct StructInit {
BOOL enabled;
int CommPort;
char *Settings;
} INIT;
typedef void (WINAPI *refreshStatus)(long id, long status);
typedef struct StructChip
{
int ReadersIndex;
int nargs;
char **params;
refreshStatus ptrFunc;
} CHIPINF;
int DllExport WINAPI Set_Enviroment(int NP, INIT *mSettings, char *
InitString);
int DllExport WINAPI Close_Enviroment(void);
int DllExport WINAPI Card_Perso(CHIPINF ChipPers);
int DllExport WINAPI Card_Read(char *CardCode, int size, int
ReaderIndex, refreshStatus ptrFunc);
int DllExport WINAPI Card_Test(CHIPINF ChipPers);
int DllExport WINAPI Lib_Version(char * CardCode, int size);
#ifdef __cplusplus
}
#endif
//------------#END# Implementaion.h #END#-----------------------------
To unsubscribe from this group, send an email to:
[email protected]
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/