Author Topic: Fix for 64 bit and using vb6 apps and controls never will fail  (Read 68039 times)

crunch

  • Full Member
  • ***
  • Posts: 202
    • View Profile
Fix for 64 bit and using vb6 apps and controls never will fail
« on: February 17, 2011, 07:00:23 am »
 :) Hi back after finishing my 20 in USN, sorry to have been gone since 9-1-1
 always works
                 ========================================

Fixing install and runtime problems/errors 64bit windows Vista and 7??
2/17/11

                 =======================================



first look at the task bar on top of notepad the program reading tis and click
format/word wrap


Fixing runtime errors in module doesn't register trying to run vb 6.0 controls and 32bit programs not running correctly in 64bit windows??

until the software manufacturers redesign their installs to do this for you here is a flawless fix......

It's not hard just follow this step by step


*Run-time error 339: Component 'MSCOMM32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid.

*Run-time error 339: Component 'MSWINSCK.OCX' or one of its dependencies not correctly registered: a file is missing or invalid. and so forth or the program will just crash with out explanation...

if I could tell you how to make it work would you say WOW!


Why do I get these errors?

 you are needing to use VB6.0 runtime that Microsoft has decided NOT to support any longer and is NOT facilitated in 64 bit versions at all.. hmmm or is it.... windows 7 actually was to vista what XP was to millennium.
the software done after a global beta release program that was NOT announced as such... ther is a folder in windows Vista64 and 7 that uses utilizes 32bit runtime components for WOW windows-32bit on windows 64bit... the virtual 32bit environment..98% of all 32bit programs and their runtimes WILL run is the user installs them correctly....

(1)
First you MUST be logged on to windows AS AN ADMINISTRATOR AS THIS IS ONLY HALF WORKING HALF THE TIME.....you MUST have user account control turned ALL the way off... windows defender ALL THE WAY OFF and the windows or any other firewall also OFF..(the windows help file will tell you how if you don't know!)
You must after proprietary scanning the files with you're selected Virus program have it shut OFF ALL THE WAY..<<<<---- this is all to make sure you have a 98% chance or better to get the program installed correctly I am covering all the problems some have experienced all at once...in other words if you are running ANY find-it fix-it check-it utilities SHUT THEM OFF!!!!! This includes and network related such as some browsers and such... so also PHYSICALLY disconnect from the web!

(2)
 EVERY .exe you install you MUST manually map-- tell it to install in the
C:\Program Files (x86)folder.. windows knows that anything executed from there is 32 bit<<<--- well its supposed to always know.. you MUST right click on the .exe and go to properties/compatibility tab and check compatibility XP(service pack3)
also check run as administrator at the bottom.. now execute it and tell it where to install....C:\Program Files (x86)folder... on some exe's you need to select advanced install or manual to tell it where....

(3)
ALL vb6.0 runtime components MUST be put into the C:\Windows\SysWOW64 folder manually, so if a program has a separate vb runtime installer you Must tell it to go to C:\Windows\SysWOW64

ok half done... whew!!!!!!

now for the slightly time consuming part!!!

now one runtime item at a time you must follow these steps....

I'll use the "MSCOMM32.OCX" as an example on how to register the files in the registry of windows

click on start and type CMD in the search box... st the top you will see and .exe called "cmd.exe" RIGHT click on it and tell it to run as administrator....

a dos box will pop up in it it will say
C:\Users\"your user name">
you will manually or paste insert this command
“regsvr32 c:\windows\syswow64\MSCOMM32.OCX”
it should look exactly like this..
C:\Users\"your user name">regsvr32 c:\windows\syswow64\MSCOMM32.OCX
now hit enter key on keyboard.. it WILL say "DllRegisterServer ... succeeded"
if not you have syntax incorrect some where...

Ok you must do the above for every rumtime component you put into the WOW64 folder..

You are finished you MUST reboot the machine BEFORE running the program..

now sit back and run your VB6 stuff with the confidence of knowing you out-smarted Bill Gates!!!!

J.Lynch: logoslogic@consultant.com
Crunch

<<I can't is the seed that never grows!>>

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3848
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #1 on: February 17, 2011, 06:36:15 pm »
Some great tips as always Crunch! Also, It's really nice to have you back
and Thanks for your service to our country!! ;)
In the world of AI it's the thought that counts!

- Art -

crunch

  • Full Member
  • ***
  • Posts: 202
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #2 on: February 18, 2011, 07:55:55 am »
well hello art great to see some of us-- er ahhh hmmm old timers still around 


crunch
<< I can't is the seed that never grows! >>>
Crunch

<<I can't is the seed that never grows!>>

dbbeme

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #3 on: May 02, 2011, 12:57:26 pm »
:) Hi back after finishing my 20 in USN, sorry to have been gone since 9-1-1
 always works
                 ========================================

Fixing install and runtime problems/errors 64bit windows Vista and 7??
2/17/11

                 =======================================



first look at the task bar on top of notepad the program reading tis and click
format/word wrap


Fixing runtime errors in module doesn't register trying to run vb 6.0 controls and 32bit programs not running correctly in 64bit windows??

until the software manufacturers redesign their installs to do this for you here is a flawless fix......

It's not hard just follow this step by step


*Run-time error 339: Component 'MSCOMM32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid.

*Run-time error 339: Component 'MSWINSCK.OCX' or one of its dependencies not correctly registered: a file is missing or invalid. and so forth or the program will just crash with out explanation...

if I could tell you how to make it work would you say WOW!


Why do I get these errors?

 you are needing to use VB6.0 runtime that Microsoft has decided NOT to support any longer and is NOT facilitated in 64 bit versions at all.. hmmm or is it.... windows 7 actually was to vista what XP was to millennium.
