vb6

Consume a "WCF Service" in "Classical ASP" respectively in VB6

Is there a simple way to consume a WCF Service from Classical ASP respectively in VB6 ? Is it possible to provide a WCF Service as a COM+ Service (component) ? ...

Is it possible to simultaneously debug VB6 and a C++ COM dll?

I have a VB6 dll that is loaded by a VB6 frontend. This VB6 dll calls a C++ ATL dll via its COM interface. So, I can run from code in VB6 and I can debug in C++ also, however I can't seem to step through the VB6 code and then get into the C++ code. I feel that this should be possible. Currently I am doing the following steps Start VB6 ...

How can I set the Regional Options in a Visual Basic 6.0 Application?

I have a VB6's Application that is in production environment right now, this application is reading the pc's Regional Settings; but now, I need to set another Regional Settings for the application without change the pc's settings. How can I set the new Regional Settings globally with the lowest impact? Is there any configuration method...

Brackets around Stored Procedure in ADODB Command Text

Help me understand why this is happening! I use the ADODB.Command object. The Command Text is set to the Stored Procedure Name. Sometimes, if I DON'T add brackets around the stored procedure name, I get a Syntax Error or Access Violation error. Sometimes, if I DO add brackets around the stored procedure name, I get a Syntax Error or ...

In Java I use "import", in C# I use "using", in VB6 what I should use?

For example, I write a method: Private Sub Command1_Click() Dim dom As New DOMDocument Dim http As New XMLHTTP Dim strRet As String If Not dom.Load("c:\voucher.xml") Then MsgBox "文件不存在" http.Open "Post", "http://172.31.132.173/u8eai/import.asp", True '指定服务器ASP http.send dom.xml '把xml数据发送服务器端 strRet = http.responseText ' En...

ActiveX Control with included Form

I'm try develop an ActiveX Control in VB6. It have one UserControl and one form. And the problem that i can't call usercontrol function's (even public) from this form. I can't type something like UserControl.DoSomething 'not working It work's only if create copy of usercontrol (UserControl1, for example). But in resulting i need one o...

Use SAP Connector for .NET in VB6

Is it possible to use the SAP Connector for .NET in VB6 respectively can be used as COM-Component (COM-visible) or is it better to write a COM-visible wrapper, which hides everything of the connector ? I must access from an old vb6 application to SAP and don't want to use the SAP DCOM Connector. ...

.NET Com Interopability

I have a C# class X which inherits from class Y. Class X should be Com-Visible (should be used in an old Vb6 application). It is neccessary to use some Types of class Y in the VB6 application. How can I make them also COM-visible (without changing class Y) ? ...

Make only one row show after search. flexgrid vb6

So i have flexgrid in my vb6 project I'm working on. It has names on each row, and I have a drop down so the user can select what name they want to see more info for, here is what I have. Dim target_name As String Dim r As Integer ' Get the name. target_name = Combo1 If Len(target_name) = 0 Then Exit Sub ' Search for the name, skipp...

How can I list the properties of an object programmatically in VB6?

A friend of mine is working on a legacy VB6 project. I haven't touched that language in ten years, so I'm pretty rusty. Anyway, is there any kind of reflection API for VB6? Specifically, he needs a way to iterate the properties (and types) of a user-created Class. (In other words, not an external COM object, but an internal "Class Module...

How to automate response to msgbox

I am developing a C# application to automate the running of a legacy VBScript(vbs) file which calls several VB6 .exe files. The .exe files have message box pop-ups that I need to 'respond' to in order to allow the VBScript process to run unattended. The response would need to be the Enter key. I do not have the source for the .exe files ...

I get a error message from my vb6 program.

Private Sub Command1_Click() Dim dom As New DOMDocument Dim http As New XMLHTTP Dim strRet As String If Not dom.Load("c:\\CH.xml") Then MsgBox "文件不存在" http.Open "Post", "http://172.31.132.173/u8eai/import.asp", True '指定服务器ASP http.send dom.xml '把xml数据发送服务器端 strRet = http.responseText 'strRet:返回的xml格式的回执信息 MsgBox strRet En...

A drop down with a list of week beginings vb6

So I have a drop down box in my vb6 form, I was wondering if there was an easy way to have it display the dates for the week begining for the next 4 weeks. e.g. if it was running now it would have 19/4/2009 26/4/2009 3/5/2009 10/5/2009 ...

Intellisense not working in visual studio 6?

As I experienced a sudden nostalgic longing for the VB6 of old, I downloaded visual studio 6 from my msdn subscription. To revive my rusty knowledge I very much would like to have intellisense working, but it does not! Is this a known problem with VS6 on Windows 7? I do have the autocomplete option on in the Options menu. ...

Why does RecordSelectionFormula suddenly reject my formula?

I have a VB6 application using Crystal Reports XI. After almost two years suddenly I cannot set RecordSelectionFormula anymore. The error message says, that Basic syntax is not allowed in record selection formula. The formula is {article.id} = 1234. I've tripple checked that formula. It works fine in the Crystal Reports designer, bu...

Changing printer preference using vb6?

I am having a problem when my program is installed to another computer, where its printer preference is different, where my data report accepts Letter size 8.2 * 11 in, because when the printer preference is different the data report well not show and gives an error saying the page width is larger than paper width, does anyone know how t...

How to manage maintenance/bug-fix branches in Subversion when setup projects need to be built?

We have a suite of related products written in VB6, with some C# and VB.NET projects, and all the source is kept in a single Subversion repository. We haven't been using branches in Subversion (although we do tag releases now), and simply do all development in trunk, creating new releases when the trunk is stable enough. This causes no ...

Why the difference in speed?

Consider this code: function Foo(ds as OtherDLL.BaseObj) dim lngRowIndex as long dim lngColIndex as long for lngRowIndex = 1 to ubound(ds.Data, 2) for lngColIndex = 1 to ds.Columns.Count Debug.Print ds.Data(lngRowIndex, lngColIndex) next next end function OK, a little context. Parameter d...

In VB 6 debug mode, problem with dll

my vb6 app is not finding a dll that is residing in the same directory as the project. What do I do to have the vb6 code see the dll? When compiled to an exe, the code sees the dll if it is in the same dir as the exe. Thanks! ...

Moving the code written for oracle to ms access.

Hi all, what minimal changes needed in the code to change the connection from oracle to ms access in vb. before i was saving the records in oracle, but i want to change it to ms access what changes in the code is required. ...