|
-
Jul 25th, 2013, 03:26 PM
#121
Re: [RESOLVED] VB6 and Windows 8
Problem is, is that I never subclassed in C++ before so I'm gonna have to study it up Its probably within a child window as well, which is also what I need to program. So far the IDE is getting there with the little code I have. I just need a splash screen prior to the IDE appearing, add more menu items, and of course a code window to type in:
c++ Code:
#include <windows.h> HWND hWnd; MSG msg; WNDCLASSEX wc; HBRUSH brush; LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); #define ID_FILE_EXIT 1000 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) { wc.cbSize = sizeof(WNDCLASSEX); wc.style = CS_VREDRAW|CS_HREDRAW|CS_OWNDC; wc.lpfnWndProc = WindowProcedure; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = CreateSolidBrush(RGB(0, 0, 0)); wc.lpszMenuName = NULL; wc.lpszClassName = "IDE"; wc.hIconSm = NULL; RegisterClassEx(&wc); hWnd = CreateWindowEx (0, "IDE", "VB Classic", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 800, 600, HWND_DESKTOP, NULL, hInstance, NULL); ShowWindow (hWnd, SW_SHOWMAXIMIZED); while (1) { if (PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) { if (WM_QUIT == msg.message) break; TranslateMessage (&msg); DispatchMessage (&msg); } } return msg.wParam; } LRESULT CALLBACK WindowProcedure (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_CREATE: { HMENU hFile = CreateMenu(); HMENU hExit = CreateMenu(); AppendMenu(hFile, MF_POPUP, (UINT_PTR)hExit, "File"); AppendMenu(hExit, MF_STRING, ID_FILE_EXIT, "Exit"); SetMenu(hWnd, hFile); break; } case WM_COMMAND: { switch(LOWORD(wParam)) { case ID_FILE_EXIT: { DestroyWindow(hWnd); return(0); break; } } break; } case WM_DESTROY: PostQuitMessage (0); break; case WM_KEYDOWN: if(wParam == VK_ESCAPE) { DestroyWindow(hWnd); return(0); } break; default: return DefWindowProc (hWnd, msg, wParam, lParam); } return 0; }
-
Jul 25th, 2013, 03:44 PM
#122
Re: [RESOLVED] VB6 and Windows 8
I would think that the editor window uses a rich text box due to all the color choices it offers.
-
Jul 25th, 2013, 03:46 PM
#123
Re: [RESOLVED] VB6 and Windows 8
Yeah I really think so too. I might use it. But I'm also gonna need to put it in a child window.
-
Jul 25th, 2013, 04:58 PM
#124
PowerPoster
Re: [RESOLVED] VB6 and Windows 8
If you have a look at the IDE that I just wrote last night (Perth, WA Time), I was able to come up with afew commands, but not syntax checking as of yet. But then the IDE really looks cool. Also I am removing alots of the online Forum tools, that were inside it before I had changed to web cloud applications programming...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Jul 25th, 2013, 05:20 PM
#125
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by ThEiMp
If you have a look at the IDE that I just wrote last night (Perth, WA Time), I was able to come up with afew commands, but not syntax checking as of yet. But then the IDE really looks cool. Also I am removing alots of the online Forum tools, that were inside it before I had changed to web cloud applications programming...
You made an IDE in C++?
-
Jul 25th, 2013, 05:27 PM
#126
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Jacob Roman
You made an IDE in C++? 
More likely a VB form that allows you to type in some code in a RTB and maybe recognizes a few statements.
A few years back I worked on a project where we created an IDE for our own scripting language. This language was less than 1/100th of what is VB and it still took a good 6 months to get it working properly and that was having a previous version to go by and does not count the time it took it write the conversion routines, compilers and the interpreters. The result provided an IDE to develop apps for DOS based mobile devices. The IDE also included a 3rd party VBA IDE addin for doing VBA scripts and was modified to allow ODBC database access.
-
Jul 25th, 2013, 11:28 PM
#127
Re: [RESOLVED] VB6 and Windows 8
Well...so far noone stepped up to the challenge to join my team to put together VB Classic, so I guess I'm gonna have to do it by myself and see how far I can go. I got plently to work with, with my book, the internet, my knowledge on assembly, C++, and my wild imagination. So wish me luck until one of you have the balls to step up to the plate.
Yup...takes great big cajones to really tackle a compiler.
-
Jul 26th, 2013, 02:59 AM
#128
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Jacob Roman
Well...so far noone stepped up to the challenge to join my team to put together VB Classic, so I guess I'm gonna have to do it by myself and see how far I can go. I got plently to work with, with my book, the internet, my knowledge on assembly, C++, and my wild imagination. So wish me luck until one of you have the balls to step up to the plate.
Yup...takes great big cajones to really tackle a compiler.
I'd love to take part in this but I'm still struggling to finish a couple of long overdue projects here and devoting too much time away from them will delay them even further. When I get my own projects into an acceptable state where I can pace myself, I'll try to contribute something towards this new endeavor. I've always wanted to participate in something like this.
-
Jul 26th, 2013, 05:10 PM
#129
PowerPoster
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Jacob Roman
You made an IDE in C++? 
Actually in Visual Basic. But then wh's counting that. It will also have vector and rastor drawing, like eg: Corel Draw, Adobe Illustrator and also Adobe PhotoShop, at that. I just have to get the rulers to be actually moveable, instead of being just lines on the screen, which they are, but I don't want them to be that, anymore than they are now...
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Jul 26th, 2013, 09:38 PM
#130
Junior Member
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Jacob Roman
Well due to the fact that I have my "Writing Compilers And Interpreters" book, I guess we can create a true VB7 with our knowledge and skills. We could probably make it faster and better than VB6.
This is a very good book which you can get off of Amazon:

