Category : C Source Code
Archive   : CONCEN.ZIP
Filename : DEBUG.C

 
Output of file : DEBUG.C contained in archive : CONCEN.ZIP
/* debug.c */

#include "windows.h"
#include "concen.h"

/* CONCEN.C */
extern int FAR PASCAL GetTileType (HWND hTileWnd);

extern int FAR PASCAL lstrcmp (LPSTR, LPSTR);
extern LPSTR FAR PASCAL lstrcpy (LPSTR, LPSTR);
extern LPSTR FAR PASCAL lstrcat (LPSTR, LPSTR);
extern int FAR PASCAL lstrlen (LPSTR);

/* Forward Declarations */
FAR PASCAL DebugTileTypes();
FAR PASCAL DebugTileTypesByWnd();
FAR PASCAL DebugTileWnds();
FAR PASCAL DebugNumTiles();
FAR PASCAL MakeStr (LPSTR szStr, LPSTR szLabel, int n);

/********************
DebugTileTypes
********************/
FAR PASCAL DebugTileTypes()
{
char szTile[20], szType[20];
int i;
for (i=0; i {
MakeStr (szTile, "Tile#", i);
MakeStr (szType, "Type ", rgTileType[i]);
MessageBox (NULL, szType, szTile, MB_OK);
}
}

/********************
DebugTileTypesByWnd
********************/
FAR PASCAL DebugTileTypesByWnd()
{
char szTile[20], szType[20];

int i, type;
for (i=0; i {
type = GetTileType (rghTileWnd[i]);
MakeStr (szTile, "Tile#", i);
MakeStr (szType, "Type By Wnd ", type);
MessageBox (NULL, szType, szTile, MB_OK);
}
}

/********************
DebugNumTiles
********************/
FAR PASCAL DebugNumTiles()
{
char szStr[20];
MakeStr (szStr, "", nTiles);
MessageBox (NULL, szStr, "nTiles", MB_OK);
}

/********************
DebugTileWnds
********************/
FAR PASCAL DebugTileWnds()
{
char szTile[20];
int i;
for (i=0; i {
MakeStr (szTile, "Tile#", i);
MessageBox (NULL, (rghTileWnd[i]==NULL)?"hWnd NULL":"hWnd ok", szTile, MB_OK);
}
}

/********************
MakeStr
********************/
FAR PASCAL MakeStr (LPSTR szStr, LPSTR szLabel, int n)
{
char str[10];
itoa (n, str, 10);
lstrcpy (szStr, szLabel);
lstrcat (szStr, str);
}


  3 Responses to “Category : C Source Code
Archive   : CONCEN.ZIP
Filename : DEBUG.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/