Newest 'vb6' Questions - Stack Overflow

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.

1
vote
1answer
36 views

Invalid Object name error but table found in schema?

I'm using ADODB connections to connect to a database which none of my other colleagues understand how to connect to. So far I've got as far as being able to see all the available tables via 2 methods: ...
0
votes
0answers
22 views

VB6 can't CreateObject(“CrystalRuntime.Application”)

This VB6 code (Crystal Report 10) seemed to work before Dim CR As CRAXDRT.Application Set CR = CreateObject("CrystalRuntime.Application") It now does an Error 13 A workaround is Dim CR As New ...
1
vote
1answer
38 views

Get Computer Model witn WMIC

I'm, unable to retrieve the PC model in VB6, the property I request from the query returns empty. I try to emulate the result of this CMD command. wmic computersystem get model This is the code I ...
0
votes
0answers
40 views

Is there a way to implement an event like “BeforeSelect” in the treeview?

Consider a TreeView control containing multiple nodes. On selecting a node, certain information is displayed on a text box. This information can be modified and saved. Accidentally, if a user ...
1
vote
0answers
46 views

“Out of memory” error on Win10 64bit but not 32-bit? [RESOLVED]

I am using the code from Mark Bertenshaw's post: VB6 -- using POST & GET from URL and displaying in VB6 Form On 32 Bit development machine Mark's code works fine. But on my 64 Bit machine it ...
-1
votes
0answers
36 views

Class Name for Word in Office 365 for VB automation - ActiveX can't create object

I have a Visual Basic 6 app which uses COM automation to run Microsoft Word, then place it on a form in the app. This has worked fine for years. I have a new Win 10 PC, with VB6 installed, and Office ...
1
vote
1answer
28 views

After adding an existing module to a project, the members are not recognized

I have 2 VB6 projects. I've added some code from project A to project B that are very similar. I also added an existing bas module from project A to project B. This bas module contains the ...
1
vote
2answers
75 views

KeyDown procedure is throwing 2 compile errors

I get two types of Compile errors when trying to compile a form. It happens with any sub that includes the KeyDown procedures. The first error I get is "User-defined type not defined" The other ...
0
votes
0answers
40 views

using vb6 chilkat aws s3 fileupload. if fileName include character “]” return error 403

vb6 is in use success = http.S3_UploadFile (LocalPath, contentType, bucketName, objectName) In the above code, if objectName contains the string "]", 403 Forbidden error occurs. Is there a solution?...
-3
votes
0answers
26 views

Can I make a keyboard with visual basic 6? [closed]

Can I make a keyboard work to write in notepad example like the one in windows
-2
votes
1answer
43 views

convert vb 6 to javascript and graphics [closed]

I am trying to convert visual basic 6.0 to javascript and canvas. vb has a grapic command fillstyle to choose between solid fil or just the edges. I need the equivalent in javascript/canvas as ...
2
votes
2answers
82 views

.NET events not visible/working for use with vb6(vba)?

I have written an vb.net class which I want to make COM-visible for VB6. I have an old application which was developed in VB6, and I am in the process of rewrite it entirely for .net, but in the ...
1
vote
3answers
69 views

How Visual Basic 6 VB.Global.Load Sub works?

I have a problem: one of the forms in my project takes long time to load. Situation: With using debugger I go through code. When I reach row with Load frmTest (there is a specific form) it takes ...
0
votes
1answer
73 views

VB6 how to consume a VB.NET array of Objects?

I have a VB.NET Dll, registered as COM interoperability, that exposes something like this: Class Society with a: Property ListPersons As Person() This is the VB.NET Code: Public Class Society ...
1
vote
2answers
53 views

Is it possible to display a userform and executes a code bellow the .show method?

I want to display Userform2 from Userform1 then continue executing some code in Userform1 WITHOUT unloading Userform1 Private Sub CommandButton1_Click() UserForm2.Show x = 1 MsgBox x End Sub
1
vote
2answers
54 views

How to implement “CanRaiseEvent” property in VB6?

Reference Link to "CanRaiseEvent" property: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.canraiseevents?view=netframework-4.8#System_Windows_Forms_Control_CanRaiseEvents ...
0
votes
1answer
49 views

What does IIS 7.5 need to run my vb6 32bit DLL?

