manipluation of date in vb
how can we extract system time in vb and do calculation ie. adding or subtracing time then store change time in oracle database table in earlier format . ...
how can we extract system time in vb and do calculation ie. adding or subtracing time then store change time in oracle database table in earlier format . ...
I have several ATL/COM-based DLLs that I've been using Visual C++ 6.0 on. I require a couple of "old" things out of the generated DLLs: (1) They must be compatible with projects developed in Visual Basic 6.0 (the old VB6, emphatically not VB.Net). (2) They must be compatible with old operating systems - minimum Windows 98 SE. To be c...
I have some legacy vb6 applications that need to talk to my .Net engine application. The engine provides an interface that can be connected to via .net Remoting. Now I have a stub class library that wraps all of the types that the interface exposes. The purpose of this stub is to translate my .net types into COM-friendly types. When I r...
I have found and installed the visual basic mode for emacs. It seems to be loading on emacs startup and the VB mode loads when I open a *.bas file. The code is not highlighted at all, however. I'm using Emacs23, tried it with 21 and saw no difference. Background for the curious: I am rewriting a set of codes from VB to Python. The synt...
Does anyone has the formula to convert X,Y,Z,Vx,Vy(cartesian 5D) as well as Azimuth, Elevation(Angular 2D) to Lat Long Alt? Thanks. ...
I am looking for an OCX control that will work with VB6 and is capable of producing a grid like the one below. Any ideas? ...
Is it possible that someone here could explain how to use this code. Please keep in mind i am a complete amateur, so simplifications may be needed. Private Const cPGM = "C:\VB Forum\startup\Example.exe" Dim oShell As IWshShell_Class Set oShell = New IWshShell_Class oShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\My...
hi all, i'm trying to get the onreadystate value from the browser control do detect when the page has finished loading. unfortunately the event's .returnValue returns empty. what's wrong? here's my code - thx: Dim WithEvents m_doc As HTMLDocument Private Sub Form_Load() Set m_doc = WebBrowser1.Document End Sub Private Sub m_doc_...
Hi, I'm tearing my hair out trying to solve this one, any insights will be much appreciated: I have a C++ exe which acquires data from some hardware in the main thread and processes it in another thread (thread 2). I use a c++ dll to supply some data processing functions which are called from thread 2. I have a requirement to make ano...
I have a VB6 program which I've been maintaining for ten years. There is a subroutine in the program called "Prepare Copy", which looks like this (Edited to add changes): Public Sub PrepareCopy() On Local Error GoTo PrepareCopyError MsgBox "in modeldescription preparecopy" Set CopiedShapes = New Collection MsgBox "leaving preparecop...
I was looking for a Desktop Application Programming Language with one of the biggest constraint: - “I need to output as native executable”. I explored multiple options: Java is not a very good option for desktop programming, but still you can use it. But Java to Exe is a problem. Only GCJ and Excelsior-Jet provides this. .Net platform...
I have an object with event handlers and I want to make something similar to VB6 to make array of that object. Something like: MyHandler(object sender, MyEventArgs e, int IndexOfObject) <- ...
I would like to create/use a system-wide independent universal 'counter object' that can be called via COM in a thread-safe manner. The counter object will be passed an ID to identify which counter to return, handle the counting, 'persist' the count (occasionally), have reasonable performance (as fast as possible) perhaps capable of 10...
Having trouble with WSH and Windows Compression. My goal is to be able to zip up files (not folders, but individual files from various locations, which I have stored in an array) using the built-in Windows Compression. I am using VB6. Here is my routine (vb6 code): Dim objShell Dim objFolder Set objShell = CreateObject("Shell.Applicat...
I recently noticed the CallByName keyword in VB6. Since this takes a object, procedure name, "call type" and arguments array, can this be used to "fake" some types of polymorphic behavior? I can make 2 classes, class A and B, each with the same method Foo, and do: Dim list As New Collection Dim instanceA As New ClassA Dim instanceB ...
Programming language : VB6 I have a problem to copy region within a picture deteremined by 4 points(p1,p2,p3,p4), and reskew it to a another picture with fixed rectangle (P1,P2,P3,P4), as shown : thank you so much in advance for your help ...
In FarPoint SpreadSheet ver 7 - How to apply .Formula property at SpreadHeader+1 ? .That is second Header of the Spread. We can apply .Formula property at SpreadHeader + 0.That is Top Header. I use the following code, With fpSpread1 .Row = SpreadHeader + 0 .col = 1 .CellType = CellTypeNumber .Formula = "SUM(A1:A10)" End Wi...
Hi. I'm writing a program where an user can enter list of URLs to load and the program cycles through the URLs to load them in an IE instance one after another, like a website slideshow. The problem is that when I enter an URL that requires some membership verification then IE shows the login prompt and practically freezes the IE window...
I have a VB6 application that needs to communicate with a VS2008 VB.NET WCF server. I have built a VB.NET WCF DLL to be used on the client side, and it --almost-- works with the VB6 application. When I try to run the VB6 app in debug mode, I get "Could not find endpoint element with name 'NetTCPBinding_IComPortManager' and contract 'ICo...