Курсовая работа: Информационная система сравнительного анализа работы компьютера
strcpy (adress, of. lpstrFile);
ofstream fout (adress);
char *text = new char [4000];
GetWindowText (StaticText, text, 4000);
fout<<text;
fout. close ();
delete [] text;
}
}
Index. cpp
#include "Index. h"
#include <windows. h>
#define DIV 1024
extern HWND Listbox;
extern HWND StaticText;
extern HWND hWnd;
Info:: Info ()
{
Index = 0;
value = new char [50];
}
void Info:: CreateInfo (char* value, int Index, void (*function) ())
{
this->value = value;
this->Index = Index;
this->function = function;
SendMessage (Listbox, LB_ADDSTRING, NULL, (LPARAM) value);
}
void SysInf ()