Flexgrid window problem, Visual C++

Posted on 2000-02-25
Last Modified: 2010-04-10
First of all, I'm relatively new to C++, so maybe it's obvious what's missing, I just can't find out what.

Application built in Visual C++, to run under Windows 95/98, as stand-alone apllication.

Applet consists of one Main dialog window with 4 command buttons which launch their respective dialog window. Three out of 4 work perfectly.

The 4th one gives problems when trying to implement the application on certain PC's. This 4th dialog window is a FlexGrid, and it seems the not-working on certain computers comes from that. There are no error messages, nothing happens after one presses the command button. It just stands there doing nothing.

Application worked on two computers with Visual C++ installed and on two with standard office components, no Visual C++.

It doesn't work though on all computers in the company where the application muist be used.

My question now is not very clear, as I don't see a difference between computers where it works and here it doen't work. Could there be a component missing in C:\Windows or in System folder, maybe coming from Visual C++, on the "bad" computers".

Any help is welcome.

Question by:calacuccia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 22

Expert Comment

ID: 2557967
the flexgrid code is probably coming from a DLL.  You need to ship this DLL with your program so that the code is available on all computers that use the DLL.

Now I don't know the name of the DLL, but you can find it in a variety of ways.  You can use the depends.exe utility that vomes with VC to view all the DLLs used by your program.  It should be listed there (along with many standard ones too.  You might need to list them here if you can't tell what is what.)

Another option is too look at the flexgrid documentation, it probably mentions what DLL you need.

Another option is to look to see if you are linking to an .lib files for the flexgrid.  (You probably have it listed in your project.)  The .dll file probably has the same name, but ends in .dll instead of .lib.
LVL 17

Author Comment

ID: 2558132
Thanks Nietod, I'll check & test your suggestions over the week-end (This question is not for me but for a student who's doing her 'End of studies' project in our company, FYI it consists of a control test of our units at the end of our production line). She has her C++ stuffed PC at home.
I'll let you know how things went on monday.



Accepted Solution

tdubroff earned 100 total points
ID: 2560150
I'm not sure about this so take it with a grain of salt, but if you are using Visual C++ and added the FlexGrid via 'Add To Project'-'Registered ActiveX Controls', then you might also have to make sure that the .dll (or possibly .ocx) file is registered with your system.  The registering can be done by executing 'RegSvr32.exe <filename>'.
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

LVL 17

Author Comment

ID: 2572072
Nietod, Tdubroff, thanks both for the help.

with a little delay, I finally found out the problem. Now to my surprise it lays in the version of the file msflxgrd.ocx, placed in c:\windows\System directory. When replacing the file version 5.01.4319, size 223 KB, dated July 19,97 with the file version 6.00.8169, size 239 KB, dated June 18,98, everything worked out fine. This seems on first sight a version difference between the Win98/95 file and the VisualStudio file (I suppose this msflxgr.ocx is shipped with windows 95 and 98, older version, and that when installing Visual Studio, the .ocx is updateed to the latest version).

I've tried your method first, Nietod, and though the depends.exe didn't point out any missing dll's, and didn't refer to the msflxgrd.ocx file, I found this little utility very useful. You'll find a 25 pointer in this section for your help.

It was actually the last comment from tdubroff which made me look for the file in question, so I'll accept his comment as an answer. In the end, all I had to do is to place the correct version (6....) in the right directory, and bingo. I find this an nonsense problem, since not documentated by MS.

Just one last question, I also found this file:Msflxgrd.dep (2496 bytes), but it seems of no effect. Anyone of you knows what it's function/use is, and if it's necessary.


LVL 22

Expert Comment

ID: 2572198
That is a dependancy file.   I beleive they are used by instillation programs to insure that all the files needed by a component are also installed.  You can find information about it in the VC help, just look up ".dep" in the help.
LVL 17

Author Comment

ID: 2572213
Thanks again, wil check that out later.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question