Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: dylim
  • Order by date
  1. dylim

    Send Email in VFP just using Windows native functions

    Hi Experts, I have come across several ways to send email in VFP using CDO, BLAT, Outlook or some 3rd party app. Which one basically uses native functions in Windows 10/11? I find CDO kinda iffy coz it needs to reference some URL like...
  2. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, Sorry for late reply. I took a couple of days off. The webcam class has an Init() that calls the DeclareDLLs() method. Kindly check the code I sent a few posts back. You may have missed it coz it's strangely in one of the last methods in the class definition. This class is dropped...
  3. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, 1. loBitMapInfoHeader = NewObject( This.BitMapInfoHeaderClass, This.BitMap[highlight #FCE94F]Info[/highlight]HeaderClassLib ) How stupid of me to miss this. Yes it now works using NewObject(). Thanks! 2. Your class does not have an Init routine that calls declaredlls. It is called in...
  4. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, To make the Webcam custom class more flexible, I added a UseBitMapInfo property which is .F. by default. If .F., it will show the default Format Dialog. If .T., which is the case when I dropped it on the form, it will create the object loBitMapInfoHeader object and populate its...
  5. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, I am fully aware of the differences between NEWOBJECT and CREATEOBJECT, with the latter having no need of the classlib being part of Set Classlib... I will still dig deeper to my app settings sir. Thanks.
  6. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, Before I test run each of them scenarios, I always make it a point to do CLEAR ALL. I also redo the testing by quitting VFP and getting back to it. Crazy really. Ever since I went to CREATEOBJECT and changed to different values, it works. FWIW, the Struct class examples use...
  7. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, Know what?! I changed: loBitMapInfoHeader = NEWOBJECT( This.BitMapInfoHeaderClass, This.BitMapHeaderClassLib ) to... loBitMapInfoHeader = CREATEOBJECT( This.BitMapInfoHeaderClass ) And it finally worked! Why is this so?! WTH
  8. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Hi Chriss, And the plot thickens. Below is the code of two classes - BitMapInfoHeader class (based on Struct class) and Webcam (wrapper class to the GitHub code). ************************************************** *-- Class Library: d:\vfpxdev\payprox\classes\webcam.vcx...
  9. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss Let me double check my code sir. I appreciate your precious time. You based in the US of A? You still doing VFP apps? Are there still VFP dev going on there?
  10. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, That's exactly what I did - I created method SetVideoFormat in the Webcam class so that it would be cleaner. Turned out though that this method's code have to be explicitly in the Form Init() rather than calling oWebcam.SetVideoFormat() for it to work.
  11. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, I create class BITMAPINFOHEADER which is a subclass of Christof's STRUCT class. The entire data structure is defined in the class I created. My bad. I should have told you that earlier. And yes, 'This' was used in the webcam class. Not ThisForm.
  12. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, I just jazzed up the name of the methods. Hahaha Msg() in the original one, I just made it MessageCenter(), with exactly the same code. All the methods I kinda changed their names, that's all.
  13. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, This is what worked (code in the Init of the Form). Note that I created a oWebCam custom class as wrapper class to the Github code. LOCAL loBitMapInfoHeader, lcString, lpString IF ThisForm.oWebcam.InitCaptureWindow( This.HWnd, This.shpWebcam.Left, This.shpWebcam.Top ) IF...
  14. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chriss, Here is the strange part. I wrapped the GitHub code into a custom class. I made a SetVideoFormat method that first creates a struct then calls SendMessage with the WM_CAP_SET_VIDEOFORMAT and struct. So in the Init of the form with the webcam, I called the SetVideoFormat of this custom...
  15. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    vernpace, Hi. I developed this for a timekeeping app. Employee taps his RFID card into a reader which then locates the guy's employee data on one side of the form, and on the other side the webcam interface shows him on. It will now record the time log together with his photo.
  16. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Chris Miller, Hi. When you run that Github code the first time, the form shows a black rectangle. You then press the Format button to get the right configuration - in my case it is 640x480 and YUY2 - the webcam then works. The succeeding times you run the form, it will already remember the...
  17. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Hi Mike, Here is the link to the source code: https://github.com/VFPX/Win32API/blob/master/samples/sample_437.md Have been at this for hours on end. I really thought I was done with this project as it was working like a charm in the IDE, but to my great dismay, it kept on showing the Format...
  18. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Hi Mike, When I ran the form in our VFP IDE, it will remember the settings (640x480, YUY2, 614400) after the first Video Format dialog. We can use your suggestion in this case. But, when I compiled it into an EXE already, the Video Format dialog kept on reverting back to the default values...
  19. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Hi Chriss, Thanks for your reply. I did see the link you gave. But man, this is gonna be a whole lot of digging! Am just hoping that someone who has done this would generous enough to help out. One thing I noticed - it remembers the settings when the form is run in our VFP IDE. Once I chose...
  20. dylim

    How to set Height, Width and Video Format in VFP using AVICAP32.DLL

    Hi Guys, I was able to fire up a webcam on a VFP form using this link: https://github.com/VFPX/Win32API/blob/master/samples/sample_437.md The problem is, every time the form shows, it will always show a Format Dialog (shown below) asking for Resolution, Pixel Depth and Size. Anyway I can...

Part and Inventory Search

Back
Top