|
modpluz (m)
|
i was wondering do we have any VB guru in the house.i'm priveledge to know bits about VB and i will like people with VB questions to ask in this thread and also hoping that this thread will grow fast.
anyway VB Programming isn't the only thing i do, i also do Web/Graphics Designing, Web Programming(ASP/VBSCRIPT), Web Marketing, SEO, Copyrighting, and few bits more.
so please if you have any questions about the above outlined field, please ask
Thanks
|
|
|
|
|
|
Isma (m)
|
well, i also know visual basic and I have come across a lot of glitches since I started using vb. But I would like to know if you know about the WINSOCK reconnection error. I've written a couple of Server-Client programs. When the server abruptly disconnects and comes back on (  NEPA!) the clients have problems reconnecting. I would appreciate any help I could get  Isma
|
|
|
|
|
|
DeepThough
|
I used to work as a programmer and was fairly good at VB.
I once wrote an email application much like hotmail e.t.c and I used the winsock component.Whatever you do, don't use pop ups. I had problems when I used pop-ups (dialog boxes) to receive feedback and input information. It freezes up/blocks the connection/communication between the local machine and the serves.
I don't program anymore. Haven't done so in over two years so I'm not much good anymore. Still, I hope that helped.
|
|
|
|
|
|
smartsoft (m)
|
Well i don't know much men... but i bet i did my own NotePad.. so Mostly i use my Own NotePad i develop.. to write my PHP Codes... (lol )
|
|
|
|
|
|
modpluz (m)
|
Isma, well... you see that's presently a general bug with the winsock control (i.e you cannot do that with the winsock control). but i promise anytime i find a shortcut/clue on how to cheat the winsock control, i'll hit you.
Thanks
|
|
|
|
|
|
Omo Olooto (m)
|
Try a third-party control, instead of winstock. What ver VB ?
|
|
|
|
|
|
modpluz (m)
|
you know i think the third party software(s) you were talking about actually originated and have something to do with winsock(one way or the other).so you see how tasking that would be and moreover this question have been asked a lot of times over the internet, still with no solution.
i guess you will have to accept the winsock control and all of its flaws or simply forget about using it.
|
|
|
|
|
|
2nde (m)
|
VB is a very good program if you have a very good knowledge. I have developed some stuffs with it.
|
|
|
|
|
|
Isma (m)
|
Well thanks all,  but apparently there's no clean way out of my problem. I'm going to try and get the Server to close and reload the socket the client was using when it went down and do the same for the client. by the way, Omo Olooto, it's VB6. And on another note, who knows how to detect (using vb of course!) when a print job has been sent locally and when a download has been initiated. 
|
|
|
|
|
|
dakmanzero (m)
|
Hmmm. Isma, it seems you are developing a cybercafe monitoring package. Pays well, I hope!  As for the winsock issue, it is NOT a bug. That is how winsock works. I reccomend you read up on "socket programming for windows". Back when the bank had me develop an instant messaging program (yahoo messenger/netmeeting style) I had to learn that stuff, but now .... I forget the specifics. The things ull need to do are: Have your clients poll the server at regular intervals. If they determine the connection is broken, they should change mode. I used public vars for this (which i shouldnt have, because its sloppy...) anyway no one's reading my code so who cares! When you change mode in this way, all client-server communication should cease except fresh re-connection requests. You can just block out the users, because u really don't want an offline mode in a cybercafe program anyway. Once the server restarts, you will initiate NEW connections, and not re-use the old ones. In the meantime, you should keep state information for each user yourself on the server, don't rely on winsock to preserve states. Remember this is nigeria- connections are MEANT to be broken here. I hope this helps. Its a lot of work, but is neccesary and pays off in the end. A theoretical alternative, which i can't advise u on because i have no experience in the area, is to use web services instead. They are stateless by design, so breaks in communication SHOULD not make a difference...but thats in theory, based on the cramming I had to do for my mcsd.net exams. Hope all that jargon helped.
|
|
|
|
|
|
modpluz (m)
|
@isma And on another note, who knows how to detect (using vb of course!) when a print job has been sent locally and when a download has been initiated
i don't have a clue on that yet but u might try using the Close Window By Caption Module(what most developers use - even those who develops cybercafe timers) Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Const WM_CLOSE = &H10 Const WM_DESTROY = &H2
Public sub CloseWindowByCaption(Caption As String) dim hParent as long hParent = FindWindow(vbNullString, Caption) If hParent <> 0 Then 'close it
PostMessage hParent, WM_CLOSE, 0, 0 PostMessage hParent, WM_DESTROY, 0, 0 End If End sub
and on your form you insert a timer object(it looks like a stopwatch in the IDE) then in the form code(for print) Private Sub Timer1_Timer() Call CloseWindowByCaption("Print") End Sub
or for(download) Private Sub Timer1_Timer() Call CloseWindowByCaption("File Download") End Sub
what that does is that anytime the timer finds a window with the caption 'Print' or 'File Download'(without the quotes) it closes it automatically you can also use that with some other windows(i.e. its not bound to the Print/Download Caption alone). i hope it helps.
|
|
|
|
|
|
Isma (m)
|
actually I'm not building up a cyber cafe software but breaking it down. I like to see how much of a program I can replicate without seeing the codes. the codes provided above do just what the software does, what I want is to be able to detect a download, reroute it and scan it with an antivirus and THEN send the file back to the intended destination.
|
|
|
|
|
|
africanboy (m)
|
I program with VB, now moving 2 VBNET2005, shouldt there b a category 4 d languages instead of just a thread, i don't have d patience 2 scroll through all d pages. And someone tell d webmaster to *please* activate a "quick post" reply. Having to load another page for posting a reply makes d browsing "wonky" 
|
|
|
|
|
|
HNENRI (m)
|
hi all am very good in vb if u need any type of vbcode you can call on me cus i have designed some many softwares 4 some niger company one of them is now used in a NPPC & others used in some college.
|
|
|
|
|
|
HNENRI (m)
|
 |
