Problems with MSFlexgrid control in vs.net 2003

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

    #1

    Problems with MSFlexgrid control in vs.net 2003

    Hi there

    I really hope someone had this problem before me.
    I have moved all our c++ projects from VC6 to VS.NET2003
    and i have problems with nearly all dialogs containing
    either DateTimePicker or msflexgrid controls. In the case
    of the DataTimePicker i just replaced the old control
    with a newer one using the studio and it works perfect
    again. But when it comes to using MSFlexGrid control i
    can't seem to make it work. I have removed the old
    control and added a new one (Insert ActiveX control)
    Microsoft Flexgrid control version 6.0.
    The problem i have is that the dialog is not created and
    never comes up when running the DoModal() function on it.

    Kind Regards,

    John Petersen
  • Gary Chang [MSFT]

    #2
    RE: Problems with MSFlexgrid control in vs.net 2003

    Hi John,

    Thanks for posting in the group!

    I create a SDI MFC application(wit h a MSFlexgrid embedded in a modal
    dialog) in VC6 to reproduce your problem, then rebuild it under VS.NET2003,
    it runs well.

    So would you please give more detail information about your project and
    even if possible, upload a self-contained small VC6 project which can repro
    the problem?


    Best regards,
    Gary Chang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.
    --------------------

    Comment

    • John Eikanger

      #3
      RE: Problems with MSFlexgrid control in vs.net 2003

      John Peterson sent the following to us, and I wanted to make sure it was
      shared with the community

      Hi Again

      Now I solved the Problem. The problem was that I had called
      CoInitializeEx( NULL, COINIT_MULTITHR EADED) and should call
      CoInitializeEx( NULL, COINIT_APARTMEN TTHREADED) instead, and when changing
      that all dialogs works fine no matter what control are on it.

      Kind Regards,

      John Petersen
      This posting is provided “AS IS” with no warranties, and confers no rights.

      --------------------
      | X-Tomcat-ID: 89347030
      | References: <732901c3b41a$4 f4a61d0$a601280 a@phx.gbl>
      | MIME-Version: 1.0
      | Content-Type: text/plain
      | Content-Transfer-Encoding: 7bit
      | From: v-garych@online.m icrosoft.com (Gary Chang [MSFT])
      | Organization: Microsoft
      | Date: Thu, 27 Nov 2003 03:24:01 GMT
      | Subject: RE: Problems with MSFlexgrid control in vs.net 2003
      | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vc
      | Message-ID: <dpNtuXJtDHA.16 76@cpmsftngxa06 .phx.gbl>
      | Newsgroups: microsoft.publi c.dotnet.langua ges.vc
      | Lines: 15
      | Path: cpmsftngxa06.ph x.gbl
      | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vc:30808
      | NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182
      |
      | Hi John,
      |
      | Thanks for posting in the group!
      |
      | I create a SDI MFC application(wit h a MSFlexgrid embedded in a modal
      | dialog) in VC6 to reproduce your problem, then rebuild it under
      VS.NET2003,
      | it runs well.
      |
      | So would you please give more detail information about your project and
      | even if possible, upload a self-contained small VC6 project which can
      repro
      | the problem?
      |
      |
      | Best regards,
      | Gary Chang
      | Microsoft Online Partner Support
      |
      | Get Secure! - www.microsoft.com/security
      | This posting is provided "AS IS" with no warranties, and confers no
      rights.
      | --------------------
      |
      |

      Comment

      • Gary Chang [MSFT]

        #4
        RE: Problems with MSFlexgrid control in vs.net 2003

        Hi John

        Thanks for sharing your useful trouble-shooting experience with us as well
        as your participating in the group!

        Best regards,

        Gary Chang
        Microsoft Online Partner Support

        Get Secure! - www.microsoft.com/security
        This posting is provided "AS IS" with no warranties, and confers no rights.
        --------------------

        Comment

        Working...