Win32 to MFC Dialog

Discussion in 'Win32' started by newvcproj, Aug 12, 2008.

  1. newvcproj

    newvcproj New Member

    Joined:
    Jul 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Hi all

    i want to convert win32 application code to MFC VC++ code.i have got a example code from codeproject.com and i want to edit this code into MFC.I have taken simple dialogbox with one listbox.

    When i am going to edit this code then i am geting error..I am pasting here code link and error both..Plz help me
    error
    Code:
    error C2061: syntax error : identifier 'PSTORAGE_DEVICE_DESCRIPTOR'
    error C2061: syntax error : identifier 'PSTORAGE_DEVICE_DESCRIPTOR'
    fatal error C1083: Cannot open include file: 'devioctl.h': No such file or directory
    
    
    win32 code link

    links:http://www.codeproject.com/KB/winsdk/usbdisks.aspx

    plz help me
     
  2. dmsundaram75

    dmsundaram75 New Member

    Joined:
    Aug 12, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Simple. The included file is not available in your source directory so that it couldn't open that file. Just make sure that the file availablity.

    Meenakshi Sundaram
    (Tech & SEO)
    NetLink Technologies Ltd, Chennai
     
    Last edited by a moderator: Aug 12, 2008
  3. newvcproj

    newvcproj New Member

    Joined:
    Jul 31, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0

    Thx's for reply

    these error solved..

    Now i havn't got out put.Code is runing but out put show only Dialog Box.And i use output for MessageBox..I think i am wrong some where So can i send you code for just look where i am wrong..Becouse i haven't figure out why out put not come..

    Plz help me
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice