By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,694 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,694 IT Pros & Developers. It's quick & easy.

Problems with MSFlexgrid control in vs.net 2003

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
--------------------

Nov 16 '05 #2

P: n/a
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: <73****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-******@online.microsoft.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.public.dotnet.languages.vc
| Message-ID: <dp**************@cpmsftngxa06.phx.gbl>
| 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.
| --------------------
|
|

Nov 16 '05 #3

P: n/a
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.
--------------------

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.