first of all, do this:
Code:
//your header file (xxxxx.h)
#ifndef hListH
#define hListH
#include <windows.h>
//Function prototypes
void Notify(HWND,LPCTSTR);
void Notify(HWND,long int);
#endif
Code:
//your .cpp file
#include <windows.h>
#include "xxxxx.h"
void Notify(HWND hwnd,LPCTSTR str)
{
MessageBox(hwnd,str,"Notification",MB_OK);
return;
}
void Notify(HWND hwnd,long int num)
{
char *chTemp;
chTemp=(char *)malloc(11);
ltoa(num,chTemp,10);
Notify(hwnd,chTemp);
free(chTemp);
return;
}
i tried an example just like this, it worked and compiled perfectly. i included the .h above in 3 diff .cpp file. one of them was the example .cpp i showed above. this way you're defining in the cpp not the h. in the h you are just declaring.
if that doesn't work then im going to shoot myself and yourself because it MUST WORK! i just tried it!