What is weird is that when you comment this out:
TBBUTTON tbButtonst[4];
tbButtonst[1].iBitmap = 3;
You no longer get the buffer overun.
The changes you said above didn't work because the file didn't exist.
I still think this is a bug, the first example should work.
Fails:
// Includes
#include "DarkGDK.h"
#include <windows.h>
#include "commctrl.h"
void DarkGDK ( void ) {
// Work Area
dbSetDir("C:\Temp");
// Setup Buttons
TBBUTTON tbButtonst[4];
tbButtonst[1].iBitmap = 3;
return;
}
Works:
// Includes
#include "DarkGDK.h"
#include <windows.h>
#include "commctrl.h"
void DarkGDK ( void ) {
// Work Area
dbSetDir("C:\Temp");
// Setup Buttons
//TBBUTTON tbButtonst[4];
//tbButtonst[1].iBitmap = 3;
return;
}
Works:
// Includes
#include "DarkGDK.h"
#include <windows.h>
#include "commctrl.h"
void DarkGDK ( void ) {
// Work Area
dbSetDir("C:\\Temp");
// Setup Buttons
TBBUTTON tbButtonst[4];
tbButtonst[1].iBitmap = 3;
return;
}