Results 1 to 3 of 3

Thread: parkie's RawDlg

  1. #1

    Thread Starter
    Addicted Member substring's Avatar
    Join Date
    Feb 2001
    Posts
    148

    Question

    parkie,

    I downloaded your RawDlg project that you posted here and run it on VC++ 6.0, I got an error of:

    c:\.....\rawdlg.cpp(26) : error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned i

    The error occurs on this line of code:
    if((ghWnd_Main = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc)), ghWnd_Main) {.......

    Do you know why? Thank you very much.
    substring.

    VB6, C++, SQL, HTML, XML, ASP

  2. #2

    Thread Starter
    Addicted Member substring's Avatar
    Join Date
    Feb 2001
    Posts
    148

    Smile

    Oops, sorry parksie, I mis-spelled your name.
    substring.

    VB6, C++, SQL, HTML, XML, ASP

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you don't have the Platform SDK replace INT_PTR on the definition for DlgProc with int.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width