vb6

can i use window application vb dll in .net webapplication

i am trying to use vb 6.0 dll which is for window application in .net webapplication so tell me can i use it if yes then please tell me how ...

Error connecting to linux server using batch file. Able to connect with Filezilla

I am trying to connect to a remote servre via FTP in my VB 6.0 application. I tried connecting to remote server using Inet but it gave status unknown error (code:120089). So I am trying to do this by batch file. I created a batch file as below:- open 192.168.1.3 22 root !@#%RedHat%)(* cd "/opt/test" put "C:\envars.exe" "envars....

Crstal Reports 8.5 and Temp Files

Scenario 1. Crystal Reports 8.5 2. Visual Studio 6 The above combination creates hundreds of .tmp files on drives and project directory folder on each time a project is compiled/run and I am sick of searching and deleting the temporary files. Is this some sort of misconfiguration? Does anybody know the secret of the .tmp files and how ...

How do I reference objects and methods in a COM .tlb file in VB6?

Background: We have a COM object written in C#. We are working with another company that has code written in VB6. We need to send them VB6 code that creates and calls objects/methods from our COM object. I created a .tlb file from the C# COM DLL file using RegAsm.exe provided by Microsoft. I then added this .tlb file as a reference in V...

What is the difference between Dim, Global, Public, and Private as Modular Field Access Modifiers?

In VB6/VBA, you can declare module-level variables outside of a specific Sub or Function method. I've used Private and Public before inside modules and understand them like so: Public - visible to all code inside the module and all code outside the module, essentially making it global. Private - visible only to code inside the module....

VB6 ActiveX Controls in a C#/ASP.NET Based Website

We have a website that is based on C# and ASP.NET, I have a barcode scanner with a .dll file to control it that I can get to work in VB6. Before I dig deeper in exactly how to do this I wanted a quick answer on if it is even possible to do what I want first. Can I write an activex control in VB6 that will allow me to control the barcode...

char array in visual basic 6.0

char [] chararray = txt1.Text; how we do the same in vb 6.0 ...

Is there an equivalent to RDO.OpenResultset in ADO ?

Hello, all is in the title :-) Some explanation : In order to use a vb6 with C# (COM / Interop) I have a performance issue with Data Access. I don't know why but the code is four times slower in C# via Interop. I'm trying to find a workaround and I would to replace the rdo by ADO to gain performance. old code (with rdo) : strSelect ...

Lookup function in VB6

Hi, I have a table in an excel file called " Employee_States_File".This table contains two columns Name and States. Both columns are filled with data. The province table contains abbreviation of the States such as " NE, WA" and so. I have another excel file called " States_File" which contains a table that has two columns: Abbreviation a...

.NET database calls slow when using COM Interop, fast via VB6

Hi, After searching couple of days (here and here), I believe I've found the problem and it seems identical to this one. However, I have captured two execution plans to compare it but, they seem to be identical except execution time. (The Database server is SQL SERVER 2000) The Query executed in VB6 : EventClass : SQL:BatchCompleted ...

which book i should prefer for vb6.

which book i should prefer for vb6. and from where i can download msdn for vb6. if any one know any link then please share it ...

How to define more one condition in a While

Hi, I would like something like that : While Not RdoRst.EOF And RdoRst(2) = "Foo" cboComboBox.AddItem RdoRst(1) cboComboBox.ItemData(cboComboBox.NewIndex) = RdoRst(0) RdoRst.MoveNext Wend I want that the expression 1 (Not RdoRst.EOF) is evaluated first. Then if it returns true, the expression 2 is evaluated t...

When will App.Path produce UNC notation?

Recently users of our VB6 app have encountered problems when trying to read files. It surfaced that the Dir function throws an error for non-existing shares instead of returning an empty string. My hunch is that previously the App.Path function returned "C:\Program Files\OurApp\ourapp.exe" but now it returns "\\MyComputer\C$\Program Fi...

Unspecific behavior of record set in vb6

Dear Expert i have the following problem when i try to get the value from the record set it showing error the query is SSql = "select doj,dol,employeeid from m_employee where employeeid='" & Trim(RsCardNo!Code) & "'" rsCardRepl.Open SSql, Conn, adOpenDynamic, adLockOptimistic If rsCardRepl.RecordCount > 0 Then Dim temp As In...

Why does my ReadFile call fail if it is not called within the same function as CreatePipe?

I'm having trouble using pipes in a larger application and so I created a minimal test application to investigate the problem. I'm creating a pipe: Dim sa As SECURITY_ATTRIBUTES Dim R As Long sa.nLength = Len(sa) sa.bInheritHandle = 1 R = CreatePipe(hRead, hWrite, sa, 0) //hRead declared globally Debug.Print "CreatePipe: " & R and t...

textbox validation in vb6 (disable paste option) .

validation on textbox in vb 6.0 i tried Private Sub Text1_KeyPress(KeyAscii As Integer) If Not (KeyAscii = vbKeyBack Or KeyAscii = vbKeyDelete Or KeyAscii = vbKeySpace Or (KeyAscii >= Asc("1") And KeyAscii <= Asc("9"))) Then KeyAscii = 0 End If but now i want that paste option should disable when i right click on tex...

How to get Router Name & IP as shown in Windows Network Tab? (in Code)

Basically, if you go to Start and click Computer and then click on the Network link on the left hand side, you'll notice on the right hand side several categories, one of which is titled "Network Infrustructure", in that category, my router is listed, and in my case, it is "LINKSYS WAG160N Wireless-N ADSL2+ Gateway" and when you right-cl...

Using InStr instead of And in If statement?

Instead of using AND in a long If statement, I'm using InStr to match a dynamic value to a known list. Like this: If InStr("John, George, Harry", personName) Then... Is this okay? Should I be using AND instead? Is there a better way? Thanks. ...

ReDim an Array Pointer VB6

Hi guys, I'm trying to ReDim a member object array from a different class. For example: Class1.cls Dim mStuffArray() As New clsStuff Property Get StuffArray() As clsStuff() StuffArray = mStuffArray End Property Class2.cls Private Sub Foo(ByRef pClass1 As Class1) Dim tStuffArray() As clsStuff tStuffArray = pClass1.Stuf...

How to call a C++ DLL from VB6 without going through COM?

OK, so I have a C++ project that compiles to a DLL file. I am able to reference this file in C# and see/use all of the objects and functions within the DLL file. What I need to do is to reference those objects and function through VB6. The C++ code has nothing in it that looks like it's creating a DLL. There are no '__declspec(dllexport...