Problem x:\fwh\samples\dshow.prg

Problem x:\fwh\samples\dshow.prg

Postby Jimmy » Sat Nov 30, 2019 10:26 pm

hi,

i like to run Demo Sample for DSHOW but i got a lot of Error when compile
in CMD Box of x:\fwh\samples i type
Code: Select all  Expand view
 Build.Bat Dshow

and this i got as Result
Lines 5167, Functions/Procedures 2
Generating C source output to 'dshow.c'... Done.
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
dshow.c:
Warning W8137 dshow.prg 48: Deprecated #import directive encountered. Please use the TLIBIMP utility instead.
Error E2503 dshow.prg 48: Missing or incorrect version of TypeLibImport.dll
Error E2451 dshow.prg 57: Undefined symbol 'Run' in function HB_FUN_DSHOWPLAY
Warning W8004 dshow.prg 58: 'pMediaControl' is assigned a value that is never used in function HB_FUN_DSHOWPLAY
Error E2451 dshow.prg 64: Undefined symbol 'Stop' in function HB_FUN_DSHOWSTOP
Warning W8004 dshow.prg 65: 'pMediaControl' is assigned a value that is never used in function HB_FUN_DSHOWSTOP
Error E2451 dshow.prg 86: Undefined symbol 'DexterLib' in function HB_FUN_DSHOWCAMERA
Error E2379 dshow.prg 86: Statement missing ; in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 88: Undefined symbol 'strcpy_instead_use_StringCchCopyA_or_StringCbCopyA' in function HB_FUN_DSHOWCAMERA
Warning W8019 dshow.prg 88: Code has no effect in function HB_FUN_DSHOWCAMERA
Warning W8019 dshow.prg 88: Code has no effect in function HB_FUN_DSHOWCAMERA
Error E2342 dshow.prg 97: Type mismatch in parameter 'rclsid' (wanted 'const _GUID * const', got '_GUID') in function HB_FUN_DSHOWCAMERA
Error E2342 dshow.prg 104: Type mismatch in parameter 'rclsid' (wanted 'const _GUID * const', got '_GUID') in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 109: Undefined symbol 'SetFiltergraph' in function HB_FUN_DSHOWCAMERA
Warning W8065 dshow.prg 115: Call to function 'IID_PPV_ARGS' with no prototype in function HB_FUN_DSHOWCAMERA
Error E2342 dshow.prg 115: Type mismatch in parameter 'rclsid' (wanted 'const _GUID * const', got '_GUID') in function HB_FUN_DSHOWCAMERA
Error E2193 dshow.prg 115: Too few parameters in call to 'CoCreateInstance' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 120: Undefined symbol 'CreateClassEnumerator' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 129: Undefined symbol 'Next' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 139: Undefined symbol 'BindToStorage' in function HB_FUN_DSHOWCAMERA
Warning W8065 dshow.prg 139: Call to function 'IID_PPV_ARGS' with no prototype in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 144: Undefined symbol 'Read' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 147: Undefined symbol 'sprintf_instead_use_StringCchPrintfA_or_StringCbPrintfA' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 147: Undefined symbol 'bstrVal' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 149: Undefined symbol 'Release' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 167: Undefined symbol 'BindToStorage' in function HB_FUN_DSHOWCAMERA
Warning W8065 dshow.prg 167: Call to function 'IID_PPV_ARGS' with no prototype in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 169: Undefined symbol 'Read' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 174: Undefined symbol 'BindToObject' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 181: Undefined symbol 'AddFilter' in function HB_FUN_DSHOWCAMERA
Error E2342 dshow.prg 189: Type mismatch in parameter 'rclsid' (wanted 'const _GUID * const', got '_GUID') in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 195: Undefined symbol 'QueryInterface' in function HB_FUN_DSHOWCAMERA
Error E2121 dshow.prg 196: Function call missing ) in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 202: Undefined symbol 'pSampleGrabber' in function HB_FUN_DSHOWCAMERA
Error E2140 dshow.prg 208: Declaration is not allowed here in function HB_FUN_DSHOWCAMERA
Error E2293 dshow.prg 212: ) expected in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 218: Undefined symbol 'AddFilter' in function HB_FUN_DSHOWCAMERA
Error E2342 dshow.prg 226: Type mismatch in parameter 'rclsid' (wanted 'const _GUID * const', got '_GUID') in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 232: Undefined symbol 'AddFilter' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 238: Undefined symbol 'RenderStream' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 245: Undefined symbol 'RenderStream' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 253: Undefined symbol 'QueryInterface' in function HB_FUN_DSHOWCAMERA
Error E2451 dshow.prg 262: Undefined symbol 'Run' in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pBuffer' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pCap' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pPropBag' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pMoniker' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pEnum' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
Warning W8004 dshow.prg 275: 'pDevEnum' is assigned a value that is never used in function HB_FUN_DSHOWCAMERA
*** 35 errors in Compile ***
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'DSHOW.OBJ'
* Linking errors *

so what i'm doing wrong :?:
Newbie need help please

p.s. other Sample work that Ways

---

Question : is that Demo for 64 Bit :?:

i do not have qedit.dll on my 32 Bit OS Partition but found it under 64 Bit OS
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1587
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Problem x:\fwh\samples\dshow.prg

