- uppercase: use binary output mode on Win,

otherwise results don't match.
- graphics app: call boinc_finish_diag() instead of diagnostics_finish()
    (API calls should start with boinc_;
    it would be nice it the init/finish names matched)

svn path=/trunk/boinc_samples/; revision=15156
This commit is contained in:
David Anderson 2008-05-08 21:16:39 +00:00
parent 01efe29929
commit 763152171d
3 changed files with 14 additions and 8 deletions

View File

@ -696,3 +696,14 @@ Rom 8 May 2008
win_build/
<various Files>
David 8 May 2008
- uppercase: use binary output mode on Win,
otherwise results don't match.
- graphics app: call boinc_finish_diag() instead of diagnostics_finish()
(API calls should start with boinc_;
it would be nice it the init/finish names matched)
example_app/
uc2_graphics.C
uc2.C

View File

@ -165,9 +165,9 @@ int main(int argc, char **argv) {
if (state && n==1) {
fseek(infile, nchars, SEEK_SET);
boinc_truncate(output_path, nchars);
retval = out.open(output_path, "a");
retval = out.open(output_path, "ab");
} else {
retval = out.open(output_path, "w");
retval = out.open(output_path, "wb");
}
if (retval) {
fprintf(stderr, "APP: upper_case output open failed:\n");

View File

@ -272,11 +272,6 @@ static void parse_project_prefs(char* buf) {
}
int main(int argc, char** argv) {
// Provide a way to get error messages from system.
// Graphics applications are launched from the slot directory
// and so the graphics application should have read/write
// permissions there.
//
boinc_init_graphics_diagnostics(BOINC_DIAG_DEFAULTS);
#ifdef __APPLE__
@ -290,5 +285,5 @@ int main(int argc, char** argv) {
}
boinc_graphics_loop(argc, argv);
diagnostics_finish();
boinc_finish_diag();
}