bonsoir,
sur mon boitier pc j'ai installer un afficheur vfd de marque soudngraph que je désire piloter via un petit programme en c# . J'ai trouvé sur le site du constructeur une API avec des exemples de pilotage. Mais les exemples sans développés en c#.
Peut-on utiliser cette API via un programme en c# si oui comment.
voici LES INFO FOURNIES PAR LE CONSTRUCTEUR et un exemple de programme
'iMON_VFD_API.zip' file inlcudes 5 files('Demo_Program.zip', 'iMON_VFD_Demo.exe', 'SG_VFD.dll', 'SG_VFD.h', and 'SG_VFD.lib'). 'Demo_Program.zip' file is sample source of 'iMON_VFD_Demo.exe' program, 'iMON_VFD_Demo.exe' is an executable file, 'SG_VFD.dll', 'SG_VFD.h' and 'SG_VFD.lib'files should be copied to your project folder.

If you change the mode of iMON VFD to 'Plugin Mode', 'iMON_VFD_Demo.exe' can control VFD.

exemple de programme

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
/Microsoft Developer Studio generated resource script.
//
#include "resource.h"
 
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
 
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
 
/////////////////////////////////////////////////////////////////////////////
// Korean resources
 
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
#ifdef _WIN32
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
#pragma code_page(949)
#endif //_WIN32
 
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
 
1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END
 
2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END
pour utiliser l'API dois je simplement charger la DLL dans mes références ?

par avance merci de votre aide