Very interesting!
If the VB7 use LLVM as the backend maybe better than vb6.
here is a little project a few day ago.
https://code.google.com/p/extended-basic/
-
Jul 27th, 2013, 12:48 AM
#131
PowerPoster
Re: [RESOLVED] VB6 and Windows 8
I have been able to make some changes to the QuickDirector platform that I have been able to make using Visual Basic. Can someone please help me out with uisng Line Shapes as Rulers and Guides???
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Aug 10th, 2013, 10:39 PM
#132
Member
Re: [RESOLVED] VB6 and Windows 8
Just wanted to share as another VB6 user for many years
Using some of the things posted here I came up with another way. I am using Windows 8.1 Pro Preview in a VM but run Windows 7 Pro amd64 normally
Completely installed and running fine except certain things since Vista like moving multiple controls around on a form is ugly 
But I can drop down to Windows XP Mode when I need to do that in Windows 7 but I hear no word of that for Win 8.
run a cmd with Admin
Code:
cd /d %~dp0
REM Same as using the powershell thing above but Setacl is easier for me
SetACL.exe -on "HKCR\RDSServer.DataFactory" -ot reg -actn setowner -ownr "n:Administrators"
SetACL.exe -on "HKCR\RDSServer.DataFactory" -ot reg -actn ace -ace "n:Administrators;p:full" -rec yes
SetACL.exe -on "HKCR\RDSServer.DataFactory\Clsid" -ot reg -actn setowner -ownr "n:Administrators"
SetACL.exe -on "HKCR\RDSServer.DataFactory\Clsid" -ot reg -actn ace -ace "n:Administrators;p:full" -rec yes
timeout 2
REM Adding these both on Windows 7 and Win 8.1 Preview you don't get the Compatibility thing
REM Exactly same keys for me with Visual Basic 6 Pro in 7 and 8. You will have to capture the keys and see if they are different with anything else.
REG ADD "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags" /v "{ee015577-d1de-4b86-9960-746dd88e7ea2}" /t REG_DWORD /d 4 /f
REG ADD "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags" /v "{a985c5e2-277e-4f99-9fdb-f726034c0384}" /t REG_DWORD /d 4 /f
cmd /c Start /Wait %~dp0VB6_AUTOIT.exe
SETACL Command line version http://helgeklein.com/setacl/documen...on-setacl-exe/
Yeah I run an autoit to add serial and click through all the mess
Tried that 1.4 program but it gave me error on VS6SP6B
-
Sep 2nd, 2013, 06:01 PM
#133
Re: [RESOLVED] VB6 and Windows 8
Well I read the tips on the sites and the main one was where you select what you want to install untick Data Access as thats the main thing that locks it up.
You stop the CD autorunning hold the Shift key down when you shut the CD draw. Explorer the CD and find Setup.exe. Right click on it and select Properties. In the Compatibility tab tick Windows XP (SP3) then click Apply.
You can right click on Setup.exe and Run As Administrator then double click Setup.exe. Now because I tried to install VB6 a few times it said setup.ini was missing from Users\AppData\Local\Temp so I had to copy it of the CD to that folder. Then I ran vbwiz.exe and it said Users\AppData\Local\Temp\Setup\vb96pro.stf was missing so I copied that from the CD. Then it was looking for the CD so I hit Browse and the CD that was inserted. It want through the installation process. I clicked Select All then unticked Data Access. It read and installed all files of the CD. Then it came to finalises settings where it locked up before. I waited 30 seconds then the message to Restart Windows came up.
It Restarted then it asks you to install MSDN so I cancelled for the moment. I inserted MSDN CD1 and held the Shift key. I opened the CD and did the same with Setup.exe. Right click on it and select Properties. In the Compatibility tab tick Windows XP (SP3) then click Apply. You can right click on Setup.exe and Run As Administrator then double click Setup.exe. I selected Custom Install becasue I only want VB6 and the sample files. It installed then asked for CD2 and installed those files job done.
Previously when I tried to install MSDN it said it wasn't compatible with this system so the Compatibility tab tick Windows XP (SP3) must work.
I extracted all files from Vs6sp6vb.exe and did the same with setupsp6.exe Compatibility tab tick Windows XP (SP3) and Run As Administrator and SP6 installed ok.
I ran VB an it shows Service Pack 6 on startup. I clicked F1 for help and the MSDN help showed.
I tried Componets to add Comctl32.ocx but it wouldn't as it couldn't find something in the registry. I opened an app that uses Comctl32.ocx and that show on the Toolbox and in Components I also use ieframe.dll the Web Browser that was just a picturebox so I added that from Components. I ran the app and it works perfectly.
So you can install VB6 on Windows 8 64bit with a bit of fiddling.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Sep 3rd, 2013, 02:07 AM
#134
Member
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Keithuk
So you can install VB6 on Windows 8 64bit with a bit of fiddling.
no fiddling just run the cmd script with setacl. I use that on other things in Win 8.1 as well
I did pick up the reg thing and that made it easier but I had been using something in my autoit script that handled the compatibility.
Thought I had a copy of Visual studio I would have run it through the tests but can't seem to find it.
-
Sep 6th, 2013, 06:58 AM
#135
PowerPoster
Re: [RESOLVED] VB6 and Windows 8
But then also that Windows XP, is a very old version of Windows. Anything that runs on it, now days it totally a big ball of goo. Because that we have to write perfectly the first time for the newer versions of Windows. Like the new version of VB6, that is going to come out on the open market. Also that VB6 is the only app from Visual Studio 6.00 that still runs on post Windows XP SP3!!
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Sep 17th, 2013, 12:55 PM
#136
Re: [RESOLVED] VB6 and Windows 8
I was fearful of moving to Windows 8 (the only OS it seems you can get with a new computer), but did yesterday, and glad I did. I had almost no issue installing Visual Studio 6.0 Enterprise Edition (I only installed Visual Basic, not C++, FoxPro, or the other apps in the bundle). The program went all the way through the installation process, but 'hung' at the very last step. I stopped it, and checked to see the results...Visual Basic did indeed install and so far have had no issues creating/running programs with it. The plus, I found out, was that I can use the touch screen on the computer I bought to run my VB applications....handy tool, especially as one I made was a JukeBox. Just thought I'd share.
-
Sep 17th, 2013, 07:21 PM
#137
PowerPoster
Re: [RESOLVED] VB6 and Windows 8
Please note: You can only work with VB6 on Win8, because of the support that Microsoft have been able to provide. (RunTime files, for example and also the Service Packages, as well...)
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Sep 25th, 2013, 10:48 AM
#138
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by ThEiMp
Please note: You can only work with VB6 on Win8, because of the support that Microsoft have been able to provide. (RunTime files, for example and also the Service Packages, as well...)
Not sure what the point of that statement is? Of course it only works because Microsoft has included support for it, That is kinda like saying the only reason you get wet in the rain is because water is falling from the sky.
-
Oct 6th, 2013, 12:02 AM
#139
Member
Re: [RESOLVED] VB6 and Windows 8
Thought I'd share
Recently installed 8.1 RTM on a VM and had a problem with one of my VB6 programs Jump2Reg. Error accessing OLE registry.
I went searching and came up with this page http://www.fortypoundhead.com/showco...sp?artid=20502 and it had some interesting things so I thought what the heck I'll try it.
All I done was click the extra options for compatibility mode and bang it no longer has any errors and IDE opens at blinding speed. I quickly exported the registry changes and added to my Win 7 host and it also performing much better
This is all you need it works for me instantly after applying this registry
Code:
Windows Registry Editor Version 5.00
;http://www.fortypoundhead.com/showcontent.asp?artid=20502
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Microsoft Visual Studio\\VB98\\VB6.EXE"="SP3 DISABLETHEMES DISABLEDWM HIGHDPIAWARE RUNASADMIN"
; 32 bit "C:\\Program Files\\Microsoft Visual Studio\\VB98\\VB6.EXE"="SP3 DISABLETHEMES DISABLEDWM HIGHDPIAWARE RUNASADMIN"
You will be amazed
Anyway don't know why this is not Pinned
Last edited by maxXPsoft; Oct 6th, 2013 at 09:19 AM.
-
Oct 9th, 2013, 11:41 AM
#140
Re: [RESOLVED] VB6 and Windows 8
I installed my VB6 pro using the method posted by wunder in post #78. The only problem I have is when I open a very old app (written 15+ years ago) I get lots of "automation error, element not found", actually 58 of them. This corresponds to the number of DataEnvironments that the app uses. I know Dataenvironments are bad but the app has them and I don't want to rewrite the app, the client has no desire to pay for that. Unfortunately the MS Library documentation for VB6 has an example of how to create a DataReport and it uses a DataEnvironment. So, all the reports use a Dataenvironment as the datasource. I tried to manually register the "MSDERUN.DLL" but was unsuccessful.
Is there another method of installing VB6 on Win 8 that would solve this automation error problem? Or some way to manually install the DLL's necessary to stop the error.
Except for the initial errors when loading the app, everything else seems to be working ok. I'm able to modify the code and compile the app.
Any information would be appreciated.
-
Oct 9th, 2013, 12:22 PM
#141
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by ThEiMp
Also that VB6 is the only app from Visual Studio 6.00 that still runs on post Windows XP SP3!!
This is not true. You just need to uncheck "OLE RPC Debugging" on the Tools/Options.../Debug dialog box tab.
So Visual C++ 6.0 can be installed on Windows 7/8 and works if you don't need the OLE RPC debugging.
Another general tip to install Visual Studio 6.0 on newer platforms:
Create a blank text file named "msjava.dll" and place it in “%windir%\sysWOW64" on a 64-bit OS or in “%windir%\system32" on a 32-bit OS.
Then you can avoid installing "Microsoft Virtual Machine for Java" in the Visual Studio 6.0 Setup. (it is not recommended to install such a old Java on newer platforms)
Last edited by Krool; Oct 9th, 2013 at 12:26 PM.
-
Nov 19th, 2013, 03:30 PM
#142
New Member
Re: VB6 and Windows 8
I tried to register on your site to get the free app but I received an error when trying to register.
Is there any other way to get it?
 Originally Posted by gibra
