Any Visual Basic (VB) Guru In The House?

A Member? Please Login  
type your username and password to login
Date: July 24, 2008, 11:44 PM
223369 members and 126759 Topics
Latest Member: khashrowm
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Any Visual Basic (VB) Guru In The House?
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Any Visual Basic (VB) Guru In The House?  (Read 1667 views)
modpluz (m)
Any Visual Basic (VB) Guru In The House?
« on: December 27, 2005, 05:58 AM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #1 on: December 28, 2005, 02:42 PM »

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 ( Grin NEPA!) the clients have problems reconnecting. I would appreciate any help I could get
Cool Isma
DeepThough
Re: Any Visual Basic (VB) Guru In The House?
« #2 on: December 29, 2005, 01:39 AM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #3 on: December 30, 2005, 03:59 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #4 on: December 30, 2005, 11:36 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #5 on: December 31, 2005, 05:10 AM »

Try a third-party control, instead of winstock. What ver VB ?
modpluz (m)
Re: Any Visual Basic (VB) Guru In The House?
« #6 on: December 31, 2005, 11:59 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #7 on: January 03, 2006, 08:19 PM »

VB is a very good program if you have a very good knowledge. I have developed some stuffs with it.
Isma (m)
Re: Any Visual Basic (VB) Guru In The House?
« #8 on: January 03, 2006, 08:50 PM »

Well thanks all,  Smiley 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.  Huh
dakmanzero (m)
Re: Any Visual Basic (VB) Guru In The House?
« #9 on: January 07, 2006, 10:08 PM »

Hmmm. Isma, it seems you are developing a cybercafe monitoring package. Pays well, I hope! Cheesy

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! Cheesy

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)
Re: Any Visual Basic (VB) Guru In The House?
« #10 on: January 13, 2006, 11:34 PM »

@isma
Quote
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)

Code:
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)
Code:
Private Sub Timer1_Timer()
Call CloseWindowByCaption("Print")
End Sub

or for(download)
Code:
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)
Re: Any Visual Basic (VB) Guru In The House?
« #11 on: January 16, 2006, 07:55 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #12 on: January 30, 2006, 03:51 PM »

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"

Tongue
HNENRI (m)
programmer HENZ
« #13 on: February 12, 2006, 08:15 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #15 on: February 13, 2006, 10:07 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #16 on: February 13, 2006, 10:11 PM »

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)
Expensive Menu Style
« #17 on: February 13, 2006, 10:23 PM »

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)
Coming Soon VBCODE
« #18 on: February 13, 2006, 10:28 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #19 on: April 01, 2006, 03:49 PM »

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)
Re: Any Visual Basic (VB) Guru In The House?
« #20 on: April 04, 2006, 08:26 PM »

i Need a little bit detail on how you want the simple sales retailer programe to look like
Zule (m)
Re: Any Visual Basic (VB) Guru In The House?
« #21 on: April 05, 2006, 07:45 PM »

Quote from: africanboy on January 30, 2006, 03:51 PM
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"

 Tongue
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,
 Free C/C++ Users Journal v6.0 for Developers  What Kind Of DBA (Database Administrator) Are You?  Local Software Piracy (Otigba Boys) - The Way Forward  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.