Problems with MSFlexgrid control in vs.net 2003

  • Thread starter Thread starter John Petersen
  • Start date Start date
J

John Petersen

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
 
Hi John,

Thanks for posting in the group!

I create a SDI MFC application(with 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.
--------------------
 
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_MULTITHREADED) and should call
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) 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: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (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.public.dotnet.languages.vc
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vc
| Lines: 15
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:30808
| NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
|
| Hi John,
|
| Thanks for posting in the group!
|
| I create a SDI MFC application(with 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.
| --------------------
|
|
 
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.
--------------------
 
Back
Top