Menu

Pete. Please take a look here.... (scope problem in autogenerated file)

Soren Bro
2018-09-22
2018-09-24
1 2 > >> (Page 1 of 2)
  • Soren Bro

    Soren Bro - 2018-09-22

    In [...]Eudora71/Importers/OEImport/OEImportClass.cpp (~ line 2223-2225):

    [...]
    for( int oemh = 0; oemh < oeHeader.cbEntries; oemh++)
    {
    fread((char)&(oeInfoList[oemh].oeInfo), sizeof(OEMessageHeaderInfo),
    1, m_fpiOEFile);
    // Read the table
    fseek(m_fpiOEFile, -1, SEEK_CUR);
    oeInfoList[oemh].oeInfo.lValue &= 0x00FFFFFF;
    }
    oemh = 0;*
    [...]

    I'm sure you can see what is wrong here. But according to the readme file
    this file is autogenerated by "AppWizard"? Was this wizard drunk when
    generating this?

    10 errors can be removed by just moving the declaration of oemh out of the
    for loop, but is this the way to go, keeping in mind the file is
    autogenerated?

    Regards,
    Soren

     
    • Soren Bro

      Soren Bro - 2018-09-22

      Why gmail removed a line shift and inserted an asterix I don't know. But
      look close,

      Regards

      On Sat, Sep 22, 2018 at 6:56 PM Soren Bro sbrothy@users.sourceforge.net
      wrote:

      In [...]Eudora71/Importers/OEImport/OEImportClass.cpp (~ line 2223-2225):

      [...]
      for( int oemh = 0; oemh < oeHeader.cbEntries; oemh++)
      {
      fread((char

      )&(oeInfoList[oemh].oeInfo), sizeof(OEMessageHeaderInfo), 1,
      m_fpiOEFile); // Read the table fseek(m_fpiOEFile, -1, SEEK_CUR);
      oeInfoList[oemh].oeInfo.lValue &= 0x00FFFFFF; }
      oemh = 0;*
      [...]

      I'm sure you can see what is wrong here. But according to the readme file
      this file is autogenerated by "AppWizard"? Was this wizard drunk when
      generating this?

      10 errors can be removed by just moving the declaration of oemh out of the
      for loop, but is this the way to go, keeping in mind the file is
      autogenerated?

      Regards,
      Soren


      Pete. Please take a look here.... (scope problem in autogenerated file)
      https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/hermesmail/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Soren Bro

        Soren Bro - 2018-09-22

        Also Pete, take a look at my latest commit. I'm not sure if that is an
        auto-generated section. You never mentioned using a WYSYWIG tool. I'll stop
        here for now, and await your verdict.

        The first one was an obvious syntax error. How errors like that creep in is
        a little worrying.

        Regards.

        On Sat, Sep 22, 2018 at 6:58 PM Soren Bro sbrothy@users.sourceforge.net
        wrote:

        Why gmail removed a line shift and inserted an asterix I don't know. But
        look close,

        Regards

        On Sat, Sep 22, 2018 at 6:56 PM Soren Bro sbrothy@users.sourceforge.net
        wrote:

        In [...]Eudora71/Importers/OEImport/OEImportClass.cpp (~ line 2223-2225):

        [...]
        for( int oemh = 0; oemh < oeHeader.cbEntries; oemh++)
        {
        fread((char

        )&(oeInfoList[oemh].oeInfo), sizeof(OEMessageHeaderInfo), 1,
        m_fpiOEFile); // Read the table fseek(m_fpiOEFile, -1, SEEK_CUR);
        oeInfoList[oemh].oeInfo.lValue &= 0x00FFFFFF; }
        oemh = 0;*
        [...]

        I'm sure you can see what is wrong here. But according to the readme file
        this file is autogenerated by "AppWizard"? Was this wizard drunk when
        generating this?

        10 errors can be removed by just moving the declaration of oemh out of the
        for loop, but is this the way to go, keeping in mind the file is
        autogenerated?

        Regards,
        Soren


        Pete. Please take a look here.... (scope problem in autogenerated file)

        https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/hermesmail/discussion/general/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        Pete. Please take a look here.... (scope problem in autogenerated file)
        https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/hermesmail/discussion/general/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         
        • Pete Maclean

          Pete Maclean - 2018-09-22

          You mean the commit involving changes to PostMessage calls? There is something not quite right there. These calls are not to the Windows API function of that name but to an internal function. I suspect that the compilation errors you are trying to fix are arising because the compiler thinks they are calls to Windows' PostMessage which takes an HWND as a first argument. But actually they are calls to a function declared in "JWnd.h" which takes a UINT as its first argument. So, I suggest that the appropriate fix now is to remove the casts and find out why the compiler is not finding that JWnd header file. I would also be tempted to change the name of that function to avoid further confusion of this kind.

           
          • Soren Bro

            Soren Bro - 2018-09-22

            Good. Exactly why I wanted your eyes on this. I was in doubt about it. I'll
            revisit this change. Thank you.

            Regards.

            On Sat, Sep 22, 2018 at 8:25 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

            You mean the commit involving changes to PostMessage calls? There is
            something not quite right there. These calls are not to the Windows API
            function of that name but to an internal function. I suspect that the
            compilation errors you are trying to fix are arising because the compiler
            thinks they are calls to Windows' PostMessage which takes an HWND as a
            first argument. But actually they are calls to a function declared in
            "JWnd.h" which takes a UINT as its first argument. So, I suggest that the
            appropriate fix now is to remove the casts and find out why the compiler is
            not finding that JWnd header file. I would also be tempted to change the
            name of that function to avoid further confusion of this kind.


            Pete. Please take a look here.... (scope problem in autogenerated file)
            https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38


            Sent from sourceforge.net because you indicated interest in
            https://sourceforge.net/p/hermesmail/discussion/general/

            To unsubscribe from further messages, please visit
            https://sourceforge.net/auth/subscriptions/

             
          • Soren Bro

            Soren Bro - 2018-09-24

            You mean the commit involving changes to PostMessage calls? There is
            something not quite right there. These calls are not to the Windows API
            function of that name but to an internal >> function. I suspect that the
            compilation errors you are trying to fix are arising because the compiler
            thinks they are calls to Windows' PostMessage which takes an HWND as a first
            argument. But actually they are calls to a function declared in "JWnd.h"
            which takes a UINT as its first argument. So, I suggest that the
            appropriate fix now is to remove the casts and
            find out why the compiler is not finding that JWnd header file. I would
            also be tempted to change the name of that function to avoid further
            confusion of this kind.

            Yes. A function rename may be necessry. Good news is that the files
            JWnd.h/JWnd.cpp are there.

            Bad news is that, even if I include the JWnd header, there's still name
            clashes and explicitly casting to UINT doesn't work either. It'll then
            complain that the proper cast is HWND.

            What do we do about that? Pete?

            Regards.

            On Sat, Sep 22, 2018 at 8:25 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

            You mean the commit involving changes to PostMessage calls? There is
            something not quite right there. These calls are not to the Windows API
            function of that name but to an internal function. I suspect that the
            compilation errors you are trying to fix are arising because the compiler
            thinks they are calls to Windows' PostMessage which takes an HWND as a
            first argument. But actually they are calls to a function declared in
            "JWnd.h" which takes a UINT as its first argument. So, I suggest that the
            appropriate fix now is to remove the casts and find out why the compiler is
            not finding that JWnd header file. I would also be tempted to change the
            name of that function to avoid further confusion of this kind.


            Pete. Please take a look here.... (scope problem in autogenerated file)
            https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38


            Sent from sourceforge.net because you indicated interest in
            https://sourceforge.net/p/hermesmail/discussion/general/

            To unsubscribe from further messages, please visit
            https://sourceforge.net/auth/subscriptions/

             
            • Pete Maclean

              Pete Maclean - 2018-09-24

              I think the only sure recourse is to rename the function. Perhaps to "JWndPostMessage".

               
              • Soren Bro

                Soren Bro - 2018-09-24

                Yeah. I thought you'd say something like that. Should I try to do that?
                It's not the only place JWnd is used I gather...

                Regards.

                On Mon, Sep 24, 2018 at 6:14 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                I think the only sure recourse is to rename the function. Perhaps to
                "JWndPostMessage".


                Pete. Please take a look here.... (scope problem in autogenerated file)
                https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda


                Sent from sourceforge.net because you indicated interest in
                https://sourceforge.net/p/hermesmail/discussion/general/

                To unsubscribe from further messages, please visit
                https://sourceforge.net/auth/subscriptions/

                 
                • Pete Maclean

                  Pete Maclean - 2018-09-24

                  Yes, go ahead. Unless you would prefer that I do it -- I am totally willing. If you do it, please do be careful to try to find all occurrences.

                   
                  • Soren Bro

                    Soren Bro - 2018-09-24

                    Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                    source (which are in to different locations). We keep the one copy right.
                    We don't copy the files into indvidual projects. That would be a mess. Not
                    that it's pretty as it is, but we certainly don't want to keep track of
                    several versions of the same file, no.

                    Regards.

                    On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                    Yes, go ahead. Unless you would prefer that I do it -- I am totally
                    willing. If you do it, please do be careful to try to find all occurrences.


                    Pete. Please take a look here.... (scope problem in autogenerated file)
                    https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                    Sent from sourceforge.net because you indicated interest in
                    https://sourceforge.net/p/hermesmail/discussion/general/

                    To unsubscribe from further messages, please visit
                    https://sourceforge.net/auth/subscriptions/

                     
                    • Soren Bro

                      Soren Bro - 2018-09-24

                      This pair of files should be lifted back in the hierachy as they're used by
                      several projects obviously.

                      Regards

                      On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                      Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                      source (which are in to different locations). We keep the one copy right.
                      We don't copy the files into indvidual projects. That would be a mess. Not
                      that it's pretty as it is, but we certainly don't want to keep track of
                      several versions of the same file, no.

                      Regards.

                      On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                      Yes, go ahead. Unless you would prefer that I do it -- I am totally
                      willing. If you do it, please do be careful to try to find all occurrences.


                      Pete. Please take a look here.... (scope problem in autogenerated file)
                      https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                      Sent from sourceforge.net because you indicated interest in
                      https://sourceforge.net/p/hermesmail/discussion/general/

                      To unsubscribe from further messages, please visit
                      https://sourceforge.net/auth/subscriptions/

                       
                      • Soren Bro

                        Soren Bro - 2018-09-24

                        But as soon as I change the name in the JWnd files the uses will pop up as
                        errors. Then it's just a matter of finding them in the bunch of errors.'

                        On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                        This pair of files should be lifted back in the hierachy as they're used
                        by several projects obviously.

                        Regards

                        On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                        Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                        source (which are in to different locations). We keep the one copy right.
                        We don't copy the files into indvidual projects. That would be a mess. Not
                        that it's pretty as it is, but we certainly don't want to keep track of
                        several versions of the same file, no.

                        Regards.

                        On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                        Yes, go ahead. Unless you would prefer that I do it -- I am totally
                        willing. If you do it, please do be careful to try to find all occurrences.


                        Pete. Please take a look here.... (scope problem in autogenerated file)
                        https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                        Sent from sourceforge.net because you indicated interest in
                        https://sourceforge.net/p/hermesmail/discussion/general/

                        To unsubscribe from further messages, please visit
                        https://sourceforge.net/auth/subscriptions/

                         
                        • Soren Bro

                          Soren Bro - 2018-09-24

                          Wait...EuMemMgr isn't contained in the solution at all, or am I just blind?
                          Is this by design?

                          On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                          But as soon as I change the name in the JWnd files the uses will pop up as
                          errors. Then it's just a matter of finding them in the bunch of errors.'

                          On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                          This pair of files should be lifted back in the hierachy as they're used
                          by several projects obviously.

                          Regards

                          On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                          Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                          source (which are in to different locations). We keep the one copy right.
                          We don't copy the files into indvidual projects. That would be a mess. Not
                          that it's pretty as it is, but we certainly don't want to keep track of
                          several versions of the same file, no.

                          Regards.

                          On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                          Yes, go ahead. Unless you would prefer that I do it -- I am totally
                          willing. If you do it, please do be careful to try to find all occurrences.


                          Pete. Please take a look here.... (scope problem in autogenerated file)
                          https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                          Sent from sourceforge.net because you indicated interest in
                          https://sourceforge.net/p/hermesmail/discussion/general/

                          To unsubscribe from further messages, please visit
                          https://sourceforge.net/auth/subscriptions/

                           
                          • Soren Bro

                            Soren Bro - 2018-09-24

                            Nah, it's just a common resource directory. As far as I can tell.

                            On Mon, Sep 24, 2018 at 6:35 PM sbrothy@gmail.com wrote:

                            Wait...EuMemMgr isn't contained in the solution at all, or am I just
                            blind? Is this by design?

                            On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                            But as soon as I change the name in the JWnd files the uses will pop up
                            as errors. Then it's just a matter of finding them in the bunch of errors.'

                            On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                            This pair of files should be lifted back in the hierachy as they're used
                            by several projects obviously.

                            Regards

                            On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                            Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                            source (which are in to different locations). We keep the one copy right.
                            We don't copy the files into indvidual projects. That would be a mess. Not
                            that it's pretty as it is, but we certainly don't want to keep track of
                            several versions of the same file, no.

                            Regards.

                            On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                            Yes, go ahead. Unless you would prefer that I do it -- I am totally
                            willing. If you do it, please do be careful to try to find all occurrences.


                            Pete. Please take a look here.... (scope problem in autogenerated file)
                            https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                            Sent from sourceforge.net because you indicated interest in
                            https://sourceforge.net/p/hermesmail/discussion/general/

                            To unsubscribe from further messages, please visit
                            https://sourceforge.net/auth/subscriptions/

                             
                            • Soren Bro

                              Soren Bro - 2018-09-24

                              There's already a SendMessage function.They're both inline. And they do
                              both call the relevant Windows API version:

                              JWnd.h:
                              [code]
                              [...]
                              LRESULT SendMessage ( UINT uMsg ,
                              WPARAM wParam = 0 ,
                              LPARAM lParam = 0 )
                              {
                              ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                              return ( ::SendMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                              }

                              BOOL PostMessage ( UINT   uMsg       ,
                                                 WPARAM wParam = 0 ,
                                                 LPARAM lParam = 0  )
                              {
                                  ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                  return ( ::PostMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                              }
                              

                              [...]
                              {/code]

                              ASSERT ( ::IsWindow ( m_hWnd ) ) ;

                              What hWnd? This makes no sense? The declaration doesn't fit the variables
                              used.

                              Regards.

                              On Mon, Sep 24, 2018 at 6:36 PM sbrothy@gmail.com wrote:

                              Nah, it's just a common resource directory. As far as I can tell.

                              On Mon, Sep 24, 2018 at 6:35 PM sbrothy@gmail.com wrote:

                              Wait...EuMemMgr isn't contained in the solution at all, or am I just
                              blind? Is this by design?

                              On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                              But as soon as I change the name in the JWnd files the uses will pop up
                              as errors. Then it's just a matter of finding them in the bunch of errors.'

                              On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                              This pair of files should be lifted back in the hierachy as they're
                              used by several projects obviously.

                              Regards

                              On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                              Oh, I can do it, I'm sure. But what do we do with the JWnd header and
                              source (which are in to different locations). We keep the one copy right.
                              We don't copy the files into indvidual projects. That would be a mess. Not
                              that it's pretty as it is, but we certainly don't want to keep track of
                              several versions of the same file, no.

                              Regards.

                              On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                              Yes, go ahead. Unless you would prefer that I do it -- I am totally
                              willing. If you do it, please do be careful to try to find all occurrences.


                              Pete. Please take a look here.... (scope problem in autogenerated
                              file)
                              https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                              Sent from sourceforge.net because you indicated interest in
                              https://sourceforge.net/p/hermesmail/discussion/general/

                              To unsubscribe from further messages, please visit
                              https://sourceforge.net/auth/subscriptions/

                               

                              Related

                              Code: code

                              • Soren Bro

                                Soren Bro - 2018-09-24

                                Oh Duh! Sorry member variable m_hWnd. Never mind.

                                Regards

                                On Mon, Sep 24, 2018 at 6:41 PM sbrothy@gmail.com wrote:

                                There's already a SendMessage function.They're both inline. And they do
                                both call the relevant Windows API version:

                                JWnd.h:
                                [code]
                                [...]
                                LRESULT SendMessage ( UINT uMsg ,
                                WPARAM wParam = 0 ,
                                LPARAM lParam = 0 )
                                {
                                ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                return ( ::SendMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                }

                                BOOL PostMessage ( UINT   uMsg       ,
                                                   WPARAM wParam = 0 ,
                                                   LPARAM lParam = 0  )
                                {
                                    ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                    return ( ::PostMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                }
                                

                                [...]
                                {/code]

                                ASSERT ( ::IsWindow ( m_hWnd ) ) ;

                                What hWnd? This makes no sense? The declaration doesn't fit the
                                variables used.

                                Regards.

                                On Mon, Sep 24, 2018 at 6:36 PM sbrothy@gmail.com wrote:

                                Nah, it's just a common resource directory. As far as I can tell.

                                On Mon, Sep 24, 2018 at 6:35 PM sbrothy@gmail.com wrote:

                                Wait...EuMemMgr isn't contained in the solution at all, or am I just
                                blind? Is this by design?

                                On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                                But as soon as I change the name in the JWnd files the uses will pop up
                                as errors. Then it's just a matter of finding them in the bunch of errors.'

                                On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                                This pair of files should be lifted back in the hierachy as they're
                                used by several projects obviously.

                                Regards

                                On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                                Oh, I can do it, I'm sure. But what do we do with the JWnd header
                                and source (which are in to different locations). We keep the one copy
                                right. We don't copy the files into indvidual projects. That would be a
                                mess. Not that it's pretty as it is, but we certainly don't want to keep
                                track of several versions of the same file, no.

                                Regards.

                                On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                                Yes, go ahead. Unless you would prefer that I do it -- I am totally
                                willing. If you do it, please do be careful to try to find all occurrences.


                                Pete. Please take a look here.... (scope problem in autogenerated
                                file)
                                https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                                Sent from sourceforge.net because you indicated interest in
                                https://sourceforge.net/p/hermesmail/discussion/general/

                                To unsubscribe from further messages, please visit
                                https://sourceforge.net/auth/subscriptions/

                                 

                                Related

                                Code: code

                                • Soren Bro

                                  Soren Bro - 2018-09-24

                                  So really, this change calls for both SendMessage and PostMessage to be
                                  renamed, right?

                                  On Mon, Sep 24, 2018 at 6:42 PM sbrothy@gmail.com wrote:

                                  Oh Duh! Sorry member variable m_hWnd. Never mind.

                                  Regards

                                  On Mon, Sep 24, 2018 at 6:41 PM sbrothy@gmail.com wrote:

                                  There's already a SendMessage function.They're both inline. And they do
                                  both call the relevant Windows API version:

                                  JWnd.h:
                                  [code]
                                  [...]
                                  LRESULT SendMessage ( UINT uMsg ,
                                  WPARAM wParam = 0 ,
                                  LPARAM lParam = 0 )
                                  {
                                  ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                  return ( ::SendMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                  }

                                  BOOL PostMessage ( UINT   uMsg       ,
                                                     WPARAM wParam = 0 ,
                                                     LPARAM lParam = 0  )
                                  {
                                      ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                      return ( ::PostMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                  }
                                  

                                  [...]
                                  {/code]

                                  ASSERT ( ::IsWindow ( m_hWnd ) ) ;

                                  What hWnd? This makes no sense? The declaration doesn't fit the
                                  variables used.

                                  Regards.

                                  On Mon, Sep 24, 2018 at 6:36 PM sbrothy@gmail.com wrote:

                                  Nah, it's just a common resource directory. As far as I can tell.

                                  On Mon, Sep 24, 2018 at 6:35 PM sbrothy@gmail.com wrote:

                                  Wait...EuMemMgr isn't contained in the solution at all, or am I just
                                  blind? Is this by design?

                                  On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                                  But as soon as I change the name in the JWnd files the uses will pop
                                  up as errors. Then it's just a matter of finding them in the bunch of
                                  errors.'

                                  On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                                  This pair of files should be lifted back in the hierachy as they're
                                  used by several projects obviously.

                                  Regards

                                  On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                                  Oh, I can do it, I'm sure. But what do we do with the JWnd header
                                  and source (which are in to different locations). We keep the one copy
                                  right. We don't copy the files into indvidual projects. That would be a
                                  mess. Not that it's pretty as it is, but we certainly don't want to keep
                                  track of several versions of the same file, no.

                                  Regards.

                                  On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean petemaclean@users.sourceforge.net wrote:

                                  Yes, go ahead. Unless you would prefer that I do it -- I am totally
                                  willing. If you do it, please do be careful to try to find all occurrences.


                                  Pete. Please take a look here.... (scope problem in autogenerated
                                  file)
                                  https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500


                                  Sent from sourceforge.net because you indicated interest in
                                  https://sourceforge.net/p/hermesmail/discussion/general/

                                  To unsubscribe from further messages, please visit
                                  https://sourceforge.net/auth/subscriptions/

                                   

                                  Related

                                  Code: code

                                  • Soren Bro

                                    Soren Bro - 2018-09-24

                                    And excuse my French but what the heck is the purpose of putting void in
                                    a C++ constructor? Nothing?

                                    It sure looks weird.

                                    On Mon, Sep 24, 2018 at 6:44 PM Soren Bro sbrothy@users.sourceforge.net
                                    wrote:

                                    So really, this change calls for both SendMessage and PostMessage to
                                    be
                                    renamed, right?

                                    On Mon, Sep 24, 2018 at 6:42 PM sbrothy@gmail.com wrote:

                                    Oh Duh! Sorry member variable m_hWnd. Never mind.

                                    Regards

                                    On Mon, Sep 24, 2018 at 6:41 PM sbrothy@gmail.com wrote:

                                    There's already a SendMessage function.They're both inline. And they do
                                    both call the relevant Windows API version:

                                    JWnd.h:
                                    [code] https://sourceforge.net/p/hermesmail/code/_discuss/
                                    [...]
                                    LRESULT SendMessage ( UINT uMsg ,
                                    WPARAM wParam = 0 ,
                                    LPARAM lParam = 0 )
                                    {
                                    ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                    return ( ::SendMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                    }

                                    BOOL PostMessage ( UINT uMsg ,
                                    WPARAM wParam = 0 ,
                                    LPARAM lParam = 0 )
                                    {
                                    ASSERT ( ::IsWindow ( m_hWnd ) ) ;
                                    return ( ::PostMessage ( m_hWnd , uMsg , wParam , lParam ) ) ;
                                    }

                                    [...]
                                    {/code]

                                    ASSERT ( ::IsWindow ( m_hWnd ) ) ;

                                    What hWnd? This makes no sense? The declaration doesn't fit the
                                    variables used.

                                    Regards.

                                    On Mon, Sep 24, 2018 at 6:36 PM sbrothy@gmail.com wrote:

                                    Nah, it's just a common resource directory. As far as I can tell.

                                    On Mon, Sep 24, 2018 at 6:35 PM sbrothy@gmail.com wrote:

                                    Wait...EuMemMgr isn't contained in the solution at all, or am I just
                                    blind? Is this by design?

                                    On Mon, Sep 24, 2018 at 6:32 PM sbrothy@gmail.com wrote:

                                    But as soon as I change the name in the JWnd files the uses will pop
                                    up as errors. Then it's just a matter of finding them in the bunch of
                                    errors.'

                                    On Mon, Sep 24, 2018 at 6:29 PM sbrothy@gmail.com wrote:

                                    This pair of files should be lifted back in the hierachy as they're
                                    used by several projects obviously.

                                    Regards

                                    On Mon, Sep 24, 2018 at 6:28 PM sbrothy@gmail.com wrote:

                                    Oh, I can do it, I'm sure. But what do we do with the JWnd header
                                    and source (which are in to different locations). We keep the one copy
                                    right. We don't copy the files into indvidual projects. That would be a
                                    mess. Not that it's pretty as it is, but we certainly don't want to keep
                                    track of several versions of the same file, no.

                                    Regards.

                                    On Mon, Sep 24, 2018 at 6:24 PM Pete Maclean
                                    petemaclean@users.sourceforge.net %0Dpetemaclean@users.sourceforge.net
                                    wrote:

                                    Yes, go ahead. Unless you would prefer that I do it -- I am totally
                                    willing. If you do it, please do be careful to try to find all occurrences.


                                    Pete. Please take a look here.... (scope problem in autogenerated
                                    file)

                                    https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500

                                    Sent from sourceforge.net because you indicated interest in
                                    https://sourceforge.net/p/hermesmail/discussion/general/

                                    To unsubscribe from further messages, please visit
                                    https://sourceforge.net/auth/subscriptions/


                                    Pete. Please take a look here.... (scope problem in autogenerated file)
                                    https://sourceforge.net/p/hermesmail/discussion/general/thread/37cb3afc7b/?limit=25#b4ac/b831/61ba/6d38/6835/0dda/a956/f500/2cd1/79d9/8078/79ec/13c4/0b5b/1405/75cc


                                    Sent from sourceforge.net because you indicated interest in
                                    https://sourceforge.net/p/hermesmail/discussion/general/

                                    To unsubscribe from further messages, please visit
                                    https://sourceforge.net/auth/subscriptions/

                                     

                                    Related

                                    Code: code

1 2 > >> (Page 1 of 2)

Log in to post a comment.