473,748 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2243
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.
--------------------

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_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: <73************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-******@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: <dp************ **@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.
| --------------------
|
|

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
1322
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 there. I searched the hard drive and the installation CD's for the file but it doesn't exist. The file should be msflxgrd.ocx. Someone had given me copy of this file but after adding it to the tool bar and registering it in windows I can't add this...
10
2414
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) ComboBox.SelectedValue = db_value; If the db_value was not included in the ComboBox value list the ComboBox.SelectedIndex used to return -1, Now the very same code is
1
4962
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 dropped that control onto my dialog. when I tried to assign a variable from my dialog class to this MSFlexGrid control, it created a class with .h and .cpp files. The new class is derived from CWnd. I am trying to change it to derive from...
1
4973
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 pain to work with if you just want to throw some values in a grid and edit them with a textbox. i don't want to persist anything in a database, i just need a fast cheap and easy grid in memory that i can work with! i had functions in vb6 that...
1
2683
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 MSFlexGrid. It works, but location of the text box is a little bit off the cell. (A bit to much to left and to high) With MSFlexGrid(Index) txtCellEditor.Location = New Point(SSTab1.Location.X + TwipsToPixelsX(.CellLeft) + .Location.X,...
2
3342
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 at all. each time, I opened up my form layout. I get this message: "The following exception has occurred: TargetInvocationException: Unable to get the window handle for the 'AxMSFlexGrid' control. Windowless ActiveX controls are not...
1
16737
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 without any OCX(MSFLEXGRID) controls. I found datagrid to be an equivalent control of MSFLEXGRID in vb.net. I am unable to find an equivalent method & property of datagrid in vb.net. Please provide some examples which helps me to migrate the...
3
3405
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, OptionButton, CheckBox Controls in several column into the MSFlexGrid Control.? or whether there is any grid control or third party utilities which will allow me to generate easer grid entry form which will support other controls attached with the columns?
5
4754
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 two errors: 1- Class Not Registered Looking for Object with CLSID:{0000010-0000-0010-8000-00AA006D2EA4} this error message appears only at start up and as i click OK the program starts without reading the DB file. and if i save a new entry...
0
8979
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8818
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9522
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9307
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8234
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.