vb6

How to run exe stored on machine A from machine B using VB6?

How to Access the VB EXE File in the remote machine? I want to run exe stored on machine A from machine B using VB6 Need VB 6.0 Code Help. ...

VB6 - Move mouse pointer smoothly between two points?

It's been yonks since I've done any VB6... I need to take control of the mouse pointer and move it smoothly between two points. Is the best way to do this a combination of GetCursorPos, SetCursorPos and a timer or two, or is there a better way? Thanks for any help. ...

How can I return both an error string and error code to VB6 from an ATL activex control?

I'm trying to return a detailed error to VB6 using CComCoClass::Error, but it seems I can only return an error code /or/ a message - but not both. return Error(_T("Not connected"), __uuidof(IMyInterface), HRESULT_FROM_WIN32(ERROR_CONNECTION_INVALID)); results in a generic "Method 'Request' of object 'IMyInterface' failed" error messag...

How to select previous RECORD in VB 6.0

USING VB 6.0 How to select previous row value? Am Selecting a Date between fromdate and todate using date picker Code Dim stdate, endate as string stdate = Fromdate endate = todate Example: fromdate: 01-01-2009 todate: 01-06-2009 Data’s will display fromdate to todate. I want to select previous date means previous row value....

How to get time elapsed in milliseconds

Since performance of string concatenation is quite weak in VB6 I'm testing several StringBuilder implementations. To see how long they're running, I currently use the built-in Timer function which only gives me the number of seconds that have passed after midnight. Is there a way (I guess by importing a system function) to get somet...

Get Object from Windows Handle

If you know an object type, and you have the object's handle (hwnd), is there a way to turn that into a variable?Example:Set myObj = Magic(hwnd) ...

How to position a Popup menu right underneath a button in VB6.

I have a VB6 app. There is a main form. It houses a user control. This user control has a button control. When I click the button, I want a menu to pop up so that the top left of the menu is right underneath the bottom left of the button. if I do: frm.PopupMenu mnuBlah the menu comes up where the mouse is. if I try to provide co...

How can we work with VB6 dll called from a multithreaded c# windows service application?

I'm running a multithreaded windows service that need to call a VB6 dll. There's no documentation about this VB6 dll and this legacy system supports a very critical business process. At first time (1º thread), this dll performs well. As other threads need access, it start provide wrong results. I read one guys saying: "Just be careful...

MSDAIPP broken on Vista by Update, missing in Win7Beta

I have some code I am working on that worked just fine until I installed Software Update for Web Folders (KB907306) into Vista SP1. I'm using ADO with the MSDAIPP.DSO provider for acess to WebDAV and FPSE/WEC servers. The same code works fine in a clean XP SP3 install, and worked before this update (but I will re-verify on a clean Vist...

How to check Table exist in access database or not?

How to check table exist or not? USING VB 6.0 AND ACCESS 2003 My code. Cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\iTDC-ACS.MDB" Cn.Open cmdCardEvent.ActiveConnection = Cn cmd.ActiveConnection = Cn cmdcardevent1.ActiveConnection = Cn cmd.ActiveConnection = Cn cmd.CommandText = "DROP TABLE t...

How to check is null value in the table?

USING MS ACCESS 2003 How to check is null value in the access database? My code. Public Function DateToString(dte As Date) As String Dim d As String Dim m As String Dim y As String d = Day(dte) m = Month(dte) y = Year(dte) If Len(d) = 1 Then d = "0" & d If Len(m) = 1 Then m = "0" & m DateToString = y & m & d End Function Public Func...

How to select a file from the server or remote machine?

Am new to VB 6.0 How to select a file from the other system? I want to access a file from the other system or server? Need VB 6 code Help ...

How to access the database from the other system or server?

Using VB 6 How to access the database from the other system or server? Code Cn.ConnectionString = "Provider=Microsoft.jet.oledb.4.0; Data Source=" & _ App.Path & "\DC-CS.MDB" Cn.Open I don’t want to give the connection directly in my code, I want to select a connection and *.mdb file from the other system or...

How to use open file dialog in VB 6?

Am New to VB 6 I want to select a file from the directory or other system. How to use open file dialog in VB 6? Need VB 6 Code Help. ...

How to set a crystal report datafile location in VB

How to set a crystal report datafile location in VB CODE: CR.DataFiles(0) = " & databasetext.Text & " CR.ReportFileName = App.Path & "\rpt_attendancereport.rpt" " & databasetext.Text & " - am selecting the database location But it showing error "Unable to open database" and also i checked in crystal report ->> Database ->> Set Loc...

How to Deploy VB6 Applications?

How to run the exe file to other system? Using VB 6 I copied the exe file to other system, then run that exe file, it not working it showing error “component comdlg32.ocx or one its dependencies not correctly registered a file is missing or invalid”` Can any one help me how to avoid this error? ...

how can i create a setup file in visual basic 6 after completion of my progamming work?

how can i create a setup file in visual basic 6 after completion of my progamming work? Front End language is Visual Basic 6, Backend : MS Access 2003 and Report Tools : Crystal Report 8.5. Operating System Windows XP. Need Help ...

API Equivalent of running SomeActiveX.Exe /regserver

I need to register an ActiveX exe programmatically and Shell(SomeActiveX.Exe /regserver) is not sufficient. Is anyone aware of an API equivalent? ...

How to route the exe exception back to VB6 app?

hi guys, i have a vb6 apps which will call the mencoder.exe which is part of the mplayer to convert some files into flv format. i'm getting this weird unhandled exception problem from mencoder whenever i try to convert this one opendivx file. At the moment, i'm unclear of whether is this codec is the culprit behind this. Either way i h...

Runtime error stacktrace or location in VB6

I maintain an old application written 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 mean, without putting trace statements all over the code like here or adding error handlers for logging to every procedure like here. It se...