For the future:
My VS6 Installer tool (free) install VS6 / VB6 without problems and has been tested successfully in Windows 8.
The link can be found in the signature.
Also, see the video.

-
Dec 24th, 2013, 11:10 AM
#143
Registered User
Re: [RESOLVED] VB6 and Windows 8
Try running the installation with out visual interdev and visual fox pro. During installation use custom mode and uncheck foxpro and interdev options. At the end setup may looks like hang. But don't worry. Go to vb6 folder and create shortcut for vb6 exe. run this in admin mode. vb6 will run without any glitches. You may not be able to run vb6 service packs. My friend (Vijay Anand) suggested this approach and this worked for me.
-
Dec 24th, 2013, 07:17 PM
#144
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by wes4dbt
I installed my VB6 pro using the method posted by wunder in post #78. The only problem I have is when I open a very old app (written 15+ years ago) I get lots of "automation error, element not found", actually 58 of them. This corresponds to the number of DataEnvironments that the app uses. I know Dataenvironments are bad but the app has them and I don't want to rewrite the app, the client has no desire to pay for that. Unfortunately the MS Library documentation for VB6 has an example of how to create a DataReport and it uses a DataEnvironment. So, all the reports use a Dataenvironment as the datasource. I tried to manually register the "MSDERUN.DLL" but was unsuccessful.
Is there another method of installing VB6 on Win 8 that would solve this automation error problem? Or some way to manually install the DLL's necessary to stop the error.
Except for the initial errors when loading the app, everything else seems to be working ok. I'm able to modify the code and compile the app.
Any information would be appreciated.
No problems. 
You can use my tool VS6 Installer to install VS6.0 or VB6.0 on 2000, Vista, Window 7 / 8 (32 or 64 it).
See the link on my sign.
The only thing you need to do is check what controls you used because on Vista and next OS there are various controls and libraries that are no longer supported:
Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008, Windows 7, and Windows 8
http://msdn.microsoft.com/en-us/vstudio/ms788708.aspx
Remember that in Windows 8 you have to unselect the DataAccess option.
P.S. Next VS6 Installer version 2.0 will include this and other new features. 
Last edited by gibra; Dec 24th, 2013 at 07:24 PM.
-
Dec 24th, 2013, 07:22 PM
#145
Re: VB6 and Windows 8
 Originally Posted by gwittlock
