dev-cpp-users Mailing List for Dev-C++ (Page 271)
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: David M. <ci...@ya...> - 2004-01-07 01:43:21
|
On the Dev-C++ site they say you can use cygwin with dev-c++. 1) Has anyone done this successfully? and have some documentation I can read? 2) Would I be able to switch back to mingw easily or would it be better to install dev-c++ twice (one for mingw, one for cygwin)? Thanks in Advance David McKen ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: RUDOLPH B. <ku...@sp...> - 2004-01-07 00:04:28
|
Yes, visit www.bloodshed.net look for Dev- C++ version 4985. this is for windows95 to windowsXP, very good design. Regard Rudolph ----- Original Message ----- From: "Siva Chandra" <siv...@ya...> To: <dev...@li...> Sent: Monday, January 05, 2004 1:19 PM Subject: [Dev-C++] Downloadable ANSI C++ standard docs > > hello and a happy new-year to all, > > can I get a downloadable version of the ANSI/ISO C++ > standard somewhere? > > TIA > > ===== > Siva Chandra > B-Tech, Electrical Engineering, > IIT Madras. > Currently pursuing MS by research at IIIT, Hyderabad > visit www.geocities.com/sivachandra_br > > > > > __________________________________ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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: Wobien <wo...@pl...> - 2004-01-06 22:14:25
|
One of the examples that come with Dev-C++ is MDIApp, a MDI file edi=
tor.
I used it as an example to make my own MDI application.
If you (as the user of the application) maximize the active window, a=
nd then
open another file (or a new file), this new file is not maximized. Th=
is is
not what you would expect.
I put some debugging code in the MDIchild Windowproc to see what happ=
ens.
Before any message for the new window arrives in the Windowproc the o=
ld
active window gets the variable size.
I think this is strange. I would have expected that the DefMDIChildPr=
oc
(windows API, called by the program after each message to the MDI chi=
ldren)
would do better.
I tried to fix the problem. The only thing I can find that works is t=
o
change the case CM_FILE_NEW: in the parent windowproc to:
case CM_FILE_NEW:
{
MDICREATESTRUCT mcs;
HWND hChild;
mcs.szTitle =3D "[Untitled]";
mcs.szClass =3D g_szChild;
mcs.hOwner =3D g_hInst;
mcs.x =3D mcs.cx =3D CW_USEDEFAULT;
mcs.y =3D mcs.cy =3D CW_USEDEFAULT;
mcs.style =3D MDIS_ALLCHILDSTYLES;
BOOL Maximized;
// I added this
HWND ActiveChild=3D(HWND)
SendMessage(g_hMDIClient,WM_MDIGETACTIVE,0,(LPAR=
AM)
&Maximized); // Until here
hChild =3D (HWND)SendMessage(g_hMDIClient, WM_MDICREAT=
E,
0, (LONG)&mcs);
if(!hChild)
{
MessageBox(hwnd, "MDI Child creation failed.", "Oh =
Oh...",
MB_ICONEXCLAMATION | MB_OK);
}
else
// I added this
{
if(ActiveChild and Maximized)
SendMessage(g_hMDIClient,WM_MDIMAXIMIZE,(WPARAM)hChild,0);
}
// Until here
}
break;
Of coarse you have to add the same code to case CM_FILE_OPEN:
This works, but when you open the new window you see it become small =
first
and then maximize again.
My questions are:
Why don=B4t the windows API=B4s automaticly do the right thing?
Is this a bug?
Is there a better fix?
Wobien
|
|
From: <or...@vp...> - 2004-01-06 21:15:04
|
Gil wrote: > It's fine. I'd just try to add -DBUILDING_DLL=1 for C++ compiler and it > works. > Just one thing, in the project option window, the -DBUILDING_DLL=1 is > added automatically by DevCPP when you make a DLL but into the compiler > panel and not into the C++ compiler one. > I think that is a bug if you choose to generate a C++ DLL not ? Well, it depends. It is a bug in a way, but generally it isn't, as different projects use different macros for building themselves as DLLs, so Dev-C++ probably "thinks" that you will look at the compiler settings anyway and adjust them for your needs. For example, I know of one project, which adds this: -DBUILD_DYNAMIC when building as a DLL. So Dev-C++ merely gives you a possible choice, but most often people use what they prefer. However, if you look at it strictly, yes, it is a bug. -- Greetings, Balázs |
|
From: Goran <go...@de...> - 2004-01-06 17:14:43
|
I have GTK program that has support for gettext l10n and it is working great
in Linux. But I want to port it to Windows.
I need to set gtk locale based on user settings (ignoring "regional settings"
in windows). I have following dirs:
$prefix\lang\de_DE\LC_MESSAGES\app.mo
$prefix\lang\sr_YU\LC_MESSAGES\app.mo
$prefix\lang\...\LC_MESSAGES\app.mo
where $prefix is someting like "C:\Program Files\app\" and it is taken from
windows registry - so at runtime I have full path as a char pointer.
I keep user language preferences as a string (char *) in database so I also
have "de_DE" at runtime.
Then I load it like this:
>>>>>>>>>>>>>>>>>>.
int main() {
...
#ifdef ENABLE_NLS
/* langpath is char * langpath = "$prefix\lang\" at this point */
bindtextdomain (GETTEXT_PACKAGE, (char*) langpath);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif
...
/* locale is char * locale = "de_DE" at this point */
setlocale(LC_ALL,locale);
gtk_disable_setlocale();
g_free(locale);
// gtk init, gtk main and so on..
}
<<<<<<<<<<<<<<<<
In Linux all works great. This code selectes GTK/App locale based on user
settings (locale var). But in Windows setlocale(LC_ALL, locale) returns NULL
and locale is not selected! But, GTK locale is selected based on "regional
settings" in Windows - Serbian in mine case.
How can I load GTK/application locale in Windows, and is the "de_DE" right
value for German locale to be passed to setlocale()?
Bye,
Goran
|
|
From: Per W. <pw...@ia...> - 2004-01-06 12:19:44
|
How about fflush(f) /Per W On Tue, 6 Jan 2004, [ISO-8859-15] Christian Sch=E4fer wrote: > hi dev-cpp-users, > > I have written a service that writes some messages in a logfile. > I want to be able to see all changes to the file, when I open it in > another programm, but the file is only updated when the filehandle is > closed. is there a better way than fopen/fprintf/fclose for each > message like fprintf/fupdate ? > > > gruss > /Christian mailto:ca...@kr... > > -- > I propose that the following character sequence for joke markers: > > :-) > 19-Sep-82 11:44 Scott E Fahlman > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick > _______________________________________________ > 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: <ca...@kr...> - 2004-01-06 10:22:04
|
hi dev-cpp-users,
I have written a service that writes some messages in a logfile.
I want to be able to see all changes to the file, when I open it in
another programm, but the file is only updated when the filehandle is
closed. is there a better way than fopen/fprintf/fclose for each
message like fprintf/fupdate ?
gruss
/Christian mailto:ca...@kr...
--
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Ed C. <em...@ed...> - 2004-01-05 21:32:39
|
Hi Santy, Don't worry, you didn't sound rude. This is what I was afraid of. The Microsoft site says that they no longer support the Visual FoxPro ODBC driver, anyway - they basically gave up due to the sheer number of = unfixed bugs.=20 I'm having no luck, though, invoking the Visual FoxPro OLEDB driver from = my app. Anybody out there done that? Thanks, Ed =20 -----Original Message----- From: Santiago Palmier Campos [mailto:San...@yd...]=20 Sent: Monday, January 05, 2004 4:38 AM To: Ed Cottrell Cc: dev...@li... Subject: RE: [Dev-C++] RE: ODBC for free tables (Was: SQL "SELECT = COUNT(*)" loads whole table into memory) Hi Ed, I don't want to be rude with these words, but the answer is quite simple: use a different ODBC driver (if possible). As you have written in your post "the ODBC driver loads the whole table into RAM", this behavior seems to be a problem/feature of the driver, so there is nothing you can do from your app. OTOH, you can try some other driver or dbmgr in order to achieve this... Sorry for bringing you these bad news :o( Regards, ~Santy -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: domingo, 04 de enero de 2004 01:22 To: dev...@li... Subject: [Dev-C++] RE: ODBC for free tables (Was: SQL "SELECT COUNT(*)" loads whole table into memory) Hi all, I'm going to try rephrasing my question. If I'm using an ODBC driver to connect to a Visual FoxPro (.dbf) data file, can I run queries without loading the whole file into memory? For example, if I just want to count records in a table, I would run the query "SELECT COUNT(*) FROM [c:\somefile.dbf]", but the ODBC driver loads the whole table into RAM to figure this out. How can I do this better?=20 Thanks for any help. -Ed -----Original Message----- Sent: Friday, January 02, 2004 2:00 AM To: dev...@li... Subject: [Dev-C++] SQL "SELECT COUNT(*)" loads whole table into memory Hi all, Not technically a Dev-Cpp question, but I'm hoping somebody can help, anyway. I'm working with an ODBC driver for Visual FoxPro 6 (as well as ODBC drivers for several other RDBMSs). My application is supposed to loop through a list of tables, run the single SQL statement "SELECT COUNT(*) FROM tblname", get the result, then move on. At the end, I go back and tally all the row counts. In the process, I am simply reusing all my handles (environment, connections, and recordsets), calling SQLGetData and SQLCloseCursor after each query. Now, here's the problem: even though I'm just doing SELECT COUNT(*), the entire table is getting loaded into memory. My application's memory usage goes from 6 MB to 100 +, though if I comment out just the FoxPro database interaction, it stays around 8 MB, where I would expect it to be. The logic and coding I'm doing for the FoxPro queries is absolutely identical to the logic I'm using on the other databases, except, of course, for the connection string, and I'm not having this problem with the other systems. I should also point out that removing some of the larger tables from the list of tables to check results in an almost perfectly corresponding drop in RAM usage. For what it's worth, doing the same query directly from Visual FoxPro 6 results in a RAM spike under 1 KB. Anybody know what's wrong? Is there a driver setting I need to use or something? Thanks! -Ed ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ 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 -------------------------------------------------------------------------= --- ---------- This message and any files transmitted with it are confidential and = intended solely=20 for the use of the individual or entity to whom they are addressed. No confidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy = it and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, = or copy any=20 part of this message if you are not the intended recipient. Opinions, conclusions and=20 other information in this message that do not relate to the official business of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither = given nor endorsed by it.=20 -------------------------------------------------------------------------= --- ---------- |
|
From: Vinicius <cvi...@uo...> - 2004-01-05 21:21:52
|
Search Google for "ISO/IEC 14882:1998 C++". -----Mensagem original----- De: dev...@li... [mailto:dev...@li...]Em nome de Buday Gergely Enviada em: segunda-feira, 5 de janeiro de 2004 12:28 Cc: dev...@li... Assunto: Re: [Dev-C++] Downloadable ANSI C++ standard docs Somebody wrote: > >can I get a downloadable version of the ANSI/ISO C++ > >standard somewhere? http://www.comnets.rwth-aachen.de/doc/c++std.html consists a 'nearly final' version. For the real standard, you should pay (sigh!). - Gergely ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ 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: James L K. <ja...@qu...> - 2004-01-05 19:31:36
|
Has any one used CCFITS and/or cfitsio? If so how did you compile the lib? Setup the project env? James |
|
From: Per W. <pw...@ia...> - 2004-01-05 19:00:20
|
Doesn't matter so much. It is mostly a matter of preference. The enum has
the advantage of being a data type.
C programmers has normally used the #define method. C++ affeciendos have a
tendancy to hate #define and obviously thinking enum is the only allowed
way.
Slight note 1: You forgot the zero in "#define FALSE 0"
Slight note 2: Use #define and not #def
/Per W
On Mon, 5 Jan 2004, P.T. Waugh MA wrote:
> What are the practical reasons for choosing one over the other?
>
> This:
>
> // Using enum
> //
> enum Boolean {false, true};
>
> vs.:
>
> // Using cpp object macros
> //
> #ifndef FALSE
> #define FALSE
> #endif
>
> #ifndef TRUE
> #def TRUE 1
> #endif
>
> Not sure I understand why one would choose one over the other.
>
> Patrick
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> 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: P.T. W. M. <pt...@ea...> - 2004-01-05 17:48:30
|
What are the practical reasons for choosing one over the other?
This:
// Using enum
//
enum Boolean {false, true};
vs.:
// Using cpp object macros
//
#ifndef FALSE
#define FALSE
#endif
#ifndef TRUE
#def TRUE 1
#endif
Not sure I understand why one would choose one over the other.
Patrick
|
|
From: Buday G. <bu...@in...> - 2004-01-05 14:28:34
|
Somebody wrote: > >can I get a downloadable version of the ANSI/ISO C++ > >standard somewhere? http://www.comnets.rwth-aachen.de/doc/c++std.html consists a 'nearly final' version. For the real standard, you should pay (sigh!). - Gergely |
|
From: Maya <Esc...@ne...> - 2004-01-05 13:52:51
|
try www.gnu.org siv...@ya... wrote: >hello and a happy new-year to all, > >can I get a downloadable version of the ANSI/ISO C++ >standard somewhere? > >TIA > >===== >Siva Chandra >B-Tech, Electrical Engineering, >IIT Madras. >Currently pursuing MS by research at IIIT, Hyderabad >visit www.geocities.com/sivachandra_br > > > > >__________________________________ >Do you Yahoo!? >Find out what made the Top Yahoo! Searches of 2003 >http://search.yahoo.com/top2003 > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >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 > > -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Siva C. <siv...@ya...> - 2004-01-05 13:19:08
|
hello and a happy new-year to all, can I get a downloadable version of the ANSI/ISO C++ standard somewhere? TIA ===== Siva Chandra B-Tech, Electrical Engineering, IIT Madras. Currently pursuing MS by research at IIIT, Hyderabad visit www.geocities.com/sivachandra_br __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 |
|
From: <or...@vp...> - 2004-01-05 12:24:47
|
Gil wrote: > Yes, i've tried to find some tutorial about DLL with DEVCPP, but i did't > find anyone. > My problem is a lin pb (for more explanations, see my previous thread: > link pb with DLL). > I attach my code. Okay, the problem when building the DLL was, that you didn't specify -DBUILDING_DLL=1 for C++ compiler, and your code is C++. So add it, and then the dll will build just fine. The testapp is okay, but I'd recommend including dll.h this way: #include "dll.h" not this: #include <dll.h> It's only a minor glitch. I hope I could help. -- Greetings, Balázs |
|
From: Santiago P. C. <San...@yd...> - 2004-01-05 09:37:45
|
Hi Ed, I don't want to be rude with these words, but the answer is quite simple: use a different ODBC driver (if possible). As you have written in your post "the ODBC driver loads the whole table into RAM", this behavior seems to be a problem/feature of the driver, so there is nothing you can do from your app. OTOH, you can try some other driver or dbmgr in order to achieve this... Sorry for bringing you these bad news :o( Regards, ~Santy -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: domingo, 04 de enero de 2004 01:22 To: dev...@li... Subject: [Dev-C++] RE: ODBC for free tables (Was: SQL "SELECT COUNT(*)" loads whole table into memory) Hi all, I'm going to try rephrasing my question. If I'm using an ODBC driver to connect to a Visual FoxPro (.dbf) data file, can I run queries without loading the whole file into memory? For example, if I just want to count records in a table, I would run the query "SELECT COUNT(*) FROM [c:\somefile.dbf]", but the ODBC driver loads the whole table into RAM to figure this out. How can I do this better?=20 Thanks for any help. -Ed -----Original Message----- Sent: Friday, January 02, 2004 2:00 AM To: dev...@li... Subject: [Dev-C++] SQL "SELECT COUNT(*)" loads whole table into memory Hi all, Not technically a Dev-Cpp question, but I'm hoping somebody can help, anyway. I'm working with an ODBC driver for Visual FoxPro 6 (as well as ODBC drivers for several other RDBMSs). My application is supposed to loop through a list of tables, run the single SQL statement "SELECT COUNT(*) FROM tblname", get the result, then move on. At the end, I go back and tally all the row counts. In the process, I am simply reusing all my handles (environment, connections, and recordsets), calling SQLGetData and SQLCloseCursor after each query. Now, here's the problem: even though I'm just doing SELECT COUNT(*), the entire table is getting loaded into memory. My application's memory usage goes from 6 MB to 100 +, though if I comment out just the FoxPro database interaction, it stays around 8 MB, where I would expect it to be. The logic and coding I'm doing for the FoxPro queries is absolutely identical to the logic I'm using on the other databases, except, of course, for the connection string, and I'm not having this problem with the other systems. I should also point out that removing some of the larger tables from the list of tables to check results in an almost perfectly corresponding drop in RAM usage. For what it's worth, doing the same query directly from Visual FoxPro 6 results in a RAM spike under 1 KB. Anybody know what's wrong? Is there a driver setting I need to use or something? Thanks! -Ed ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ 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 -------------------------------------------------------------------------= ------------- This message and any files transmitted with it are confidential and inten= ded solely=20 for the use of the individual or entity to whom they are addressed. No co= nfidentiality=20 or privilege is waived or lost by any wrong transmission.=20 If you have received this message in error, please immediately destroy it= =20and kindly=20 notify the sender by reply email. You must not, directly or indirectly, use, disclose, distribute, print, o= r copy any=20 part of this message if you are not the intended recipient. Opinions, con= clusions and=20 other information in this message that do not relate to the official busi= ness of=20 Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given= =20nor endorsed by it.=20 -------------------------------------------------------------------------= ------------- |
|
From: Gil <gil...@fr...> - 2004-01-05 05:22:32
|
Yes, i've tried to find some tutorial about DLL with DEVCPP, but i did't find anyone. My problem is a lin pb (for more explanations, see my previous thread: link pb with DLL). I attach my code. Thank you for your help gil Subject: Re: [Dev-C++] [HELP] I can't create and use a DLL Gil wrote: > I'can't create (and so, use) a DLL with DevCPP 4.9.8.5 > Is anyone that can help me please ? Creating one is just as easy as creating it with MSVC. Just tell us how far have you come with it, also attach some code. (I assume you already looked at some tutorials, as there are at least a=20 dozen). -- Greetings, Bal=E1zs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 02/01/2004 =20 =20 |
|
From: Goran <go...@de...> - 2004-01-04 23:13:14
|
I need to send some data with HTTP POST query to web server, but i am havin=
g=20
problems with urlencode algorithm.
I am using following code:
(g_strconcat is Glib function that does calloc and than strcat to new point=
er)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#define hex(ch) ( (char) ( ((ch) >=3D 10) ? ((ch) - 10) + 'A' : ((ch) + '0'=
) ) )
#ifndef is_alnum
#define is_alnum(ch) ( ((ch) >=3D '0' && (ch) <=3D '9') || \
((ch) >=3D 'A' && (ch) <=3D 'Z') || \
((ch) >=3D 'a' && (ch) <=3D 'z') )
#endif
char *=20
urlencode(char *input) {
char *dest;
int len,i;
int j=3D0;
len =3D strlen(input);
dest =3D calloc(len+1,sizeof(char));
for(i =3D 0; i < len; i++ )
{
if( is_alnum(input[i]) || input[i] =3D=3D '_' || input[i] =3D=3D '-')=
=20
{
dest[j] =3D input[i]; j++; =20
}
else if( input[i] =3D=3D ' ')=20
{=20
dest[j] =3D '+'; j++; =20
}
else
{
dest =3D realloc(dest, strlen(dest)+2);
dest[j] =3D '%';
dest[j+1] =3D hex(input[i] >> 4);
dest[j+2] =3D hex(input[i] & 0xF);
j=3Dj+3;
}
}
printf("Len: %i\nString: %s\n", strlen(dest), dest);
input =3D g_strconcat(dest,NULL);
g_free(dest);
return input;
}
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Code is based on function that I found in DsURL library on the web.
But I am having troubles with Latin1 (=C3=9F, =C3=A0,...) and Latin2 (=C4=
=8D, =C4=87, =C5=BE,...) =20
chars. I have UTF8 representation of that chars, and for example web server=
=20
translate "=C3=9F" as "%DF" and my function doesnt - I am getting "%,3%)F".=
It is=20
becouse my string is in UTF8 and this function expects ASCII string. But I=
=20
donot know how to do this for multibyte.
Thanx,
Goran
|
|
From: Michael C U. <mu...@cb...> - 2004-01-04 23:13:11
|
Hi all, Thanks to those who gave suggestions. I did finally figure out the problem. Basically, wxWindows doesn't like the make utility that omes with MSys (this despite the fact that the wxWindows instructions tell you to use MSys, and mSys automatically replaces whatever make utility you currently have with its own when it installs). And used the extra.zip package instead (which comes with the basic UNIX utilities and also a different make utility. wxWindows built fine after that. Thanks again, Mike On Sun, 4 Jan 2004, Per Westermark wrote: > Ouch. Forgot to mention that I have available a very large set of unix > tools > rm, cp, ln, rm, ... > in my path. > > /Per W > > On Sun, 4 Jan 2004, Per Westermark wrote: > > > I just downloaded the 2.4.2 windows install release > > > > edited src/mingw32.bat point at my MinGW directory run run it. > > checked contents of setup.h > > changed to src/msw > > make -f makefile.g95 > > > > Libraries built ok. I have installed MinGW myself. It says: > > > > C:\usr\src\wxWindows-2.4.2\lib>gcc --version > > gcc (GCC) 3.2 (mingw special 20020817-1) > > Copyright (C) 2002 Free Software Foundation, Inc. > > This is free software; see the source for copying conditions. There is NO > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > > PURPOSE. > > > > /Per W > > > > > > On Sun, 4 Jan 2004, Michael C Urban wrote: > > > > > Has anyone tried to build wxWindows 2.4.2 under Dev C++? it seems that the > > > makefile.g95 is FUBAR. I've compiled wxWindows in the past using MinGW and > > > Msys, but wxWindows 2.4.2 fails before it even gets started because it > > > fails to create certain directories. I think it might have to do with the > > > slashes going the wrong way and being interpreted as escape characters or > > > something. > > > > > > Does anyone have insights on this? > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > _______________________________________________ > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > 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: Maya <Esc...@ne...> - 2004-01-04 23:11:53
|
Ed's suggestion is correct, but if you are using C++ it's even better to use the C++ to handle this. Here is an example: http://www.vif.com/users/escalante/Tricks_of_the_trade.html Pa...@ac... wrote: > I bought a book on how to program and Dev C++ 4.01 was included. I > tried to do the hello world but every time I try to run the program > after I compile it I get a flash of some screen and that's all. Dev > stays the same. What do I do??? -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Michael C U. <mu...@cb...> - 2004-01-04 23:11:52
|
Hi all, Thanks to those who gave suggestions. I did finally figure out the problem. Basically, wxWindows doesn't like the make utility that omes with MSys (this despite the fact that the wxWindows instructions tell you to use MSys, and mSys automatically replaces whatever make utility you currently have with its own when it installs). And used the extra.zip package instead (which comes with the basic UNIX utilities and also a different make utility. wxWindows built fine after that. Thanks again, Mike On Sun, 4 Jan 2004, Per Westermark wrote: > Ouch. Forgot to mention that I have available a very large set of unix > tools > rm, cp, ln, rm, ... > in my path. > > /Per W > > On Sun, 4 Jan 2004, Per Westermark wrote: > > > I just downloaded the 2.4.2 windows install release > > > > edited src/mingw32.bat point at my MinGW directory run run it. > > checked contents of setup.h > > changed to src/msw > > make -f makefile.g95 > > > > Libraries built ok. I have installed MinGW myself. It says: > > > > C:\usr\src\wxWindows-2.4.2\lib>gcc --version > > gcc (GCC) 3.2 (mingw special 20020817-1) > > Copyright (C) 2002 Free Software Foundation, Inc. > > This is free software; see the source for copying conditions. There is NO > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > > PURPOSE. > > > > /Per W > > > > > > On Sun, 4 Jan 2004, Michael C Urban wrote: > > > > > Has anyone tried to build wxWindows 2.4.2 under Dev C++? it seems that the > > > makefile.g95 is FUBAR. I've compiled wxWindows in the past using MinGW and > > > Msys, but wxWindows 2.4.2 fails before it even gets started because it > > > fails to create certain directories. I think it might have to do with the > > > slashes going the wrong way and being interpreted as escape characters or > > > something. > > > > > > Does anyone have insights on this? > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > _______________________________________________ > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > 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: <or...@vp...> - 2004-01-04 23:10:37
|
Gil wrote: > I'can't create (and so, use) a DLL with DevCPP 4.9.8.5 > Is anyone that can help me please ? Creating one is just as easy as creating it with MSVC. Just tell us how far have you come with it, also attach some code. (I assume you already looked at some tutorials, as there are at least a dozen). -- Greetings, Balázs |
|
From: Gil <gil...@fr...> - 2004-01-04 17:24:57
|
Hi, I'can't create (and so, use) a DLL with DevCPP 4.9.8.5 Is anyone that can help me please ? gil --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.558 / Virus Database: 350 - Release Date: 02/01/2004 |
|
From: Per W. <pw...@ia...> - 2004-01-04 11:34:35
|
Ouch. Forgot to mention that I have available a very large set of unix tools rm, cp, ln, rm, ... in my path. /Per W On Sun, 4 Jan 2004, Per Westermark wrote: > I just downloaded the 2.4.2 windows install release > > edited src/mingw32.bat point at my MinGW directory run run it. > checked contents of setup.h > changed to src/msw > make -f makefile.g95 > > Libraries built ok. I have installed MinGW myself. It says: > > C:\usr\src\wxWindows-2.4.2\lib>gcc --version > gcc (GCC) 3.2 (mingw special 20020817-1) > Copyright (C) 2002 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > /Per W > > > On Sun, 4 Jan 2004, Michael C Urban wrote: > > > Has anyone tried to build wxWindows 2.4.2 under Dev C++? it seems that the > > makefile.g95 is FUBAR. I've compiled wxWindows in the past using MinGW and > > Msys, but wxWindows 2.4.2 fails before it even gets started because it > > fails to create certain directories. I think it might have to do with the > > slashes going the wrong way and being interpreted as escape characters or > > something. > > > > Does anyone have insights on this? > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > 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 > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > 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 > |