vb6

How can I force VB6 to enter the debugger from the execution of a program without a break point?

I'm trying to watch the execution of a VB6 app and I'm running into an issue because once I enter the debugger and then hit Continue, it no longer lets me step through the code until I hit another break point. I want to be able to execute a program without stepping through something until I hit a point where I want to watch it execute....

Vb6: Selecting a file to later be used via a browse button

Here's my code (note that this was given by a friend): Private Sub Browse_Click() Dim textfile As String textfile = Space(255) GetFileNameFromBrowseW Me.hWnd, StrPtr(sSave), 255, StrPtr("c:\"), StrPtr("txt"), StrPtr("Apps (*.txt)" + Chr$(0) + "*.txt" + Chr$(0) + "All files (*.*)" + Chr$(0) + "*.*" + Chr$(0)), StrPt...

How do I call a Windows shell command using VB6?

How exactly using VB6 can I can call any Windows shell command as you would from the command-line? For example, something as trivial as: echo foo ...

vb6 How would I edit this to make the extension only count to 3 characters(string parsing)

Someone posted a great little function here the other day that separated the full path of a file into several parts that looked like this: Function BreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer If Full = "" Then BreakDown = False Exit Function End If If InStr(Full, "\") Then FName = Full PN...

Vb6: Separating Tab Delimited Text

I have a file with several thousand rows and several columns separated with tabs What I'd like to do is loop through each individually, Drop the columns into an array so that I can place them in another application individually, then move onto the next line. Unfortunately I got about as far as this: Open mytextfile.txt For Input As #Fi...

How do I get list of all filenames in a directory using VB6?

What is the simplest way in VB6 to loop through all the files in a specified folder directory and get their names? ...

VB 6: How can I execute a .bat file but wait until its done running before moving on?

Think the title says it all :) ...

Vb6 How do I make a Random String of 0-9 and a-z of x characters

Trying to create a random string, x characters in length using 0-9 and a-z/A-Z and can't seem to find a good example, any ideas? ...

Allow vertical scrolling in listbox, when it is disabled (VB6)

I need to allow the vertical scrollbar in a multiselect listbox (VB6) however, when the control is disabled, I can't scroll. I would think there is an API to allow this, but my favorite VB6 site (MVPS VB.NET) does not have a way. I toyed with pretending it was disabled, and ignore the clicks... but to do that with VB6 code is really ug...

Vb6: Need some help with a loop

So I have a loop that's supposed to do three things, go through a text file line by line, the text file contains pathnames and filenames(C:\Folder\file1.txt) If the line contains a certain string, it then copies a file to that location, renames it to what it is named in the text file, and then replaces a string within the copied file(sti...

VB6 How do I add a control at design time without using Drag 'n' Drop?

I'm attempting to create a Wizard type control in VB6 and have run into a stumbling block. I'd like to allow users of the control to be able to add and manage CWizardPage(s) to the design time control using a property page. The first approach I used was to add the Wizard pages to the OCX directly using a Collection, however I ran into ...

vb6 Open File For Append issue Path Not Found

Open App.Path & "\Folder\" & str(0) For Output Seems to get a path not found however if directly before that I do MsgBox App.Path & "\Folder\" & str(0) It Provides the correct directory/filename that I want and if I replace that string with the direct path in quotes it works fine however that won't be very good for other users of m...

How to call a Delphi DLL from VB6

Given the following Delphil DLL declaration function csd_HandleData(aBuf: PChar; aLen: integer): integer; stdcall; what would be the VB6 declaration to use it? I've tried a variety of declarations, e.g. Declare Function csd_HandleData Lib "chsdet.dll" (ByVal aBuf As String, ByVal aLen As Integer) Declare Function csd_HandleData Lib ...

How do I let a non-admin user instantiate objects from a VB6 ActiveX Exe ?

Question says it all really... I have tried changing the "Allow non-admin users to run this program" setting on the property pages, and have also given the non-admin user in question what looks like the correct privileges in Component Services -> DCOM Config. Is there anything else I can do ? This is on Server2003 BTW. Thanks Matt ...

COM+: How to Subscribe do IComMethodEvents with VB6

COM+: How to Subscribe do IComMethodEvents with VB6?? ...

Visual Basic 6 IDE syntax checker problem

The Visual Basic 6.0 IDE checks for syntax errors on-the-fly. Every time it finds a syntax error, it pops up an alert dialog. This feature is driving me crazy, as every time I try to cut and paste in the middle of typing a statement, I have to deal with this pop-up. Is there any way to disable this on-the-fly syntax checking? ...

How do I put source code into subfolders in VB6?

I have all the forms in one folder and all the code modules in an other folder in VB6. How do I create a better folder structure for the source files? For example if I have twenty forms and twenty code modules, how can I create subfolders Main, Sales, and Employees and put the source files under those subfolders? ...

what is the diff between dependencies and manually add a dll/ocx in vs installer 6?

i'm using vs installer to build a setup package for my vb6 app. and the problem is i can see that under the project explorer there's a list of dependencies attached to my exe file. and under the file system on target machine treeview, i can actually store the dll/ocx on a folder or in the windows system folder itself[the left window]....

VB6 Cast Expression

What is the cast expression equivalent of VB.NET's CType in Visual Basic 6? ...

where is my ActiveX DLL project template in VS 2005?

In VB6, ActiveX DLL is listed as a project template but in VS 2005+ there is no such thing. Where is my good old ActiveX DLL template? Many thanks in advance. ...