|
Hi !!
I want to obtain pointer to function using GetProcAddress() API and then want to use this pointer to function in order to call that function. How can i achieve this in VB.
|
|
|
|
|
Try here... This seems liek a decent example:
Google Clickety[^]
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
I launch a dos program inside my program and then capture the command line output to my VB program. How to do this? Thanks!
|
|
|
|
|
When you shell out to your DOS application, pipe the output to a file using the '>' directive, then reed the file in after the program is done.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
This is a very inefficient way to do this and will only return the complete result after the program has finished executing.
Providing you've left the caves and moved into .NET, the more efficient way is to:
Dim myProc As New System.Diagnostics.Process<br />
myProc.StartInfo.UseShellExecute = False<br />
myProc.StartInfo.RedirectStandardOutput = True<br />
myProc.StartInfo.FileName = "ping"<br />
myProc.StartInfo.Arguments = "www.google.com"<br />
myProc.Start()
You have now taken control of the process and have access to the output AND input streams. You could even write your own version of command.com if you wanted.
The output stream is located at: myProc.StandardOutput
Im sure you'll find the rest.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
Well that seems very elegant. I have to admit that I was unaware of how to do that.
It does only work for VB.NET however. I am not sure what Teir was working in (.NET or VB6).
Thanks.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
I have implemented this code in a WebForm which basically gives me a remote command line into the server.
I never thought I would tunnel DOS over the internet.
This does make a few holes in the security of shared hosting as it effectively bypasses all permissions. While you may not by able to use System.IO to delete say C:\Autoexec.bat - you can upload a console app and execute that from the machines system account.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
|
I'm trying to create an ActiveX DLL control in VB but I'm running into one snag. I want a simple form in the ActiveX control that has a scrollbar and a few buttons. This is working except that my form/dialog is popping up outside of IE. I want it to show up in IE (using the OBJECT tag) like a control embeded in the web page. Any suggestions?
It seems like I just need to make the form a child of the main class or IE somehow.
' MainClass
Private TheForm As TimeAdjustForm
Private Sub Class_Initialize()
Set TheForm = New TimeAdjustForm
TheForm.Visible = True
End Sub
Private Sub Class_Terminate()
Set TheForm = Nothing
End Sub
Todd Smith
|
|
|
|
|
As far as I know there is no way to directly display a VB form on a web page. You would have to build your form as a visual OCX control.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
We have a small app written in VB6 for which an ex-developer has not put the source-code into Sourcesafe and consequently the source has been lost. A customer has stated that it is causing an error and we need to see what is going on. Does anyone know of a VB6 de-compiler/dissassembler?
Cheers
Andy
|
|
|
|
|
I have never seen a good decompiler for VB6 exe's. There have been rumors but I have never seen anything that has worked.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
I’ve a WinForm application and a TreeView control on it. I’m creating another thread to add data to the control. So far I’m able to achieve this behavior, but sometimes secondary thread is not destroyed. I know it is not recommended, but I’d like to know more about my options and why I should not do this.
Thanks
|
|
|
|
|
hi ,
can anybody help me with the input validation for eg : when we install windows and registration key is asked and
there are 5 textbox and when we input 5 letters in one textbox then automatically it jumps to the next textbox.
and how to limit the letters in a textbox along with the type of data to be entered??
bye
Aakash
|
|
|
|
|
drmzunlimited wrote:
and how to limit the letters in a textbox along with the type of data to be entered??
There's a MaxLength property for the textbox which can be used to limit the amount of letters that can be keyed in
And to verify the type of data, you need to do some coding in the Textbox_Change() event
as for your first question, not too sure, but i think you can do some coding on the Change() event as well
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
Hi I have a problem.
How can I create a Visual Basic DLL and to use the methods in a application Visual C++?
How can I export the methods of Visual Basic DLL?
Thanks.
|
|
|
|
|
are we talking about vb6 or .net?
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
About Visual Basic 6. Do you have any example ?
Thanks!!!
;)
|
|
|
|
|
Nope, Sorry to disapoint, but all my dll experience is with .net
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|
|
VB6 can not create DLLs that export functions like C++ can. It can only create COM DLLs.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
hi,
can anybody help me with this....
how to enable the menu of the parent form from Child form when a button is clicked from the child form.
child form is loaded in between when the parent form is loaded.
thanx
Aakash
|
|
|
|
|
How about this?
<br />
ParentForm.mnuHello.Enable = True<br />
K-PAX? CHANGE THE WAY YOU LOOK AT YOURSELF, OTHERS & THE WORLD...
|
|
|
|
|
Hi this is my first post here.
im using Vb.net and am a novice.
im going to create a program that i can use like a favourites program for internet addresses and files and folders within windows.
i can handle all of that but i want to use the same kind of control asthe one in the visual studio tool box.
you know the one with, kinda like vertical tabs and when you click one of the tabs it slides up or down revealing all thats in it i.e if you click toolbox it slides up to show you the contents of the toolbox. this is in visual studio.net
basically i dont know what this control is called but i want to use it as it is very neat looking.
also i would welcome any advice on how it is used as i cant seem to find it in any of my programming notes.
thanks
#
|
|
|
|
|
You can likely find what you are looking for here[^]
|
|
|
|
|
There's a third-party control in vb6 that i used called 'list bar' that does what you want, but i'm not sure if they have a .net version. The company's name is Sheridan, so you might want to check it out
Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning
Mark Twain
Get your facts first, and then you can distort them as much as you please
Mark Twain
|
|
|
|