Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Outprocess Control Pin
Tracy Software29-Dec-11 0:55
Tracy Software29-Dec-11 0:55 
QuestionTAPI Call program Pin
Hadi Dayvary28-Dec-11 22:05
professionalHadi Dayvary28-Dec-11 22:05 
QuestionHow to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar27-Dec-11 21:22
Avinash Pachar27-Dec-11 21:22 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
David Crow28-Dec-11 4:20
David Crow28-Dec-11 4:20 
AnswerRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Chuck O'Toole28-Dec-11 5:16
Chuck O'Toole28-Dec-11 5:16 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar3-Jan-12 21:21
Avinash Pachar3-Jan-12 21:21 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar9-Jan-12 22:28
Avinash Pachar9-Jan-12 22:28 
QuestionWriting data on exif Pin
eduardocardoso27-Dec-11 6:09
eduardocardoso27-Dec-11 6:09 
How can i make sure that i write data on the 1st column of Tag Comments?? Here's is my code:

camPic = Image::FromStream( pStream );

CString str, exifValue;

PropertyItem* propItem = new PropertyItem;

camPic->RemovePropertyItem(PropertyTagExifUserComment);


float temperature, pressure, humidity, wnd_speed, wnd_dir, today_rain;

if ( Global.Working.WeatherStation == true && AccBuff.ReadWeather( it_pic, &temperature, &humidity, &pressure, &wnd_speed, &wnd_dir, &today_rain ))
{

if ( humidity > 101.0 && humidity <= 0.0 )
humidity = 0.00;

exifValue.Format( "ID=%s&scn=%d&img=%d&time=%s&az=%.02f&alt=%.02f&ws=%.02f&wd=%.02f&rnf=%.02f&rni=0&rnd=0&atm=%.02f&temp=%.02f&hum=%.02f",
Global.GenSet.SystemID, Global.Info.nScan, img_number, time.Format( "%d-%m-%Y %H:%M:%S" ) ,
azimuth, altitude, wnd_speed, wnd_dir, today_rain, pressure, temperature, humidity );
}
else
{
exifValue.Format( "ID=%s&scn=%d&img=%d&time=%s&az=%.02f&alt=%.02f&ws=0&wd=0&rnf=0&rni=0&rnd=0&atm=0&temp=0&hum=0",
Global.GenSet.SystemID, Global.Info.nScan, img_number, time.Format( "%d-%m-%Y %H:%M:%S" ) ,
azimuth, altitude );
}

propItem->id = PropertyTagExifUserComment;
propItem->length = exifValue.GetLength(); // includes null terminator
propItem->type = PropertyTagTypeASCII;
propItem->value = exifValue.GetBuffer();

if ( camPic->SetPropertyItem( propItem ) != 0 ){
CString * s1 = new CString("Error setting image exif");
PostMessage( theApp.m_pMainWnd->m_hWnd, UWM_LOG, 1, (LPARAM)(CString *)s1 );
}


Some times it writes the data on the 1st column, and other times on the 2nd one. It's completely random, i just know that this happens because the camera also writes some data on the image. But i clean all the comments before i write something (RemovePropertyItem(PropertyTagExifUserComment). Can someone help me?

Thanks in advance
QuestionSystem Query Pin
john563227-Dec-11 0:16
john563227-Dec-11 0:16 
AnswerRe: System Query Pin
Randor 27-Dec-11 11:46
professional Randor 27-Dec-11 11:46 
GeneralRe: System Query Pin
john563227-Dec-11 19:36
john563227-Dec-11 19:36 
SuggestionRe: System Query Pin
David Crow28-Dec-11 4:18
David Crow28-Dec-11 4:18 
GeneralRe: System Query Pin
Randor 28-Dec-11 11:11
professional Randor 28-Dec-11 11:11 
GeneralRe: System Query Pin
john563227-Dec-11 20:27
john563227-Dec-11 20:27 
GeneralRe: System Query Pin
Randor 28-Dec-11 11:08
professional Randor 28-Dec-11 11:08 
GeneralRe: System Query Pin
john563229-Dec-11 18:23
john563229-Dec-11 18:23 
GeneralRe: System Query Pin
Randor 29-Dec-11 18:47
professional Randor 29-Dec-11 18:47 
GeneralRe: System Query Pin
john563229-Dec-11 20:29
john563229-Dec-11 20:29 
GeneralRe: System Query Pin
Randor 29-Dec-11 21:57
professional Randor 29-Dec-11 21:57 
QuestionJoining 2 values with wcsncat_s Pin
jkirkerx26-Dec-11 10:52
professionaljkirkerx26-Dec-11 10:52 
AnswerRe: Joining 2 values with wcsncat_s Pin
Chris Losinger26-Dec-11 10:59
professionalChris Losinger26-Dec-11 10:59 
GeneralRe: Joining 2 values with wcsncat_s Pin
jkirkerx26-Dec-11 11:13
professionaljkirkerx26-Dec-11 11:13 
QuestionNetwork Utilization Pin
john563225-Dec-11 22:13
john563225-Dec-11 22:13 
AnswerRe: Network Utilization Pin
Richard MacCutchan26-Dec-11 6:57
mveRichard MacCutchan26-Dec-11 6:57 
AnswerRe: Network Utilization Pin
Randor 26-Dec-11 12:17
professional Randor 26-Dec-11 12:17 

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.