I have a DLL (written in VB6) that is registered and works in a VB6 exe just fine. But on the same machine when I attempt to create the server object in CLASSIC ASP, IIS7.5 just hangs on that. ... ...
2
votes
3answers
65 views

Converting VB6 varables to C#

I am converting old VB6 code and am having an issue with these constants: VB6 code: Private Const GENERIC_WRITE = &H40000000 Private Const GENERIC_READ = &H80000000 C# code: private const ...
-1
votes
0answers
50 views

Dll injection replace string in memory

I would to inject my dll into all processby AppInit_DLLs registery key I process i need to change my string with an string into process that use some dll files our target could be .net or native ...
0
votes
0answers
63 views

How to find the filesystem path to a USB-connected device?

I want to copy files from the phone to the hard disk (by Visual basic 6.0). The phone is connected as a USB device. I don't know what is the path of the phone ... It is not a letter like the hard ...
0
votes
0answers
44 views

Version of Xtreme Codejock OCX

I have a program that uses Xtreme Codejock libraries. My program is in VB6 and I am using 17.3 version for Codejock libraries OCX. The problem is to install my program in another computer with ...
7
votes
0answers
161 views

How can I get a _raw stream_ of bytes being stored in a database?

I have the following database, written in some variant of MS Access (it's an MDB file -- UNIX file confirms this) I'm trying to read the contents of from Javascript in Windows. Though, really, any ...
3
votes
0answers
41 views

How to get the default redirected printer

I do remote connection in a terminal server. Include printer as my local resources. Then at Device Settings, I set the default as the redirected printer. Dim pr As Printer MsgBox Printer.DeviceName '-...
0
votes
0answers
64 views

VB6 XmlHttp.send STRING is not working. Fixed using Cstr(String). Help to understand

I am using Visual Basic 6 for an old video game and I am implementing an API written in Node.js. (http://www.argentumonline.org) Anyway this is my function Public Sub ...
-3
votes
0answers
60 views

Instr vs. InstrB

What is difference between Instr and InstrB? I do not see any difference (or isn't), if you look at the Object Browser (F2). Function InStr([Start], [String1], [String2], [Compare As VbCompareMethod ...
4
votes
1answer
44 views

How to start the On-screen keyboard program from within a VB-6 legacy application

I am trying to 'shell osk.exe' from within my VB-6 application on a Windows 10-32 or Windows 10-64 bit machine. In the past we have simply used : Private Sub Command1_Click() Dim strTemp As String ...
2
votes
0answers
28 views

How do I print multiple ioComp Plotx plots to a Nova PDF 'printer'?

I am trying to print the images from the ioComp iPlotX object to a PDF printer. This object has iPlotX.SaveToBitmap, which does work and I can 'send' the file to the PDF printer, but the image is ...
-2
votes
1answer
41 views

How to join textbox from other form to a datagrid in other form

basically what im tryin is making a log in page that is connected to a database, so in the next form im tryin to show the person info that enter their id (same database) using a datagrid. so how do i ...
0
votes
1answer
31 views

Storing extra value for cells on iGrid 4

In one of my apps I'm still using the very old iGrid OCX version 4. Upgradig to iGrid 6 is currently not an option for me. I've desperately tried to find any way to store 2 extra strings in a Cell. ...
1
vote
0answers
60 views

Writing to a text file, RTL strings are corrupted?

I'm trying to write an array of strings/numbers to a text file from VBA. It works well but when there are some RTL strings (Hebrew) the proper order of the strings in the text file seems reversed/...
2
votes
1answer
108 views

What happened to the VB6 APIViewer?

I am trying to get knowledge of some of the WinAPI's in vb.net, but can't find the tool that used to exist for vb6, API Viewer. Does VS2015 happen to come with something easier? Is there a similar ...
-1
votes
0answers
26 views

.where is error that Im not seeing for object required? vb6

Im new to vb6.0 and been pulling my hair of finding the error. Please noted that just been trying programming this past few month for my little project. it seems ive encountered a run time error 424 ...
0
votes
0answers
24 views

Consume java web services in vb6 using winsock

I am sending data to webservice but it is getting failed with out of memory. So, is there any possibility to send data in chunks to the web service. Can I use winsock to consume webservice and upload ...
1
vote
2answers
90 views

Reading and writing to serial port using FTDI D2XX drivers with Visual Basic 6

I am trying to establish a connection and read data from a virtual COM port using VB6, following on from my query here: Baud rate limits in software and serial communication with an external device . ...
0
votes
0answers
40 views

Printing all keybored probabilities on listbox within form

first please take a look on the attached project for better understanding . click here to download view image here you may download the project and play around, although its not working as ...
0
votes
0answers
45 views

Sxs(manifest) with VB6 application

We try migrate our vb6 project to use sxs tehnology ....but have problem with dynamic add control to form (VBControlExtender ). Problem is when add control to form with "Controls.Add" got instance ...
0
votes
1answer
29 views

domdocument throws error as “user-defined type not defined” in vb6.0 windows 10, i referred the xml 6.0 in my project

In VB 6.0 (Windows 10) I am facing compile time error at DOMDocument: User-defined type not defined The same code compiled in XP. I need to know the reason and fix for this issue. Friend Sub Load(...
2
votes
0answers
69 views

Debugging on an end-user PC?

A user that works in my company has an Error 13 Type mismatch in the moment that she wants to input some data in a grid. The thing is that when she has that problem, my application only shows the ...
0
votes
1answer
83 views

Convert byte array to picture (c# => VB6)

I have the following code in C# that converts a given byte array (FF 3C FF ...etc) to a Bitmap. Can you help me to get the VB6 version of this code? I have already tried the methods in here: base64 ...
1
vote
1answer
59 views

How to fix Run Time Error '7' Out of memory in visual basic 6?

I am trying to ZIP a folder with sub folders and files in vb6. For that I read each file and store them one by one in byte array using Redim Preserve. But large folders having size larger than 130MB ...
0
votes
0answers
37 views

VB6 and windows 10 screen blinking

I am setting up the exe. of vb6 in windows 10, the application always blink when opened, does anyone have an idea about this issue?
3
votes
1answer
75 views

How to pass a char parameter to a C DLL from a VB6 application?

I am trying to call a C function in my VB6 application. The problem is that that function takes simple char as a parameter. Not char array pointer (char *) but regular char. This is how it is ...
0
votes
0answers
27 views

Using VBControlExtender with manifest results in error 438 (doesn't support this property or method)?

I use vb6 dll/ocx without registration, using manifest file. 90% of application working ok, but one part who using VBControlExtender not working. Dim oRegion as VBControlExtender  Set oRegion....
0
votes
0answers
39 views

'Out of memory' when sending HTTP Post in multiple parts?

I am trying to upload a file with 400MB size but it is throwing error as "Out of Memory". So I want to upload a file by sending input stream in multiple parts. I have tried many ways but no luck. I ...
2
votes
0answers
86 views

COM Visible Assembly - Object method not accessible through its exposed interface method

I implemented a .NET DLL with COM visibility (VB.NET): Public Class Processer Implements IProcesser Public Sub processASpecificThing(ByVal param As String) _ Implements IProcesser....
0
votes
0answers
26 views

How to prevent the application redirects the background application when click on a certain button in the user interface

I am maintaining an Add In to Microsoft office word application using VB6. There is a main dialog and a sub dialog. The Main dialog is loading after clicking on a button in the MS Word Ribbon bar. ...
4
votes
0answers
99 views

What is the significance of the value “6.37066138261923E-314” in VB?

I keep seeing references to a specific value in vb code I am looking at, and wondered if anyone has any clues as to the significance. var_ret_1 = Int((6.37066138261923E-314 / 32)) and loc_0046BBAE: ...
1
vote
0answers
59 views

ReDim Byte array - “Out of memory” error?

When I try to initialize(ReDim) Byte array with long data type then I am getting Run-time error : Out of memory exception. I have tried many ways but still no luck. It is Throwing Out of memory error ...
1
vote
0answers
26 views

Am I implemented Single diode model correctly?

I need to confirm if I have translated the following equation (image below) correctly to programmatic code format (Visual Basic 6). It is an equation for the 1 diode model of a PV solar cell. (...
0
votes
0answers
31 views

VB6 Missing DLL error when passing Excel object to function on some machines but works if not passed. why?

I can't figure out why some users (but not all) are seeing errors if I pass Excel to another function or sub with VB6. This fails for some but not all. They get missing DLL or interface not ...