I tried to register on your site to get the free app but I received an error when trying to register.
Is there any other way to get it?
There are 8.800+ registered users, I don't think to be a forum problem.
Send me a PM with your username and error type.
-
Dec 27th, 2013, 09:45 PM
#146
Re: [RESOLVED] VB6 and Windows 8
gibra,
Quote Originally Posted by wes4dbt View Post
I installed my VB6 pro using the method posted by wunder in post #78. The only problem I have is when I open a very old app (written 15+ years ago) I get lots of "automation error, element not found", actually 58 of them. This corresponds to the number of DataEnvironments that the app uses. I know Dataenvironments are bad but the app has them and I don't want to rewrite the app, the client has no desire to pay for that. Unfortunately the MS Library documentation for VB6 has an example of how to create a DataReport and it uses a DataEnvironment. So, all the reports use a Dataenvironment as the datasource. I tried to manually register the "MSDERUN.DLL" but was unsuccessful.
Is there another method of installing VB6 on Win 8 that would solve this automation error problem? Or some way to manually install the DLL's necessary to stop the error.
Except for the initial errors when loading the app, everything else seems to be working ok. I'm able to modify the code and compile the app.
Any information would be appreciated.
No problems.
You can use my tool VS6 Installer to install VS6.0 or VB6.0 on 2000, Vista, Window 7 / 8 (32 or 64 it).
See the link on my sign.
The only thing you need to do is check what controls you used because on Vista and next OS there are various controls and libraries that are no longer supported:
Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008, Windows 7, and Windows 8
http://msdn.microsoft.com/en-us/vstudio/ms788708.aspx
Remember that in Windows 8 you have to unselect the DataAccess option.
P.S. Next VS6 Installer version 2.0 will include this and other new features.
Last edited by gibra; Dec 24th, 2013 at 04:24 PM.
Are you saying if I reinstall VB6 using your installer, it will fix the DataEnvirnoment problem? Everything else seem to be working fine except for that issue.
-
Dec 28th, 2013, 04:05 AM
#147
Re: [RESOLVED] VB6 and Windows 8
Hi wes4dbt,
Read the official Microsoft page:
Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008, Windows 7, and Windows 8
http://msdn.microsoft.com/en-us/vstudio//ms788708.aspx
As you can see on the Unsupported Runtime Files section, say that MSDERUN.DLL (that is the DataEnvironment) isn't longer supported.
However, I can open the DataProject sample (come with VB6), wich use DataEnvironment, and I don't get errors. 
Suggestion: honestly I do not use the DataEnvironment (and never will use it) because it is absolutely useless.
I only use the ADODB (Mcrosoft Access Data Objects 2.8 library) where objects are better, more flexibles and powerful, and free of the limitations and bugs that have the DataEnvironment.
Anyway, if you want, can send me a your sample project to test DataEnvironment on my system.
I own Windows 7 Ultimate SP1 (64bits).
-
Dec 28th, 2013, 01:52 PM
#148
Re: [RESOLVED] VB6 and Windows 8
Hi gibra,
Thanks for the reply. So you can load a VB6 app with DataEnviroments on a Win 8 machine with no errors popping up? My VB6 works fine on my Windows 7, it's only on Win 8 that I get the error when I load the program. Actually, I'm not 100% sure it's the DataEnvironment causing the problem.
The only problem I have is when I open a very old app (written 15+ years ago) I get lots of "automation error, element not found", actually 58 of them. This corresponds to the number of DataEnvironments that the app uses.
But this also happens on an app that only has 2 DE, I get 2 errors.
Suggestion: honestly I do not use the DataEnvironment (and never will use it) because it is absolutely useless.
I understand this now but when this program was written the only example from MS documentation of how to create a DataReport said to use a DE. I don't think I even had the internet when I wrote this program.
Should I uninstall VB6 before I try your installer?
-
Dec 28th, 2013, 05:43 PM
#149
Re: [RESOLVED] VB6 and Windows 8
Why would you ever need 58 DataEnvironments in one program??? Each can support connections to multiple data sources. Something sounds really wrong here.
Windows 8.x aren't ideal for VB6 development. Everything you can really do on those systems with VB6 can be developed on Windows Vista, the last version that supports VB6 development. In a pinch you could use Windows 7, but VB6 development was never supported under Windows 7.
Suggestion: honestly I do not use the DataEnvironment (and never will use it) because it is absolutely useless.
I only use the ADODB (Mcrosoft Access Data Objects 2.8 library) where objects are better, more flexibles and powerful, and free of the limitations and bugs that have the DataEnvironment.
Nonsense.
-
Dec 28th, 2013, 09:22 PM
#150
Re: [RESOLVED] VB6 and Windows 8
Sod it I put Win7 Pro 32bit back and everything is perfect again.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Dec 28th, 2013, 10:32 PM
#151
Re: [RESOLVED] VB6 and Windows 8
Why would you ever need 58 DataEnvironments in one program??? Each can support connections to multiple data sources. Something sounds really wrong here.
Windows 8.x aren't ideal for VB6 development. Everything you can really do on those systems with VB6 can be developed on Windows Vista, the last version that supports VB6 development. In a pinch you could use Windows 7, but VB6 development was never supported under Windows 7.
Why do people keep repeating this? I've already agreed with this more than once in this thread. All I've been asking is if anyone had found a solution to the problem, other than rewriting the program. That is not going to happen. I'm just looking to make minor changes to the program if the client requests it, would like to move to Win 8 on my development machine. btw - the reason there's 58 DE is there probably over 70+ DatReports produced by this app. When I wrote this my knowledge of the DE was limited and most reports have there own DE as a datasource. To be honest, until Win 8, I've had no real problems with the DE.
I've started a .Net version on my own, but not sure it'll ever be finished without a client request. It's so large it would take me six months to debug it.
-
Dec 30th, 2013, 06:00 PM
#152
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by wes4dbt
Hi gibra,
Thanks for the reply. So you can load a VB6 app with DataEnviroments on a Win 8 machine with no errors popping up?
I was able to 'digest' the DE to Windows 8.1, but I have to make some changes to my VS6 Installer.
wes4dbt, send me a sample project for test (on PM) .
 Originally Posted by wes4dbt
