Results 1 to 21 of 21

Thread: Anyone mastered vb6 enough to solve this?

  1. #1
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Anyone mastered vb6 enough to solve this?

    Everybody knows how to capture the webcam in a picturebox and then save a preview in a bmp file.

    But:

    Minimize or overlap the capture window and then try to capture a snapshoot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Result:

    preview screen will hold on the last frame!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


    I tried my best but couldn't find a solution. Any one who think he knows vb6 better can test his skills and solve this annoying problem?


    PS: For your quick start i created a sample project demonstrating the problem.
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    My whole project is pending for this problem. please give a little of your precious time and find a solution please!

  3. #3
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    I don't have my web cam right now but I have had the same problem. I can't remember whether I was able to solve it or not. Do something for me and let me know what happens. Start you app and allow it to take snap shots (do not minimize it). Now while you are looking at the images in picWebCam manually move your Form away and see if the images move with your Form or do they stay at the same position.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  4. #4
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Is there any vb6 guru/master in this forum? or it is all noobs here?
    Last edited by ufo973; Aug 30th, 2012 at 03:57 PM.

  5. #5
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    You appear to be a noob if you can't figure out the problem - I had problems very similar to yours and now that I found my old application I see that I got it to work but I had to dig into the code and search the net until I finally got it solved.

    If you are going to call names to those who try to help you then good luck with your problem.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  6. #6
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    I am sorry i didn't call you noob. Actually i got angry coz my whole project is pending for this problem. and i wrote my problem in this forum today morning with the hope that when evening i come home i might find some solutions but when i check the forum there was no reply and only you replyed but i didn't get what you said. so i thought that there is not so many expert in this forum.

    Please if you have a solution then give me coz my project is standing still because of it.

  7. #7
    PowerPoster
    Join Date
    Jul 06
    Location
    Maldon, Essex. UK
    Posts
    5,124

    Re: Anyone mastered vb6 enough to solve this?

    @ufo: You've been around the Forum for nearly a year so you should have caught on the the fact that there are many experts here and also understand the etiquette of the Forums in general.

    All contributors help when they have the time / inclination / knowledge to do so.

    One factor that affects whether I personally look at / respond to a Thread is the Title. That way I can see whether the problem falls within my knowledge / experience. Yours just looks like a 'challenge' designed to illicit speedy responses rather than an informative summary of the problem; I tend to ignore such Threads.

    I also sometimes look at other posts by the OP in order to guage their level of knowledge and experience which would affect how I might respond (BTW looking at some of yours they seem to fall within the 'dodgy' category and whilst not necessarily against the Rules may not be within the 'spirit' of the Forums (you may like to take a look at the Rules here: http://www.vbforums.com/misc.php?do=showrules)

    Your problem, I suspect, originates from a lack of design. I guess you had an idea, started to code and then got stuck on something you hadn't thought of. Had you, in the early stages, thought of exactly what you wanted to do, you may have realised that you didn't know how to do it and performed some research; that way you wouldn't have ended up being 'held up' at the latter stages of implementation leading to desperate calls for help.

    Obviously, whether JM can / will help is up to them.

  8. #8
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Two days from the post and still nobody provided any solution!
    Every body comes and teach me some manners and goes without providing any help.
    My whole project is standing still

  9. #9
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Anyone????????????

  10. #10
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    OK, here is a project I worked on last year but haven't done anything to it since then. I see where I made a note at the top of the Form about correcting the minimized problem. I either misplaced my cam or I loaned it out to someone but I don't have one now so I can't test this application to see if it really works so I can't guarantee anything. I have another similar project somewhere in my archives that I haven't been able to find and it too had same problem. I remember with one of the two, not sure which one, that if I moved the Form manually (mouse on titlebar) that the Form would move around the screen but the image from the cam didn't move; it stayed in it's original position which later I discovered that when this occurs that the image from the cam is not really pasted into the picturebox but is captured on the window screen and that you could not copy it if the application was minized or another object was on top of the cam application. I seem to think it was the other program and not the one in the zip file but it has been quite awhile so I really don't know for sure. All you can do it to try it and see what happens.
    Attached Files Attached Files
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  11. #11
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by jmsrickland View Post
    OK, here is a project I worked on last year but haven't done anything to it since then. I see where I made a note at the top of the Form about correcting the minimized problem. I either misplaced my cam or I loaned it out to someone but I don't have one now so I can't test this application to see if it really works so I can't guarantee anything. I have another similar project somewhere in my archives that I haven't been able to find and it too had same problem. I remember with one of the two, not sure which one, that if I moved the Form manually (mouse on titlebar) that the Form would move around the screen but the image from the cam didn't move; it stayed in it's original position which later I discovered that when this occurs that the image from the cam is not really pasted into the picturebox but is captured on the window screen and that you could not copy it if the application was minized or another object was on top of the cam application. I seem to think it was the other program and not the one in the zip file but it has been quite awhile so I really don't know for sure. All you can do it to try it and see what happens.
    Not working in my computer. the saved pictures are blank??????

  12. #12
    PowerPoster
    Join Date
    Feb 12
    Location
    West Virginia
    Posts
    4,947

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by ufo973 View Post
    Everybody knows how to capture the webcam in a picturebox and then save a preview in a bmp file.
    No everyone does not know how to do this, In fact most programmers never bother much with BMPs or Webcams

    Minimize or overlap the capture window and then try to capture a snapshoot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    So why not just make sure the picture is in the foreground when you execute the capture code?
    Sounds simple enough if you already know how to capture the image.

    I tried my best but couldn't find a solution. Any one who think he knows vb6 better can test his skills and solve this annoying problem?
    Really has nothing to do with how well someone does or does not know VB6 but rather how much they have worked with image capture and if they have ever tried to design an app to capture an image from a web cam then do a screen shot of a window that is not totally visible.

    To me it sounds like your design is wrong to start with and would be the reason you have ran into an issue.

    If I were to do such a project I would start by using VB.Net.

  13. #13
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    It may have something to do with SaveJPG function. There is a thread around here about 2 - 3 weeks ago that someone posted, not sure, but I think it was found out that SaveJPG does not work on all versions of Windows and/or VB. I'm 99.9% sure that application worked on my PC (until I find my cam I can't test it for proof). I'm using XP-SP2 and VB6.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  14. #14
    Addicted Member
    Join Date
    Aug 10
    Posts
    149

    Re: Anyone mastered vb6 enough to solve this?

    Did you try the code in this thread?

    http://www.vbforums.com/showthread.p...-w-o-Clipboard

  15. #15
    Frenzied Member
    Join Date
    Aug 11
    Location
    B.C., Canada
    Posts
    1,838

    Re: Anyone mastered vb6 enough to solve this?

    I just had a quick look on my pc yesturday jms project webcam worked (when click command record twice) but my pictures were blank also i saw it was saving as date.jpg & Chr(0) i am not on pc or else i would test but you think that chr is making file display blank because ot does not save .jpg but saves .jpg & chr(0)

  16. #16
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by jmsrickland View Post
    I'm 99.9% sure that application worked on my PC (until I find my cam I can't test it for proof). I'm using XP-SP2 and VB6.
    You don't have to have a webcam to make or test such projects. I also don't have a webcam( i have one in my brother's pc) but i use virtual webcam which works great. Here is the link VirtualWebCam
    PS: I don't need to save the image in jpg. BMP is ok for me.

  17. #17
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 08
    Location
    *****
    Posts
    963

    Re: Anyone mastered vb6 enough to solve this?

    one trick to this is momentarily bringing the window to the front, take the catcure and hide / send it to the back. this would not be noticeable as it would happen within seconds. i onces face a similar problem when doing screen capture
    Programming is all about good logic. Spend more time here


    (vHost for Apache) (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

  18. #18
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by ufo973 View Post
    You don't have to have a webcam to make or test such projects. I also don't have a webcam( i have one in my brother's pc) but i use virtual webcam which works great. Here is the link VirtualWebCam
    PS: I don't need to save the image in jpg. BMP is ok for me.
    OK, I downloaded it and it's installed. Now what?
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  19. #19
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by jmsrickland View Post
    OK, I downloaded it and it's installed. Now what?
    You have a webcam now
    From objects add a moving flag so you can now that camera is working or not. now you check your vb code it will show the virtual camera working with a moving flag.

  20. #20
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,751

    Re: Anyone mastered vb6 enough to solve this?

    When I run the VB app the ManyCam shows in the picturebox but I don't see where it is doing anything. All the pictures are blank. There is no motion at all just a black screen.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  21. #21
    Lively Member
    Join Date
    Oct 11
    Posts
    126

    Re: Anyone mastered vb6 enough to solve this?

    Quote Originally Posted by jmsrickland View Post
    When I run the VB app the ManyCam shows in the picturebox but I don't see where it is doing anything. All the pictures are blank. There is no motion at all just a black screen.
    In ManyCam Software add some motion pictures to your virtual camera, like in Objects there are some flags with motion you can add. So you always knows the camers is on

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •