vb6

Serial port programming

My requirement is to detect port no to which any communication device is connected also how we can add drivers of any communication device in package which can be installed along with installation of my package ...

Visual Basic 6 - Office Setup Configuration HELP

hi! i need help to fix my visual basic 6.0. When vb6 start ups, It shows some Microsoft Offices Setup configuration that shows at everytime. If i cancel, I can continue the VB6, But some of component always shows this installation setup again. When I restart the VB Program, The setup configuration also shows everytime... Any ideas to fi...

Replacement for Index in .NET

Heya, I've been out of doing proper programming for sometime, so as an exercise in trying to get some practice, I'm trying to make a program to solve Sudoku in C# (VS 2010) My problem occurs when I'm trying to create some form of initial grid for the data out of text boxes. Back when I used to use VB6, I could call all text boxes as a ...

VB6 sending email through Outlook 2003 no longer works in Windows 7?

This VB6 code worked fine in Windows XP with Outlook 2003. Function SendMail(EM_TO, Em_CC, EM_BCC, EM_Subject, EM_Body, _ EM_Attachment As String, Display As Boolean) Dim objOA As Outlook.Application Dim objMI As Outlook.MailItem Dim obgAtt As Outlook.Attachments Set objOA = New Outlook.Application Set objMI ...

How to save breakpoint in visual basic 6

How can I save my breakpoints in Visual Basic 6? Are there any add-ins? For now I have MZ-Tools, but unfortunately they don't save breakpoints. ...

Using vbAccelarator Win32 Hook crashes application along with VB IDE

Hello everyone, I'm working on VB6 project where I need to have keyboard short-cuts for Buttons on Toolbar Control. To accomplish this, I have used Win32 Hooks library from vbAccelerator. Here's my IWindowsHook_HookProc function, that I use to retrieve Key strokes & perform action based on pressed short-cut (Ctrl+N for New, Ctrl+O for O...

VB6 MSFlexGrid - ColPos of Merged Columns

I'm working with a MSFlexGrid control in VB6, but I'm also having some problems retrieving the ColPos property for merged columns. The grid that I've generated looks something like this: ----------------------------- | 8/17/2010 | ----------------------------- | Column 1 | Column 2 | ----------------------------- ...

VB6 application in background or invisible to end user

Hello All, I want to run my VB6 application in background or invisible to user. How can we achieve it? ...

COMException: Type mismatch when trying to access a COM method

I tried to access a COM method by using a code like obj.Do("text") while Do is a method in obj which takes a ref string as its input (obj is a .COM object, written in VB6). However it always throw a COMException type mismatch. I tried passing obj.Do(ref a) while a is a string variable but it didn't work either. The VB code looks like th...

Develop in Visual Basic 6

Hi everybody, My employer want to send me to a customer to develop an application in VB6 (not .NET). My last line of code in that language was 8 years ago when I was still a student. In my remember, the language was not very difficult to use. I have a good experience in C#.NET so I know POO and object concept. The project will start in...

Can not debug an ActiveX inside a VB6 project with several components inside

Hello, I have to debug a big application done in VB6. The application is comprised of a main EXE, some ActiveX projects and other ActiveX control projects. The problem I'm facing is that I cannot hit breakpoints inside some ActiveX projects. Looks like the application is using the OCX outside the debugger because the application runs b...

Automation error running .NET 2.0 application

We have a client who recieve this error when trying to run our .NET 2.0 application: System.IO.FileNotFoundException: Automation error The specified module could not be found. at xyz.getClass.Setup() The xyz module is a dll written in vb6.0 and should have been installed propertly. The application is running fine on houndrets of o...

How to make a program that automatically synchronizes

Hey i am hoping to write a program where the program automatically just copy pastes all my dad's documents from D:\office folder. So whenever I plug-in my pen-drive , the program silently copies all documents inside my pen-drive. Also all files should be pasted to a hidden folder in the pen-drive (so it remains private) . Synchronizatio...

Get/post to RESTful web service.

I need to do some GETing and POSTing to a RESTful web service from VB6. What is the best and simplest way to do that? ...

equivalent system.exit(1) java code to VB6

Possible Duplicate: System.exit(1) java, equivalent in VB Can anybody help in finding out what is the equivalent System.exit(1) Java, equivalent in VB6. ...

Insert Null value in ADO Recordset

Is it possible to insert a null value into a field using the AddNew method of an ADO Recordset in VB6? In a typcial INSERT query, you would simply use NULL; however, I've discovered that this doesn't work through ADO; it inserts "NULL" instead. Is there another way to insert a null value when adding a new record? ...

java capturing error from vb6

I need to capture error code and errros if possible from java. I am executing vb6Test.exe(its a VB6 app) from process Builder. I have used process.waitFor() also to wait and see if it executed successfully. When I execute it .exe blows up but in java I cannot see errors and error code returned is also 0. If I am right then the vb6.exe s...

Sybase Ase 15 error on multiple recordsets and active transaction

Hi all, we have very old VB6 applications connection to a Sybase database. Today they are running fine using the Open Client 12 drivers via ODBC connecting to a Syabse Ase 15 servers. There is a plan on upgrading to the OpenClient 15 drivers and with that version I'm getting this error: Run-time error '-2147467259(80004005)' Transactio...

Populate fields in VB6 executable from MS office VBA

Hi, I'm developing a VB6 standalone application that I'd like to be able to call from VBA modules running in Excel, Outlook, etc. Ideally, I'd like the VBA module to check whether the VB6 application is already running, if not, open it, then populate certain controls (textbox, listbox, etc) in the VB6 application with information from th...

Sending Entire SQL Query over Winsock?

Dear Friends Using vb.net Winsock Can we send SQL Query from Server to client? ...