Hi all,
I'm working on a VB6 application that is used by over a hundred users. It generates a Word document, then saves a TIFF image of the document in a database. Currently, it simply sets the printer to Microsoft Office Document Image Writer, "prints" the document to a set location, then imports the resulting TIFF file into the data...
Hi Guys,
I'm new to VB6 but i'm currently in charge of maintaining a horror of editor like tool with plenty of forms, classes, modules and 3rd party tools all chunk together like the skin faces on that guy in the texas chainsaw massacre...
What i don't understand is why i get different results when i run the app in debugging mode, vs wh...
I need to get elevated credentials (to start a service) in a VB6 application, but only if the user needs to restart the service (I.e. I don't want to get elevated credentials whenever the application is started, only when the user selects restart). How can I do this in VB6?
...
Is it possible to remotely debug a process started outside VB6?
The application is a VB6 application with quite a few dll/ocx resources. I am attempting to setup a ClickOnce deployment, using Registration-Free COM, of the VB6 app but have been getting errors when it executes.
My understanding of the way that VB6 redirects COM registera...
According to the documentation in VB6 the Mid function returns a variant, but Mid$ returns a string and apparently this is more efficient.
My questions are :
What simple test can I use to discern the difference in performance ? I tried looking
at simple app which did a few string operations, with Perfmon, but there was no
discerni...
I'm thinking of rewriting a brand new VB.NET application in VB 6.
The application runs under terminal services and makes heavy use of COM.
For some reason, there is random weirdness with the application -
Random Access Violation errors (WinDbg exception analysis points into dll's like comdlg32.dll, mscorwks)
Random Buffer Overflow er...
I have a table in SQLite:
CREATE TABLE "EventType"
(
[EventTypeID] INTEGER PRIMARY KEY,
[EventTypeName] VARCHAR(50) NOT NULL UNIQUE
);
Since EventTypeID is an integer and a primary key, that automatically makes it an auto-incrementing column, and that works fine.
I'd like to insert a row into the table and get the newly incremented...
I frequently encounter this situation in my VB6 applications
Private Sub DoSomething
On Error Goto err1
Call ProcessLargeBatch1
Call ProcessLargeBatch2
'... more ...'
Exit Sub
err1:
Call Cleanup 'Specific for DoSomething'
Call HandleError 'General error handling: Logging, message box, ...'
End Sub
The Cleanup proced...
I want to download multiple files (mostly images) from VB6 application. presently i m using URLDownloadToFile but it allows only one file at a time and there is no progress bar. I want to download multiple files and with progress bar. please help. thanks in advance.
my present code:
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0...
Is there a format string (?) I can pass to the VB6 Format function that will perform digit grouping? I want to replace the question mark in this statement...
Debug.Print Format(123456789, "?")
...with a string that will generate the following output:
123,456,789
The predefined format string "Standard" comes close, but it tacks a d...
I have some customers who want to use our speech therapy software in Hebrew.
The programs are in VB6. The best option I'm aware of are:
use the Forms 2.0 controls from MS Office, but you can't distribute them.
http://www.hexagora.com/en_dw_unictrl.asp $899
http://www.iconico.com/UniToolbox/ $499
Any other options?
...
I have a VB6 application that I don't have source code. This application uses third-party ActiveX controls. I want to automate these ActiveX controls. Is it possible to get the IUnknowns or Object references? For some of these, I can get the underlying HWNDs, but from what I can tell there isn't a generic way to convert these HWNDs to th...
I'd like to store the contents of a data structure, a few arrays, and a dozen or so variables in a file that can be saved and reloaded by my software as well as optionally edited in a text editor by a user reloaded. For the text editing, I need the data to be clearly labeled, like in a good ole .ini file:
AbsMaxVoltage = 17.5
There's ...
I have a feel the answer to this is going to be "not possible", but I'll give it a shot...
I am in the unenviable position of modifying a legacy VB6 app with some enhancements. Converting to a smarter language isn't an option.
The app relies on a large collection of user defined types to move data around. I would like to define a commo...
I'm expecting a ByRef Argument Type Mismatch at compile time but I'm not getting it. It's compiling without errors and failing at runtime with error 13, "Type mismatch".
It's a fairly simple to reproduce.
dim c as Car
Set c = New Car
Sail c
...
Public Sub Sail(ByRef b As Boat)
...
End Sub
Car does not inherit from Boat
Is th...
Hi,
Does anyone know if VB6 IDE has the ability to run pre-build events prior to making and compiling the code (this is for creating a .vb file from a template file for subversion revision numbers to be compiled into the code using SubWCRev.exe).
Thanks
...
I need to display 45.556 as 45.55 what is the format i need to use in true dbgrid pro 7.0.
...
Hi there.
I have a VB6 application which works with datetime values in SQL Server (which are obviously storing dates as mm/dd/yyyy).
I need to represent these dates to the user as dd/mm/yyyy, read them in as dd/mm/yyyy, and then store them back into the database as the standard mm/dd/yyyy.
This is the current code snippets I have whic...
I work on a vb6 application which is having problems with Vista, for the obvious reasons (writing to program files, and other things that are no longer allowed by default).
Where should I store application data or user's saved files?
Do I need priviledges to create folders and files, there, too?
What other common actions will cause pro...
We have a program that the installer checks for the existence of a config file, and if it exists, it doesn't copy that file over (it assumes the user has modified their config file and wants to keep those modifications). Unfortunately, this is a pre-Vista application and it keeps the config file in Program Files. The problem is, if you...