Should I uninstall VB6 before I try your installer?
Of course, the better thing is to remove VB6 + MSDN.
Last edited by gibra; Dec 31st, 2013 at 10:23 AM.
-
May 1st, 2014, 03:06 PM
#153
New Member
Re: VB6 and Windows 8
 Originally Posted by gibra
This doesn't depend of my VSInstaller tool 
The problem is that the DataEnvironment ISN'T supported.
Always keep in mind this:
Support Statement for Visual Basic 6.0 on Windows Vista, Windows Server 2008, Windows 7, and Windows 8
http://msdn.microsoft.com/en-us/vstudio/ms788708.aspx
See the section: Unsupported Runtime Files
However, as Bobbles has wrote, the use of DataEnvironment has always been discouraged, because it is an instrument with bugs and limitations insurmountable.
Besides the DataEnvironment is useless (as is the ADODC, the DataList and DataCombo), you should instead use the library of objects ADODB.

Hi
I must be the 101st programmer, Rob, 'cos no-one ever told me DataEnvironment was bad!
I have been using it for 11 years and have 438 connections in my package (about 120 procedures)
Microsoft recommended it for Parameterized Queries (back in the Dark Ages - 2004!!) and, like Topost, it just grew and grew!
The strange thing is when I needed to check if my programmes worked on Windows 8, I bought 8.1 and installed it on a dual-boot setup with my Windows 7 on the 22nd August 2013.
I see from the folders on that that I used your Installer, Gibra, for there was 1VB6Pro and 3VB6SP!!
But it worked - and I have been using it successfully since.
So one cannot say that it doesn't work - might be unsupported.
I have been trying for 5 hours to install it on my new laptop - trying everything recommended in all these, and other, posts but to no avail.
I do notice a difference between Windows 8.1 (old laptop) and my new one.
Clicking on old Start shows the same setup as Windows 7, and right-clicking shows ---Classic View ----
New Start is completely different. Looking at System Info just says that they are both Windows 8.1 (not very helpful) But if it worked on the old one, it should surely work on the new one?
Sorry about the lengthy diatribe, but trying to give sufficient info to enable you all to . . please, please help!!
Tony
-
May 1st, 2014, 03:14 PM
#154
Re: [RESOLVED] VB6 and Windows 8
OLD THREAD (plenty of new ones out there on this subject). BUT, what IS your issue? Can't install Visual Basic (or Visual Studio) 6.0 on Windows 8.1?
If that is your problem, do you get to the 'end' of the installation and it then hang's? If so, simply reboot. It'll be there in the 64 directory. Run it as Administrator and you will (should) not have any problems. MANY have done so this past year....search this forum for more threads if you still have issues. They also talk about SP6 and other 'issues' folks are having. I had it on 8.0, now 8.1. Hung during install, but all works fine.
Sammi
-
May 1st, 2014, 03:20 PM
#155
New Member
-
May 2nd, 2014, 02:32 AM
#156
New Member
Re: [RESOLVED] VB6 and Windows 8
 Originally Posted by Pitwood
