Skip to main content

Questions tagged [vb6]

Visual Basic 6.0 (VB6) was the final COM-based version of the VB programming language and IDE, last updated in 2004. It is the predecessor to the modern VB.NET. Use this tag only for questions about VB6 programming and IDE. For questions about migrating from VB6 to another language, please use the tag [vb6-migration]. For questions about Visual Basic for Applications (VBA), please use [vba]. For questions about Visual Basic .NET, please use [vb.net].

1 vote
0 answers
68 views

When the MoveFile function fails in vb6, what error does it represent?

When using the MoveFile function in vb6, what error code does the function get if the function fails because the same file already exists in the path you want to navigate? I don't know if there is an ...
tory's user avatar
  • 51
-1 votes
0 answers
75 views

Classic ASP with VB6 and C++ COM DLL: How to Handle Crashes and Generate Crash Dumps

I'm working on a legacy system that involves a Classic ASP web application. This application creates a "global" instance of a VB6 application (.exe) that utilizes a COM DLL written in C++ to ...
zdenek's user avatar
  • 23.1k
0 votes
1 answer
84 views

Automatically trapping a JSON file from a browser, to use in a VB6 program

I can get the following in Firefox (or any other browser) from a device called a Saturn South ESBox, connected to my local LAN every six seconds, by entering"http://esbox/api/devices". It's ...
Graham Crawford's user avatar
1 vote
0 answers
79 views

System.Runtime.InteropServices.COMException: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

At the moment I am trying to use VB6 (.dll) file in a .NET environment, but I am running against an error what I cannot resolve. Error: System.Runtime.InteropServices.COMException: 'Retrieving the COM ...
Giovanni van de Sluis's user avatar
1 vote
0 answers
43 views

Is there an easy way to convert an Indonesia string number into Chinese format in VB?

If I have a Chinese format number string like this "1.234". it converts to "1,234"In Indonesia. My region setting is Indonesia ,how can I get the "1.234" in VB 6.0? I ...
user25518275's user avatar
1 vote
0 answers
47 views

Issue with imocx32.ocx register in window 11

I have vb6.0 windows application. i am running the application by clicking exe. if we click one of the button in the application, i get the below error. Run-time error '339': Component 'Imocx32.ocx' ...
Dhanasekaran's user avatar
1 vote
0 answers
63 views

Would Like To Print Source Code for all Forms and Modules in a VB6 project

I have a classic VB6 project which contains forms and modules. I would like to add a Sub procedure to one of the modules which will print to a file the source VB6 code in all the forms and modules in ...
CurtisD's user avatar
  • 173
1 vote
1 answer
48 views

VB6 install fails on Win 10 (21H2)

There are lots of tutorials and magic spells explaining how to install VB6 on Win 10, and I believe I've read and followed all of the advice(s), with no joy. I've done this on another Win 10 (Pro) box ...
Jim Mack's user avatar
  • 1,144
0 votes
1 answer
130 views

How do I access a Visual Basic 6.0 file?

I got an old Visual Basic 6.0 program with various files that I was asked to try to fix in some way. I figured the easiest way is to re-write the code in a different language but I can’t do that ...
Alexandra Whitt's user avatar
2 votes
0 answers
79 views

error: Automation error. The system cannot find the file specified in vb6

I have an application in VB6 and need to create an object of a class that is part of another .dll (written in VB.NET). Now I am using the CreateObject() method (I am following the same logic used in ...
Kristina Tamaro's user avatar
0 votes
1 answer
85 views

Method or Data Member not found This is my code

I'm stuck on this problem and I could really use some help finding where I went wrong. I've checked my work a dozen times, but I just can't seem to spot the mistake. Any ideas or suggestions would be ...
Russell Quero's user avatar
1 vote
0 answers
50 views

CommandButton in VB6

Good evening, in my project in vb6, I have 1 Product form, in it I have 2 command buttons, cmdNew and cmdSaves, cmdSaves is set to Enabled = False, how do I ensure that when I click on cmdNew it (...
Guilherme Pacheco's user avatar
1 vote
0 answers
38 views

I need to cut/copy/paste many files with longer than MAX_PATH filenames using clipboard, unicode aware. Language is VB6, and environment is Win10 x64

I did some code to copy/paste files into clipboard and is working well, filenames exceeding MAX_PATH. I am using prepend ("\?") probably does not matter for the clipboard anyway. Declares: ...
addysoftware's user avatar
1 vote
0 answers
29 views

Printer RightToLeft

I have 2 PCs and 1 Printer First PC has Windows 7 Ultimate 64 Bit Second PC has Windows 7 Ultimate 32 Bit (+Visual Studio 6 Installed) My Printer is: HP LaserJet P2035 (It directly connected to the ...
Mojtaba Bakhshi's user avatar
1 vote
0 answers
75 views

Is it possible to call a VB6 form from a .NET application?

I have the following situation, one legacy (vb6) application that is currently beeing migrated to windows forms. This second solution has already many forms migrated but I would like to know if it is ...
Blyatus's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
724