vb6

Create keyboard short-cuts for Toolbar Control in VB6

Hi everyone, In my VB6 project, I'm using only Toolbar Control in main MDI From (Not menubar), The Toolbar has big pictures denoting actions like New, Save, View, Help etc. I wanted to know if there is any way to create keyboard short-cut for these actions. As far as I know, properties of Toolbar control of MS Windows Common Controls 6....

Invalid procedure calling .NET DLL method via COM in Classic ASP

Hi, When I try to run some VB6 code, I get the following error: Microsoft VBScript runtime error: Invalid procedure call or argument: 'stx.ResolveAddress' However, in the code below, if I do NOT set the return to "stx.ResolveAddress" to a variable, I do NOT get the above error. Set stx = CreateObject("MyApp.Api.Wse3.STxTransactionS...

What are the Command Line options for the VB6 IDE (Compiler)

I'm doing batch compiling and need to specific the output directory. ...

Creating Access 97 format Database

Most of the example codes on the internet use either access97 or 2000 format database.In a database creation code it was mentioned that if Jet OLEDB:Engine Type=4 is used the database created is access 97 format and if Type=5 than access 2000 format.But when i create a database with code using type=4 or even with the visual data manager,...

return false in vb

if anyone knows plz reply ...

the advertisement dialog appears when Using Vs Elastic control provided by video soft in vb6

Hi, I am using a Video Soft Vs Elastic control and now when ever my application runs this dialog appears promoting video soft and after that my application loads. how do i get rid of it ...

VB6 not desired result reading c:\test.txt

I start out with text103.text having a text value of what I want to check C:\test.txt for. So if whatever's in text103.text matches up with whatever's in C:\test.txt label3.caption should read "success" yet every time I run it, I get "failure" why?? So here's the code in my button: Private Sub Command1_Click() nFileNum = FreeFi...

VB6 WIA Module-Automation Error

I'm trying to use WIA in an older VB6 program running in Windows 7 and when I run from source everything works great and I can import images. When I run from the compiled version I get the following error: Automation error. The specified module could not be found. (Error number 2147024770) I found the wiaaut.dll in both system32 and ...

VB6 base64 Binary

Hi, I have a problem on this webservice: http://credenciados.pronto.com.br/carga.asmx?op=IncluirMultimidia2 on arrayArquivo parameter, i use this function to generate data: Private Function getBase64fromFile(Filename) As String Dim base64 As New cls64base Dim FileInputData() As Byte Open Filename For Binary As #1 FileI...

change stored date format in database

How do I change the format in which the date is stored in a database from mm/dd/yyyy to dd/mm/yyyy? As the MSHFlexGrid reads data directly from the database, its source, need to store the Date in dd/mm/yyyy format.There is no problem in reading mm/dd/yyyy in textbox as dd/mm/yyyy.Please Help! ...

Prevent opening multiple instance of VB application

Hi everyone, I'm working on VB6 application, which is connected to MS Access database, so I don't want to allow user to open multiple instances of my application as this will create conflicts & alter connected database. Also, if user tries to open another instance, the currently running instance must be focused. How can I attain this? ...

Windows 7 - UAC - VB6 - Text File Can't Be "Seen" By Application

We've got a VB6 application that reads a simple text file with a .LIC file extension. When everything is working correctly, if the file exists in the same directory as the executable, it reads it. If not, it does other stuff. I've got a customer with Windows 7 machines, and if he right-clicks the EXE and "Runs as Administrator" it "sees...

Help with MS Access and SQL Server 2008

Hi, I need somebody to point me to the right direction, I have a MS Access DB that is updated by HP devices, and I have to sync it with the SQL Server 2008. I have a few Ideas, and I would like to know what do you think about this: Is there anything like triggers on access? if so can I comunicate with a SQL Server? Is there any way to...

Office web component 11 - ActiveX component cant create object

I have an classic ASP application which calls a VB6 activeX dll component. The DLL uses Office web component(v11.0) to create spread sheet. I'm getting an error when i try to create an instance of OWC11 Spread sheet. Dim oSS As OWC11.Spreadsheet Set oSS = New OWC11.Spreadsheet -- ActiveX component can't create object(error id 429) T...

Unable to install vbAccelerator Keyboard Hook DLL with VB6 in Windows 7

Hi everyone, My VB6 project requires keyboard short-cuts for toolbar control in its MDI Form. For this, I used vbAccelerator Keyboard Hook with vbalHook6.dll found at vbAccelerator Hooks (thanks to Alex K for this suggestion), I'm getting Runtime Error '429', i.e. ActiveX Object Can't be created. I've referenced the required DLL with th...

Not found .txt file causing my program to crash

Im using VB6. In Form.Load I make the text found in C:\test.txt fill Text1.text. My problem is if the file C:\test.txt doesn't exist, my program just errors. How can I make it so that I get a MsgBox or other notification if the file is missing, instead of a program crash? (So that I can continue on with the program, but just be notifie...

Com DLL In VB6?

I have a class in an Excel file and my boss wants me to create that class into a COM DLL. I don't want to have him walk me through the entire process because he's quite busy. Can any of you point me in the right direction and help me out with this? ...

Launch CALC.EXE and retrieve value using VB6

Hello all, EDIT Just to clarify, there is no intent of putting this into production. Purely from a coding/automatiion standpoint, and ignoring the fact that there are modules out there to do calcuations, how would one go about with the following request? I'm interested in how VB6 can use APIs to interact with other programs. END E...

What differences are there between the frameworks that exist for unit testing vb6?

For my sins in a previous life I am currently faced with having to modify some legacy VB6 COM+ code. The client absolutely does not want us to upgrade this code to .NET so that is not an option in this case. I am uncomfortable touching this code without adding unit tests to it, but while I am experienced in using tools in the XUnit fa...

Application.Username VB6 Equivalent??

I can use Application.Username in Excel's VBA editor to return the username of the current user. What is the equivalent in VB6? ...