Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Stdafx.h"
- #pragma once
- #include "utils.h"
- // CDialogExInput dialog
- class CDialogExInput : public CDialogEx
- {
- DECLARE_DYNAMIC(CDialogExInput)
- public:
- CString timeRemainedSecStr;
- CString Caption;
- int TimeoutSec;
- int MinDataSize;
- int MaxDataSize;
- CString text;
- int timeRemainedSec;
- void AssignParams (DialogOptions* dOp);
- CDialogExInput(UINT nIDTemplate, CWnd *pParent = NULL);
- afx_msg void OnTimer(UINT uTime);
- virtual ~CDialogExInput();
- void SetOnTop();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL OnInitDialog();
- DECLARE_MESSAGE_MAP()
- };
- Error 1 error C2061: syntax error : identifier 'DialogOptions'
- #ifndef UTILS_H
- #define UTILS_H
- #include "InputDialog.h"
- #include <string>
- using namespace std;
- #define CURRENCY_EUR 978
- extern HWND AuthMsgHWND;
- struct DialogOptions {
- CString Caption ;
- CString DefaultText;
- int MaxTimeoutExpected;
- int MaxChars;
- int MinChars;
- int ModalResult;
- int inputTimeRemained;
- } ;
- void ErrorExit();
- const wchar_t *GetWC(const char *c);
- bool GetProductAndVersion(CStringA & strProductName, CStringA & strProductVersion);
- void doInputDialog(DialogOptions *pDo, string & answer);
- void doYesNoDialog(DialogOptions *pDo, string & answer );
- wstring termToWchar (const char* value);
- string getTime(string format = "%d-%m-%Y %I:%M:%S" );
- #endif UTILS_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement