Try this - it works - C source
#include <stdio.h>
void dec2bin(long decimal, char *binary);
int main()
{
Type: Posts; User: John Layton
Try this - it works - C source
#include <stdio.h>
void dec2bin(long decimal, char *binary);
int main()
{
Thanks everyone. Problem solved. Below the correct code
void midiplay(HWND hwnd)
{
HANDLE hFile;
DWORD written;
//DWORD ResSize;
HRSRC hResFind;
Here is the corrected code, which compiles. But I still get the 1784
void midiplay(HWND hwnd)
{
HANDLE hFile;
DWORD written;
//DWORD ResSize;
HGLOBAL hRes ;
Hello Tater,
Tried out your suggestion, but got a compile warning.
Still the same writefile error
||=== midires, default ===|
C:\Dev-Cpp\Projects\midiresource\main.c||In function...
Thanks for that. The temp.mid file is created but is empty. I'll try out your suggestion and get back to you
I have compiled a midi file as a resource, which I want to call in my program. The program compiles without errors or warnings, but I am unable to write the midi to a file and play it. I am getting...