the use camera with fwppc

Post Reply
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

the use camera with fwppc

Post by HATHAL »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post by HATHAL »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post by HATHAL »

if you link file to exe ok
send me copy
regards, hathal
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

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 :D
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Richard,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post by HATHAL »

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
Post Reply