vb6

How do I use IE ocx on VB6

Hi guys, I'm using this EDIMAX IP Cam (IC-1520DP) which has a browser based administration. When I first login, It ask me to install an OCX (IPCamPluginMJPEG.ocx). Now I wanna use this OCX so I can have the camera displayed on a form in VB6, I can add a reference to the OCX and everything is fine but I can't initialize or use it at all ...

Winsock downloading files - vb6

Hi, I'm trying to use Winsock to download some files and save them. In my case, I have a MSHFlexGrid with 2 columns: one with URL and the other with the "path+filename" (where the file is going to be saved). I'm iterating through all rows calling the next function: Public Function DownloadSock(ArqURL As String, ArqDestino As String) As...

VB6 Outlook 2003 Client Application

Hi, I have a Visual Basic 6 application that uses a timer to poll Outlook 2003 for incoming messages using the msoutl.olb automation object library. Lets call the application MailPoler. Based on the messages certain operations gets performed blah blah... MailPoler runs "very smoothly" and I have ensured that the error handler captures...

Visual Basic 6 WSDL Soap Proxy

Hi, How would I go about generating Visual Basic 6 Proxy dll/tlb from a WSDL file? Similar to the WSDL2Java for java, but for Visual Basic. Thanks. ...

getting error on while inserting a single quotation values

Using SQL Server 2000 and VB6 Table1 EmpName1 Raja Rav'i Ramu'i Rajes'ih Table2 EmpName2 .... When I inserting table2.empname2 from table1.empname1, It inserted only raja, remaining rows was not inserted it showing error in '(single quotation) "Showing error as incorrect syntax near rav" vb6 code. INSERT INTO table2 (EmpNam...

Is there a way to control which tags get collapsed during serialization with MSXML6?

I create a MSXML6 DOM document and during serialization I want to control how empty elements are serialized: <tag></tag> <tag/> This answer describes a solution for C#, but I'm looking for something possible with the ActiveX interface of MSXML. (For VB6 or some scripting language) ...

Should you build components every time you build a main app

We have started using Final Builder to create builds for our vb6 and .net projects. We are also using Visual Source Safe to manage our source. Some of our vb6 exe's are dependent on certain ocx's, such that a particular vb6 exe may require a particular version of an ocx. The question is, should the final builder script for our exe proje...

Validate a remote schema (http) with include schemas and specific proxy server settings

Validate a remote schema (http) with include schemas and specific proxy server settings I can access the schemas on the other server via http, it resolves the include schemas (.xsd), no problem. I guess it uses the proxy server settings from Internet Explorer. However, for this to work on other machines I need to be able to specify th...

Is object clearing/array deallocation really necessary in VB6/VBA (Pros/Cons?)

Hello, A lot of what I have learned about VB I learned from using Static Code Analysis (Particularly Aivosto's Project Analyzer). And one one of things it checks for is whether or not you cleared all objects and arrays. I used to just do this blindly because PA said so. But now that I know a little bit more about the way VB releases res...

VB6 Get List of Active Directory Domains

Using VB6, is it possible to get a list of all available domains in active directory? Thanks, Alex ...

Why does toolbar icons in VB6 looks worst in quality when running as an EXE?

Hi, I have a toolbar in a VB6 editor program which has a 24*24 icons in 24bits color. I put in the photos in a res. resource file and load them into the program via loadImage. the problem is i can see the icon quality looks good running in debug mode but when i compile the program into an exe, there's a severe degradation going on. I h...

How to compare a date with system date?

Using SQL Server 2000 and VB6 Table1 ID Date 001 20090801 001 20090802 … 001 20090831 002 20090801 002 20090802 … 002 20090831 So on…, I want to compare a date with system date, suppose today date is 20090831, I want to display a message as “today is last day for 001” How to make a code in vb6 or is possible to make a query...

Windowless ActiveX controls are not supported

I have a C# .NET 2.0 application that loads legacy VB6 modules (which we have not converted yet) which are ActiveX controls (.ocx files) the application loads these from the main C# .NET form via interops. Since service pack 2 for .NET 2.0 our users have been getting random errors where the application will throw a "Windowless ActiveX c...

Log4net .Does it work in vb6 Interop to .net?

Hi I have some legacy application in vb6 and I am interoping into .net It all works fine in net alone but in vb6 it does not create the log. I cannot see what I am doing wrong. I have using log4net using config file and I have added the log4net configsection into C:\Program Files\Microsoft Visual Studio\vb6.exe.config has anybody got ...

What's the difference between the TrackPopupMenuEx and TrackPopupMenu windows APIs?

I read about these APIs in this webpage: http://www.ex-designz.net/apicat.asp?apicat=34 I tested TrackPopupMenuEx and TrackPopupMenu APIs and they do the same thing: displaying a menu at the cursor's position. The source codes are the same, you just have to add or erase the "Ex" at the end of the names of these APIs. Why two APIs for ...

Did I translate this correctly?

I'm sorry, I just need an extra set of eyes, I'm second guessing myself. I'm working on translating from classic vb6 to c# and I've looked up the table on operator precedence however I'm still not working out correctly. VB6 = _ m_curAmountInvested * (1 + m_dblInterestRate / 12) ^ m_intMonthsToAttain + _ m_curAddDeposits...

2 running programs vb6 and c# - transfer a simple string between them

Is there a good simple way to do this... it's just a simple string in c# i'd like to get over to an older vb6 app that will be rewritten later, don't need an extensive framework, just a quick and dirty, but reliable way to do this-- thanks! also, I can modify the vb6 code ...

Visual basic 6 general query

How can i avoid closing a form if by mistake cross is clicked ...

Visual Basic 6 form

How can I know that the form (other than the one I'm working upon) is open or closed? ...

SQL Server Connection String problem?

Using VB6, SQL Server 2000 I want to connect to others system database. Code: ConnectionString = "Provider=SQLOLEDB.1;" & _ "Persist Security Info=False; " & _ "User ID=" & SQL_Username & "; Password = " & SQL_Password & "; " & _ "Initial ...