rendered paste body
#include <windows.h>
#include <stdio.h>
unsigned char SysEx[] = {0xF0, 0x00, 0x01, 0x40, 0x20, 0x00, 0x10, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x6c, 0x6c, 0x6f, 0xf7};
unsigned char message[] = {0xF0, 0x00, 0x01, 0x40, 0x20, 0x00, 0x10, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x6c, 0x6c, 0x6f, 0xf7};
int SendSysEx(UINT uDeviceID, unsigned char *test, int size)
{
int i;
printf("Test: %d ; SysEx: %d\n", sizeof(test), sizeof(SysEx));
for(i=0; i<size;i++)
{
printf("Test: %c ; SysEx: %c\n", test[i], SysEx[i]);
}
return(0);
}
/* ******************************** main() ******************************** */
int main(int argc, char **argv)
{
SendSysEx(1, message, sizeof(message));
return(0);
}