FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posts: 350
Joined: Wed Nov 02, 2005 03:28 PM
No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posted: Mon Oct 29, 2018 10:12 AM
Me he bajado estas librerias para compilar con Visual Studio 2015 : harbour_VSC2015_32bits_20160330.zip

Para poder compilar dshow.prg y me da el siguiente error :

Antonio necesito tu ayuda.

Tengo que utilizar la cΓ‘mara web en escritorio remoto , la clase webcam y la clase de Armando no funcionan en escritorio remoto y DSHOW si funciona en escritorio remoto.

Muchas Gracias.

Code (fw): Select all Collapse
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for Harbour 15.09 (MSVC++) Sep. 2015 Β  Β  Harbour development power β”‚β–„
β”‚ (c) FiveTech 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
Harbour 3.2.0dev (r1501292255)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'dshow.prg' and generating preprocessed output to 'dshow.ppo'...
Lines 4742, Functions/Procedures 2
Generating C source output to 'dshow.c'... Done.
Compilador de optimizaciΓ³n de C/C++ de Microsoft (R) versiΓ³n 19.00.24215.1 para x86
(C) Microsoft Corporation. Reservados todos los derechos.

dshow.c
Β  Β Creando biblioteca dshow.lib y objeto dshow.exp
FiveH32.lib(HARBOUR.obj) : error LNK2019: sΓ­mbolo externo ___iob_func sin resolver al que se hace referencia en la funciΓ³n _HB_FUN_FREOPEN_STDERR
dshow.exe : fatal error LNK1120: 1 externos sin resolver
* Linking errors *
Saludos,
Regards,

Jose Luis Alepuz
joseluis@mancomputer.com
www.mancomputer.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posted: Mon Oct 29, 2018 01:34 PM

Acabo de probar y creo el exe sin problemas
Asegurate que los paths de harbour y VSC sean correctos en tu build de compilacion
Que version de Fw estΓ‘s utilizando?, pero por si acaso, mira esto

viewtopic.php?f=3t=32188p=189028hilit=iob+func#p189028

&&&

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la nociΓ³n del tiempo

El secreto de la felicidad no estΓ‘ en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 350
Joined: Wed Nov 02, 2005 03:28 PM
Re: No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posted: Fri Nov 09, 2018 09:13 AM
Estoy usando la version FW 15.09.

No se si serΓ‘ por eso. El topic que me indicas habla sobre el 16.03.

Me da el siguiente error:

Code (fw): Select all Collapse
FiveH32.lib(HARBOUR.obj) : error LNK2019: sΓ­mbolo externo ___iob_func sin resolver al que se hace referencia en la funciΓ³n _HB_FUN_FREOPEN_STDERR
Saludos,
Regards,

Jose Luis Alepuz
joseluis@mancomputer.com
www.mancomputer.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posted: Sat Nov 10, 2018 07:51 AM

Aqui tienes el cΓ³digo para resolverlo:

viewtopic.php?p=189028#p189028

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 350
Joined: Wed Nov 02, 2005 03:28 PM
Re: No consigo compilar Dshow.prg. Necesito usar Camara Web RDP
Posted: Mon Nov 12, 2018 09:30 AM
Hola Antonio he modificado el fichero dshow.prg aΓ±adiendo lo que se indica en el hilo, te muestro el codigo :

Code (fw): Select all Collapse
#pragma BEGINDUMP

#pragma warning(disable:4996)

#include <hbapi.h>
#include <dshow.h>
#include <uuids.h>
#include <objbase.h>
#include <Windows.h> Β <-------- linea aΓ±adida
#import "qedit.dll" raw_interfaces_only named_guids

EXTERN_C const CLSID CLSID_NullRenderer;
EXTERN_C const CLSID CLSID_SampleGrabber;


extern "C" { Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  <-------- linea aΓ±adida
FILE * _iob[] = { stdin, stdout, stderr }; Β  Β  <-------- linea aΓ±adida

FILE * __iob_func( void ) Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β <-------- linea aΓ±adida
{ Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β <-------- linea aΓ±adida
return ( FILE * ) _iob; Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  <-------- linea aΓ±adida
} Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  <-------- linea aΓ±adida
} Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  <-------- linea aΓ±adida


HB_FUNC( DSHOWPLAY )
{
Β  Β IMediaControl * pMediaControl = ( IMediaControl * ) hb_parnll( 1 );

Β  Β pMediaControl->Run();
}
............



Pero al compilar me indicar el siguiente error : Me echas una mano.

Code (fw): Select all Collapse
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for Harbour 15.09 (MSVC++) Sep. 2015 Β  Β  Harbour development power β”‚β–„
β”‚ (c) FiveTech 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
Harbour 3.2.0dev (r1501292255)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'dshow.prg' and generating preprocessed output to 'dshow.ppo'...
Lines 4753, Functions/Procedures 2
Generating C source output to 'dshow.c'... Done.
Compilador de optimizaciΓ³n de C/C++ de Microsoft (R) versiΓ³n 19.00.24215.1 para x86
(C) Microsoft Corporation. Reservados todos los derechos.

dshow.c
libucrt.lib(_file.obj) : error LNK2005: ya se definiΓ³ __iob en dshow.obj
Β  Β Creando biblioteca dshow.lib y objeto dshow.exp
dshow.exe : fatal error LNK1169: se encontraron uno o mΓ‘s sΓ­mbolos definidos simultΓ‘neamente
* Linking errors *
Saludos,
Regards,

Jose Luis Alepuz
joseluis@mancomputer.com
www.mancomputer.com

Continue the discussion