We have a bunch of VB6 applications that access two different database servers (both 32-bit windows 2003, one SQL Server 2000, one SQL Server 2005). About every ten minutes or so, we are getting a few errors:
[Microsoft][ODBC SQL Server Driver]Timeout expired
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or acce...
I'd like to play mp3 files (b/c they compress smaller than .wav's) from a vb6 app but without needing any other player installed.
Any suggestions?
...
I am programming to generate keys in hexadecimal using different random function and write it in the text file. I have only two cmd buttons and status bar which displays the current time and the status of the process. Now on clicking the cmd button for keygeneration the form gets locked up and all the other activity is suspended that is ...
I have a legacy VB6 program which installs an Access file in a sub-directory of the common data folder (CSIDL_COMMON_APPDATA). I have now installed this program on a 64-bit Vista system, and the program works fine and accesses the file at C:\ProgramData\Wow\WowCat.mdb, but this file does not show in Windows Explorer.
I want to overwrite...
I have an application written in C#.Net (Framework 2.0 if it matters). It calls a VB6 exe that exposes a COM class with one method - that shows a form.
When the VB form is closed, I get a system error (Windows message): The memory location could not be read. Then, Windows asks me whether to close the application or debug it. It doesn't ...
Possible Duplicate:
ActiveX Print a web page
I am new in activex, i want to write a activex with vb6 or .net (vb or c# is ok), the activex can print the web page without prompt the print dialog, the web page is the activex resided in.
Now, I can write a activex in vb6, but cannot print a web page, I have tried many ways foun...
I have to convert some of my VB6 Code to C# , In my VB6 I am having code like
dim I as Long
I = Weekday(Now, vbFriday)
I want equivalent of the same in C#
Can any one Help ?
...
I have this If condition in VB6
If ( X AND ( 2 ^ Y)) Then
a = a + " 1"
Else
a = a + " 0"
I want the same equivalent in C#
I tried doing like
if ( X && ( 2 ^ Y)) // ERROR: && can not be used between int to int
a = a + "1";
else
a = a + "0";
but this thing is giving me an error.
Here is my complete VB code that I wan...
In the last 3-5 years I have been renewing an insurance application and a commmercial integration toolkit based on vb6.
According to Microsoft's "It just works policy" the IDE is no longer supported after april 8th 2008
It still works to develop and deploy vb 6 apps.
The question is: When will it be impossible to support vb6 applicatio...
How do you determine the length of a string of text in Arial Bold font, and then center it in VB6?
If not here, can you point me in a direction where I might be able to find this information?
We're not using a "label" or "picture box" do print the text to the screen. We are sizing the text on the fly, and allowing the user to scale the...
I am maintenance a old vb6 application that print ZPL-II.
I just find out that it has a bug if I print long lines to the printer by "Printer.Print", the lines will be trimmed to first 89 bytes/line only.
It works perfect and keep lines as it is when I use Print or Copy in DOS to LPT.
Where does this behaviour come from? How can I fix i...
Hi All--
I have a VB6 application that I am converting to .net. I am doing this in phases so clients will have both VB6 and .net applications at the same. Part of the application caches ADO 2.8 COM recordsets to a table in SQL Server and retrieves them as needed. The .net application uses that same persisted recordsets. I have c# code...
How do you size your form in vb6 so that form lower border is at top of taskbar
...
I lost the source code from one project I did on the company I'm working for and haven't been able to find a vb6 decompiler, does that even exists?
Forgot to say that I only have the EXE. I completely forgot about this project and rescued the EXE from a user's machine.
...
First off happy new year guys.
I have a small but significant query. I'll give a similiar use case but simplified, it does however cover my question.
Let's User A connects to the SQL Server 2000 database and we get a connection from the pool.
User A sets dateformat DMY. Finishes and the connections is released back to the pool.
Use...
In VB6, I was told that when testing for an empty string, it would be much faster to check this by verifying the length of the string by using :
If Len("ABC") = 0 then 'fast
or
If LenB("ABC") = 0 then 'even faster
instead of:
If "ABC" = "" then 'slower
Do you know by any chance if this is true also in VB.NET?
Thank you.
...
Hi,
We have multiple projects in VB 6.0. Most of these projects are ActiveX DLL's. When developing, projects take a '.dll' reference of other projects, but this does not allow us to debug. So, for this we have to take a reference to the '.vbp' project. However, taking a project reference, means we are asked for binary compatibility.
Du...
HI,
I am looking for some material giving introduction to DAO and ADO usage in VBA. Most of the material i came across give examples of how to use them. I am looking for a broader theory based definition of what they are and how they came about and the requirements for their usage.
thanks
regards
tksy
...
I just found this in some old code, and I'm not sure what it means.
Dim sTemp As String * 1
What is the * 1 at the end?
Thanks!
...
I need to build a C++ library to distribute among our customers. The library must be able to be accessed from a wide range of languages including VB6, C++, VB.net and C#.
I've being using ActiveX controls (ocx files) until now. But I wonder if there is a better kind of library (dll, etc.) that I can build. What do you recommend?
I'm li...