×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Question Strange Error in my application to Modify the Exif

    Dear all,

    I just created a small function to modify the exif this example has been published in Nokia wiki , I got an strange error
    The error is : Undefined Symbol : 'class CExifmody * CExifModify::NewL(class TDesC8 )
    Code:
    void CImage_reader::get_image()
    	{
    	HBufC8 *buffer= NULL ;
    	HBufC8 *new_exif_value = NULL;
    	TInt size1 = 0;
    	User::LeaveIfError(fs.Connect());
    	CleanupClosePushL(fs);
    	User::LeaveIfError(file.Open(fs,_L("C:\m.jpeg"),EFileRead)); 
    	file.Size(size1);
    	buffer = HBufC8::NewLC(size1);
    	TPtr8 tp = buffer->Des();
    	file.Read(tp);
    	file.Close(); //to be closed before anything
    	
    	CExifModify* mod = CExifModify::NewL(tp); // i think the problem with this :s
    	CleanupStack::PushL(mod);
    	mod->SetImageDescriptionL(_L8("Mohamed"));
    	mod->SetMakeL(_L8("Nokia5500"));
    	new_exif_value = mod->WriteDataL(tp);
    	CleanupStack::PushL(new_exif_value);
    	
    	User::LeaveIfError(file.Replace(fs,_L("C:\m.jpeg"),EFileWrite));
    	file.Write(*new_exif_value);
    	file.Close();

  2. #2
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,357

    Re: Strange Error in my application to Modify the Exif

    what is the heade file and library add for this class

  3. #3
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Arrow Re: Strange Error in my application to Modify the Exif

    Code:
    #ifndef IMAGE_READER_H_
    #define IMAGE_READER_H_
    #include <exifmodify.h>
    #include <f32file.h>
    //forward declararatiom
    class CExifModify;
    class CImage_reader
    	{
    public:
    	void ContstuctL();
    	
    	CImage_reader();
    	void get_image();
    	virtual ~CImage_reader();
    private:
    	RFs fs;
    	RFile file;

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Strange Error in my application to Modify the Exif

    Can you please check SDK docs, and see that you also have added the library required by the class to your mmp file.

  5. #5
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Re: Strange Error in my application to Modify the Exif

    What are the libraries to be added to support those functions ?

  6. #6
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Re: Strange Error in my application to Modify the Exif

    I would add Exiflib library

  7. #7
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Wink Re: Strange Error in my application to Modify the Exif

    I just added ExifLib.lib and there are no more errors

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Strange Error in my application to Modify the Exif

    excellent, thus next time you see such an error, just open teh API docs and see the libraries & headers required.

  9. #9
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    68

    Re: Strange Error in my application to Modify the Exif

    Quote Originally Posted by symbianyucca View Post
    excellent, thus next time you see such an error, just open teh API docs and see the libraries & headers required.
    Thanks a lot

  10. #10
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Strange Error in my application to Modify the Exif

    Quote Originally Posted by dr.nokia View Post
    I just added ExifLib.lib and there are no more errors
    Code might get compiled successfully, but still it have some bugs. Path to image _L("C:\m.jpeg") is not correct. use double slash \\ instead of single slash \. i.e _L("C:\\m.jpeg") . Before testing it on emulator/device paste that image at correct location. I hope u are aware of file mapping on emulator for testing.

Similar Threads

  1. How to Edit/modify EXIF of picture has been taken from Nokia phone
    By dr.nokia in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2011-04-03, 17:38
  2. how to modify EXIF data in the 2nd?
    By VcNokia in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-02-26, 00:48
  3. Replies: 7
    Last Post: 2008-08-13, 17:24
  4. How to write/modify EXIF data with public 3rd edition SDK?
    By 3rdparty in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2006-10-28, 14:44
  5. how could I to modify the error Cdbv2.dat?
    By lingwangbochen in forum Symbian
    Replies: 0
    Last Post: 2002-11-19, 07:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×