Ik heb een stukje source uit een prgramma dat bij mijn ISDN LAN modem geleverd is, dit programma geeft het nummer van iemand weer als ik gebeld word.
Nu houd dit programma geen logfile bij en ik zou niet weten hoe ik dit zelf moet programmeren in c++.
Ik wil nu dat dit stukje code ook een plain text logfile met alle inkomende gesprekken laten aanmaken.
Wie kan dit voor me maken? Ik ben zelf een n00b op c++ gebied (ik kan alleen PHP), dus zelf maken is geen optie.
Nu houd dit programma geen logfile bij en ik zou niet weten hoe ik dit zelf moet programmeren in c++.
Ik wil nu dat dit stukje code ook een plain text logfile met alle inkomende gesprekken laten aanmaken.
Wie kan dit voor me maken? Ik ben zelf een n00b op c++ gebied (ik kan alleen PHP), dus zelf maken is geen optie.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| class CCallerId : public CDialog
{
// Construction
public:
CCallerId(CWnd* pParent = NULL); // standard constructor
BOOL ShowCallerId (char* instring, DWORD dwDisplayTime, DWORD dwWindowPos, DWORD *pQuitTime);
CString showstring;
BOOL PreTranslateMessage(MSG* pMsg);
DWORD dwWindowPos;
// Dialog Data
//{{AFX_DATA(CCallerId)
enum { IDD = IDD_INCALL };
//}}AFX_DATA
// Implementation
protected:
//Number of ticks the dialog is to be displayed
DWORD m_dwDisplayTime;
// Generated message map functions
//{{AFX_MSG(CCallerId)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
}; |
code:
1
2
3
4
5
6
7
8
9
10
11
12
| //Displays the box with the Caller ID information
UINT NotifyVoice (LPVOID pParam)
{
threadNotifystruct *pNotifyThread = (threadNotifystruct *)pParam;
CMainFrame* inMainFrame = (CMainFrame *) pNotifyThread->pMainFrame;
inMainFrame->m_splash[pNotifyThread->dwThreadIndex].ShowCallerId(pNotifyThread->incomingmessage, 9000,
pNotifyThread->dwWindowPos, &pNotifyThread->dwQuitTime);
pNotifyThread->dwThreadActive = 0;
return 0;
} |
[ Voor 18% gewijzigd door KRASH op 20-06-2003 15:08 ]