Sorry  , Gibra,
Forgot to mention that I am using your latest Installer 2.1 dated Jan, 2014.
Maybe I should copy the older version from my old laptop? 
Tony
So to all the lovers of VB6 out there -
take heart, my friends. VB6 is alive and kicking on Windows 8.1 -
and so is DataEnvironment!!
Tony
-
Aug 30th, 2014, 09:36 AM
#157
New Member
Re: [RESOLVED] VB6 and Windows 8
OK. Here's my 2 cents. I was doing an upgrade for a customer that needed their VB6 warehouse control application ported up to Server 2012 (Windows 8.1). It had to be done. No options... I haven't read all the posts here. I stopped when I got it working. The problem appears to be that windows has a lock on some registry entries pertaining to some Data access components. So VB never completes. That appears to be the crux of all the problems.
Everything that you run should be set for XP sp3 compatiblity. I even manually set the compatibility ACM***.exe applications in both the VB6 install and the sp6 install (even though I believe they run elevated due to being kicked off by the setup program that you should be running elevated)
A: I did the complete install, let it fail, rebooted. (Don't know if this was necessary but it was my first step)
B: Did another VB install turning off all of the data access components (use the details button on the Custom Installtion screen) except for Data Environment....This time it should complete normally. Reboot. You won't get the secondary server install window on the reboot, so just forget about it.
C: Run the setupsp6 application from the service pack vb6sp6b. I got it here
D: If everything went the way it did for me you should reboot and have a normal vb install.
There were some other seemingly inconsequential steps resulting in blind alleys that I omitted here so if this doesn't work, reply and I'll try to offer some more suggestions.
Project Mangler
Winchester Industrial Controls
ELC.0187877-E1
-
Aug 30th, 2014, 10:06 AM
#158
Re: [RESOLVED] VB6 and Windows 8
That's very good to know. Thx
-
Nov 7th, 2021, 04:37 AM
#159
Re: [RESOLVED] VB6 and Windows 8
Attempting to install VB6 Pro into W8.1 32 bit.
Probably I have gotten over most hurdles.
Attempts to install SP6 are failing.
Two questions -
!) Are the reg files mentioned above suitable for 32 bit W8.1 (they look a bit 64'ish to me)
2) Can someone post a link to the comprehensive instructions (for the whole install) that I recall was on our site somewhere
-
Nov 7th, 2021, 07:59 AM
#160
Re: [RESOLVED] VB6 and Windows 8
Bobbles....here is the link I think to which you refer:
https://www.vbforums.com/showthread....hlight=install
Sam I am (as well as Confused at times).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|