Postby Jimmy » Mon Dec 02, 2019 1:02 am

Ok, have Found

* New: samples\dshow.prg shows how to take photos using your webcam.
This example only works with MS Visual Studio Community 2015. To build it simply do:

FWH\samples\buildh32.bat dshow
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1587
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Problem x:\fwh\samples\dshow.prg

Postby Jimmy » Thu Dec 05, 2019 1:05 am

have now installed VS and run buildh32.bat dshow

but i still get Error :(
please help

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 19.06 (MSVC++) Jun. 2019 Harbour development power │▄
│ (c) FiveTech 1993-2019 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.0
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
Compiling...
Harbour 3.2.0dev (r1909261630)
Copyright (c) 1999-2019, https://harbour.github.io/
Compiling 'dshow.prg' and generating preprocessed output to 'dshow.ppo'...
Lines 5132, Functions/Procedures 2
Generating C source output to 'dshow.c'... Done.
Microsoft (R) C/C++-Optimierungscompiler Version 19.24.28314 für x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

dshow.c
dshow.prg(48): warning C4192: Automatischer Ausschluss von "IPersistStream" während des Importierens der Typbibliothek "
qedit.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "IPersist" während des Importierens der Typbibliothek "qedit.
dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "IStream" während des Importierens der Typbibliothek "qedit.d
ll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "ISequentialStream" während des Importierens der Typbibliothe
k "qedit.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "_LARGE_INTEGER" während des Importierens der Typbibliothek "
qedit.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "_ULARGE_INTEGER" während des Importierens der Typbibliothek
"qedit.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "tagSTATSTG" während des Importierens der Typbibliothek "qedi
t.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "_FILETIME" während des Importierens der Typbibliothek "qedit
.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "IPropertyBag" während des Importierens der Typbibliothek "qe
dit.dll"
dshow.prg(48): warning C4192: Automatischer Ausschluss von "IErrorLog" während des Importierens der Typbibliothek "qedit
.dll"
dshow.prg(48): warning C4278: "GetUserName": der Bezeichner in der Typbibliothek "qedit.dll" ist bereits ein Makro; benu
tzen Sie den "rename"-Qualifizierer
FiveH32.lib(FILENAME.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_OCCURS".
FiveH32.lib(VALTOSTR.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_OCCURS".
FiveH32.lib(XBROWSE.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_OCCURS".
FiveH32.lib(VALTOSTR.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_HB_TSTOUTC".
FiveH32.lib(OLEFUNCS.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN_HB_BLEN".
FiveH32.lib(VSTRFUN1.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_hb_strAtI" in Funktion "_HB_F
UN_FW_ATIC".
FiveH32.lib(ADOFUNCS.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_HB_FUN___OLEVARIANTNEW".
FiveHC32.lib(RICHEDIT.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_hb_extIsNil" in Funktion "_H
B_FUN_RELOADASRTF".
FiveHC32.lib(RICHEDI5.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_hb_extIsNil".
hbvm.lib(hvmall.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "___iob_func" in Funktion ""void __c
decl internal_malloc_stats(struct malloc_state *)" (?internal_malloc_stats@@YAXPAUmalloc_state@@@Z)".
hbcplr.lib(hbcomp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___iob_func".
hbpp.lib(ppcore.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___iob_func".
hbpp.lib(ppcore.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_printf" in Funktion ""void __cdecl
hb_pp_disp(struct HB_PP_STATE *,char const *)" (?hb_pp_disp@@YAXPAUHB_PP_STATE@@PBD@Z)".
dshow.exe : fatal error LNK1120: 8 nicht aufgelöste Externe
* Linking errors *

c:\fwh\samples>
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1587
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Problem x:\fwh\samples\dshow.prg

Postby nageswaragunupudi » Thu Dec 05, 2019 5:34 pm

Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem x:\fwh\samples\dshow.prg

Postby Jimmy » Thu Dec 05, 2019 8:54 pm

hi,

thx to show that it work for you but it does not work on my PC as i got these Error.

it looks for me that i got wrong LIBs from c:\harbour\lib\win\msvc\
so where can i get latest Version of harbour MSVC LIBs :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1587
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Problem x:\fwh\samples\dshow.prg

Postby Jimmy » Sat Dec 07, 2019 6:46 am

hi,

using the right \MSVC LIB it work :D

now i like to ask :
a.) how to enhance CAM Window :?:
b.) select other CAM (have Front and Rear in Table PC)

i guess it is in "VC" Part ...
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1587
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Problem x:\fwh\samples\dshow.prg

Postby FranciscoA » Mon Jan 27, 2020 7:03 pm

Jimmy wrote:hi,

using the right \MSVC LIB it work :D

now i like to ask :
a.) how to enhance CAM Window :?:
b.) select other CAM (have Front and Rear in Table PC)

i guess it is in "VC" Part ...


Hi, Jimmy.
I would like to compile the dshow.prg

Can we see your buildh32.bat ?

Thanks.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2110
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Problem x:\fwh\samples\dshow.prg

Postby FranciscoA » Mon Jan 27, 2020 10:02 pm

Ok. Already solved.
Thanks anyway.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2110
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests