C2143 for apparently clean code,...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kerem Gümrükcü

    C2143 for apparently clean code,...

    Hi,

    i am gettin this compiler error over and over for AFIAK perfectly
    clean code:

    error C2143: Syntaxerror : Missing ';' before ']'

    for the Line with the " char szMultibyteStri ng[4096];"

    //CODE-------------------

    INT vidbg_wprintf(L PCTSTR format,...){

    INT ret = 0;

    TCHAR szFormat[4096];
    char szMultibyteStri ng[4096];
    Here ----Missing before^^^

    /*somecode*/
    .....

    }

    //CODE END-------------------

    Application is compiled with UNICODE,_UNICOD E
    I already checked function in a new project just containing
    this function and a wmain, thats all. Same syntax error. I
    really dont get it!

    Any ideas,...?

    Regards

    K.

    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."


  • Kerem Gümrükcü

    #2
    [FIXED] C2143 for apparently clean code,...

    Hi,

    for whatever reason the editor of the IDE didnt
    show me a "]" that was hidden. I never had that
    before. The IDE hide a "]" and after doing a full
    select it was visible,...real ly never had that before!

    So i was right: The code was syntactically right!

    Regards

    K.

    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."


    Comment

    • Tom Serface

      #3
      Re: [FIXED] C2143 for apparently clean code,...

      I get problems like that every once in a while where my screen doesn't
      refresh or I'm typing on the line and some of the line goes away. Usually I
      can minimize the window and then maximize it again to get it back. I think
      it's a Vista driver problem more than a problem with the VS IDE, but it
      happens mostly in VS. Of course, that's where I live the most.

      Tom

      "Kerem Gümrükcü" <kareem114@hotm ail.comwrote in message
      news:u5sjKUKeIH A.4464@TK2MSFTN GP02.phx.gbl...
      Hi,
      >
      for whatever reason the editor of the IDE didnt
      show me a "]" that was hidden. I never had that
      before. The IDE hide a "]" and after doing a full
      select it was visible,...real ly never had that before!
      >
      So i was right: The code was syntactically right!
      >
      Regards
      >
      K.
      >
      --
      -----------------------
      Beste Grüsse / Best regards / Votre bien devoue
      Kerem Gümrükcü
      Microsoft Live Space: http://kerem-g.spaces.live.com/
      Latest Open-Source Projects: http://entwicklung.junetz.de
      -----------------------
      "This reply is provided as is, without warranty express or implied."
      >

      Comment

      • David Wilkinson

        #4
        Re: [FIXED] C2143 for apparently clean code,...

        Tom Serface wrote:
        I get problems like that every once in a while where my screen doesn't
        refresh or I'm typing on the line and some of the line goes away.
        Usually I can minimize the window and then maximize it again to get it
        back. I think it's a Vista driver problem more than a problem with the
        VS IDE, but it happens mostly in VS. Of course, that's where I live the
        most.
        Tom:

        I thought you moved to Oregon :-).

        --
        David Wilkinson
        Visual C++ MVP

        Comment

        • Giovanni Dicanio

          #5
          Re: [FIXED] C2143 for apparently clean code,...


          "David Wilkinson" <no-reply@effisols. comha scritto nel messaggio
          news:un04BpKeIH A.1204@TK2MSFTN GP03.phx.gbl...
          Tom Serface wrote:
          >I think it's a Vista driver problem more than a problem with the VS IDE,
          >but it happens mostly in VS. Of course, that's where I live the most.
          >
          Tom:
          >
          I thought you moved to Oregon :-).
          According to some beautiful photos Tom sent me about Oregon, I can say that
          Oregon does offer great "Vista" :-)

          (see the Italian meaning of word "vista")

          Giovanni


          Comment

          • Tom Serface

            #6
            Re: [FIXED] C2143 for apparently clean code,...

            Hey, that's true. This just started happening since I moved to Oregon.
            But, wait, that's also when I started using Vista...

            Tom

            "David Wilkinson" <no-reply@effisols. comwrote in message
            news:un04BpKeIH A.1204@TK2MSFTN GP03.phx.gbl...
            Tom Serface wrote:
            >I get problems like that every once in a while where my screen doesn't
            >refresh or I'm typing on the line and some of the line goes away.
            >Usually I can minimize the window and then maximize it again to get it
            >back. I think it's a Vista driver problem more than a problem with the
            >VS IDE, but it happens mostly in VS. Of course, that's where I live the
            >most.
            >
            Tom:
            >
            I thought you moved to Oregon :-).
            >
            --
            David Wilkinson
            Visual C++ MVP

            Comment

            • David Wilkinson

              #7
              Re: [FIXED] C2143 for apparently clean code,...

              Tom Serface wrote:
              Hey, that's true. This just started happening since I moved to Oregon.
              But, wait, that's also when I started using Vista...
              Tom:

              Don't you know that you should only change one thing at a time?

              --
              David Wilkinson
              Visual C++ MVP

              Comment

              • Tamas Demjen

                #8
                Re: [FIXED] C2143 for apparently clean code,...

                Tom Serface wrote:
                I get problems like that every once in a while where my screen doesn't
                refresh or I'm typing on the line and some of the line goes away.
                It happens to me as well, the entire line disappears in the editor. I
                never lose content, it's a display problem. It happens less than once a
                week on Windows Server 2003 SP1 (Win32 and x64 alike). So it's not Vista
                exclusive.

                Tom

                Comment

                • Tom Serface

                  #9
                  Re: [FIXED] C2143 for apparently clean code,...

                  That's interesting. I haven't seen this problem in 2008 so perhaps it's be
                  improved or fixed.

                  Tom

                  "Tamas Demjen" <tdemjen@yahoo. comwrote in message
                  news:%23oGaQvMe IHA.5620@TK2MSF TNGP04.phx.gbl. ..
                  Tom Serface wrote:
                  >I get problems like that every once in a while where my screen doesn't
                  >refresh or I'm typing on the line and some of the line goes away.
                  >
                  It happens to me as well, the entire line disappears in the editor. I
                  never lose content, it's a display problem. It happens less than once a
                  week on Windows Server 2003 SP1 (Win32 and x64 alike). So it's not Vista
                  exclusive.
                  >
                  Tom

                  Comment

                  • Tamas Demjen

                    #10
                    Re: [FIXED] C2143 for apparently clean code,...

                    Tom Serface wrote:
                    That's interesting. I haven't seen this problem in 2008 so perhaps it's
                    be improved or fixed.
                    Sorry, I should've mentioned, it's in VS 2005.

                    Tom

                    Comment

                    Working...