|
Hi,
I got an issue with winsock_dataarrival in vb6
i am creating a simple project in vb6 to send and receive data in the program, but the requirement is to use a class to do all processing work,leaving the main form just to display.
Basically I put a winsock icon on the form1, then thru the class I am able to do connection and disconnection just by using a public sub in the class.
But the dataarrival event could not trigger outside the mainform. Is there a way to do this?
Thanks
|
|
|
|
|
Member 11025844 wrote: am creating a simple project in vb6
Then you deserve to fall into a deep dark hole, where VB6 has been consigned. Download VB.Net express for free and use a tool that is supported not one that is more than a decade DEAD!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
no, it has to be in vb6, where in later stage i will add it into the main project.
|
|
|
|
|
I still think it is wrong but I can understand your problem. I'm afraid most of us have forgotten VB6 so you may struggle getting support.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Look at his location: it's not a modern developed country. What type of computers do you think they use?
And by the way, last year one of our customers - in rich Germany! - inquired if we supported Windows 2000.
.Net programs won't run on Windows 95, do they?
|
|
|
|
|
Bernhard Hiller wrote: Look at his location: it's not a modern developed country
It is just up the road from me and it is not a 3rd world country (I did check first). His requirement to extend a legacy app (not indicated in his first post) is the only reason for trying to build something in VB6.
Bernhard Hiller wrote: inquired if we supported Windows 2000
I wonder if you build manufacturing apps, I can imagine some control systems still running such ancient equipment.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Bernhard Hiller wrote: inquired if we supported Windows 2000. There's quite a difference between supporting an old OS for another year or two, or writing NEW functionality in a long-dead language.
Bernhard Hiller wrote: it's not a modern developed country That's not relevant. Do you support your older applications for "not modern countries"?
Bernhard Hiller wrote: .Net programs won't run on Windows 95, do they? No, not on Win95. But one CAN run .NET 4+ applications on the same hardware.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Bernhard Hiller wrote: .Net programs won't run on Windows 95, do they?
No, they need at least Windows 98:
Version 2.0 without any Service Pack is the last version with support for Windows 98 and Windows Me.
Version 2.0 with Service Pack 2 is the last version with official support for Windows 2000.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
You need a class where you create the winsock control through code instead of using the one on the form. Then you'll have to wireup the data received event using delegates so that it calls into your class.
Or, you leave it on the form and when it receives data it passes it to a method in your class where all the work is done.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks for helping. My problem is solved
|
|
|
|
|
Hi !
After successfully inject .dll file into a target process, i' would like to run it but how can i do this !!
I' know how to do it into my application by adding the dllMain() function ...
But in the target process how can it be achived ??
I read many articles talking about windows Hook but i would like to understand the method !
Thnx
|
|
|
|
|
Dont spam the forums with the same question. Once is enough.
|
|
|
|
|
Hey, hopefully this doesn't come across as the dumbest question ever but anyway ...
I need to make a webpage access and control a visual basics program on the user's computer. A simple example would be upon clicking a button on the website the visual basics program would start/open then execute certain code ...
Also if possible I need this process to not be visible to the user?
Does anyone have any tips/pointers or even direct me to a great tutorial for it somewhere?
If this is is the wrong area - sorry. Was unsure where to post since it involves several languages. If you want to see the site to understand what I mean it's here.
Maybe someone could suggest a different language or solution please.
Thank you in advance!
Gabby Mills - I'm always learning something new
Projects : - Ticket Site
|
|
|
|
|
That is a huge security risk. Browsers will not allow you to run applications on the client machine.
Why do you want to do this?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: Why do you want to do this?
My guess would be "malware".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It sounds like you are gathering lots of different ideas in your mind....
|
|
|
|
|
Gabby Mills wrote: A simple example would be upon clicking a button on the website the visual
basics program would start/open then execute certain code ...
Also if possible I need this process to not be visible to the user?
Easy; execute the process on the server
You can compile the code, execute it, and relay the results to the computer. That opens up a can of worms of abuse.
Running code on the client will be harder. We have a thing with untrusted code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
There maybe some acceptable uses of such an architecture. We use it for an integration into a browser-run hospital information system. A web page of that HIS contains a link with a special protocol, and that protocol is connected with our application.
For this to work, you need to install the VB program on the local machine, and also register your protocol. Take a look at the registry at HKEY_CLASSES_ROOT\http or https or ftp for examples how a browser gets started when a webpage is to be opened.
|
|
|
|
|
You cannot do that, it is a security issue. How would you feel about some website running a program on your PC without your knowledge?
|
|
|
|
|
I have requirement that dragging one by one icons (pictures) from treeview control and dropping into the picture box.
already i have attached the images to treeview and dragging the icon also done.
presently I am not able to drop it to the picturebox with exact location specified also if want to keep one more icon it's overlapping with the previously dropped images. Kindly help me to solve the same
|
|
|
|
|
In which environment? WinForms[^], WPF[^], ASP.NET? There's also an example on vb-helper.com[^]
If you need help with your code specific, then I suggest you include it in the question.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Can anyone help me to create license for my application ...
|
|
|
|
|
I really wouldn't bother with licensing any more but you've got plenty of choices: "licensing sdk .net"[^]
|
|
|
|
|
I want to scrape a table from web page but the content of table doesn't exist in the source of page
the table created on the fly by java script
this is the source of page
<HTML>
<HEAD>
<TITLE>Cisco Unified Communications Manager Express GUI</TITLE>
<SCRIPT Language="JavaScript">
GUIVersion = "7.0.0.1 (Compatible with IOS 12.4(20)T)"
var MWinC
var newestDN = 0
var retryTimes = 0
var changeBit = false
var FeedString = new Array()
FeedString[0] = "Router config has been successfully changed."
FeedString[1] = "Configuration has been successfully changed."
FeedString[2] = "Configuration change failed."
FeedString[3] = "Other telnet session active. Write delayed."
var FailReason = new Array()
FailReason[0] = "Please report the following error: "
FailReason[1] = " Ambiguous Command."
FailReason[2] = " No Matched Command."
FailReason[3] = " No Matched Help Command."
FailReason[4] = " No Matched Alias Command."
FailReason[5] = " Config Locked Down Too Long."
FailReason[6] = " Configuration Change is not allowed."
FailReason[7] = " Wrong Tag Value."
FailReason[8] = " System is writing config to memory. Your change is aborted!"
FailReason[9] = " Parser return code failed."
FailReason[10] = " Invalid ITS command option."
var GenFeed = new Array()
GenFeed[0] = "Add the new extension to a new phone?"
function ksBanner() {
MWinC = "<html><head><style>BODY{\n margin-left: 0pt; \n margin-top: 0pt;\n}"
+ "</style><title>Cisco Unified Communications Manager Express</title></head>"
+ "<body><IMG src='logohome.gif' alt='Cisco Logo'>"
+ "</body></html>"
return MWinC
}
function Greet1() {
MWinC = "<html><head><title> View Window </title></head><style>BODY{BACKGROUND-COLOR: #cccccc} H2{PADDING-RIGHT: 0.25em; PADDING-LEFT: 0.25em; FONT-WEIGHT: bold; FONT-SIZE: 0.9em; PADDING-BOTTOM: 0.25em; MARGIN: 0.5em; COLOR: #666699; PADDING-TOP: 0.25em; FONT-FAMILY: Arial, Verdana, Lucida, sans-serif; BACKGROUND-COLOR: #cccccc }</style><body>\n"
+ "<H2>View Window</H2></body></html>\n"
return MWinC
}
function Greet2() {
MWinC = "<html><head><title> Change Window </title></head><body>\n"
+ "<h2>Change Window </h2></body></html>\n"
return MWinC
}
</SCRIPT>
</HEAD>
<FRAMESET rows="0,*" frameborder="0">
<FRAME name="banner" src="ITSMain" scrolling="NO" frameborder="0" marginwidth="0" marginheight="0" noresize>
<FRAME name="dispframe" src="javascript:parent.Greet1()">
</FRAMESET>
</HTML>
however i can get the content of the table from browser developer tools
any suggestions
|
|
|
|
|
Depends on how the page is implemented; you could contact Cisco and ask them.
Otherwise, you'll be hunting the JavaScript, looking where it dynamically loads the data. It'll be fetching XML or JSON from a URL, probably passing some arguments along. You can usually see it fetch this data in a tool like Fiddler/WinPCap.
Alternatively, there's a WebBrowser-control that acts like a webbrowser, but that can also be access using code. You could automate that to do whetever the user would do.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|