Given
Dim arr1 As Variant
Dim arr2 As Variant
Dim arr3 As Variant
arr1 = Array("A", 1, "B", 2)
arr2 = Array("C", 3, "D", 4)
What kind of operations can I do on arr1 and arr2 and store result in arr3 such that:
arr3 = ("A", "C", 1, 3, "B", "D", 2, 4)
...
I have the source code for taking a picture via webcam, but I need to know if there's a webcam connected to the PC. If there's no webcam, the program won't call the function for taking photos. If necessary, I need to know which window's Api I have to use in this case.
Language: Visual Basic 6 using windows Apis.
...
We generally use the array function is VBA as :
Dim A As Variant
A = Array("B", 1)
This will give me the first element in A as "B" and second element as 1
However I want to decide the contents of A at run-time so is it possible for me to do something like
Dim str As String
Dim A As Variant
str = "name, Sam"
A = Array(str)
When I...
I was reading about the Form's events in VB6 such as "Unload" "QueryUnload" and "Terminate", and about the "End" statement:
http://articles.techrepublic.com.com/5100-10878%5F11-5533338.html
http://visualbasic.freetutes.com/learn-vb6-advanced/lesson6/p5.html
I used to have problems with a VB6 app (it calls a lot of windows' apis). When I...
In a VB6 ActiveX exe project, is there any way to preserve the GUID for the events dispinterface if and when new events are added?
Obviously changing existing events breaks compatibility. Adding a new one doesn't cause the VB6 IDE to issue a warning. This doesn't really surprise me, though, as it also doesn't warn when you add new metho...
Hello
I am C++ programmer and I need to make some changes to VB6 code.
And I am looking for a good VB6 tutorial to get started.
Thanks a lot .
...
I have some old code that we have to maintain in VB6. We need to add the ability for it to look up the current user's SID. Can anyone point me to some code that shows how to do that? Thanks in advance for your help!
...
I'm not talking about porting VB6 application to .Net (that's been talked about plenty here).
I just wondered, if you can do IronPython, IronRuby, Phalanger, H#, etc, is there any technical reason that would prevent creating VB6.Net?
I'd think there would be a LOT of money in it.
UPDATE Sorry for all the purists, I KNOW that VB.Net is...
I'm working the open source library EasyHook.
What I'm trying to do, is hook into when a VB6 app calls CoCreateInstance from ole32.dll on a particular CLSID, return my own C# implementation for the object rather than the true COM object. My C# implementation derives from the same interface that tlbimp.exe spits out for the COM object I...
I have a textbox that reads like so:
Line 1
Line 2
Line 3
**Line 4**
Line 1
Line 2
Line 3
**Line 4**
(repeats...)
How can I use VB to loop through the textbox, deleting Lines 1, 2, and 3, skipping the fourth, and repeat? Or, rather, record every fourth line into a new textarea?
Thanks! I'm SO lost!
...
Our VB6 application uses a 3rd party control (PowerTCP from Dart) for SSL3 connectivity. However, this doesn't seem to work on Windows 7 - and I have not found any useful information on what I can do to make it work.
Is there a VB6.0 compatible control that will work on Win 7 for SSL3 communication?
...
We are trying to replace a COM server originally written for a VB6 application
We have no access to source code.
For some reason, the VB6 app can call our constructor, but then it gets:
System Error &H80004002. No such
interface supported.
I assume when it tries to get the interface with QueryInterface.
We have our assembly p...
Is there any way to popup a form while working on datareport like if i click any shortcut key then a set margin form comes up..or can i use a pop up menu or can i add a command button above where print and export buttons are there?
...
I'm trying to write a font viewer for TrueType / OpenType fonts with VB6 / VB5 code (under Windows).
it is surprisingly difficult:
1) in VB / winAPI, i did not find how to extract the font's name, or font properties in general.
2) i can install the font (using AddFontResource API function), but then have to uninstall it. However, whil...
We are trying to switch our application from talking to mySQL to postgres. I wished we would have some kind of a subroutine (in VB6) were I can input the mySQl SQL query and get a string out containing the appropriate postgres query.
Does anybody have a solution or is interested working with us on that?
Thank you!
Thomas
...
How to copy 3 mscharts into one picture box and print the chart along with the legends?
...
Recently I had to troubleshoot a very strange issue with a fully-trusted InfoPath 2007 form at a customer site. The form is part of a records management application and users launch the form from within the application.
However, because the form is subject to frequent updates, we store a "master" copy of the form file on the customer's...
I am looking for an MSBuild task/script that will allow me to control the version of an old VB6 project?
The .vbp stores the version information as .ini style, but I cannot find a simple way to read and write the three entries.
...
Using VB6 and SQL Server 2005
I want to write a sql connection for connecting to other system sql server.
Code
ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI; Persist Security Info=False;Initial Catalog=STAR;Data Source=" & SName & ""
In SName - Am giving a Server Name
The Above connection code is working for the...
I apologize in advance; this is a long question. I've tried to simplify as much as I can but it's still a bit more long-winded than I'd care to see.
In some legacy code, we've got a VB6 collection. This collection adds objects via the .Add method and removes them via the .Remove method. However, via tracing I can see that sometimes w...