vb6

How to get all computer names on Ad-Hoc Network in VB 6?

I have a combobox and command button on my form. How do I populate the combobox with all of the computer names connected to an ad-hoc network? ...

using combo box search as you type with database

1) I am using the code of Search as you type combobox.The script works fine when records are selected from the combobox,but when I need to enter new I cannot enter.Especially If a name say Ramesha has already been entered in the database and I need to enter a name Ramesh, I am unable to do so.Please help me modify the code.I am using it ...

Sending E-Mail Via. SMTP Using VB6

I am needing to send an email using VB6 through SMTP that requires authentication (smtp.gmail.com). Any help would be much appreciated. ...

How do I detect my display's resolution in VB6?

I am using the following code: Private Sub Form_Load() ResWidth = Screen.Width \ Screen.TwipsPerPixelX ResHeight = Screen.Height \ Screen.TwipsPerPixelY ScreenRes = ResWidth & "x" & ResHeight MsgBox (ScreenRes) End Sub And several other similar codes I've googled for. The problem is, I always get a message box saying ...

Is there alternative menu control for VB6?

Hi, I don't like VB6 menu since it does not provide information about parent or child items. I would like to know if there are activeX menu controls which can be used in VB6 with more features? ...

Looking for a flexible alternative to the standard VB Msg Box

I'm looking for a flexible alternative to the standard Windows (VB) message box for us in VB6. I'd like features such as: 1. Non-modal (but always on top) 2. Timer (so that it disappears after X seconds) 3. Custom button names. (Instead of saying "do you want to quit? Click Yes" I can have "Quit" and "Continue" on the button names. I'v...

Calling C DLL from Visual Basic 6: Double data type not working

I'm passing a simple user-defined type (UDT) from Visual Basic 6 to a C DLL. It works fine, except for the double data type, which shows up as 0. C DLL: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> typedef struct _UserDefinedType { signed int Integer; unsigned char Byte; float Float...

how to display underoot character in my vb6 dialog box

Hi, I need to put a underoot symbol on dialog that i am creating in vb6 and i copy √ symbol from charactar map and when i paste it on the label in the dialog box a ? appears instead of the √ symbol. Any idea what should be done? Regards ...

Is this the "one in ten" time to rewrite?

I'm very much against rewriting an application if it can be avoided. I understand the rule that 9 times out of 10, it's better to refactor, but I'm in a situation where it might be the one time in ten, and I'm looking to find that line. The current situation is: I took over the maintenance of a VB6/SQL application. The total lines of...

Microsoft ActiveX Data Objects Error

I'm referencing the following dll in a VB6 dll I'm creating: Microsoft ActiveX Data Objects 2.8 Library After making the VB6 dll, it works fine, but on other people's computers, the following error pops up: Run-time error '429' ActiveX component can't create object I'm pretty sure this is related to the Microsoft ActiveX Data Objec...

Wscript.Shell Run doesn't work consistently

I'm trying to run the following bit of code in vb6 dll: Dim objWSShell As Object Set objWSShell = CreateObject("Wscript.Shell") objWSShell.Run strPath & "test.bat", 0, True The dll process gets hung up. The batch file will not run, no matter what its contents. I even tried an empty batch file and it still hung up. However, if I try...

Server unable to receive byte data smoothly in vb6

I have a sender, a message forwarder which sends fix sizes of byte data at a rate of 5 milliseconds per message to my receiving program written in vb6, when I run the message fowarder and my receiving program on one machine, there's no issue but when they run on separate machines, the receiving program starts to experience some abnormali...

Accessing VB6 Collection Item from VBScript embedded in HTML

Hi, i'm learning by practice. I was given an OCX file which according to who gave it to me was created using VB6 and I have the task of creating a user interface for it to test all the functionality that is described in a poorly written documentation file. On top of that I am not well-versed in VBScript but I've managed to dodge a few bu...

.gif image file in VB6.0

How to implement .gif image file in VB6.0 ...

VB6 cannot see interface with indexed property

I've created a simple type library with an interface which has an indexed property in it: [ uuid(EAC3FABB-2A00-4A91-BF80-F0CE394A648F), dual, oleautomation ] interface MyInterface1: IDispatch { [propget, id(0x000000C9)] HRESULT _stdcall Property1([in] VARIANT Index, [out, retval] short* Value); [propput, id(0x000000C9)] HR...

Run-time error '429'

I have developed an inventory management software using VB6. and i have copied it on Client's machine and it was working. but 3 days before they formatted the system and now i copied the software again an i tried to run the application. but i got the following error message Run-time error '429': ActiveX component can't create objec...

Translating overhead digit in UPC barcode

I've inherited the source to a legacy VB6 barcode library with no documentation. My understanding is it translates an 11-digit number to UPC barcode (I hope I have that right, it might be EAN-8). As far as I can tell, the check digit (right-most trailing number) is calculating correctly, buy the overhead digit (left-most leading number)...

convert c++ to vb6

Hello, I basically have a script in c++, and want to convert it to vb6. The help i need is something like this dim SomeString as String '--> what is the c++ equivalent #include<stdio.h> '// what is the vb6 equivalent #define MAX_BUF_SIZE 1024 if i can get a syntax comparison sheet sort of that compares very well, i'ld be ok thanks ...

vb6 portable compile

hello, I have heard about portable applications, i like to make some of my utility application portable. Does any one know if it it possible to make an app developed in vb6 portable. I plan on replacing most controls with usercontrols, thereby no need for most MS activex controls except the runtime files. any ideas? [EDIT] When i me...

How to best convert VB6 "Select Case 1067 To 2938..." to C#?

I'm converting some VB6 logic to C# and have encountered the following SELECT/CASE statement. Select Case ZipCode Case 1067 To 19417, 35075 To 35085, 48455 To 48465, 55583 To 55596, 67480 To 67551, 75392, 85126, _ 93047 To 93059, 21217 To 21739, 35091 To 35096, 48480, 55606 To 55779, 67655 To 67707, 76726 To 76835, _ 85221 To 87...