Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: could you help me? I need a example about how to using CSocket with mfc Pin
fanronghua26-May-09 22:43
fanronghua26-May-09 22:43 
GeneralRe: could you help me? I need a example about how to using CSocket with mfc Pin
Hamid_RT26-May-09 23:02
Hamid_RT26-May-09 23:02 
GeneralRe: could you help me? I need a example about how to using CSocket with mfc Pin
BangQ26-May-09 23:31
BangQ26-May-09 23:31 
AnswerRe: could you help me? I need a example about how to using CSocket with mfc Pin
Hamid_RT26-May-09 22:59
Hamid_RT26-May-09 22:59 
GeneralRe: could you help me? I need a example about how to using CSocket with mfc Pin
JBAK_CP27-May-09 2:26
JBAK_CP27-May-09 2:26 
GeneralRe: could you help me? I need a example about how to using CSocket with mfc Pin
Hamid_RT27-May-09 3:30
Hamid_RT27-May-09 3:30 
AnswerRe: could you help me? I need a example about how to using CSocket with mfc Pin
David Crow27-May-09 3:54
David Crow27-May-09 3:54 
Questionusing a third party dll Pin
August Brower26-May-09 21:35
August Brower26-May-09 21:35 
I have a piece of hardware (cash dispenser) that I'm trying to control with a PC. It comes with a Dll, but for the life of me I can't figure out how to use the dll. can someone please help me get started on this? It does have a manual with the dll describing the functions, but it is almost unintelligible.

Here is some of the supplied literature, if it helps to answer the question

2.1.1 EVENT

During ezLink protocol is handling, ezLink.dll notice protocol status to application program to create WM_USER_EZCDM_RECEIVE event as below

WPARAM CODE COMMENT
EVENT_RECV_RESPONSE 00001000H RESPONSE receiving
EVENT_SEND_RETRYOVER 00001001H COMMAND sending failure
EVENT_RECV_RETRYOVER 00001002H RESPONSE receiving failure

WM_USER_EZCDM_RECEIVE event is defined as follows.

#define WM_USER_EZCDM_RECEIVE (WM_USER+301)

If EVENT_RECV_RESPONSE is generated, AP must receive Response to call the ezLinkRcv() function.

2.1.2 Recording Log Data

ezLink.dll record LOG as below format. Recorded LOG FILE location is directory folder to be transmitted ezLinkPath(). LOG is recorded whenever DLL function is called.


FILE NAME: (Generating File date (year month date) + ezCDM.txt) ex) 20060206ezCDM.txt
FILE Generating Folder: selected folder path in the ezLinkPath() parameter.


2.2 DLL FUNCTION

2.2.1 ezLinkOpen

ezLinkOpen Loads the DLL and opens the communication port.

Syntax EZLINK_DLL_API UINT ezLinkOpen(SETINFO *pSetInfo);

Parameters

pSetInfo Structure with information to communicate with dll

typedef struct
{
unsigned char uiPort; //communication port
unsigned char ucDataBits; //Data bit
unsigned char ucParity; //Parity bit
unsigned char ucStopBits; //Stop bit
unsigned long dwBaudRate; //Baud Rate
HWND hwnd; //Parent window handle
unsigned char ucCommandType; //command type(1: ezCDM-1000 )
}SETINFO

Return Values
EZLINK_SUCCESS Open port success

Remarks
If DLL opens ezCDM Communication-port successfully, returns the EZLINK_SUCCESS.









2.2.2 ezLinkClose

ezLinkClose Closes the Communication Port.

Syntax EZLINK_DLL_API UINT ezLinkClose(void);

Parameters
None

Return Values

EZLINK_SUCCESS Close port success

Remarks

If DLL closes ezCDM communication-port successfully, returns EZLINK_SUCCESS.
AnswerRe: using a third party dll Pin
CPallini26-May-09 21:54
mveCPallini26-May-09 21:54 
AnswerRe: using a third party dll Pin
ThatsAlok26-May-09 22:14
ThatsAlok26-May-09 22:14 
AnswerRe: using a third party dll Pin
Garth J Lancaster26-May-09 23:57
professionalGarth J Lancaster26-May-09 23:57 
GeneralRe: using a third party dll Pin
August Brower27-May-09 8:24
August Brower27-May-09 8:24 
Questionc++ samples Pin
p_196026-May-09 20:33
p_196026-May-09 20:33 
AnswerRe: c++ samples Pin
Hamid_RT26-May-09 20:39
Hamid_RT26-May-09 20:39 
GeneralRe: c++ samples Pin
ThatsAlok26-May-09 22:11
ThatsAlok26-May-09 22:11 
GeneralRe: c++ samples Pin
Hamid_RT26-May-09 22:56
Hamid_RT26-May-09 22:56 
GeneralRe: c++ samples Pin
ThatsAlok28-May-09 6:04
ThatsAlok28-May-09 6:04 
AnswerRe: c++ samples Pin
Cedric Moonen26-May-09 20:42
Cedric Moonen26-May-09 20:42 
GeneralRe: c++ samples Pin
BadKarma26-May-09 21:25
BadKarma26-May-09 21:25 
GeneralRe: c++ samples Pin
mihK26-May-09 21:38
mihK26-May-09 21:38 
GeneralRe: c++ samples Pin
Cedric Moonen26-May-09 21:40
Cedric Moonen26-May-09 21:40 
GeneralRe: c++ samples Pin
Hamid_RT26-May-09 21:56
Hamid_RT26-May-09 21:56 
GeneralRe: c++ samples Pin
ThatsAlok26-May-09 22:10
ThatsAlok26-May-09 22:10 
GeneralRe: c++ samples Pin
ThatsAlok26-May-09 22:10
ThatsAlok26-May-09 22:10 
AnswerRe: c++ samples Pin
KarstenK26-May-09 21:02
mveKarstenK26-May-09 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.