HINSTANCE under VC.NET 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maileen

    #1

    HINSTANCE under VC.NET 2005

    Hi,

    When i try to use HINSTANCE under VC.NET 2005 (windows.forms
    application), VC informs me that i must place a token (;) after HINSTANCE...
    but it is not correct.

    So, where is the problem ?
    it looks like HINSTANCE is not defined... :-(
    thanks,

    Maileen
  • Nishant Sivakumar

    #2
    Re: HINSTANCE under VC.NET 2005

    Have you #include'd <windows.h> ?

    --
    Regards,
    Nish [VC++ MVP]


    "Maileen" <noemail@nospam .com> wrote in message
    news:eyv0bOJ4FH A.3844@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > When i try to use HINSTANCE under VC.NET 2005 (windows.forms application),
    > VC informs me that i must place a token (;) after HINSTANCE...
    > but it is not correct.
    >
    > So, where is the problem ?
    > it looks like HINSTANCE is not defined... :-(
    > thanks,
    >
    > Maileen[/color]


    Comment

    • Maileen

      #3
      Re: HINSTANCE under VC.NET 2005

      Yes, and by doing this, i received a lot of error like :

      syntax error : missing ';' before 'Test'
      and this appear for

      HINSTANCE Test;

      So, where is the problem ?


      Nishant Sivakumar wrote:[color=blue]
      > Have you #include'd <windows.h> ?
      >[/color]

      Comment

      • Nishant Sivakumar

        #4
        Re: HINSTANCE under VC.NET 2005

        Where have you #included <windows.h> ?

        --
        Regards,
        Nish [VC++ MVP]


        "Maileen" <noemail@nospam .com> wrote in message
        news:%23qpb34J4 FHA.3292@tk2msf tngp13.phx.gbl. ..[color=blue]
        > Yes, and by doing this, i received a lot of error like :
        >
        > syntax error : missing ';' before 'Test'
        > and this appear for
        >
        > HINSTANCE Test;
        >
        > So, where is the problem ?
        >
        >
        > Nishant Sivakumar wrote:[color=green]
        >> Have you #include'd <windows.h> ?
        >>[/color][/color]


        Comment

        • Maileen

          #5
          Re: HINSTANCE under VC.NET 2005

          in my .h file

          Nishant Sivakumar wrote:[color=blue]
          > Where have you #included <windows.h> ?
          >[/color]

          Comment

          • Maileen

            #6
            Re: HINSTANCE under VC.NET 2005

            ok it seems to work no, but i have a lot of ambigious identifier due to
            using and include :(



            Maileen wrote:[color=blue]
            > in my .h file
            >
            > Nishant Sivakumar wrote:[color=green]
            >> Where have you #included <windows.h> ?
            >>[/color][/color]

            Comment

            • Nishant Sivakumar

              #7
              Re: HINSTANCE under VC.NET 2005

              Could you copy/paste the contents of that h file? It may help identify
              what's wrong.

              --
              Regards,
              Nish [VC++ MVP]


              "Maileen" <noemail@nospam .com> wrote in message
              news:%232qkSKK4 FHA.268@TK2MSFT NGP10.phx.gbl.. .[color=blue]
              > in my .h file
              >
              > Nishant Sivakumar wrote:[color=green]
              >> Where have you #included <windows.h> ?
              >>[/color][/color]


              Comment

              Working...