Hi again,

Sorry about the last posting. Actually I was using KCameraLib instead of
KCamLib for 650 and that's why it was referring wrong header file.

I have written the following code to open the camera library.

The problem is that call to the 
error = SysLibFind(kCamLibName, &gLibRefNum); function returns error in the
following code.


/* Open the Camera library to be able to get control of device camera*/
    
        if(gLibRefNum == sysInvalidRefNum) 
        {               
                error = SysLibFind(kCamLibName, &gLibRefNum);
                
                FrmCustomAlert(ErrorAlert,"Dee - 3", NULL, NULL);
                        
                if (error) 
                {               
                        FrmCustomAlert(ErrorAlert,"Dee - 4", NULL, NULL);

                        error = SysLibLoad(sysFileTLibrary, kCamLibCreator,
&gLibRefNum); 
                        
                        FrmCustomAlert(ErrorAlert,"Dee - 5", NULL, NULL);
                        
                        if (error) 
                        {
                                FrmCustomAlert(ErrorAlert, "SysLibLoad
error:", NULL, NULL);
                                return error;
                        }
                }
        
                error = CameraLibOpen(gLibRefNum);
                if (error) 
                {
                        FrmCustomAlert(ErrorAlert, "Camera Lib Cant Be
Opened Error", NULL, NULL);       
                }
        }

Can anyone tell me what I need to do so that it will find the camera
library.

Thanks,
Keyur.



-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 03, 2004 3:53 PM
To: Palm Developer Forum
Subject: Re: Treo650 Camera API

At 02:08 PM 12/3/2004, you wrote:
>My Treo600 app that controls the device camera is working perfectly fine.
>
>Now I want to make my app to work for Treo650 and I found out that the
>camera libraries have changed.
>
>I have downloaded the PalmOne SDK 4.0 Beta headers for Treo650.
>
>How can I link these new header files with codewarrior so that at compile
>time it will use this new SDK? Is it possible that I can specify what SDK
to
>use for a particular project in CodeWarrior?

Just put the header files in a known location and then add access paths to 
your project so the compiler can find them.  You'll see an access path 
setup in your current project for the Treo 600 SDK; just do something like 
that.

My general advice is to put licensee SDKs in the "CW for Palm OS 
Support/(Other SDKs)" folder, but you can put it whereever you want.

-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
    "Combee on Palm OS" weblog: http://palmos.combee.net/
    Developer Forum Archives:   http://news.palmos.com/read/all_forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to