Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCaptions with files Pin
Anthony Appleyard15-Apr-12 4:58
Anthony Appleyard15-Apr-12 4:58 
AnswerRe: Captions with files Pin
Lakamraju Raghuram15-Apr-12 6:58
Lakamraju Raghuram15-Apr-12 6:58 
GeneralRe: Captions with files Pin
Anthony Appleyard15-Apr-12 8:25
Anthony Appleyard15-Apr-12 8:25 
AnswerRe: Captions with files Pin
enhzflep15-Apr-12 8:23
enhzflep15-Apr-12 8:23 
GeneralRe: Captions with files Pin
Anthony Appleyard15-Apr-12 8:58
Anthony Appleyard15-Apr-12 8:58 
GeneralRe: Captions with files Pin
enhzflep15-Apr-12 9:02
enhzflep15-Apr-12 9:02 
GeneralRe: Captions with files Pin
Anthony Appleyard15-Apr-12 19:31
Anthony Appleyard15-Apr-12 19:31 
GeneralRe: Captions with files Pin
enhzflep15-Apr-12 20:17
enhzflep15-Apr-12 20:17 
There's been no problem caused through your use of brackets.


No, there isn't something available with the interface you describe. The provided functions are available in .NET

See here: reading-writing-and-photo-metadata[^]

Furthermore, the data is stored in neither the directory entry (fileDescriptor) nor the Registry. See for yourself!

Got a Hex-Editor? (Nope? Get one - HxD is okay and $free)
I chose a JPG and did the following:

1) Right-click a photo
2) Select Properties, then the Details tab.
3) Add some unique text - I set the Camera Model field to "Canon EOS".
4) Hit apply
5) Now you can see that the photo's last modified date is the current date and time, furthermore, when you open the image in the HexEditor, you can easily find the text you entered.

It should be fairly easy to implement the getfilecaption function yourself, it's likely going to involve searching the file for some kind of marker (don't think you'll have to parse the whole file, including image data yourself) so that you know where the metadata starts.

Obviously, different filetypes have different structures, so you'd have to implement the function for each of the different image-file types you'd like to support.


Unfortunately, it is unlikely that writing the metadata will be so simple.


Here's a few pertinant links:

JFIF metadata[^]
(2nd search result): Does Exif metadata always get stored just after the jfif header?[^]
GeneralRe: Captions with files Pin
Anthony Appleyard15-Apr-12 22:23
Anthony Appleyard15-Apr-12 22:23 
AnswerRe: Captions with files Pin
enhzflep3-May-12 22:21
enhzflep3-May-12 22:21 
QuestionCan someone show me how to draw 3D lines? Pin
xy50518814-Apr-12 21:55
xy50518814-Apr-12 21:55 
AnswerRe: Can someone show me how to draw 3D lines? Pin
enhzflep14-Apr-12 23:44
enhzflep14-Apr-12 23:44 
QuestionProgress Bar not worked well with larger values? Pin
Le@rner14-Apr-12 2:43
Le@rner14-Apr-12 2:43 
AnswerRe: Progress Bar not worked well with larger values? Pin
Wes Aday14-Apr-12 2:56
professionalWes Aday14-Apr-12 2:56 
AnswerRe: Progress Bar not worked well with larger values? PinPopular
enhzflep14-Apr-12 3:04
enhzflep14-Apr-12 3:04 
GeneralRe: Progress Bar not worked well with larger values? Pin
Le@rner16-Apr-12 18:55
Le@rner16-Apr-12 18:55 
GeneralRe: Progress Bar not worked well with larger values? Pin
enhzflep16-Apr-12 20:54
enhzflep16-Apr-12 20:54 
AnswerRe: Progress Bar not worked well with larger values? Pin
Maximilien14-Apr-12 3:34
Maximilien14-Apr-12 3:34 
QuestionCreateWindowEx, DestroyWindow, CreateWindowEx Pin
jkirkerx13-Apr-12 10:31
professionaljkirkerx13-Apr-12 10:31 
AnswerThat was just a bad idea - went back to hide and show Pin
jkirkerx13-Apr-12 12:28
professionaljkirkerx13-Apr-12 12:28 
AnswerRe: CreateWindowEx, DestroyWindow, CreateWindowEx Pin
Binu MD16-Apr-12 21:22
Binu MD16-Apr-12 21:22 
GeneralRe: CreateWindowEx, DestroyWindow, CreateWindowEx Pin
jkirkerx17-Apr-12 7:12
professionaljkirkerx17-Apr-12 7:12 
GeneralRe: CreateWindowEx, DestroyWindow, CreateWindowEx Pin
Binu MD17-Apr-12 14:59
Binu MD17-Apr-12 14:59 
GeneralRe: CreateWindowEx, DestroyWindow, CreateWindowEx Pin
jkirkerx17-Apr-12 15:49
professionaljkirkerx17-Apr-12 15:49 
AnswerRe: CreateWindowEx, DestroyWindow, CreateWindowEx Pin
JohnCz25-Apr-12 1:29
JohnCz25-Apr-12 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.