dev-cpp-users Mailing List for Dev-C++ (Page 69)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Per W. <pw...@ia...> - 2007-01-05 19:53:56
|
Actually, C++ is a high-level language too even if some have claimed the precursor language C to be "high-level assembly" :) Yes, it is possible to store binary data within the application. It can bedone in a number of ways. One common way is to use a little utility application that takes the binary resource and converts to an array of hex data that is then compiled into the binary like: ----- // sound_cannonshot.cpp unsigned char wavesound_cannonshot[] = { 0x10,0x20,0x30,... }; unsigned wavesound_size = sizeof(wavesound_cannonshot); ----- Another approach is to store the sound as a binary resource, the same way that Windows applications stores icons and bitmaps. If using the resource file, then it is very easy to extract the data using an resource editor on your executable. Even if the resource file is compiled, the resource editor will display a list of all items in the file - what type they are and what identifier to access them. If storing the sound in the source, a normal tool can not extract it. However, writing a tiny app that just feeds the full exe file through the sound card may probably play the sound, unless the sound was incorrectly aligned, i.e. the low byte of one 16-bit sample got played together with the high byte of the next 16-bit sample, in which case it would probably just sound like noise. If it is every more important to protect the data, you can combine any of the above methods - or the use of external sound files - with encryption. Load file, decrypt, play. The openssl project contains readily available code to encrypt/decrypt streams of data using government-approved algorithms. Alas, even with encryption, you will only be able to protect unmixed raw sounds. The actual output to the sound card can normally alwasy be retrieved, since the Windows sound system have a lot of layers where third-party filters may install and rip the data. /Per W On Fri, 5 Jan 2007, Philip Bennefall wrote: > > Hello everyone. > > My name is Philip Bennefall, I am an audio producer and game programmer > from Sweden. I am just getting into C++, before now I've been working > with high level languages. But lately I've started to feel that they > simply are not good enough for my needs, they limit me too much in what > I can do. I'm a complete beginner at the actual C++ language, although I > know programming well. My first question is, in Dev C++, is it possible > to pack for example a sound file into your executable and then access it > directly from memory inside of the application? That is, without ever > extracting it on to the users harddrive. That way, noone will be able to > see the file unless they know how to disassemble executables which is > certainly beyond me. Basically I just want to put the file in the > executable together with my code and be able to access it directly with > a memory address or perhaps a buffer pointer. > > If anyone can answer this, I'd be very glad. > > Thanks in advance. > > Regards > Philip Bennefall |
From: Philip B. <phi...@pb...> - 2007-01-05 19:34:43
|
Hello everyone. My name is Philip Bennefall, I am an audio producer and game programmer = from Sweden. I am just getting into C++, before now I've been working = with high level languages. But lately I've started to feel that they = simply are not good enough for my needs, they limit me too much in what = I can do. I'm a complete beginner at the actual C++ language, although I = know programming well. My first question is, in Dev C++, is it possible = to pack for example a sound file into your executable and then access it = directly from memory inside of the application? That is, without ever = extracting it on to the users harddrive. That way, noone will be able to = see the file unless they know how to disassemble executables which is = certainly beyond me. Basically I just want to put the file in the = executable together with my code and be able to access it directly with = a memory address or perhaps a buffer pointer. If anyone can answer this, I'd be very glad. Thanks in advance. Regards Philip Bennefall |
From: kalb <ka...@em...> - 2006-12-14 22:21:39
|
Hi guys, I'm using wxMemoryFSHandler to load in memory a variable number of images from a user selected location, resize them appropriately and display them in a wxHtml window. All works fine, but once the html page is correctly displayed I need to clear the memory filesystem content. So I tried to do it looping on the files retrieving the first file name using FindFirst(), i.e.: ------------ CODE ------------------------- wxMemoryFSHandler* MFSH = new wxMemoryFSHandler; wxFileSystem::AddHandler(MFSH); // fill MFSH with the images and display them ...... // all works fine wxString FileToDelete = MFSH->FindFirst("*"); ----------- END CODE -------------------- Now FileToDelete is empty!! I tried also MFSH->FindFirst("*", wxFILE); MFSH->FindFirst("*.*"); MFSH->FindFirst("*.*", wxFILE); but FileToDelete is always empty. Any idea? Thnks in advance. kalb |
From: Per W. <pw...@ia...> - 2006-12-13 22:37:45
|
For most operating systems, it is not necessary to delete objects before the application ends. The OS will release all memory allocated to the program. However, it is strongly recommended to always release all allocated memory. By being tidy, it is possible to run memory analyzers to inform about potential memory leaks, i.e. memory blocks that the program forgets that it has allocated. /Per W On Thu, 14 Dec 2006, Ahmed Han wrote: > 1024x512 array doesn't allocate so much memory to give an error. > Do you get any error message? > > By the way, if you declare a pointer using new operator, you must delete it > before the end. > |
From: Ahmed H. <ahm...@gm...> - 2006-12-13 22:14:56
|
1024x512 array doesn't allocate so much memory to give an error. Do you get any error message? By the way, if you declare a pointer using new operator, you must delete it before the end. |
From: Christoph H. <sha...@ar...> - 2006-12-13 21:38:46
|
Hello, I had the same problem a while ago, as far as I remember I used new[] to get it working. For example you could use something like that: float (*coeftemp1)[512] = new float[1024][512]; //not sure if this actually works or you can use a one dimensional array: float *coeftemp1 = new float[1024*512]; and acces it the following way float z; //just for testing for (int x=0; x<1024; x++){ for (int y=0; y<512; y++){ z=coeftemp1[x*y]; //that way it should work } } Of course if you don't use c++ you can use malloc. I hope this work, but I didn't test it. Regards, Christoph Hi, There wrote: > Hi, There, > > I want to declare a two-dimension array by > "float coeftemp1 [1024][512];". It doesn't work. > > But, if I change it to "float coeftemp1 [1024][500];". > It works. Could any one know the reason? > > Thank you, > > > > > //************************** > #include <cstdlib> > #include <iostream> > > using namespace std; > > int main(int argc, char *argv[]) > { > float coeftemp1 [1024][512]; > system("PAUSE"); > return EXIT_SUCCESS; > } > //************************** > |
From: Per W. <pw...@ia...> - 2006-12-13 21:25:38
|
Don't try to statically allocate huge objects on the stack! 1024*512*4 is 2MB. Depending on architecture, there are often a limited size the stack may be. Depending on architecture and compiler, there is also sometimes a limit to how much the stack may grow for each function call - it depends on how the compiler generats code to touch guard pages to let the OS allocate more memory pages for the stack. If you want a large array, either allocate it dynamically or create the array as a global object. /Per W On Wed, 13 Dec 2006, Hi, There wrote: > Hi, There, > > I want to declare a two-dimension array by > "float coeftemp1 [1024][512];". It doesn't work. > > But, if I change it to "float coeftemp1 [1024][500];". > It works. Could any one know the reason? > > Thank you, > > > > > //************************** > #include <cstdlib> > #include <iostream> > > using namespace std; > > int main(int argc, char *argv[]) > { > float coeftemp1 [1024][512]; > system("PAUSE"); > return EXIT_SUCCESS; > } > //************************** > > > > > ____________________________________________________________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Hi, T. <ny_...@ya...> - 2006-12-13 20:07:42
|
Hi, There, I want to declare a two-dimension array by "float coeftemp1 [1024][512];". It doesn't work. But, if I change it to "float coeftemp1 [1024][500];". It works. Could any one know the reason? Thank you, //************************** #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { float coeftemp1 [1024][512]; system("PAUSE"); return EXIT_SUCCESS; } //************************** ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |
From: Britsch, M. <Mat...@t-...> - 2006-12-12 07:58:19
|
Can you please be a little bit more specific? Version, host machine OS, what devpacks, etc? Regards, Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Thisse Pascal Sent: Monday, 11. December 2006 19:21 To: dev...@li... Subject: [Dev-C++] WxWidget Hello, I can't compile any projet with all version of devpack. Anyone can help me ? Greats ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Ross B. <bu...@pa...> - 2006-12-12 06:16:12
|
Only think I can think may be there problem is NULL is defined in another way, eg Null or null. Radhika M G wrote: > Hi, > > > > I have this piece of code which compiles on HP11i (HP11.11) machine but > throws error on HP Itanium (HP 11.23). > > > > #include<stdarg.h> > > > > main() > > { > > va_list ptr; > > > > if(ptr == NULL) > > printf("It works!"); > > else > > printf("It does not work!\n"); > > > > } > > > > The error thrown on itanium is: > > "rad.c", line 8: error #2041: expression must have arithmetic or pointer > type > > if(ptr == NULL) > > > > What changes do I make in the code so that the code compiles on both > HP11.11 and HP11.23? > > > > Regards, > > Radhika > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 11/12/06 16:32 |
From: Per W. <pw...@ia...> - 2006-12-11 21:31:52
|
Sorry, but I don't think there exists any cross compiler you may use. Dev-C++ uses the MinGW compiler, which is a port of gcc for use on Win32 systems, and for generating Win32 binaries. /Per W On Mon, 11 Dec 2006, Jean Pierre Daviau wrote: > Hi can DEV can compile for : > Machine Name: eMac > Machine Model: PowerMac4,4 > CPU Type: PowerPC G4 (2.1) > Number Of CPUs: 1 > CPU Speed: 700 MHz > > > Could you give me the full process for a mini Hello World? > > > Jean Pierre Daviau > -- > http://www.jeanpierredaviau.com > |
From: <au...@gm...> - 2006-12-11 20:53:43
|
Hi, > I can't compile any projet with all version of devpack. > Anyone can help me ? What exactly your problem is? What and how your doing things? I had no problems with the Dev-packs earlier and I don't have them now, when I compile wxWidgets libraries myself. -- Aurimas |
From: Jean P. D. <dav...@vi...> - 2006-12-11 19:40:16
|
Hi can DEV can compile for : Machine Name: eMac Machine Model: PowerMac4,4 CPU Type: PowerPC G4 (2.1) Number Of CPUs: 1 CPU Speed: 700 MHz Could you give me the full process for a mini Hello World? Jean Pierre Daviau -- http://www.jeanpierredaviau.com |
From: Thisse P. <p.t...@wa...> - 2006-12-11 18:11:59
|
Hello, I can't compile any projet with all version of devpack. Anyone can help me ? Greats |
From: Per W. <pw...@ia...> - 2006-12-11 10:07:13
|
Of course it doesn't. Have you managed to initialize security to anything useful? Are you thinking about flushing streams compared to other I/O in your program? By the way - is it possible for you to post in TEXT format? The text copy of your mails have seriously broken indentation and line endings (as you can see below), and not too many users like HTML-encoded source code. /Per W On Sun, 10 Dec 2006, Noorez Kassam wrote: > cout << "key: "; char in; for(int i = 0; i < security; i++) { cin.get(in); if(in == '\n') break; else key[i] = in; } > > The cin.get statment here appears to be skipped in this peice of code. That is, the program does not pause to allow for user input. Can someone tell me why? > _________________________________________________________________ > Be one of the first to try Windows Live Mail. > http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d |
From: Noorez K. <lor...@ho...> - 2006-12-11 04:13:33
|
cout << "key: "; char in; for(int i =3D 0; i < security; = i++) { cin.get(in); if(in =3D=3D '\n') = break; else key[i] =3D in; } =20 The cin.get statment here appears to be skipped in this peice of code. That= is, the program does not pause to allow for user input. Can someone tell m= e why? _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=3D5d21c51a-b161-4314-9b0e-= 4911fb2b2e6d= |
From: simon k. <mal...@gm...> - 2006-12-08 23:37:17
|
'Ello people. I've got a bit of a problem now. See, I'm running WinXP, Dev-Cpp, with the package compiled by Tor Lillqvist. But when I compile the program, I get an error message saying "file shape.c: line 75(pango_shape): assertion failed: (glyphs->num_glyphs > 0) aborting...". Now, I've googled around, but there's really no decent answer and most of them hasn't really got anything to do with GTK. Excuse me if I've forgotten any parameter or detail or whatnot you need to help me, it's just been a while since I've worked with this and I've completely forgotten any details of matter. |
From: Per W. <pw...@ia...> - 2006-12-08 17:56:06
|
Actually three lines - you need a close() too. The C library have two separate sets o file functions. in io.h you have the declarations for unbuffered I/O using file descriptors. It is common to write int fd =3D open(...) to show that you are using a file descriptor, as opposed to the windows code where the data type returned by CreateFile() is called a handle. In stdio.h you have the declarations for (normally) buffered FILE-based I/O. Note that some of the *stat() functions may retrieve the file size without opening the file. The run-time library just retrieves the meta-data for the file, and extracts the size without need to check if you have access rights to the actual file data. Are you building for a 32-bit or a 64-bit environment. In a 32-bit environment, the standard filelength() or ftell() functions can normally only report the file size of files less than 4GB large since they returns the size as a long. Some OS have support for alternative functions (ftell64(), *stat64(), ... with large-file support. The file <dos.h> is an old include file introduced by some C compilers for MS-DOS support. You do not want to use these functions. Either go for functions defined in the ANSI standard, or if writing specifically for Windows you might consider the Win32 functions. #include <time.h> time_t t; struct tm tm; t =3D time(NULL); tm =3D *gmtime(&t); If your library is reasonably new, you should use the thread-safe version, where you supply the buffer for the tm struct: #include <time.h> time_t t; struct tm tm; t =3D time(NULL); gmtime_r(&t,&tm); Also, if you format the file name yourself, you should always generate the numbers with leading zeroes, i.e. snprintf(fname,sizeof(fname),"file_%04u%02u%02u.bu",tm.tm_year+1900,tm.tm_m= on+1,tm.tm_mday); Without leading zero, nov 1 and jan 11 would look the same: file_2006111.bu /Per W On Fri, 8 Dec 2006, KrowniX ()--() wrote: > Hi,, > > Thanks for the help...but i got it another way that if possible you could= tell me what do you think about it: > > hFile=3Dopen(path, O_RDONLY); > sizeLog=3Dfilelength(hFile); > > this function works incredible fine...just two lines solve my problems...= and until now..every tests that i have made works 100% .... > > > ...and i will do one more question..rs > > ...now i need the time and date info to make the name of the backup file = that my program creates...so i use..the code below: > #include <dos.h> > #include <stdio.h> > > int main(void) { > struct date d; > > getdate(&d); > > printf("%d%d%d", d.da_year,d.da_mon,d.da_day); > return 0; > } > > but the interesting thinhg it=B4s that using dev-c++ this code it won=B4t= be compiled ...that=B4s the error message: > main.cpp: In function `int main()': > main.cpp:6: error: aggregate `date d' has incomplete type and cannot be d= efined > main.cpp:8: error: `getdate' undeclared (first use this function) > main.cpp:8: error: (Each undeclared identifier is reported only once for = each function it appears in.) > make.exe: *** [main.o] Error 1 > Execution terminated > > ...but when i use the Turbo C/C++ 3.0 ,,,it works just fine..with no code= modification .. > well i am here tryng to find an API ..or make this function works but it = will be good if anyone here could give me a direction. to get de data and t= ime of the system using the dev-c++ , . > > Thanks for the help!!! > > Krownix > > ----- Mensagem original ---- > De: Per Westermark <pw...@ia...> > Para: KrowniX ()--() <kr...@ya...> > Cc: dev...@li... > Enviadas: Sexta-feira, 8 de Dezembro de 2006 13:21:34 > Assunto: Re: [Dev-C++] Res: Res: error while using the GetFileSize() funt= ion > > > Hi! > > First of all, as you have probably already realized, you can't directly > mix Win32 functions (they use capitalized names) with c standard-library > functions (they use lower-case names), so fopen may not be mixed with > GetFileSize(). > > Second, OpenFile() is an old compatibility function for 16-bit Windows. > Use CreateFile() instead. Despite it's name, it is used for opening > existing files (and sockets, serial ports, ...) too. > > Sample code: > > #define WIN32_LEAN_AND_MEAN 1 > > #include <windows.h> > > int main() { > HANDLE f =3D CreateFile( > "filesize.c", > FILE_READ_DATA|FILE_READ_ATTRIBUTES, > FILE_SHARE_READ, > NULL, > OPEN_EXISTING, > 0, > NULL); > if (f !=3D INVALID_HANDLE_VALUE) { > DWORD low,high; > low =3D GetFileSize(f,&high); > printf("Low =3D %u High =3D %u\n",low,high); > CloseHandle(f); > } > return 0; > } > > If you want to find a file size using just c-lib functions, you may open > the file, and do a seek to the end of the file. > > FILE *f =3D fopen(...); > if (f) { > fseek(f,0,SEEK_END); > long pos =3D ftell(f); > fclose(f); > } > > Note, that for 32-bit machine, this only works for files less than 4GB. > > You may also use any of the *stat() functions, which retrieves size, > attributes etc for a file. > > #include <sys/types.h> > #include <sys/stat.h> > > #if defined(WINDOWS) > #define stat _stat > #endif > > struct stat s; > if (0=3D=3Dstat("calvin.txt",&s)) { > printf("Size of file is %u\n",s.st_size); > } > > Note that if you use a M$ compiler, they have decided to use non-standard > names for the stat functions. I don't know if it is to their way of > supporting Unicode, or if it is an attempt to make people avoiding them, > or if they want to make sure that Windows programs should not be too easy > to port to Unix and the reverse. > > One important thing to do: Always check return values. You get a file siz= e > of 4095 MB in your original code because the function returns -1, which > for a 32-bit processir is normally the same as 0xffffffff. Your division > then represents 20 shifts (1024*1024) to the right, and what remains is > 0xfff, or 4095. > > Most file functions - and wuite a number of other too - may fail because > of programming errors, lack of resources, lack of access rights etc. > > /Per W > > On Thu, 7 Dec 2006, KrowniX ()--() wrote: > > > Well ...the OpenFile() doesn=B4t work for me....why? > > Becouse the OpenFile() function returns a HFILE, and GetFileSize() need= s a HANDLE, well I solve this problem using the FindFirstFile() function an= d that=B4s ok..but...the program give me the same results when I was using = the FILE * > > > > Does anyone know anything about it..or could just tell me what C Ansi f= unction could solve my problem by giving me the size of the file ????????? > > > > Krownix > > > > > > ----- Mensagem original ---- > > De: KrowniX ()--() <kr...@ya...> > > Para: dev...@li... > > Enviadas: Quinta-feira, 7 de Dezembro de 2006 15:17:03 > > Assunto: [Dev-C++] Res: error while using the GetFileSize() funtion > > > > > > Hi, > > > > I think i got it;; > > The problem is becouse GetFileSize() works with a handle and I was usin= g a FILE * ...so I think that if I use the OpenFile() function I can solve= my problem... > > > > But;...until now I haven=B4t found an good example on how to use OpenFi= le() so..if anyone knows how...could give me a help....ok!?! > > > > Thanks > > > > Krownix > > > > > > ----- Mensagem original ---- > > De: KrowniX ()--() <kr...@ya...> > > Para: dev...@li... > > Enviadas: Quinta-feira, 7 de Dezembro de 2006 12:43:15 > > Assunto: [Dev-C++] error while using the GetFileSize() funtion > > > > > > Hello.. > > > > I got a new situation here ...now I have to verify every 5 minuts the s= ize of a file, but I am using the GetFileSize() function but it=B4s result = it isn=B4t like de DIR command results, ex: > > > > My code: > > void TestSizeLog() { > > FILE *fp; //ponteiro para o arquivo criado > > DWORD sizeLog; //armazena arquivo > > > > if(!(fp=3Dfopen("c:\\arq.dat", "r"))) { > > std::cout << "Erro ao abrir arquivo de log" << std::endl; > > exit(1); > > } > > sizeLog=3DGetFileSize(fp, NULL); > > sizeLog/=3D(1024*1024); //transforma bytes em megabytes > > std::cout << "File Size: " << sizeLog << std::endl; > > } > > > > the result of my code: > > C:\>"\Documents and Settings\p550826\Desktop\progs\EventViewer\testFile= =2Eexe" > > File Size: 4095 > > > > the result of a DIR command: > > 07/12/2006 10:13 33.166.874 arq.dat > > 1 arquivo(s) 33.166.874 bytes > > > > So.....where is my error?? > > Does anyone has any idea?? > > > > Thanks > > Krownix > > > > > > > > Yahoo! Search > > M=FAsica para ver e ouvir: You're Beautiful, do James Blunt > > -----------------------------------------------------------------------= -- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > > > Voc=EA quer respostas para suas perguntas? Ou voc=EA sabe muito e quer = compartilhar seu conhecimento? Experimente o Yahoo! Respostas! > > -----------------------------------------------------------------------= -- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > _______________________________________________________ > > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celul= ar. Registre seu aparelho agora! > > http://br.mobile.yahoo.com/mailalertas/ > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _______________________________________________________ > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular= =2E Registre seu aparelho agora! > http://br.mobile.yahoo.com/mailalertas/ > > |
From: KrowniX \(\)--\(\) <kr...@ya...> - 2006-12-08 17:23:25
|
Hi,,=0A=0AThanks for the help...but i got it another way that if possible y= ou could tell me what do you think about it:=0A=0A hFile=3Dopen(path, O= _RDONLY); =0A sizeLog=3Dfilelength(hFile);=0A=0Athis function works inc= redible fine...just two lines solve my problems...and until now..every test= s that i have made works 100% ....=0A=0A=0A...and i will do one more questi= on..rs=0A=0A...now i need the time and date info to make the name of the ba= ckup file that my program creates...so i use..the code below:=0A#include <d= os.h>=0A#include <stdio.h>=0A =0Aint main(void) {=0A struct date = d;=0A =0A getdate(&d);=0A =0A printf("%d%d%d", d.da_year,d.da_m= on,d.da_day);=0A return 0;=0A}=0A=0Abut the interesting thinhg it=B4s th= at using dev-c++ this code it won=B4t be compiled ...that=B4s the error mes= sage:=0Amain.cpp: In function `int main()':=0Amain.cpp:6: error: aggregate = `date d' has incomplete type and cannot be defined=0Amain.cpp:8: error: `ge= tdate' undeclared (first use this function)=0Amain.cpp:8: error: (Each unde= clared identifier is reported only once for each function it appears in.)= =0Amake.exe: *** [main.o] Error 1=0AExecution terminated=0A=0A...but when i= use the Turbo C/C++ 3.0 ,,,it works just fine..with no code modification .= .=0Awell i am here tryng to find an API ..or make this function works but i= t will be good if anyone here could give me a direction. to get de data and= time of the system using the dev-c++ , .=0A=0AThanks for the help!!!=0A=0A= Krownix=0A=0A----- Mensagem original ----=0ADe: Per Westermark <pwm@iapetus= .neab.net>=0APara: KrowniX ()--() <kr...@ya...>=0ACc: dev-cpp-user= s...@li...=0AEnviadas: Sexta-feira, 8 de Dezembro de 2006 13:2= 1:34=0AAssunto: Re: [Dev-C++] Res: Res: error while using the GetFileSize()= funtion=0A=0A=0AHi!=0A=0AFirst of all, as you have probably already realiz= ed, you can't directly=0Amix Win32 functions (they use capitalized names) w= ith c standard-library=0Afunctions (they use lower-case names), so fopen ma= y not be mixed with=0AGetFileSize().=0A=0ASecond, OpenFile() is an old comp= atibility function for 16-bit Windows.=0AUse CreateFile() instead. Despite = it's name, it is used for opening=0Aexisting files (and sockets, serial por= ts, ...) too.=0A=0ASample code:=0A=0A#define WIN32_LEAN_AND_MEAN 1=0A=0A#in= clude <windows.h>=0A=0Aint main() {=0A HANDLE f =3D CreateFile(=0A = "filesize.c",=0A FILE_READ_DATA|FILE_READ_ATTRIBUTES,=0A FI= LE_SHARE_READ,=0A NULL,=0A OPEN_EXISTING,=0A 0,=0A = NULL);=0A if (f !=3D INVALID_HANDLE_VALUE) {=0A DWORD low,hig= h;=0A low =3D GetFileSize(f,&high);=0A printf("Low =3D %u Hig= h =3D %u\n",low,high);=0A CloseHandle(f);=0A }=0A return 0;=0A= }=0A=0AIf you want to find a file size using just c-lib functions, you may = open=0Athe file, and do a seek to the end of the file.=0A=0AFILE *f =3D fop= en(...);=0Aif (f) {=0A fseek(f,0,SEEK_END);=0A long pos =3D ftell(f);= =0A fclose(f);=0A}=0A=0ANote, that for 32-bit machine, this only works f= or files less than 4GB.=0A=0AYou may also use any of the *stat() functions,= which retrieves size,=0Aattributes etc for a file.=0A=0A#include <sys/type= s.h>=0A#include <sys/stat.h>=0A=0A#if defined(WINDOWS)=0A#define stat _stat= =0A#endif=0A=0Astruct stat s;=0Aif (0=3D=3Dstat("calvin.txt",&s)) {=0A p= rintf("Size of file is %u\n",s.st_size);=0A}=0A=0ANote that if you use a M$= compiler, they have decided to use non-standard=0Anames for the stat funct= ions. I don't know if it is to their way of=0Asupporting Unicode, or if it = is an attempt to make people avoiding them,=0Aor if they want to make sure = that Windows programs should not be too easy=0Ato port to Unix and the reve= rse.=0A=0AOne important thing to do: Always check return values. You get a = file size=0Aof 4095 MB in your original code because the function returns -= 1, which=0Afor a 32-bit processir is normally the same as 0xffffffff. Your = division=0Athen represents 20 shifts (1024*1024) to the right, and what rem= ains is=0A0xfff, or 4095.=0A=0AMost file functions - and wuite a number of = other too - may fail because=0Aof programming errors, lack of resources, la= ck of access rights etc.=0A=0A/Per W=0A=0AOn Thu, 7 Dec 2006, KrowniX ()--(= ) wrote:=0A=0A> Well ...the OpenFile() doesn=B4t work for me....why?=0A> Be= couse the OpenFile() function returns a HFILE, and GetFileSize() needs a HA= NDLE, well I solve this problem using the FindFirstFile() function and that= =B4s ok..but...the program give me the same results when I was using the FI= LE *=0A>=0A> Does anyone know anything about it..or could just tell me what= C Ansi function could solve my problem by giving me the size of the file ?= ????????=0A>=0A> Krownix=0A>=0A>=0A> ----- Mensagem original ----=0A> De: K= rowniX ()--() <kr...@ya...>=0A> Para: dev...@li...urcefo= rge.net=0A> Enviadas: Quinta-feira, 7 de Dezembro de 2006 15:17:03=0A> Assu= nto: [Dev-C++] Res: error while using the GetFileSize() funtion=0A>=0A>=0A>= Hi,=0A>=0A> I think i got it;;=0A> The problem is becouse GetFileSize() wo= rks with a handle and I was using a FILE * ...so I think that if I use the= OpenFile() function I can solve my problem...=0A>=0A> But;...until now I h= aven=B4t found an good example on how to use OpenFile() so..if anyone knows= how...could give me a help....ok!?!=0A>=0A> Thanks=0A>=0A> Krownix=0A>=0A>= =0A> ----- Mensagem original ----=0A> De: KrowniX ()--() <kr...@ya...= .br>=0A> Para: dev...@li...=0A> Enviadas: Quinta-fei= ra, 7 de Dezembro de 2006 12:43:15=0A> Assunto: [Dev-C++] error while using= the GetFileSize() funtion=0A>=0A>=0A> Hello..=0A>=0A> I got a new situatio= n here ...now I have to verify every 5 minuts the size of a file, but I am = using the GetFileSize() function but it=B4s result it isn=B4t like de DIR c= ommand results, ex:=0A>=0A> My code:=0A> void TestSizeLog() {=0A> FILE= *fp; //ponteiro para o arquivo criado=0A> DWORD sizeLog; //armazena a= rquivo=0A>=0A> if(!(fp=3Dfopen("c:\\arq.dat", "r"))) {=0A> s= td::cout << "Erro ao abrir arquivo de log" << std::endl;=0A> exit= (1);=0A> }=0A> sizeLog=3DGetFileSize(fp, NULL);=0A> sizeLog/= =3D(1024*1024); //transforma bytes em megabytes=0A> std::cout << "File= Size: " << sizeLog << std::endl;=0A> }=0A>=0A> the result of my code:=0A> = C:\>"\Documents and Settings\p550826\Desktop\progs\EventViewer\testFile.exe= "=0A> File Size: 4095=0A>=0A> the result of a DIR command:=0A> 07/12/2006 = 10:13 33.166.874 arq.dat=0A> 1 arquivo(s) 33.166.= 874 bytes=0A>=0A> So.....where is my error??=0A> Does anyone has any idea??= =0A>=0A> Thanks=0A> Krownix=0A>=0A>=0A>=0A> Yahoo! Search=0A> M=FAsica para= ver e ouvir: You're Beautiful, do James Blunt=0A> ------------------------= -------------------------------------------------=0A> Take Surveys. Earn Ca= sh. Influence the Future of IT=0A> Join SourceForge.net's Techsay panel and= you'll get the chance to share your=0A> opinions on IT & business topics t= hrough brief surveys - and earn cash=0A> http://www.techsay.com/default.php= ?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> _________________________= ______________________=0A> Dev-cpp-users mailing list=0A> Dev-cpp-users@lis= ts.sourceforge.net=0A> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/de= vcpp/ub.htm=0A> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users= =0A>=0A>=0A>=0A>=0A>=0A> Voc=EA quer respostas para suas perguntas? Ou voc= =EA sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! R= espostas!=0A> -------------------------------------------------------------= ------------=0A> Take Surveys. Earn Cash. Influence the Future of IT=0A> Jo= in SourceForge.net's Techsay panel and you'll get the chance to share your= =0A> opinions on IT & business topics through brief surveys - and earn cash= =0A> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A> _______________________________________________=0A> Dev-cpp-u= sers mailing list=0A> Dev...@li...=0A> TO UNSUBSCRIB= E: http://www23.brinkster.com/noicys/devcpp/ub.htm=0A> https://lists.source= forge.net/lists/listinfo/dev-cpp-users=0A>=0A>=0A>=0A> ____________________= ___________________________________=0A> Novidade no Yahoo! Mail: receba ale= rtas de novas mensagens no seu celular. Registre seu aparelho agora!=0A> ht= tp://br.mobile.yahoo.com/mailalertas/=0A>=0A>=0A=0A=0A---------------------= ----------------------------------------------------=0ATake Surveys. Earn C= ash. Influence the Future of IT=0AJoin SourceForge.net's Techsay panel and = you'll get the chance to share your=0Aopinions on IT & business topics thro= ugh brief surveys - and earn cash=0Ahttp://www.techsay.com/default.php?page= =3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A________________________________= _______________=0ADev-cpp-users mailing list=0AD...@li...urcefo= rge.net=0ATO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm= =0Ahttps://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0A=0A=0A=09= =09=0A_______________________________________________________ =0ANovidade n= o Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre s= eu aparelho agora! =0Ahttp://br.mobile.yahoo.com/mailalertas/ =0A =0A |
From: Per W. <pw...@ia...> - 2006-12-08 15:22:02
|
Hi! First of all, as you have probably already realized, you can't directly mix Win32 functions (they use capitalized names) with c standard-library functions (they use lower-case names), so fopen may not be mixed with GetFileSize(). Second, OpenFile() is an old compatibility function for 16-bit Windows. Use CreateFile() instead. Despite it's name, it is used for opening existing files (and sockets, serial ports, ...) too. Sample code: #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> int main() { HANDLE f =3D CreateFile( "filesize.c", FILE_READ_DATA|FILE_READ_ATTRIBUTES, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL); if (f !=3D INVALID_HANDLE_VALUE) { DWORD low,high; low =3D GetFileSize(f,&high); printf("Low =3D %u High =3D %u\n",low,high); CloseHandle(f); } return 0; } If you want to find a file size using just c-lib functions, you may open the file, and do a seek to the end of the file. FILE *f =3D fopen(...); if (f) { fseek(f,0,SEEK_END); long pos =3D ftell(f); fclose(f); } Note, that for 32-bit machine, this only works for files less than 4GB. You may also use any of the *stat() functions, which retrieves size, attributes etc for a file. #include <sys/types.h> #include <sys/stat.h> #if defined(WINDOWS) #define stat _stat #endif struct stat s; if (0=3D=3Dstat("calvin.txt",&s)) { printf("Size of file is %u\n",s.st_size); } Note that if you use a M$ compiler, they have decided to use non-standard names for the stat functions. I don't know if it is to their way of supporting Unicode, or if it is an attempt to make people avoiding them, or if they want to make sure that Windows programs should not be too easy to port to Unix and the reverse. One important thing to do: Always check return values. You get a file size of 4095 MB in your original code because the function returns -1, which for a 32-bit processir is normally the same as 0xffffffff. Your division then represents 20 shifts (1024*1024) to the right, and what remains is 0xfff, or 4095. Most file functions - and wuite a number of other too - may fail because of programming errors, lack of resources, lack of access rights etc. /Per W On Thu, 7 Dec 2006, KrowniX ()--() wrote: > Well ...the OpenFile() doesn=B4t work for me....why? > Becouse the OpenFile() function returns a HFILE, and GetFileSize() needs = a HANDLE, well I solve this problem using the FindFirstFile() function and = that=B4s ok..but...the program give me the same results when I was using th= e FILE * > > Does anyone know anything about it..or could just tell me what C Ansi fun= ction could solve my problem by giving me the size of the file ????????? > > Krownix > > > ----- Mensagem original ---- > De: KrowniX ()--() <kr...@ya...> > Para: dev...@li... > Enviadas: Quinta-feira, 7 de Dezembro de 2006 15:17:03 > Assunto: [Dev-C++] Res: error while using the GetFileSize() funtion > > > Hi, > > I think i got it;; > The problem is becouse GetFileSize() works with a handle and I was using = a FILE * ...so I think that if I use the OpenFile() function I can solve m= y problem... > > But;...until now I haven=B4t found an good example on how to use OpenFile= () so..if anyone knows how...could give me a help....ok!?! > > Thanks > > Krownix > > > ----- Mensagem original ---- > De: KrowniX ()--() <kr...@ya...> > Para: dev...@li... > Enviadas: Quinta-feira, 7 de Dezembro de 2006 12:43:15 > Assunto: [Dev-C++] error while using the GetFileSize() funtion > > > Hello.. > > I got a new situation here ...now I have to verify every 5 minuts the siz= e of a file, but I am using the GetFileSize() function but it=B4s result it= isn=B4t like de DIR command results, ex: > > My code: > void TestSizeLog() { > FILE *fp; //ponteiro para o arquivo criado > DWORD sizeLog; //armazena arquivo > > if(!(fp=3Dfopen("c:\\arq.dat", "r"))) { > std::cout << "Erro ao abrir arquivo de log" << std::endl; > exit(1); > } > sizeLog=3DGetFileSize(fp, NULL); > sizeLog/=3D(1024*1024); //transforma bytes em megabytes > std::cout << "File Size: " << sizeLog << std::endl; > } > > the result of my code: > C:\>"\Documents and Settings\p550826\Desktop\progs\EventViewer\testFile.e= xe" > File Size: 4095 > > the result of a DIR command: > 07/12/2006 10:13 33.166.874 arq.dat > 1 arquivo(s) 33.166.874 bytes > > So.....where is my error?? > Does anyone has any idea?? > > Thanks > Krownix > > > > Yahoo! Search > M=FAsica para ver e ouvir: You're Beautiful, do James Blunt > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > Voc=EA quer respostas para suas perguntas? Ou voc=EA sabe muito e quer co= mpartilhar seu conhecimento? Experimente o Yahoo! Respostas! > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _______________________________________________________ > Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular= =2E Registre seu aparelho agora! > http://br.mobile.yahoo.com/mailalertas/ > > |
From: Radhika M G <rad...@or...> - 2006-12-08 11:03:08
|
Hi, I have this piece of code which compiles on HP11i (HP11.11) machine but throws error on HP Itanium (HP 11.23). #include<stdarg.h> main() { va_list ptr; if(ptr == NULL) printf("It works!"); else printf("It does not work!\n"); } The error thrown on itanium is: "rad.c", line 8: error #2041: expression must have arithmetic or pointer type if(ptr == NULL) What changes do I make in the code so that the code compiles on both HP11.11 and HP11.23? Regards, Radhika |
From: kalb <ka...@em...> - 2006-12-07 20:45:29
|
Hi to all, does anybody knows if (and how) it is possible to add new servers in the list of the webupdate utility? I remember that in a previous version there was a text file containing the devpaks repository namesbut now in 4.9.9.2 version I can't find it. I would like to add the old.devpaks.org to the server lists because there are files not available in the new devpaks.org. I know that I could download and install them "manually", but it's easier to do it through webupdate for a wide number of packs. Thanks in advance. kalb |
From: <ta...@fe...> - 2006-12-07 19:31:52
|
-------------------------------------------------------------------------= --- ----------------------------------------------- =20 (Apologies for cross-posting) =20 International Journal for Computation Vision and Biomechanics Announcement and First Call for papers =20 -------------------------------------------------------------------------= --- ----------------------------------------------- =20 ISSN: 0973-6778 Subject: Computational Vision and Biomechanics Frequency: 2 issues per year Start date: First trimester of 2007 =20 Dear Colleague, =20 It is a pleasure to announce the new International Journal for = Computation Vision and Biomechanics (IJCV&B) and its first call for papers. =20 Actually the research related with simulation of biomechanical = structures has been a source of hard work in several distinct areas of science as, = for example, mathematics, mechanical, physics, informatics and medicine. The numerical simulation applied to living structures is one of the most promising areas of research. However, for its successful, several topics related with geometric modelling, numerical modelling, biomechanics, material models for living tissues, experimental methodologies, mechanobiology, etc., and their application on Clinical Environments = must be developed and much more investigation is needed. =20 The main goal of the International Journal for Computational Vision and Biomechanics consists in the provision of a comprehensive forum for discussion on the current state-of-the-art in these fields. =20 It is an honour to invite you to submit your work to be published in the International Journal for Computational Vision and Biomechanics. We are = sure that your published work in the IJCV&B will soon bring the Journal to a desired standard. =20 For further details, including Aims & Scope and instructions for manuscripts, the Editors invite you to visit the website of IJCV&B at: <http://www.fe.up.pt/~ijcvb> www.fe.up.pt/~ijcvb. =20 =20 Editorial Board: =20 Adelino F. Leite-Moreira, Portugal Alejandro Frangi, Spain Ana Mafalda Reis, Portugal Andrew Pullan, New Zealand Bego=F1a Calvo Calzada, Spain Bernard Gosselin, Belgium Chandrajit Bajaj , USA Christos E. Constantinou, USA David Hui, USA Dinggang Shen, USA Eduardo Borges Pires, Portugal Eugenio O=F1ate, Spain Francisco Perales, Spain Gerald Schaefer, UK Gerhard A. Holzapfel, Sweden H=E9lder Ara=FAjo, Portugal H=E9lder C. Rodrigues, Portugal Hemerson Pistori, Brazil Ioannis A. Kakadiaris, USA Isaac Cohen, USA J. Paulo Vilas-Boas, Portugal Jan Koenderink, The Netherlands Jo=E3o M. C. S. Abrantes, Portugal Jorge A. C. Ambr=F3sio, Portugal Jorge M. G. Barbosa, Portugal Jorge S. Marques, Portugal Jos=E9 Ant=F3nio Sim=F5es, Portugal Jose M. Garc=EDa Aznar, Spain Juan J. Villanueva, Spain Laurent Cohen, France Manuel Doblar=E9 , Spain Manuel Gonz=E1lez Hidalgo, Spain Manuel Laranjeira, Portugal Marcos Pinotti Barbosa, Brazil Mario Forjaz Secca, Portugal Michel A. Audette, Germany Nicolai Petkov, The Netherlands Patrick Dubois, France Patrick J. Prendergast, Ireland Paulo Rui Fernandes, Portugal Petia Radeva, Spain Rainald Lohner, USA Rania F. El Sayed, Egypt S=F3nia I. Gon=E7alves-Verheij, The Netherlands=20 Teresa Mascarenhas, Portugal Thomas J. R. Hughes, USA Valentin Brimkov, USA Yongjie Zhang, USA =20 =20 We would appreciate if you could distribute this information by your colleagues and co-workers. =20 =20 With kind regards, =20 Jo=E3o Manuel R. S. Tavares, University of Porto, Portugal ( <mailto:ta...@fe...> ta...@fe...) R. M. Natal Jorge, University of Porto ( <mailto:rn...@fe...> rn...@fe...) (co-editors of IJCV&B) =20 =20 You can obtain a (PDF) Poster of IJCV&B: <http://www.fe.up.pt/~ijcvb/Files/IJCV&B_Poster.pdf> www.fe.up.pt/~ijcvb/Files/IJCV&B_Poster.pdf; a (PDF) Bookmark: = <http://www.fe.up.pt/~ijcvb/Files/IJCV&B_Bookmark.pdf> www.fe.up.pt/~ijcvb/Files/IJCV&B_Bookmark.pdf; the logo at: <http://www.fe.up.pt/~ijcvb/Files/IJCV&B_Logo.gif> www.fe.up.pt/~ijcvb/Files/IJCV&B_Logo.gif; and this (PDF) document at: <http://www.fe.up.pt/~ijcvb/Files/IJCV&B_Call.pdf> www.fe.up.pt/~ijcvb/Files/IJCV&B_Call.pdf. =20 |
From: KrowniX \(\)--\(\) <kr...@ya...> - 2006-12-07 18:33:13
|
Well ...the OpenFile() doesn=B4t work for me....why?=0ABecouse the OpenFile= () function returns a HFILE, and GetFileSize() needs a HANDLE, well I solve= this problem using the FindFirstFile() function and that=B4s ok..but...the= program give me the same results when I was using the FILE *=0A=0ADoes any= one know anything about it..or could just tell me what C Ansi function coul= d solve my problem by giving me the size of the file ?????????=0A=0AKrownix= =0A=0A=0A----- Mensagem original ----=0ADe: KrowniX ()--() <krownix@yahoo.c= om.br>=0APara: dev...@li...=0AEnviadas: Quinta-feira= , 7 de Dezembro de 2006 15:17:03=0AAssunto: [Dev-C++] Res: error while usin= g the GetFileSize() funtion=0A=0A=0AHi,=0A =0AI think i got it;; =0AThe pro= blem is becouse GetFileSize() works with a handle and I was using a FILE * = ...so I think that if I use the OpenFile() function I can solve my problem= ...=0A =0ABut;...until now I haven=B4t found an good example on how to use = OpenFile() so..if anyone knows how...could give me a help....ok!?!=0A =0ATh= anks=0A =0AKrownix=0A=0A=0A----- Mensagem original ----=0ADe: KrowniX ()--(= ) <kr...@ya...>=0APara: dev...@li...=0AEnvi= adas: Quinta-feira, 7 de Dezembro de 2006 12:43:15=0AAssunto: [Dev-C++] err= or while using the GetFileSize() funtion=0A=0A=0AHello..=0A =0AI got a new = situation here ...now I have to verify every 5 minuts the size of a file, b= ut I am using the GetFileSize() function but it=B4s result it isn=B4t like = de DIR command results, ex:=0A =0AMy code:=0Avoid TestSizeLog() {=0A FI= LE *fp; //ponteiro para o arquivo criado=0A DWORD sizeLog; //armazena a= rquivo=0A=0A if(!(fp=3Dfopen("c:\\arq.dat", "r"))) {=0A std::c= out << "Erro ao abrir arquivo de log" << std::endl;=0A exit(1);=0A= }=0A sizeLog=3DGetFileSize(fp, NULL); =0A sizeLog/=3D(1024*102= 4); //transforma bytes em megabytes=0A std::cout << "File Size: " << si= zeLog << std::endl;=0A} =0A =0Athe result of my code:=0AC:\>"\Documents = and Settings\p550826\Desktop\progs\EventViewer\testFile.exe"=0AFile Size: 4= 095=0A =0Athe result of a DIR command:=0A07/12/2006 10:13 33.166.87= 4 arq.dat=0A 1 arquivo(s) 33.166.874 bytes=0A =0ASo.....w= here is my error?? =0ADoes anyone has any idea??=0A =0AThanks=0AKrownix=0A= =0A=0A=0AYahoo! Search=0AM=FAsica para ver e ouvir: You're Beautiful, do Ja= mes Blunt =0A--------------------------------------------------------------= -----------=0ATake Surveys. Earn Cash. Influence the Future of IT=0AJoin So= urceForge.net's Techsay panel and you'll get the chance to share your=0Aopi= nions on IT & business topics through brief surveys - and earn cash=0Ahttp:= //www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV= =0A_______________________________________________=0ADev-cpp-users mailing = list=0AD...@li...=0ATO UNSUBSCRIBE: http://www23.b= rinkster.com/noicys/devcpp/ub.htm=0Ahttps://lists.sourceforge.net/lists/lis= tinfo/dev-cpp-users=0A=0A=0A=0A=0A=0AVoc=EA quer respostas para suas pergun= tas? Ou voc=EA sabe muito e quer compartilhar seu conhecimento? Experimente= o Yahoo! Respostas!=0A----------------------------------------------------= ---------------------=0ATake Surveys. Earn Cash. Influence the Future of IT= =0AJoin SourceForge.net's Techsay panel and you'll get the chance to share = your=0Aopinions on IT & business topics through brief surveys - and earn ca= sh=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A_______________________________________________=0ADev-cpp-users= mailing list=0AD...@li...=0ATO UNSUBSCRIBE: http:= //www23.brinkster.com/noicys/devcpp/ub.htm=0Ahttps://lists.sourceforge.net/= lists/listinfo/dev-cpp-users=0A=0A=0A=09=09=0A_____________________________= __________________________ =0ANovidade no Yahoo! Mail: receba alertas de no= vas mensagens no seu celular. Registre seu aparelho agora! =0Ahttp://br.mob= ile.yahoo.com/mailalertas/ =0A =0A |
From: KrowniX \(\)--\(\) <kr...@ya...> - 2006-12-07 17:17:14
|
Hi,=0A=0AI think i got it;; =0AThe problem is becouse GetFileSize() works w= ith a handle and I was using a FILE * ...so I think that if I use the Open= File() function I can solve my problem...=0A=0ABut;...until now I haven=B4t= found an good example on how to use OpenFile() so..if anyone knows how...c= ould give me a help....ok!?!=0A=0AThanks=0A=0AKrownix=0A=0A=0A----- Mensage= m original ----=0ADe: KrowniX ()--() <kr...@ya...>=0APara: dev-cpp= -u...@li...=0AEnviadas: Quinta-feira, 7 de Dezembro de 200= 6 12:43:15=0AAssunto: [Dev-C++] error while using the GetFileSize() funtion= =0A=0A=0AHello..=0A =0AI got a new situation here ...now I have to verify e= very 5 minuts the size of a file, but I am using the GetFileSize() function= but it=B4s result it isn=B4t like de DIR command results, ex:=0A =0AMy cod= e:=0Avoid TestSizeLog() {=0A FILE *fp; //ponteiro para o arquivo criado= =0A DWORD sizeLog; //armazena arquivo=0A=0A if(!(fp=3Dfopen("c:\\ar= q.dat", "r"))) {=0A std::cout << "Erro ao abrir arquivo de log" <<= std::endl;=0A exit(1);=0A }=0A sizeLog=3DGetFileSize(fp, = NULL); =0A sizeLog/=3D(1024*1024); //transforma bytes em megabytes=0A = std::cout << "File Size: " << sizeLog << std::endl;=0A} =0A =0Athe re= sult of my code:=0AC:\>"\Documents and Settings\p550826\Desktop\progs\Event= Viewer\testFile.exe"=0AFile Size: 4095=0A =0Athe result of a DIR command:= =0A07/12/2006 10:13 33.166.874 arq.dat=0A 1 arquivo(s= ) 33.166.874 bytes=0A =0ASo.....where is my error?? =0ADoes anyone has = any idea??=0A =0AThanks=0AKrownix=0A=0A=0A=0AYahoo! Search=0AM=FAsica para = ver e ouvir: You're Beautiful, do James Blunt=0A---------------------------= ----------------------------------------------=0ATake Surveys. Earn Cash. I= nfluence the Future of IT=0AJoin SourceForge.net's Techsay panel and you'll= get the chance to share your=0Aopinions on IT & business topics through br= ief surveys - and earn cash=0Ahttp://www.techsay.com/default.php?page=3Djoi= n.php&p=3Dsourceforge&CID=3DDEVDEV=0A______________________________________= _________=0ADev-cpp-users mailing list=0AD...@li...= t=0ATO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm=0Ahttps= ://lists.sourceforge.net/lists/listinfo/dev-cpp-users=0A=0A=0A=09=0A=0A=0A= =0A=09=0A=09=09=0A_______________________________________________________ = =0AVoc=EA quer respostas para suas perguntas? Ou voc=EA sabe muito e quer c= ompartilhar seu conhecimento? Experimente o Yahoo! Respostas !=0Ahttp://br.= answers.yahoo.com/ |