Warning!!
« #14 on: February 12, 2006, 08:45 PM » |
|
this post will intrest those cyber cafe operators that are still using some brwosing clint software of any type to time their costomers it will be of your own intrest to stop the use of those fake softwares cus i have made some vbcodes that can increase the time limit of those timing software and even tell me the admin password not only that xpose your transaction ticket database and can also shout down your server from a remote pc in your ca'fe so my advice to u all is to used just a wall clock timer (i know u may say is a lie that it can't work on your own timing software cus is the best) yea is the best cus you have someone like me browsing in your ca'fe take my advice now cus i have seen some good programmers guys like me doing that and i alway feel sorry 2 the ca'fe management and i alway go and info them.
|
|
|
|
|
|
HNENRI (m)
|
my follow nigerian get a nice Visual basic source code from me every month that will improve your Visual Basic programming free pf charge
|
|
|
|
|
|
HNENRI (m)
|
my follow nigerian get a nice Visual basic source code from me every month that will improve your Visual Basic programming, free of charge but don't pirate or comply my codes to your software of sales thax!
|
|
|
|
|
|
HNENRI (m)
|
learn to implement a graphical menu style in your applications that will be able to prononce & speak your menus on click, to your software users and also be able to play a desired music and finally wishing your a nice day as you exit program. "Use your senses Rule d World" Click on Download To download
|
|
|
|
|
|
HNENRI (m)
|
ARTIFICIAL INTELLIGENT TELEVISION (HENZ I A TV)
this my coming soon vbcode will intrest you and also teach u alot of things about robots
|
|
|
|
|
|
jotechng (m)
|
please can you help me in developing client/server program. say for a simple sales retailer. thank you. i will also be glade to have some vb 6.0 site that i can learn from quickly. thank you Joe
|
|
|
|
|
|
HNENRI (m)
|
i Need a little bit detail on how you want the simple sales retailer programe to look like
|
|
|
|
|
|
Zule (m)
|
I program with VB, now moving 2 VBNET2005, shouldt there b a category 4 d languages instead of just a thread, i don't have d patience 2 scroll through all d pages. And someone tell d webmaster to *please* activate a "quick post" reply. Having to load another page for posting a reply makes d browsing "wonky"  First, I would start with giving Kudos to the one that put of this Topic but what i want to say is that it is high time there b different category or Topic for the various versions of Vb I mean 1)commercial software developer in VB should start a Topic 2)Game programmers in VB start there own topic 3).net Programmer should start there own topic 4) and so on, rather than dumping all of them there in one Topic What do u guys Suggets? Finaly, Before i forget Kudos to Segun the site Adminstrator,
|
|
|
|
|
|