Results 1 to 5 of 5
Thread: Visual C++ 6
Hybrid View
-
12th October 2008 10:32 #1
Visual C++ 6
, -, , MFC , , , , 'textbox' input- ...
========================
FILE *fp;
if ((fp = fopen("myfile", "r")) ==NULL){
printf("Error opening file\n");
exit(1);
}
========================
, , , ... ,?
-
13th October 2008 12:49 #2
. , , , . - .
P.S.
OnKeyUP, .#include <AFXWIN.H>
class CMainFrame : public CFrameWnd
{
public:
CMainFrame ();
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
DECLARE_MESSAGE_MAP()
};
CMainFrame::CMainFrame()
{
Create(NULL, "Windows Application", WS_OVERLAPPEDWINDOW,
CRect(120, 100, 700, 480), NULL);
}
class CExerciseApp: public CWinApp
{
public:
BOOL InitInstance();
};
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_CREATE()
ON_WM_KEYDOWN()
END_MESSAGE_MAP()
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
void CMainFrame::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
switch(nChar)
{
case VK_RETURN:
// ....
break;
case VK_F1:
// F1 .....
break;
....................
default:
// ...
}
}
http://msdn.microsoft.com/en-us/libr...7a(VS.71).aspxLast edited by pvn; 13th October 2008 at 13:00.
-
15th October 2008 21:43 #3
-
20th October 2008 18:50 #4
. . . execute "Build" - LINK-fatal error LNK1104. Error executing link.exe . Vista .
-
21st October 2008 16:45 #5




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in