the software done after a global beta release program that was NOT announced as such... ther is a folder in windows Vista64 and 7 that uses utilizes 32bit runtime components for WOW windows-32bit on windows 64bit... the virtual 32bit environment..98% of all 32bit programs and their runtimes WILL run is the user installs them correctly....

(1)
First you MUST be logged on to windows AS AN ADMINISTRATOR AS THIS IS ONLY HALF WORKING HALF THE TIME.....you MUST have user account control turned ALL the way off... windows defender ALL THE WAY OFF and the windows or any other firewall also OFF..(the windows help file will tell you how if you don't know!)
You must after proprietary scanning the files with you're selected Virus program have it shut OFF ALL THE WAY..<<<<---- this is all to make sure you have a 98% chance or better to get the program installed correctly I am covering all the problems some have experienced all at once...in other words if you are running ANY find-it fix-it check-it utilities SHUT THEM OFF!!!!! This includes and network related such as some browsers and such... so also PHYSICALLY disconnect from the web!

(2)
 EVERY .exe you install you MUST manually map-- tell it to install in the
C:\Program Files (x86)folder.. windows knows that anything executed from there is 32 bit<<<--- well its supposed to always know.. you MUST right click on the .exe and go to properties/compatibility tab and check compatibility XP(service pack3)
also check run as administrator at the bottom.. now execute it and tell it where to install....C:\Program Files (x86)folder... on some exe's you need to select advanced install or manual to tell it where....

(3)
ALL vb6.0 runtime components MUST be put into the C:\Windows\SysWOW64 folder manually, so if a program has a separate vb runtime installer you Must tell it to go to C:\Windows\SysWOW64

ok half done... whew!!!!!!

now for the slightly time consuming part!!!

now one runtime item at a time you must follow these steps....

I'll use the "MSCOMM32.OCX" as an example on how to register the files in the registry of windows

click on start and type CMD in the search box... st the top you will see and .exe called "cmd.exe" RIGHT click on it and tell it to run as administrator....

a dos box will pop up in it it will say
C:\Users\"your user name">
you will manually or paste insert this command
“regsvr32 c:\windows\syswow64\MSCOMM32.OCX”
it should look exactly like this..
C:\Users\"your user name">regsvr32 c:\windows\syswow64\MSCOMM32.OCX
now hit enter key on keyboard.. it WILL say "DllRegisterServer ... succeeded"
if not you have syntax incorrect some where...

Ok you must do the above for every rumtime component you put into the WOW64 folder..

You are finished you MUST reboot the machine BEFORE running the program..

now sit back and run your VB6 stuff with the confidence of knowing you out-smarted Bill Gates!!!!

J.Lynch: logoslogic@consultant.com

newthunder457

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #4 on: May 10, 2011, 05:49:06 pm »
That's great. Thanks Crunch. You are awesome.

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #5 on: May 11, 2011, 08:19:51 pm »
Hi crunch when you install vb6 these files reinstall ...

But you can always download the vbruntime files and these files will reinstall

I have built and installer with vbinstall which has my most used files in a msi for a quick repair

ashu_07

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #6 on: April 19, 2012, 10:52:58 pm »
Crunch,


I tried doing everything to run my VB6 app on Win2k8 r2 64 bit server. In fact, I tried everything as u mentioned here before visiting site (of course not step by step), no luck.
I also tried to your approach step by step, still no luck.
When i port my code from XP (SP3) to Win2k8 SP1 (R2 - 64bit), i always find that some controls are missing, especially combox, command button or textbox

Pls let me know if you have come cross this issue.

Ashwani

Rojas

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #7 on: June 13, 2012, 08:11:17 am »
Veramente una soluzione data con una spiegazione semplice, chiara e SOPRATTUTTO che funziona.
Merce rara, soprattutto sui prodotti di Guglielmo Cancelli.
Grazie 1000 Crunch... wherever you are!
BYE
Rojas

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #8 on: June 13, 2012, 09:28:08 am »
hello crunch , welcome back , now get back to work lol helping us all figure out things lol !  ;)
You have a lot of catching up to do to see what all that we are into on the forum for idea's ect! :)
 

freddy888

  • Hero Member
  • *****
  • Posts: 1693
    • View Profile
    • AiDreams
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #9 on: June 13, 2012, 10:06:41 am »
February 17, 2011   ;)

sallyc0108

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #10 on: March 15, 2013, 10:17:04 am »
OK - update on an old issue --
Now the installers put the program files and libraries in the right places..  (x86) and syswow64 ...

however VB6 components (like FlexGrid control) -- are hardcoded to a location of c:\windows\system32\MSFLXGRD.OCX   (in Project/Components)

so when I install on a 64 bit machine -- if these files aren't in the system32 directory -- it won't run.


Installer folks said -- change VB6 to access the "system" folder at runtime instead of a hardcoded path .....   

How in the world do you do that??

Any help would be appreciated!!


One

  • Hero Member
  • *****
  • Posts: 2184
  • Technology Advocate
    • View Profile
Re: Fix for 64 bit and using vb6 apps and controls never will fail
« Reply #11 on: March 15, 2013, 09:47:51 pm »
it's so weird to look back from an ALPHA to what the chaos that remains and how complicated the world makes its self into.

64 is merely 32x2. 64 bit os is and will never be complete without 2 32's
64 bit was a simple way of handeling the memory capacity and such that exceeds 4 gigs of ram and up.

wow 64? on an ocx in the registry? . absolute chaos and misunderstanding.

it's gonna be orange.
and from my experence, the only effective use of absolute orange, is going to jail for a very long time and in the end,
you ASK THE JUDGE, "WHY DID I JUST SPEND 9 MONTHS IN YOUR JAIL"
AND THE JUDGE WILL SAY "I DON'T KNOW" <-----

truth. Jared.
Today Is Yesterdays Future.