Pages: [1]
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-10-28 19:35:45

i need help in creating my own project... i don't want to bother about server things at this time (as one of my friends is meant to do that, although i think he's also going to need help)

i have a little knowledge about programing in C, and this language i'd like to use. my application would be counting some things related to phisics and chemistry, and i don't know the algorythms yet, but firstly i'd like to write some very simple app, that would count only one some "for" loop, but i don't know how to start. it would be great if you told me that, but it'll be alright if you just give me some good manual (that from unofficial BOINC wikipedia i completely don't understand)...
PovAddict
BAM!ID: 115
Joined: 2006-05-10
Posts: 1013
Credits: 5,543,484
World-rank: 76,098

2006-10-28 19:49:08

bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-08 18:45:25

it seems it is quite good tutorial, but i would like to ask, whether there is any (and eventually what) difference between in msvc and msvc++ (both "express edition&quot?
i'd like to write it in C language, and my question is, which one is more worth to install
Son Goku 3SSJ
 
Forum moderator - Translator
BAM!ID: 8
Joined: 2006-01-11
Posts: 182
Credits: 2,572,985
World-rank: 123,424

2006-11-08 20:04:27

it seems it is quite good tutorial, but i would like to ask, whether there is any (and eventually what) difference between in msvc and msvc++ (both "express edition&quot?
i'd like to write it in C language, and my question is, which one is more worth to install

I do not remember Microsoft having a C compiler, only a C++ one Are you sure there is really a MSVC (w/o the ++)? I have searched their site but didn't find anything for it, but only links to the MSVC++ express compiler.

In general, the C and C++ standards have only minor differences. So I think there will be no problem compiling your C written application with the C++ compiler
part of
Wenn jeder an sich denkt, wird an alle gedacht!
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-17 15:18:26

seems like it's to hard to compile image libraries for me... can anyone tell me step by step how to do this? i do not understand what they are writing on http://www.spy-hill.com/help/boinc/boinc-on-windows.html#jpeg

also... where to get all the necessery libraries like "boinc_win.h" "boinc_api.h"
"diagnostics.h" "filesys.h" ?
PovAddict
BAM!ID: 115
Joined: 2006-05-10
Posts: 1013
Credits: 5,543,484
World-rank: 76,098

2006-11-17 16:33:27

seems like it's to hard to compile image libraries for me... can anyone tell me step by step how to do this? i do not understand what they are writing on http://www.spy-hill.com/help/boinc/boinc-on-windows.html#jpeg

You only need that for application graphics. And there are libjpeg binaries available in the 'net too. Also I'm not sure if that is needed for latest BOINC code.
also... where to get all the necessery libraries like "boinc_win.h" "boinc_api.h"
"diagnostics.h" "filesys.h" ?

From BOINC CVS. I have a tarball from yesterday in my server, you could use that if you don't have CVS installed.
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-17 17:21:10

all i ahve to do it is to copy all the libraries form /boinc/lib/ to right folder of msvc, or is there more work to do?
PovAddict
BAM!ID: 115
Joined: 2006-05-10
Posts: 1013
Credits: 5,543,484
World-rank: 76,098

2006-11-17 17:22:51
last modified: 2006-11-17 17:24:21

all i ahve to do it is to copy all the libraries form /boinc/lib/ to right folder of msvc, or is there more work to do?

I think paths will be fine if you put your application in /boinc/apps/. Maybe you need to compile BOINC libraries separately; not sure, I didn't use msvc. You should subscribe to boinc_dev mailing list, there would be much more help there.
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-17 17:58:59

and what are you using then? maybe you can recomend me something better than that...
PovAddict
BAM!ID: 115
Joined: 2006-05-10
Posts: 1013
Credits: 5,543,484
World-rank: 76,098

2006-11-17 18:09:52

and what are you using then? maybe you can recomend me something better than that...

MinGW/MSYS; but it was a mess to set up. Then I wrote the makefile myself. If you're comfortable with that MSVC thingy, keep using it.

http://boinc.berkeley.edu/compile_app.php <-- that should help you enough.
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-17 20:52:02
last modified: 2006-11-17 21:05:33

looking at msvc and what errors i get there, i'm not particulary attached to that compiler...

i downloaded hello world put it in bin directory, opened one of the files and tried to compile... i have errors that there is no boinc_api.sbr and winmm.lib.
where to get that files, are how to solve this problem?
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-21 18:54:14

ok... i was looking trough boinc official manual, and got its "hello world" app..
link to that source

naturally i copied it and pasted in msvc++ of mine... and how you can expect, there was an error:
c:\documents and settings\bartek\moje dokumenty\visual studio 2005\projects\boinc\boinc\boinc.cpp(251) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

line number 251 is the end of the source.
i wasn't aware what stdafx.h is but i realised that it was library that has been created (i think by the compiler) and all it had was
Code:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here


so there are only a few possibilties
either i'm doing something wrong
there is something wrong with the source code
there is something wrong with my compiler

any propositions what to do with that?
bartsob5
Translator
BAM!ID: 811
Joined: 2006-05-26
Posts: 151
Credits: 49,764,348
World-rank: 16,090

2006-11-21 20:17:24

situation has changed... i have turned of precompiled header, and added to /lib/ directory libraries with graphics... but still i have got error:
error C2440: '=' : cannot convert from 'LPWSTR' to 'LPSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


in function:
Code:

#ifdef _WIN32
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode) {
LPSTR command_line;
char* argv[100];
int argc;

command_line = GetCommandLine();
argc = parse_command_line( command_line, argv );
return main(argc, argv);
}
#endif

at 8th line...
PovAddict
BAM!ID: 115
Joined: 2006-05-10
Posts: 1013
Credits: 5,543,484
World-rank: 76,098

2006-11-21 20:22:19

situation has changed... i have turned of precompiled header, and added to /lib/ directory libraries with graphics... but still i have got error:
error C2440: '=' : cannot convert from 'LPWSTR' to 'LPSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast



LPWSTR is the wide-character version of LPSTR. I'm not sure if it's safe to cast...

By the way, subscribe to boinc_dev mailing list, there would be much more help there.
Pages: [1]

Index :: The Projects :: writing an application for boinc-powered project
Reason: