FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC the use camera with fwppc
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
the use camera with fwppc
Posted: Sun Apr 02, 2006 05:08 PM

To all
I want the use camera with fwppc
i testing with function SHCameraCapture
But lib aygshell.lib Not Good With ARM
i Found aygshell.lib from Windows Mobile 5_0 SDK
I would like Export aygshell.lib from aygshell.dll
But aygshell.dll Not Found with Any system ( evc & Windows Mobile 5_0 SDK )
regards, hathal

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
the use camera with fwppc
Posted: Sun Apr 02, 2006 06:48 PM

Hathal,

The problem is that you can't copy a system DLL out of the Pocket PC in order to do an implib.exe aygshell.lib aygshell.dll. Its blocked by Windows Mobile API.

Please post here your code and we may try to help you.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
the use camera with fwppc
Posted: Sun Apr 02, 2006 08:45 PM

OK this FULL SOURCE

include "FWCE.ch"

//----------------------------------------------------------------------------//
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "TEST Cam "
@5, 10 BUTTON "TEST 1" SIZE 80, 25 ACTION;
CAM_CE(oWnd,5)
ACTIVATE WINDOW oWnd
return nil


pragma BEGINDUMP

include "windows.h"

include "mmsystem.h"

include "hbapi.h"

include "uniqueid.h"

include "AYGSHELL.h" // New Command With Windows Mobile 5_0 SDK

// i Testing this to cam.obj ok
LPWSTR AnsiToWide( LPSTR );
HB_FUNC( CAM_CE )
{
// CameraCaptureExample(NULL,12);
//}
// HRESULT
//int CameraCaptureExample(HWND hwndOwner, LPTSTR pszFilename)
// {
HRESULT hResult;
SHCAMERACAPTURE shcc;
// Set the SHCAMERACAPTURE structure.
ZeroMemory(&shcc, sizeof(shcc));
shcc.cbSize = sizeof(shcc);
// shcc.hwndOwner = hwndOwner;
shcc.hwndOwner = ( HWND ) hb_parnl( 1 );
shcc.pszInitialDir = TEXT("\My Documents");
shcc.pszDefaultFileName = TEXT("test.3gp");
shcc.pszTitle = TEXT("Camera Demo");
shcc.VideoTypes = CAMERACAPTURE_VIDEOTYPE_MESSAGING;
shcc.nResolutionWidth = 176;
shcc.nResolutionHeight = 144;
shcc.nVideoTimeLimit = 15;
shcc.Mode = CAMERACAPTURE_MODE_VIDEOWITHAUDIO;

// Display the Camera Capture dialog.
hResult = SHCameraCapture(&shcc);

// The next statements will execute only after the user takes
// a picture or video, or closes the Camera Capture dialog.
if (S_OK == hResult)
{
    // StringCchCopy(pszFilename, MAX_PATH, shcc.szFile);
    StringCchCopy(AnsiToWide(hb_parc( 2 )), MAX_PATH, shcc.szFile);

// return TRUE;
}
// return TRUE;//hResult;
}
#pragma ENDDUMP

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
the use camera with fwppc
Posted: Sun Apr 02, 2006 10:38 PM

Now we need to find a Pocket PC with camera to test it :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 07:02 AM

if you link file to exe ok
send me copy
regards, hathal

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 02:41 PM
Antonio Linares wrote:Now we need to find a Pocket PC with camera to test it :-)


Antonio

My HP Ipaq 6515 has a camera

If you need some testing let me know.

Richard :-)
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 05:32 PM

Richard,

Thanks. The idea is to test Hathal code and see what it does.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 07:12 PM
Antonio Linares wrote:Richard,

Thanks. The idea is to test Hathal code and see what it does.


Compile generates errors here is the log.

Note : My Ipaq runs win 2003 OS


ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ FiveWin for Pocket PC - June 2005 Harbour development power ³Ü
³ (c) FiveTech, 1993-2005 for Microsoft Windows Pocket PC ³Û
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
Compiling...
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Compiling 'hathal.prg' and generating preprocessed output to 'hathal.ppo'...

Lines 57, Functions/Procedures 1
Generating C source output to 'hathal.c'... Done.
hathal.c
hathal.prg(26) : error C2065: 'SHCAMERACAPTURE' : undeclared identifier
hathal.prg(26) : error C2146: syntax error : missing ';' before identifier 'shcc'
hathal.prg(26) : error C2065: 'shcc' : undeclared identifier
hathal.prg(29) : error C2228: left of '.cbSize' must have class/struct/union type
hathal.prg(31) : error C2228: left of '.hwndOwner' must have class/struct/union type
hathal.prg(32) : error C2228: left of '.pszInitialDir' must have class/struct/union type
hathal.prg(33) : error C2228: left of '.pszDefaultFileName' must have class/struct/union type
hathal.prg(34) : error C2228: left of '.pszTitle' must have class/struct/union type
hathal.prg(35) : error C2228: left of '.VideoTypes' must have class/struct/union type
hathal.prg(35) : error C2065: 'CAMERACAPTURE_VIDEOTYPE_MESSAGING' : undeclared identifier
hathal.prg(36) : error C2228: left of '.nResolutionWidth' must have class/struct/union type
hathal.prg(37) : error C2228: left of '.nResolutionHeight' must have class/struct/union type
hathal.prg(38) : error C2228: left of '.nVideoTimeLimit' must have class/struct/union type
hathal.prg(39) : error C2228: left of '.Mode' must have class/struct/union type
hathal.prg(39) : error C2065: 'CAMERACAPTURE_MODE_VIDEOWITHAUDIO' : undeclared identifier
hathal.prg(42) : error C2065: 'SHCameraCapture' : undeclared identifier
hathal.prg(49) : error C2065: 'StringCchCopy' : undeclared identifier
hathal.prg(49) : error C2228: left of '.szFile' must have class/struct/union type
LINK : fatal error LNK1181: cannot open input file 'hathal.obj'
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 07:44 PM

Hathal,

Please provide us the "AYGSHELL.h" that you are using.

Use www.hyperload.com to upload it and provide its download link. Thanks.

Richard, thanks for your help :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
the use camera with fwppc
Posted: Mon Apr 03, 2006 08:25 PM

Antonio
AYGSHELL.h And AYGSHELL.lib
With Windows Mobile 5.0 Pocket PC SDK
say dir ( Include& lib )
--
from dir up
Compile
with this file


@ set hdir=%1harbour_CE
@ set vcdir=%1vce
@ set fwppc=%1fwppc
@ set include="inclode_NEW_dir";%vcdir%\include\arm;%hdir%\include;%fwppc%\include;%include%
@ set lib=%vcdir%\lib;%hdir%\lib;%lib%
@SET PATH=%PATH%;%vcdir%\bin;%hdir%\bin


regards, hathal

Continue the discussion