dev-cpp-users Mailing List for Dev-C++ (Page 23)
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: Eric <eri...@wo...> - 2008-10-21 17:13:21
|
Does this problem need the "C++ feature" to solve or could just be done with C or C/C++ hybrid? it seem to me you omly need C or C/C++ hybrid, and classes would only confuse the issue. >From Eric ----- Original Message ----- From: Fernando Lichtschein <fer...@gm...> To: Dev-C++ Mailing <Dev...@li...> Sent: Sunday, October 19, 2008 11:40 AM Subject: Re: [Dev-C++] help On Sat, Oct 18, 2008 at 5:24 PM, Fernando Lichtschein <fer...@gm...> wrote: > > Dear Whatever is your name (you did not sign), > > If you read carefully and look at the example, what the professor meant with "symbol" is actually a "character". > > Try reading the characters one by one from the input string and comparing them with a list of previously read characters (how you store them is up to you, maybe another string). If it is not there, it is a new symbol, add it to the string and increment the symbol ocunt. > > If it is, you already counted it, move on. > > Have fun (I am also a teacher, so I am not going to solve it for you, you can do it). > > Best regards, > > Fernando > > 2008/10/18 7amood joker <sou...@ho...> >> >> hi....i really need help .....i have an assighnment >> in c++ ; >> >> >> the professor wants me to write a program which counts the symbols of a >> string.... here is the question.... >> >> >> >> >> A string is any combination of >> blanks, letters, digits and/or special characters. >> >> Write a C++ program to calculate and print the number of different >> symbols used in a given string. A blank space counts as one symbol. >> >> Input: Any string. The length is limited to 60 characters. For >> example: >> >> Enter a string: Mississipi >> >> Test data: >> #1. "Say good bye!" >> #2. "The world is >> round" >> >> Output: The number of different symbols. For example, the output for the >> string "Mississipi" is >> >> Number of symbols for the string "Mississippi" is: 4 >> The contents of this Email and any files transmitted with it are not >> confidential and intended for the use of the individual or entity to >> whom this Email is addressed to. The views stated herein do not necessarily >> represent the view of myself been in sound mind and body it the time I >> composed this Email. I knew what I was doing when I selected your Email >> address, so you are the intended recipient of this Email, GET A GRIP!!! >> don't procrastinate with endless excuses. You may copy, forward, >> disclose, print, delete it or otherwise use it or any part of it, in any >> form you can think of. After you have received this mail please feel >> free to Email the sender (me) with a personnel Email anytime, but NOT >> black text on white background HTML format. if you been the sender >> intend to send me a Email in HTML format, please add some living color >> to compensate the slightly wasted internet bandwidth, longer download >> time and wasted space of my hard drive as if I decide to save that Email >> (only for archive purposes), due to the fact that HTML Emails are two >> and half times bigger than the same Email content posted in plain text >> format. If you been the sender decide to send me been the receiver a >> attachment file larger than 200Kb in file size please give me prior >> courtesy to ask if I would like to receive it, as I been the receiver >> have a slow dial up connection speed and often other members of the >> household want to use the phone only when I go on Internet. |
From: Fernando L. <fer...@gm...> - 2008-10-18 22:40:26
|
On Sat, Oct 18, 2008 at 5:24 PM, Fernando Lichtschein <fer...@gm...> wrote: > > Dear Whatever is your name (you did not sign), > > If you read carefully and look at the example, what the professor meant with "symbol" is actually a "character". > > Try reading the characters one by one from the input string and comparing them with a list of previously read characters (how you store them is up to you, maybe another string). If it is not there, it is a new symbol, add it to the string and increment the symbol ocunt. > > If it is, you already counted it, move on. > > Have fun (I am also a teacher, so I am not going to solve it for you, you can do it). > > Best regards, > > Fernando > > 2008/10/18 7amood joker <sou...@ho...> >> >> hi....i really need help .....i have an assighnment >> in c++ ; >> >> >> the professor wants me to write a program which counts the symbols of a >> string.... here is the question.... >> >> >> >> >> A string is any combination of >> blanks, letters, digits and/or special characters. >> >> Write a C++ program to calculate and print the number of different >> symbols used in a given string. A blank space counts as one symbol. >> >> Input: Any string. The length is limited to 60 characters. For >> example: >> >> Enter a string: Mississipi >> >> Test data: >> #1. "Say good bye!" >> #2. "The world is >> round" >> >> Output: The number of different symbols. For example, the output for the >> string "Mississipi" is >> >> Number of symbols for the string "Mississippi" is: 4 >> >> >> >> >> >> >> THIS IS THE QUESTION ...SOO PLZZZZZ IF ANYYONE HERE KNOWS THE ANSWER >> JUST MSG IT TO ME .....AND HERE IS MY HOTMAIL ADDRES..U CAN SEND THE >> PROGRAM TO ME ..SOU...@HO.........THNXXX >> >> ________________________________ >> Discover the new Windows Vista Learn more! >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> _______________________________________________ >> 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: Philip B. <ph...@bl...> - 2008-10-18 21:10:18
|
Hello there. I doubt that anyone on this list is going to write the program and send it to you... That would completely defeat the point of a "school assignment". However, I'll be glad to give you some pointers in the right direction so that you can then try to write the program based on that information. Let us assume that the number of possible characters is 128. If you think of a character in the string as a number (which is what it really is), a number from 0 to 127, an easy approach would be to create an array of ints to hold the number of times that the particular symbol has so far occured. To give a quick example... int my_array[128]; for int i=0; i<strlen(my_string); i++) my_array[my_string[i]]+=1; Then after you've looped through the entire string and incremented the corresponding array entry for each character that appears in the string, you can simply loop through it again and print out the results. Of course, you don't want to print out the ones that are 0. Hope this clears things up a bit. If not, feel free to ask again and I will try to explain it further. Regards Philip Bennefall ----- Original Message ----- From: 7amood joker To: dev...@li... Sent: Saturday, October 18, 2008 9:25 PM Subject: [Dev-C++] help hi....i really need help .....i have an assighnment in c++ ; the professor wants me to write a program which counts the symbols of a string.... here is the question.... A string is any combination of blanks, letters, digits and/or special characters. Write a C++ program to calculate and print the number of different symbols used in a given string. A blank space counts as one symbol. Input: Any string. The length is limited to 60 characters. For example: Enter a string: Mississipi Test data: #1. “Say good bye!” #2. “The world is round” Output: The number of different symbols. For example, the output for the string “Mississipi” is Number of symbols for the string “Mississippi” is: 4 THIS IS THE QUESTION ...SOO PLZZZZZ IF ANYYONE HERE KNOWS THE ANSWER JUST MSG IT TO ME .....AND HERE IS MY HOTMAIL ADDRES..U CAN SEND THE PROGRAM TO ME ..SOU...@HO.........THNXXX ------------------------------------------------------------------------------ Discover the new Windows Vista Learn more! ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------------ _______________________________________________ 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: 7amood j. <sou...@ho...> - 2008-10-18 19:25:55
|
hi....i really need help .....i have an assighnment in c++ ; the professor wants me to write a program which counts the symbols of a string.... here is the question.... A string is any combination of blanks, letters, digits and/or special characters. Write a C++ program to calculate and print the number of different symbols used in a given string. A blank space counts as one symbol. Input: Any string. The length is limited to 60 characters. For example: Enter a string: Mississipi Test data:#1. “Say good bye!”#2. “The world is round” Output: The number of different symbols. For example, the output for the string “Mississipi” is Number of symbols for the string “Mississippi” is: 4 THIS IS THE QUESTION ...SOO PLZZZZZ IF ANYYONE HERE KNOWS THE ANSWER JUST MSG IT TO ME .....AND HERE IS MY HOTMAIL ADDRES..U CAN SEND THE PROGRAM TO ME ..SOU...@HO.........THNXXX _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE |
From: João M. R. S. T. <ta...@fe...> - 2008-10-15 18:10:18
|
---------------------------------------------------------------------------- ------------------------------------------------------- (Apologies for cross-posting) International ECCOMAS Thematic Conference VipIMAGE 2009 - II ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING 21-23th October 2009, FEUP, Porto, Portugal www.fe.up.pt/~vipimage FIRST ANNOUNCE We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- ------------------------------------------------------- Dear Colleague, We are glad to announce the International Conference VipIMAGE 2009 - II ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING will be held in the Faculty of Engineering of University of Porto, Porto, Portugal, on October 21-23, 2009. Possible Topics (not limited to) Image Processing and Analysis Segmentation, Tracking and Analyze of Objects in Images 3D Vision Signal Processing Data Interpolation, Registration, Acquisition and Compression Objects Simulation Virtual Reality Software Development for Image Processing and Analysis Computer Aided Diagnosis, Surgery, Therapy and Treatment Computational Bioimaging and Visualization Telemedicine Systems and their Applications Invited Lecturers Alejandro Frangi - Pompeu Fabra University, Spain Christos E. Constantinou - Stanford University School of Medicine, USA Demetri Terzopoulos - University of California, USA Joaquim A. Jorge - Instituto Superior Técnico, Portugal José Carlos Príncipe - University of Florida, USA Lionel Moisan - Université Paris V, France Tony Chan - University of California, USA Thematic Sessions Proposals to organize Thematic Session within VipIMAGE 2009 are mostly welcome. The organizers of the selected thematic sessions will be included in the conference scientific committee and will have a reduced registration fee. They will be responsible for the dissemination of their thematic session, may invite expertise researches to have invited keynotes during their session and will participate in the review process of the submitted contributions. Proposals for Thematic Sessions should be submitted by email to the conference co-chairs (ta...@fe..., rn...@fe...) Publications The proceedings book will be published by the Taylor & Francis Group, as happened with VipIMAGE 2007 (ISBN: 9780415457774). The organizers will encourage the submission of extended versions of the accepted papers to related International Journals; in particular for special issues dedicated to the conference. One possibility already confirmed is the International Journal for Computational Vision and Biomechanics (IJCV&B). As what happened with VipIMAGE 2007, the organizers will also propose the publishing of a book by SPRINGER (ISBN: 978-1-4020-9085-1), under the Computational Methods in Applied Sciences series, with invited works from the most important ones presented in conference. Important dates Deadline for Thematic Sessions proposals: January 15, 2009 Submission of extended abstracts: March 15, 2009 Lectures and Final Papers: June 15, 2009 We are looking forward to see you in Porto next year. Kind regards, João Manuel R. S. Tavares Renato Natal Jorge (conference co-chairs) PS. For further details please see the conference website at: www.fe.up.pt/~vipimage |
From: Philip B. <ph...@bl...> - 2008-10-12 14:33:34
|
It would be a logical thing to do, if I had in fact received a valid window handle but the window just wasn't showing. Calling ShowWindow with a NULL handle, which is the case right now, wouldn't do much good. Regards Philip Bennefall ----- Original Message ----- From: toa...@ya... To: Philip Bennefall Sent: Sunday, October 12, 2008 4:27 PM Subject: Re: [Dev-C++] CreateDialog issues try using ShowWindow(hwnd, SW_SHOW) after creating the dialog box. --- Em dom, 12/10/08, Philip Bennefall <ph...@bl...> escreveu: De: Philip Bennefall <ph...@bl...> Assunto: [Dev-C++] CreateDialog issues Para: dev...@li... Data: Domingo, 12 de Outubro de 2008, 11:53 Dear list, I'm having a very strange problem with a seemingly simple piece of code. I'm simply loading a dialog box from a resource, and building it with CreateDialog. It's finding the resource fine, but for some reason CreateDialog returns NULL. According to Msdn, you can get extended information for this particular function with GetLastError so that's exactly what I did. However, GetLastError returns 0 (success)... And still the window is not being created! If anyone has the time to take a look at the scode snippet, I would appreciate it very much! Thanks in advance. Regards Philip Bennefall ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ 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 ------------------------------------------------------------------------------ Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. |
From: Philip B. <ph...@bl...> - 2008-10-12 13:53:57
|
#include <windows.h> #include <stdio.h> #include <commctrl.h> #ifdef __cplusplus extern "C" { #endif HWND hwnd; /* From Msdn */ void ErrorExit(LPTSTR pszFunction) { LPTSTR pszMessage; DWORD dwLastError = GetLastError(); FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dwLastError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&pszMessage, 0, NULL ); char cp[1024]; sprintf(cp, "%s failed with error %d: %s\n", pszFunction, dwLastError, pszMessage); MessageBox(0,cp,"Error",16); LocalFree(pszMessage); ExitProcess(dwLastError); } BOOL CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: /* May want to do things here later... */ return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) { /* Will want to do things here... */ default: break; } return TRUE; case WM_DESTROY: PostQuitMessage(0); return TRUE; case WM_CLOSE: DestroyWindow (hwnd); return TRUE; default: return FALSE; } return FALSE; } int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { hwnd = CreateDialog(hThisInstance, "DIALOG_0", 0, (DLGPROC)DialogProc); if(hwnd==NULL) { ErrorExit("CreateDialog"); return 1; } MSG msg; while(GetMessage(&msg, NULL, 0, 0)) { if(!IsDialogMessage(hwnd, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return msg.wParam; } #ifdef __cplusplus } #endif |
From: Patrick D. <dy...@ya...> - 2008-10-09 20:56:06
|
For over a week I have benn trying to work with COM. Currently I am trying to make a component DLL (a DLL that has interfaces and the DllGetClassObject() method) but so far my attempts have not worked. If someone could give me a good example to get me started I would be so relieved. Thank you so much! Patrick |
From: João M. R. S. T. <ta...@fe...> - 2008-10-05 18:29:12
|
---------------------------------------------------------------------------- -------------------- (Apologies for cross-posting) International Journal of Imaging (IJI) http://www.ceser.res.in/iji.html ISSN 0974-0627 We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- -------------------- CALL FOR PAPERS The main aim of the International Journal of Imaging (ISSN 0974-0627) is to publish refereed, well-written original research articles, and studies that describe the latest research and developments in the area of imaging. This is a broad-based journal covering all branches of imaging, its application in technology and interdisciplinary research. International Journal of Imaging (IJI) is a peer-reviewed online journal and is published in Spring and Autumn i.e. two times a year. The areas of interest include (but are not limited to): - Signal and Image Processing, - Image Acquisition and Calibration, - Pattern Analysis and Recognition, - Feature Extraction and Detection, - Filters, Algorithms, Video Coding and Watermarking, - Video Processing and Analysis, - Reconstruction, Restoration, and Enhancement, - Image Understanding, Registration, Tracking, Segmentation and Classification, - 3D Vision, - Statistical Imaging & Tomography, - Face Recognition and Facial Expression Analysis, - Human-Machine Interfaces, - Virtual Reality and Augmented Reality, - Inverse Problem & Imaging, - Medical Imaging, - Software Development for Image Processing and Analysis, - Computer Aided Diagnosis, Surgery, Therapy, and Treatment, - Computational Bioimaging and Visualization, - Telemedicine Systems and their Applications, and - Software Development. Manuscripts can also be sent to the Editor-in-Chief International Journal of Imaging, via e-mail (tavares[at]fe.up.pt). Detailed instructions on how to prepare your manuscript are available at Author Instructions (http://www.ceser.res.in/iji.html). Sincerely yours, João Manuel R. S. Tavares (University of Porto, Portugal) Editor-in-Chief International Journal of Imaging (IJI) http://www.ceser.res.in/iji.html E-mail: tavares[at]fe.up.pt |
From: sam R. <as...@ya...> - 2008-09-29 19:06:16
|
Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java? Thank you |
From: hhh h. <the...@ho...> - 2008-09-24 19:59:55
|
You should try to read more. Even though, I'll give you a hint findfirst(), findnext(), findclose() For windows, http://msdn.microsoft.com/en-us/library/zyzxfzac(VS.80).aspx > Date: Wed, 24 Sep 2008 10:13:36 -0300 > From: sup...@gm... > To: dev...@li... > Subject: [Dev-C++] Search for file with an specific extension > > Hello all! > > I need to create a procedure that is a loop for searching files with a > specific extension. > > For example, when starting the program, in the main function, it > enters in a loop for searching files with a specific extension. When > finding one, it calls a procedure that read this file and after > collecting its content, the file is deleted. > > My problem is, I do not know how to access the directory (actually is > the same where my program is) and search for files with an extension > ".inf", for example. > > I appreciate any help :) > > Thanks in advance, > > Ricardo. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 _________________________________________________________________ Confira vídeos com notícias do NY Times, gols direto do Lance, videocassetadas e muito mais no MSN Video! http://video.msn.com/?mkt=pt-br |
From: Ricardo S. <sup...@gm...> - 2008-09-24 13:13:42
|
Hello all! I need to create a procedure that is a loop for searching files with a specific extension. For example, when starting the program, in the main function, it enters in a loop for searching files with a specific extension. When finding one, it calls a procedure that read this file and after collecting its content, the file is deleted. My problem is, I do not know how to access the directory (actually is the same where my program is) and search for files with an extension ".inf", for example. I appreciate any help :) Thanks in advance, Ricardo. |
From: seb_kramm <seb...@ya...> - 2008-09-23 14:28:23
|
Well, Tom qian han, maybe you could tell us more about the error ? What's the full message ? qian han a écrit : > Dear All, > > The attached program compiled successfully in Visual Studio but has a > linking error with Dev. > Can anybody help checking what goes wrong? Thanks a lot! > > Tom |
From: <ma...@in...> - 2008-09-23 12:50:28
|
On Tuesday 23 Sep 2008 5:40:32 pm dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Pointer and vector (Ricardo Schmidt) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 22 Sep 2008 14:55:55 -0300 > From: "Ricardo Schmidt" <sup...@gm...> > Subject: [Dev-C++] Pointer and vector > To: dev...@li... > Message-ID: > <db9...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello all, > > I am having a little problem that is turning me crazy!!! > > Well, I declared a hash table ht, using std::map, with a key of type > string, and content of type a vector of string: > sdt::map<string, vector<string>*> ht; > > > After inserting values into ht, I want to access the records. So, to > access the data I have the key and I found the its respective line in > ht. I did the following: > > std::map<string, vector<string>* >::iterator temp; //temporary structure > temp = ht.find(id); > > > Now, I want to access the data that is inside the vector that is the > second element in my hash table. I've been trying many ways to do > this, but without success. One of the ways I tried is the following: > > vector<string> data; //vector to store the data from the hash table > data.at(0) = temp->second->at(0); > > Try something like this. vector<string> ::iterator tmp = ht->second.begin(); while(tmp!=ht->second.end()){ std::cout<<*tmp; tmp++; } > It returns me an error like: > > terminate called after throwing an instance of 'std::out_of_range' > what(): vector::_M_range_check > > > Does anybody know what could be the problem here?! > > Thanks in advance for any help. > > Ricardo. > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ------------------------------ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest, Vol 28, Issue 5 > ******************************************** -- ---------------------------------------------------------------------------- Regards Mayank Jain Nawal ma...@in... http://www.niksun.com Tel: +91 9818390836 +91 124-2316012(109) |
From: Ricardo S. <sup...@gm...> - 2008-09-22 17:56:07
|
Hello all, I am having a little problem that is turning me crazy!!! Well, I declared a hash table ht, using std::map, with a key of type string, and content of type a vector of string: sdt::map<string, vector<string>*> ht; After inserting values into ht, I want to access the records. So, to access the data I have the key and I found the its respective line in ht. I did the following: std::map<string, vector<string>* >::iterator temp; //temporary structure temp = ht.find(id); Now, I want to access the data that is inside the vector that is the second element in my hash table. I've been trying many ways to do this, but without success. One of the ways I tried is the following: vector<string> data; //vector to store the data from the hash table data.at(0) = temp->second->at(0); It returns me an error like: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Does anybody know what could be the problem here?! Thanks in advance for any help. Ricardo. |
From: qian h. <ha...@gm...> - 2008-09-21 23:14:11
|
class DeckOfCards { public: DeckOfCards(); // constructor initializes deck void shuffle(); // member function that shuffles cards in deck void deal(); // member function that deals cards in deck private: int deck[3][14]; // represents deck of cards }; // end of class definition |
From: Per W. <pw...@ia...> - 2008-09-17 06:37:34
|
No, Wine was one alternative where a Linux machine could use DLL files. My example with a Linux program using Windows codecs was another reference where Windows DLL files are used on a Linux machine. One example is the XBMP (XBox Media Player): http://en.wikipedia.org/wiki/Xbox_Media_Player /pwm On Wed, 17 Sep 2008, hhh hhh wrote: > > Sorry, I missed your point, isn't Wine a Windows Emulator of some sort? Why would someone need to "link" a dll to a process that uses Linux code ( as the original poster said ) inside a windows emulator? > You kinda lost me there pwm. > > Refering to the media players that read win codecs... well, as I said, it *is* possible. But as I also said, its doubtfull that the code is as smooth one. > The aformention media player has to resolve many things in process, when linking to the DLL. Even if the module dll is implicitly linked to the process, it still loses much to a native format ( *.so ) that has all the dragging parser code and resolver code done by the OS. > I do not want to deny your claim, but I do not see the point in a media player ( A good one, at that ) to use this techniquee. > > > Anyway, apart from diferent technical views, Yes you are right, when one does not have all the needed information, it is hard to anyone to help in a significant way. > > > > Date: Sat, 13 Sep 2008 13:17:38 +0200 > > From: pw...@ia... > > To: the...@ho... > > CC: fre...@gm...; dev...@li... > > Subject: Re: [Dev-C++] dll / linux > > > > And then there is Wine. > > > > By the way - there are a couple of media players that are making use of > > Windows DLL files just to be able to use Windows codecs. > > > > But in this case, the bit problem is that the post is just a request for > > using a dll file, without any motivation why. Because of knowing that a > > dll file is the Windows name for the concept while actually intending to > > use a *.so dynamic library? Because the dll file contains important > > functions to use? Because the dll is supposed to contain important > > functions, but the functions already existing for Linux, if we just knew > > what the dll does? > > > > It is always hard - often impossible - to help someone who are not ready > > to write a lot of information about the what and the why. > > > > /pwm > > > > _________________________________________________________________ > Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! > http://www.msn.com.br/emoticonpack |
From: hhh h. <the...@ho...> - 2008-09-17 06:25:32
|
Sorry, I missed your point, isn't Wine a Windows Emulator of some sort? Why would someone need to "link" a dll to a process that uses Linux code ( as the original poster said ) inside a windows emulator? You kinda lost me there pwm. Refering to the media players that read win codecs... well, as I said, it *is* possible. But as I also said, its doubtfull that the code is as smooth one. The aformention media player has to resolve many things in process, when linking to the DLL. Even if the module dll is implicitly linked to the process, it still loses much to a native format ( *.so ) that has all the dragging parser code and resolver code done by the OS. I do not want to deny your claim, but I do not see the point in a media player ( A good one, at that ) to use this techniquee. Anyway, apart from diferent technical views, Yes you are right, when one does not have all the needed information, it is hard to anyone to help in a significant way. > Date: Sat, 13 Sep 2008 13:17:38 +0200 > From: pw...@ia... > To: the...@ho... > CC: fre...@gm...; dev...@li... > Subject: Re: [Dev-C++] dll / linux > > And then there is Wine. > > By the way - there are a couple of media players that are making use of > Windows DLL files just to be able to use Windows codecs. > > But in this case, the bit problem is that the post is just a request for > using a dll file, without any motivation why. Because of knowing that a > dll file is the Windows name for the concept while actually intending to > use a *.so dynamic library? Because the dll file contains important > functions to use? Because the dll is supposed to contain important > functions, but the functions already existing for Linux, if we just knew > what the dll does? > > It is always hard - often impossible - to help someone who are not ready > to write a lot of information about the what and the why. > > /pwm > _________________________________________________________________ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack |
From: hhh h. <the...@ho...> - 2008-09-17 06:08:02
|
Well, if I got your message right, I guess this will help you... http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#ipaddr And please note, the IP 1.2.3.4 is converted to a 4-byte value, in Big Endian, using this functions... > From: ll...@cd... > To: pw...@ia...; dev...@li... > Date: Tue, 16 Sep 2008 09:39:01 +0530 > Subject: Re: [Dev-C++] initializing string with memory buffer > > I think my explanation was not clear.I was not talking about the memory > representation of "1.2.3.4", but how the system will store IP. The > system stores an IP address in 4bytes.(As in IPv4 header). I want to > make the string representation of this 4bytes. Think now I made it > clear. > > Thanks, > Lloyd > > On Mon, 2008-09-15 at 22:20 +0200, Per Westermark wrote: > > That is not a string. > > > > A string representation of the IP number should have "1.2.3.4" or in > > binary: > > 0x31 > > 0x2e > > 0x32 > > 0x2e > > 0x33 > > 0x2e > > 0x34 > > 0x00 > > > > /pwm > > > > On Mon, 15 Sep 2008, Lloyd wrote: > > > > > Hi, > > > > > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > > > So its memory will be 0x01020304. I want to initialise a string with > > > this memory. How can I do this? > > > > > > > > > > > > int ip=0x01020304; > > > string s(<I dont know how to fill this area>); > > > > > > so that > > > > > > s[0]=0x01; > > > s[1]=0x02; > > > s[2]=0x03; > > > s[3]=0x04; > > > > > > Thanks, > > > Lloyd > > > > > > > > > > > > > > > ______________________________________ > > > Scanned and protected by Email scanner > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > 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 > > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 _________________________________________________________________ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack |
From: Lloyd <ll...@cd...> - 2008-09-15 21:04:28
|
I think my explanation was not clear.I was not talking about the memory representation of "1.2.3.4", but how the system will store IP. The system stores an IP address in 4bytes.(As in IPv4 header). I want to make the string representation of this 4bytes. Think now I made it clear. Thanks, Lloyd On Mon, 2008-09-15 at 22:20 +0200, Per Westermark wrote: > That is not a string. > > A string representation of the IP number should have "1.2.3.4" or in > binary: > 0x31 > 0x2e > 0x32 > 0x2e > 0x33 > 0x2e > 0x34 > 0x00 > > /pwm > > On Mon, 15 Sep 2008, Lloyd wrote: > > > Hi, > > > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > > So its memory will be 0x01020304. I want to initialise a string with > > this memory. How can I do this? > > > > > > > > int ip=0x01020304; > > string s(<I dont know how to fill this area>); > > > > so that > > > > s[0]=0x01; > > s[1]=0x02; > > s[2]=0x03; > > s[3]=0x04; > > > > Thanks, > > Lloyd > > > > > > > > > > ______________________________________ > > Scanned and protected by Email scanner > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 > > ______________________________________ Scanned and protected by Email scanner |
From: Lloyd <ll...@cd...> - 2008-09-15 13:54:20
|
Hi, I am using C++ STL string. I have an IP address something like 1.2.3.4 So its memory will be 0x01020304. I want to initialise a string with this memory. How can I do this? int ip=0x01020304; string s(<I dont know how to fill this area>); so that s[0]=0x01; s[1]=0x02; s[2]=0x03; s[3]=0x04; Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Per W. <pw...@ia...> - 2008-09-15 13:20:42
|
That is not a string. A string representation of the IP number should have "1.2.3.4" or in binary: 0x31 0x2e 0x32 0x2e 0x33 0x2e 0x34 0x00 /pwm On Mon, 15 Sep 2008, Lloyd wrote: > Hi, > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > So its memory will be 0x01020304. I want to initialise a string with > this memory. How can I do this? > > > > int ip=0x01020304; > string s(<I dont know how to fill this area>); > > so that > > s[0]=0x01; > s[1]=0x02; > s[2]=0x03; > s[3]=0x04; > > Thanks, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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: Per W. <pw...@ia...> - 2008-09-13 11:17:58
|
And then there is Wine. By the way - there are a couple of media players that are making use of Windows DLL files just to be able to use Windows codecs. But in this case, the bit problem is that the post is just a request for using a dll file, without any motivation why. Because of knowing that a dll file is the Windows name for the concept while actually intending to use a *.so dynamic library? Because the dll file contains important functions to use? Because the dll is supposed to contain important functions, but the functions already existing for Linux, if we just knew what the dll does? It is always hard - often impossible - to help someone who are not ready to write a lot of information about the what and the why. /pwm |
From: hhh h. <the...@ho...> - 2008-09-13 10:26:40
|
Hello, I'll assume that you know that nealy all functions inside a DLL use Windows API, an that Windows API is not supported in Linux kernel. Bear in mind that even if you have the source code, and it has known functions... ( e.g.: malloc()... ) in the compiled version, the result.dll, the malloc call is assembled into the windows-spefic malloc implementation, that calls a function like _mzAlloc (or something like that), that actually performs all the mem allocation tasks. Obviosly, linux kernel malloc implementation( compiled version) probably will not have the same function name and other aspects ( reside on the same address, uses the same number of args, etc, etc ). So, assuming you considered the above and the code that resides in the .DLL is a very simple one, you *can* parse the header, load the symbol table, resolve it, load it to a buffer, witch allows you to execute code, and "jmp" to that location. It is... very hard work, and even if you can do it, the code in the dll, must be very simple( even function calls inside the parsed come, must be in the same calling covention to execute right... and you'll have to resolve the code address all hiover again). I would not bother without a very good reason... mind you, even if you pull this off, it'll be a hogger of a code.... Date: Thu, 11 Sep 2008 18:32:59 -0300From: fre...@gm...To: dev...@li...Subject: [Dev-C++] dll / linux Hello,I need import some functions of a .dll on linux. I using kernel 2.6.24, Ubuntu 8.04 server edition.tanks _________________________________________________________________ Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile! http://mobile.live.com/signup/signup2.aspx?lc=pt-br |
From: Chris M. <lor...@gm...> - 2008-09-11 21:56:03
|
On Sep 11, 2008, at 2:32 PM, frederico schardong wrote: > Hello, > > I need import some functions of a .dll on linux. I using kernel > 2.6.24, Ubuntu 8.04 server edition. Linux doesn't use DLL files. You will want a .so file instead, or cross-compile to a .so file. Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |