Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #include "Stdafx.h"
  2.  
  3. #pragma once
  4. #include "utils.h"
  5.  
  6. // CDialogExInput dialog
  7.  
  8. class CDialogExInput : public CDialogEx
  9. {
  10. DECLARE_DYNAMIC(CDialogExInput)
  11.  
  12. public:
  13. CString timeRemainedSecStr;
  14. CString Caption;
  15. int TimeoutSec;
  16. int MinDataSize;
  17. int MaxDataSize;
  18. CString text;
  19. int timeRemainedSec;
  20. void AssignParams (DialogOptions* dOp);
  21. CDialogExInput(UINT nIDTemplate, CWnd *pParent = NULL);
  22.  
  23. afx_msg void OnTimer(UINT uTime);
  24. virtual ~CDialogExInput();
  25. void SetOnTop();
  26.  
  27.  
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. virtual BOOL OnInitDialog();
  31. DECLARE_MESSAGE_MAP()
  32.  
  33. };
  34.  
  35. Error 1 error C2061: syntax error : identifier 'DialogOptions'
  36.  
  37. #ifndef UTILS_H
  38. #define UTILS_H
  39.  
  40. #include "InputDialog.h"
  41. #include <string>
  42.  
  43. using namespace std;
  44.  
  45.  
  46. #define CURRENCY_EUR 978
  47. extern HWND AuthMsgHWND;
  48.  
  49.  
  50. struct DialogOptions {
  51. CString Caption ;
  52. CString DefaultText;
  53. int MaxTimeoutExpected;
  54. int MaxChars;
  55. int MinChars;
  56. int ModalResult;
  57. int inputTimeRemained;
  58. } ;
  59.  
  60.  
  61. void ErrorExit();
  62. const wchar_t *GetWC(const char *c);
  63. bool GetProductAndVersion(CStringA & strProductName, CStringA & strProductVersion);
  64. void doInputDialog(DialogOptions *pDo, string & answer);
  65. void doYesNoDialog(DialogOptions *pDo, string & answer );
  66. wstring termToWchar (const char* value);
  67. string getTime(string format = "%d-%m-%Y %I:%M:%S" );
  68.  
  69.  
  70. #endif UTILS_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement