-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.cpp
More file actions
24 lines (21 loc) · 778 Bytes
/
common.cpp
File metadata and controls
24 lines (21 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "common.h"
//------------------------------- SHARED VARIABLES --------------------------------------
char err_msg [1024];
extern HWND hListBox;
//--------------------------------------------------------------------------------------------
// dodaje komunikat message do dziennika (LOG
void PrintLog(char *message)
{
if (IS_WIN32)
if (hListBox) SendMessage( hListBox, LB_ADDSTRING, 0,( LPARAM ) message );
else
printf("Log: %s\n");
}
//--------------------------------------------------------------------------------------------
// rzuca wyjatek z komunikatem diagnostycznym
void ThrowException(char *msg)
{
strncpy_s(err_msg,msg,strlen(msg));
throw err_msg;
}
//--------------------------------------------------------------------------------------------