PDA

Click to See Complete Forum and Search --> : MSFlexgrid


VB22
Oct 11th, 2007, 05:15 AM
Hello everyone,

I've been making simple VB apps at work for the last couple of years. The method I have used with success is to compile the EXE onto a network drive, and put a shortcut on the user's desktop to it. However, I have recently run into trouble with my latest project which uses a MSFlxGrd, as the exe will only run from my PC, not anyone elses - they get the message: "failed to load control 'msflexgrid' from msflxgrd.ocx. Your version of msflexgrid.ocx may be outdated. make sure you are using the version of the control that was provided with your application"

I have spent the last couple of days reading up on this and have got a bit confused to be honest (this is the first time something's not worked). I am aware that it's because some non-standard runtime files are required on the user's PCs to support msflexgrid - but using something like the package and deployment wizard isn't a solution for me as user's don't have permissions to install applications - and anyway, I don't want to 'install' it on their PC - just give them a link to the program on a network drive.

I've managed to copy MSFlxGrd.ocx into the system32 folder on one of the PCs and register it using regsvr32, but despite getting a 'successfully installed' message - the exe with the msflexgrid in it still gives the error message above and won't run. Why is this?

So, I was wondering which other files I need to copy across and register. What about msflxgrd.dep or msflxgrd.oca?

Thanks in advance for any advise people can give me

RhinoBull
Oct 11th, 2007, 11:18 AM
If you install any service packs after the initial deployment then you are most likely need to build new distribution package or at least distribute and re-register "offensive" components.
It could be a real pain however if your application was deployed locally then there is no way to get arround this issue.

VB22
Oct 11th, 2007, 01:38 PM
Thanks a lot for your response RhinoBull, much appreciated

Luckily, my app will only be used by a few people in my office - so if a manual work around were to be possible, it wouldn't be too much hassle for me.

Can you please help me understand though why, after getting the 'successfully registered' message on the destination PC, it still gives an error when trying to load an exe with a msflxgrd reference? Are there any other files I need to copy across and register too?

randem
Oct 11th, 2007, 02:43 PM
Please read to better understand deployment - Installation Problems (http://www.***********/installerproblems.html)

VB22
Oct 11th, 2007, 03:22 PM
Thanks for trying to help me Randem, but the problem is that I cannot deploy my application in the traditional way due to security restrictions on my work's computers. I read with interest what's on your website yesterday, and have tried using Inno Setup - but that solution is not an option for me.

Never mind, I will have to try another way of displaying the information in my application rather than in a flexgrid

randem
Oct 11th, 2007, 03:46 PM
They are called dependencies. You are not going to get your app to work without them... You can try all sorts of work arounds but the answer will still be the same...