vb6

What does "Method '~' of object '~' failed" mean?

I'm trying to run a legacy VB6 application on my desktop (it doesn't have a user interface, being a command-line app), and when I do, I get a message box saying Run-time error '4099': Method '~' of object '~' failed This means nothing to me; does anyone have an idea what is going wrong? ...

Vb6 / Crystal reports 8.5: how to use a subreport within one main report? How to link data?

Hi could you please help me on putting a subreport within a main designed report and link data between them? Thanks ...

VB6: Colour portions of points of a star

Hello I have found API functions to draw a star using VB6: what I need is to colour sections of each point of the star according to data-driven parameters: thus if the parameter passed is 1, I want to colour the part of the selected star point red up to 1/10th of its length measured from the circunference of the circle around which the ...

Disabling Quick Access Tool using DSoFramer

Hi I am uisng DSo Framer Control within VB6 to display Office documents When opening an Excel document, the Quick Access tool bar is visisble at the top of the document How can I disable this Quick Access toolbar programmatically? so they are not shown in the embedded DSO Framer control Thanks ...

Using MSMQ - System.Messaging versus WCF

I have to port a VB 6.0 app to VB.Net (Framework 3.5). The application uses MSMQ heavily. I'm trying to figure out what are the advantages of using WCF over good ole System.Messaging. Are there any potential showstoppers when going with System.Messaging? ...

Write to clipboard

VB6: I am able to write to clipboard using Clipboard.SetText. But I want to write in steps. Like first String1. Then append String2 after String1. Is there any way to do that? ...

How to split an RTF file into lines?

I am trying to split an RTF file into lines (in my code) and I am not quite getting it right, mostly because I am not really grokking the entirety of the RTF format. It seems that lines can be split by \par or \pard or \par\pard or any number of fun combinations. I am looking for a piece of code that splits the file into lines in any l...

Build Machine Configuration Recommendations?

We have a new build machine to start using for our programming team. We are still trying to figure out how we want to organize everything to get the best configuration for building EXEs and DLLs. We are using VB6 and VB.Net 2005, and VSS2005. We were thinking of making working folders set for each project, release and support tickets. ...

VB6 - Is it possible to create a full path directory?

Hi, I want to to create a full path directory, like "C:\temp1\temp2\temp2" without having to make multiple "MakeDir", for each directory. Is this possible? Is there any reference that I can add to my project that has this kind of function? Thanks ...

What kind of VB6 file generates a data report?

Please, I would like to know what kind of vb6 or vb file generates DataReport. For example vb calender is generated by MSCAL.OCX, vb dataGrid is generated by MSDATGRD.OCX, CommonDialog is generated by COMDLG32.OCX, ms data report designer v6.0 is generated by MSDBRPT.DLL ...

Declaration of Scripting.Folder in VB6.0

To find delete folder, in my code in use a varaiable with the following declaration "Dim Folder as Folder". It was working fine for years. But suddenly when exceuting the line "Set folder = fso.GetFolder(strParamPath)" it gives "Type mismatch" I dont know why suddenly this error has come. So I changed the declaration to "Dim Folder as Sc...

msdxm.ocx and duration issues

This is a VB6 question. How does Windows Media Player compute duration? Is it possible to detect corrupt media files and do not compute duration on these? I sometimes get duration = 0, why does that happen? Thanks :) ...

Obtaining an inserted recordid on Oracle db

I'm using Oracle on database server, from an XP client, using VB6 and ADO. In one transaction, I'm inserting one record into a parent table, which has a trigger and sequence to create a unique recordid, then that recordid is used for the relationship to a child table for a variable number of inserts to the child table. For performance,...

How to give the dtpicker date – 1?

Now using VS 2008 Before I used VB 6, now I Upgraded to VB 2008. VB6 Code sdate = DateToString(dtpicker1 - 1) edate = DateToString(dtpicker2) Above code is working fine. After Upgraded to VB 2008 sdate = DateToString(dtpicker1._Value) edate = DateToString(dtpicker2._Value) If I Put sdate = DateToString(dtpicker1._Value - 1) ...

How can I setup the VB project?

Using VB6 I want to setup the Project, Last time I used VB 6 Package and Deployment wizard. It asks to modify some system file. I modified my system file, and then it worked. Now again I want to setup my new project, is asking to change the system file. Once I set up the project, is asking to change the system file and crystal report...

Creating ActiveX dll in vb6

Hi, We are currently working on creating an ActiveX dll for migrating our existing xlt template file. For this we tried creating an ActiveX dll in VB6. We were successful in creating the Add-Ins but we are facing a serious issue. The AddinInstance_OnConnection is being called indefinitely leading to creation of multiple excel objects. A...

How to display a particular drive, when the open dialogs not find the previously selected path?

USING VB 6 My code. CommonDialog1.DialogTitle = "Open File" CommonDialog1.Filter = "Database (1.mdb) |1.mdb" CommonDialog1.FilterIndex = 1 CommonDialog1.Flags = cdlOFNFileMustExist + cdlOFNHideReadOnly CommonDialog1.CancelError = True On Error Resume Next CommonDialog1.ShowOpen If Err Then MsgBox "Select Database" Exit Sub En...

Visual Basic 6 Image conversion from GIF to JPG or TIF

Hi, Language Visual Basic 6. I want to know if there is an open source or existing Microsoft Image library that will allow me to convert a GIF (8 Bit Depth) image to either one of the following: JPG, TIF. I am currently using Imaging for Windows V2.7 API. I only found recently it does't support all the GIF type images. I found that ...

Splitter Controls for VB 6.0

I need a good splitter control for my project. Does any one have one? ...

API Design: How should distinct classes of errors be handled from an asynchronous XMLHTTP call?

I have a legacy VB6 application that needs to make asynchronous calls to a web service. The web service provides a search method allows end-users to query a central database and view the results from within the application. I'm using the MSXML2.XMLHTTP to make the requests, and have written a SearchWebService class that encapsulates the ...