Search:

Type: Posts; User: John Layton

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    1,269

    Try this - it works - C source #include...

    Try this - it works - C source



    #include <stdio.h>

    void dec2bin(long decimal, char *binary);

    int main()
    {
  2. Replies
    10
    Views
    6,727

    Thanks everyone. Problem solved. Below the...

    Thanks everyone. Problem solved. Below the correct code


    void midiplay(HWND hwnd)
    {

    HANDLE hFile;
    DWORD written;
    //DWORD ResSize;
    HRSRC hResFind;
  3. Replies
    10
    Views
    6,727

    Here is the corrected code, which compiles. But I...

    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 ;
  4. Replies
    10
    Views
    6,727

    Hello Tater, Tried out your suggestion, but...

    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...
  5. Replies
    10
    Views
    6,727

    Thanks for that. The temp.mid file is created but...

    Thanks for that. The temp.mid file is created but is empty. I'll try out your suggestion and get back to you
  6. Replies
    10
    Views
    6,727

    WriteFile Error 1784

    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...
Results 1 to 6 of 6