473,322 Members | 1,232 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Nov 16 '05 #1
3 2218
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rick L | last post by:
I purchased Visual Studio.net Academic 2003. For a school project I have to use a MsFlexGrid Control. When I try to add this control via the add/remove item com components the control is not...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
1
by: PVS | last post by:
Hi, I am new to VC++ 7.0. I want to use MSFlexGrid in my dialog based MFC project in VC++ 7.0 (in VS ..NET IDE). I added the MSFlexGrid control into my resource editor toolbox and I dragged and...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
1
by: schapopa | last post by:
Hi, I have a MSFlexGrid control on the SSTab and now I am trying to make it editable. I got some example on the net that explains how to achive that. So I have a text box that appears over the...
2
by: Ben | last post by:
after I migrated to dotNet, migration wizard transferred over my vb6.0 Msflexgrid activex com as a dll, it putted it in my bin dir as AxInterop.MSFlexGridLib.dll. however, I can't use this control...
1
by: zoneal | last post by:
Hi, I am involved in the process of migrating vb(6.0) application to vb.net. My application contains only vb controls namely MSFLEXGRID. I want to migrate my application to vb.net completely...
3
by: Rajendra Nath Jana | last post by:
I generally using one TextBox control moving from Cell to Cell into the MSFlexGrid Control to access different data type values from user. How can I use DTPicker Control, ComboBox Control,...
5
by: krafla | last post by:
I have a similar problem with a program i made with VB 6.0 - the only control I used is MSFlexGrid - the program was developed on an XP machine. and the first time to use it on another machine i got...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.