|
I am trying to write a download manager in VB 6 using the inet control. I am having problems with the proxy though. My company uses an automatic configuration script proxy and the inet control does not seem to recognize it, so it cannot get throught the firewall. I have tried using the built in poxy attributes and functions with no success. Does anyone have any ideas on how to get around this?
Thanks,
Ed
|
|
|
|
|
Hi am something of a newbie I am trying to implement an HTML based help system using and reading it with the webbrowser control in vb6. I would like to generate some of the HTML dynamically (ie search results perhaps with search key highlighted). I can get the webbrowser object to open HTML files I have created. I have writen VB that will generate an HTML "Response", but I do not know how to make the webbrowser control display it. I have considered writing the HTML "Response" to a sequential file and subsequently pointing the webbrowser to the results file. Any help would be greatly appreciated.
Shaggy
|
|
|
|
|
Does anyone know if VB can now (VB6.0) perform a conversion between the internal representation of a single-precision number (held as a long, 4 bytes) and an actual Single? By this I mean, the value 1.0 as a Single = &h3F800000 internally. If I have a Long containing &h3F800000, is it possible to convert to a Single of 1.0, and vice versa (Single -> Long holding internal representation).
So far I have had to use a C DLL to do this.
Other possible ways to do this might involve using Variants, Byte arrays or some way of accessing the memory used to store the variables (used to be VARSEG and VAROFFSET in QuickBasic) - but I can't find a way.
Note that CLng(Single) and CSng(Long) don't do it, since CSng(&h3F800000) = 1065353216.0, which isn't quite 1.0 {:v)
Note also that you can't use Any as the type in your own functions {:v(
If anyone's wondering why I need this, it's to pull bytes out of a Modbus message and decode them, or to encode them and plug them into a message.
|
|
|
|
|
I haven't tested it, but this should work:
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
Public Function Long2Sng(ByVal InVal As Long) As Single
Dim sRet As Single
CopyMemory sRet, InVal, 4
Long2Sng = sRet
End Function
|
|
|
|
|
I can confirm that it does indeed work - no more C DLLs - hurrah!
|
|
|
|
|
Hello there,
Can i edit explorer.exe in such a way that i can change the start button text the vertical image in the start menu and such things. I am using windows 2000 and windows Me
Thanks
|
|
|
|
|
I've changed my start button text, but I can't remember the site that told me how to do it. First, you need to know that the text must be 5 characters long. You can however add a space(s) at the end if you want to put something smaller on it (i.e. Star[space]).
1. Make a copy of explorer.exe and put it somewhere where it won't get touched.
2. It is very important that you follow step 1, otherwise a reinstall of Windows might be required.
3. Open the copy of explorer.exe in a hex editor.
4. Find "53 00 74 00 61 00 72 00 74". That is hex for S[null]t[null]a[null]r[null]t[null]. Some hex editors require the space, and other are the opposite.
5. Replace only the letters with whatever you want. I did "53 00 74 00 65 00 76 00 65 00" = Steve.
6. Now boot from dos and rename your origional explorer to explorer - o.exe or something like that. Then swap the locations of the two explorers.
7. Restart your computer. Either it'll work, or you'll have to go back to dos, swap the explorers back, and start over.
Hope this helps
|
|
|
|
|
one more thing: I know this works on ME, but can't say for sure as to what will hapen for other OS's
|
|
|
|
|
Hello everyone,
Can i add a control panel applet to the control panel through VB, if yes how?
If not in VB then can i do the same in VC++ if yes how ?
Thanks
|
|
|
|
|
How do I activate the OLE component Microsoft Excel Chart at runtime exactly like I have designed it and how do I put new data in to the chart at runtime?
|
|
|
|
|
Pleeeeeease can´t anyone help me with this, it´s breaking me... Men in long white coats will come and get me soon if I dont solve this problem. = (
|
|
|
|
|
It's tricky to make it seem as though *you* were the one who did it. Here's a starting point- you may already be past this:
1. In Excel, start a macro and then create the chart.
2. Examine the code in the macro generated VBA module.
3. Instantiate the Excel.Application, Workbook, Chart and create a chart programmatically using the macro code as your guide.
It isn't difficult to do, but it will require that you users have Excel on their machines.
Oh, and you can macro copy+paste operations too, in case you want to copy it to an OLE container control or something like that.
I hope this puts you on a track...
David
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
I'm using VB6. This is probably a beginner question but I created a group of three radio buttons. They are all part of the same control array. However, in runtime mode, when one of the three buttons is clicked on, the old one that was on remains on. Thus, I end up with two radio buttons that are on/enabled. I thought VB handled this automatically. If not, how do I write code to disable/uncheck the other two radio buttons when one is activated?
|
|
|
|
|
VB handles the WS_GROUP style when grouping automatic radio buttons. It groups by "container" controls like a frame, picture box, the main form, etc. If it's not doing it for you then make sure some of the radio buttons are not in a frame, etc. Or put all of them in a frame, etc.
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
This is probably a stupid question but how do I add the radio buttons to a group box. Do you draw the frame first, create option button1 within the frame, then select copy and paste it into frame as part of array element 2? or do you create the 3 options buttons first a part of a control array and then create the frame, put it over the buttons and send it to back?
The reason I'm asking is cuz I had a frame around almost all of my controls and when I tried to put a frame inside of that one to group some radio buttons is when the troubles began. So, I deleted the main surrounding frame but have five radio buttons that I want into two groups/two frames.
|
|
|
|
|
JohnnyG wrote:
This is probably a stupid question
This is not a stupid question.
JohnnyG wrote:
how do I add the radio buttons to a group box.
Create the frame first. Then, directly creat the radio buttons within the fame. If you create the radio buttons first, you should notice they seem to be behind the frame instead of on top of it and are not grouped by themselves.
Do note that the frame does not become the parent of the radio buttons it "encloses." The parent will still be the form. This is just VB's way of doing the logical grouping. You can override this behavior using raw Win32 API, but that is rarely needed.
And, if you don't want the frame showing up during runtime, set its BorderStyle property to None . Setting Visible to False on the frame will also hide the radio buttons, and the user won't be able to see them also.
Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|
|
No matter what I do. If there are two groups of radio buttons on a form, they interfere with each other. One group works fine though.
|
|
|
|
|
I have a class in a Class Library project called "Foo". Here is the class...
Namespace Foo
Public Class Bar
Shared Function HelloWorld() As String [...]
End Class
End Namespace
I have compiled this and put the .dll Assembly into the \bin directory of a 2nd project.
Project 2 is called HelloWorld2 and is a Windows Application which has a reference to the Foo.dll assembly added to it.
Problem is the Import statement I need to use to access HelloWorld.
I would have thought it would be
Import Foo
...
Public Class Form1
....
Private Sub Form1_Load(...) Handles MyBase.Load
labal1.Text = Bar.HelloWorld()
End Sub
End Class
End Sub
But it seems I have to do
Import Foo.Foo
Why the extra Foo?
Bah humbug!!
|
|
|
|
|
I had the same problem recently. But I thought it may have been to do with the fact that I already had a namespace called Foo in an existing C# library.
Kevin
|
|
|
|
|
Hi - I'm not much of a VB programmer, more VC++, so a little help is much appreciated. could anyone provide some links for tools that detect memory leaks in vb (i don't see anything native, like in the vc++ devstudio.), or better yet, some sites that show proper coding styles in vb to avoid it?
Marcus Spitzmiller
|
|
|
|
|
Has anyone out there developed an enhanced console class for VB.Net
What I am specifically needing is a ClearScreen and the ability to cut and paste to the clipboard from inside a console mode app.
I also would like a method to put shutdown code in when the user closes the console mode app from the upper right hand X.
In the good old days console mode apps automatically made use of ANSI.SYS escape sequence.
Can VB.Net console class be enable to use these sequences
I have read that the console mode class was made such that you can not derive a new class from it and add additional methods.
|
|
|
|
|
If so, any fixes?
~Timothy T. Rymer
http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
|
|
|
|
|
MSDN says there is a limit of 32,000 unique identifiers, variable names, module names, etc. in a VB 6.0 project. Is there any way to tell how many I have in a project, other than going in and actually trying to count them manually?
Thanks
|
|
|
|
|
?????
~Timothy T. Rymer
http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
|
|
|
|
|
Dim x As Double
x = 14.94560958345
x = Round(x, 2) Jeremy Falcon
Imputek
<nobr>"..." - Paul Watson 07-17
|
|
|
|