vb6

How do I save and restore all the vb6 ide settings?

I've seen this tip on DevX which should 'account for most of the Visual Basic IDE settings'. Does anyone whether this is sufficient or whether there are more settings out there? ...

using Crystal Reports 8.5 + VB 6.0 for a project, what .Dlls do we need to include while preparing a setup file for the project?

hi did you know that using Crystal Reports 8.5 + VB 6.0 for a project, what .Dlls we need to include while preparing a setup file for the project? The project executes on my own computer properly but it does not execute on user's computer. The user says: " I get this error when I wanna to execute a report:: 'physical database not ...

WIA, Vista, and VB6. Does this code work?

Basically the constraints here are that i must use WIA because i am trying to get my scanner software to work in Windows 7 and Vista. It would be preferable (like really preferable) if i could do this in VB6. Now this code i have compiles and everything, however when i run it i get the error "No WIA device of the selected type is availa...

Why is C# null translated as Empty in VB6, instead of Nothing

I have a C# application that reference a VB6 dll. When I pass null from C# into VB6 dll function, the null is translated as value Empty (value) in VB6, instead of Nothing (object). For example: // function in vb6 dll that referenced by c# app Public Sub TestFunc(ByVal oValue As Variant) { ... if oValue is Nothing then set ...

VB: Accessing variable throughout the application

Hi, I have no of forms in VB 6. I want to access the value of one variable throughout the application. What is the way to create global variable in VB 6. EDIT: I want to create only one global variable. I am new to VB,So Please give me some code snippet Thanks. ...

C# & VB6: How to convert 'with' statement to C#?

Hello! How can I convert this piece of VB6 code into C#? http://pastebin.com/f16e19351 I've tried on my own and got so far to: http://pastebin.com/f7ca199f0 EDIT: Code I'm trying to translate exists here: http://www.codeproject.com/KB/vb-interop/MouseHunter.aspx ...

Use code to do a screen capture of an application running

I need to run some code to capture the window of an application running on the windows desktop (windows XP is fine here). There are a number of VB6 examples on the web, but they tend to capture the running VB6 application or the desktop only. I am looking for a solution that captures a given window/application. So, I want to be able to ...

How do I intercept a message box from a ocx put into a vb form

Hi experts... I need your help , i'm trying to quit a msgbox from a ocx , i put the ocx into a vb6.0 form , when i run the proyect appear each 5 minutes a msgbox with the invitation to visit a web page , i want to quit this msgbox , but i´m junior programmer only , and i want to quit this screen fom my exe.. can any help me....this drive...

Connecting VB to MySQL

Hello everyone! I would like to ask some help on how to connect VB6 to MYSQL? Please provide references as well. Many Thanks ...

UDP using socket API

My server use UDP. It sends 900bytes/1ms to my program automatically after being acquired. I'm using socket API in Windows (VB 6). I had made a test and I know that the message processing time (about 0.3ms) of my program is shorter than cycle time (1ms). So the cause should be socket internal buffer. I try calling setsockopt function to ...

C#, VB6 and the Decimal data type

Im writing a C# class library which is going to be used as a proxy between a VB6 application and WCF service. Some of the WCF service methods use Decimal data types as parameters which Im unable to duplicate directly in the interface I provide to the VB6 application as this is an unsupported type. How do I implement this in the COM in...

How do I get the assembly/file versions for an object in VB6?

Is there a way to get the file and/or assembly version for an object in VB6? We are having some reference issues, and I am able to create the object in late binding on the machine that is having problems so I am hoping to spit out the version it is grabbing to figure out where that version is sitting. ...

I need to generate a file from binary information in sql........

I am writing a windows desktop application in visual basic and I need it to connect to a SQL database, take a rows unique id, and using that number generate a file from the binary data that is stored in the SQL database and save it to a file directory. The part that is hanging me up is the creating the file from the binary SQL data. ...

Bitrate Calculation

Hi experts , (Excuse for My english it's freak i´m from LA) I'm trying to finish a trascoding process in VB6.0 , i'm working with ffmpeg , its a very good transcoder , to finish the project i want a progress bar for the trascoding process but it's so very hard , first i need to understand , how a program can calculate the time remaining ...

List SQL Express 2005 instances using VB6 code

How to list all the instances of SQL Server 2005 Express Edition using vb6 application? ...

vb6 - create html document in runtime + set baseurl

hi all, i'm creating a htmlfile like this: Dim m_doc As MSHTML.HTMLDocument Set obj = CreateObject("htmlfile") obj.Open obj.Write m_htm Set m_doc = obj the variable m_htm contains plain html data. my problem: the created htmldocument will have local paths for links/includes. how can i set the document's baseUrl? thx ...

Create a windows service in vb6

Is it possible to create a windows service in vb6? if yes, how? ...

VB6 - How to catch exception or error during runtime

I developed an application in VB6. In client's environment it raises runtime errors which I can't reproduce under debugger. Is there any way to get the stacktrace or location of error? I created log file and I used Err.Description,Err.Source but it gives blank values. Please help me. my method(...... On Error GoTo Error...

Dynamic web content with VB6 (java servlet inspired)

Hi all, I'm working on a project that needs more 'flare' than what can normally be done with VB6. My thought is to generate HTML/CSS content and display this within a browser control on a form. I would also like the ability to respond to form events from the web content within the VB application. My inspiration comes from recent expe...

Attaching HTML file as email in VB 6.0

Hi, I am trying to attach an html file file to email using Visual Basic 6.0. when the cursor is comes on Open strFile For Binary Access Read As #hFile line it gives error "Error encoding file - Bad file name or number". Please all your help and support would be highly appreciated. Dim handleFile As Integer Dim strValue ...