I want to make a change to a VB6 app which consists of a .EXE, no VB6 DLLs but a handful of .NET DLLs.
The interop is achieved by a one of the .NET dlls being referenced by the VB6 app which seems to require REGASM-ing of an associated .tlb file.
If I want to change only the VB6 app .exe, could I just compile it and drop it into the ...
Are there any overheads to using the following sytax:
Form1 myForm = new Form1();
myForm.Show();
As opposed to:
Form1 myForm;
myForm = new Form1();
myForm.Show();
When I was learning VB6, I was told doing the quivelent in VB had an overhead - is the same true in .NET?
...
Using VBA I am loading an 8-byte floating point number from an array of bytes into a Double. Some numbers will be IEEE 754 NaN (i.e. if you try to print it with Debug.Print you will see 1.#QNAN). My question is, how can I test whether the data contained in the Double is an NaN as opposed to a regular number?
Thanks.
...
The code was migrated using a third party tool. what ever the tool couldnt do, was done by the .net developers, so that all compile issues were fixed. My question is, for such migration activities, do we not bother running unit tests for the functions.
Secondly, Could anyone suggest if we should use some tool in VSTS 10 to create a UML...
Error referencing vs2005 c#
file(.tlb extension) in
vb6 application.
error message:
Can't create activeX object
Pls, need some help urgently
...
I'm working on a legacy VB6 app here at work, and it has been a long time since I've looked at VB6 or ADO. One thing the app does is to executes SQL Tasks and then to output the success/failure into an XML file. If there is an error it inserts the text the task node.
What I have been asked to do is try and do the same with the other m...
I wrote a program about 10 years ago in Visual Basic 6 which was basically a full-screen game similar to Breakout / Arkanoid but had 'demoscene'-style backgrounds. I found the program, but not the source code. Back then I hard-coded the display mode to 800x600x24, and the program crashes whenever I try to run it as a result. No virtual m...
One of my clients has an application that was written for them using VB6. They no longer have the original resources that were given to the developer. The developer has disappeared off the face of the earth. My challenge is to extract the resources from the executable and rebuild the application, adding new material to it.
I've tried...
I have a dll that I created from a VB6 project that I am now using in a c# project. This has worked before but now when I try to return to the c# project to fix a bug, the program get a COMException stating roughly translated:
Could not create an instance of COM-component with CLSID {085E3494-9F78-47D5-B0E6-FA460FD3CBED} from IClassF...
I'm currently trying to move some VB6 macros into a C# app and I'm having trouble setting the active cell using C#.
In VB6 its simply:
ActiveSheet.Range("L1").Select
Does anyone know what the C# equivalent is?
Cheers in advance.
...
Hi all,
This is probably a really dumb question but i'll ask anyway.
I was wondering if there was any reason as to why a form wouldn't display its code when i click "view code" from the right click context menu in vb6?
It was working awhile ago so i'm kind of stumped.
Thanks
...
We have a legacy VB6 component that was com+/MTS and is used by asp classic. Staff is having trouble with deployment.
Would there be any harm in just using regsvr32 to register the DLL, which will be used by IIS?
Alternatively---I won't touch COM+ with a 10 foot pole--so is there a suitable one line command to register a VB6 component ...
In VB6 there are local static variables that keep their values after the exit of procedure. It's like using public vars but on local block. For example:
sub count()
static x as integer
x = x + 1
end sub
After 10 calls, x will be 10. I tried to search the same thing in .NET (and even Java) but there was none. Why? Does it break the OOP...
Is any dll or ocx available to convert pdf to tif in vb 6? Preferably free.
...
I need to support a legacy vb6 application, and would like to add a tab control. Is there an equivalent to visual studio 2008's tab control? The built-in "TabStrip" control is a pain to use.
...
I realise this is an older programming environment, but I have to clean up some VB6 code and I am finding that most of it uses:
On Error Resume Next
What is the general consensus about the use of On Error Resume Next?
Surely, if there is an error, you would want the app to stop what it was doing, rollback any data changes, and info...
I've been fighting this all day. Inside my styles.xml file I have color information given like so:
<fgColor theme="0" tint="-0.249977111117893" />
ECMA 376 defines a theme color reference as:
Index into the <clrScheme> collection,
referencing a particular <sysClr> or
<srgbClr> value expressed in the Theme
part.
Ok, tha...
I want to set up a global hotkey* in VB6 that listens to the keyboard shortcut Win + O.
I have found heaps of messy examples, but nothing which involves the Windows key.
What's the ideal way to setup hotkeys and how does one include the Windows key as a modifier?
* I'm after a global shortcut. That means I don't have to have the appli...
Handling events exposed on a .NET class via COM in VB6
My test .NET (class libary registered for interop in compiler settings) code:
Imports System.Runtime.InteropServices
<InterfaceType(ComInterfaceType.InterfaceIsIDispatch), ComVisible(True)> _
Public Interface MyEventInterface
<DispId(1)> Event Exploded(ByVal Text As String)
...
i want to migrate one of the application from vb6 to .net with visual studio 2010.At present the application is windows based application. i want to make web application.
i guess i have to rewrite the code in .net. could you please advice me while i rewrite the code in .net.
...