dev-cpp-users Mailing List for Dev-C++ (Page 710)
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: Sam <sch...@ho...> - 2001-03-24 13:25:22
|
hi i'm trying to use the string compare case insentive function, = strnicmp, and it won't compile is there a reason this doesn't work with = Dev?? |
|
From: Shaddow <Sh...@ti...> - 2001-03-24 02:14:33
|
ma...@ju... wrote: > Here's what the compiler says: > 215 c:\dev-c_~1\include\wx\defs.h > #error "No Target! Use > -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__WXMAC__|__WXQT__|__WXPM__|__WXSTUBS_ > _]" > 7 c:\mydocu~1\cpp\firstm~1.cpp > C:\DEV-C_~1\INCLUDE\wx\setup.h:15: #error No __WXxxx__ define set! Please > define one of > __WXBASE__,__WXGTK__,__WXMSW__,__WXMOTIF__,__WXMAC__,__WXQT__,__WXPM__,__ > WXSTUBS > I admit I am a newbie, basically clueless as to how to define targets or > build makefiles. So any help would be greatly appreciated on this. > For a wxWindows program to compile properly, you need to have defined one of a handful of pre-processor variables. wxWindows is designed to support a variety of platforms and as is often the case for cross platform code, things that work on one system won't work on another. These situations are handled with conditional compilation. Something like: //- Do generic code here ... #ifdef __WXMOTIF__ //- Do Motif specific code here ... #elseif __WXMSW__ //- Do Microsoft specific code here. ... #endif //- Do more generic code here ... The error you're getting is simply telling you that you *have* to have defined one of the pre-processor variables listed. The easiest way to do this is with a compiler command line directive of "-D<variable name>". In Dev-C++ you can do this by opening your project, choose "Project Options" from the "Project" menu and adding "-D__WXMSW__" (without the quotes) to the end of the text in the "Extra compiler options" field. Brian |
|
From: <Dos...@ao...> - 2001-03-23 22:14:29
|
can i use allegro in a console program?? if this dont make any sense its cause the answer is no :) thanx doss |
|
From: Lorenzo <co...@in...> - 2001-03-23 08:14:55
|
> I miss a declaration of wTabSpacing. Have you check if the problem > comes from this one? WORD wTabSpacing; Every value I give to wTabSpacing, the size of the tab becomes huge. > Could you post the code of the function Edit_SetTabStops()? Edit_SetTabStops() is macro define in windowsx.h |
|
From: <jos...@ya...> - 2001-03-23 07:50:10
|
I miss a declaration of wTabSpacing. Have you check if the problem
comes from this one?
Could you post the code of the function Edit_SetTabStops()?
Hope this helps.
Chemanuel
--- Lorenzo <co...@in...> escribió: > I have problem with the
message EM_SETTABSTOPS: if i set the tab
> character
> size on message WM_CREATE all works, but if i try to set it in other
> place
> in program it doesn't works.
>
> Example:
> OnCreate(HWND hwnd, CREATESTRUCT *lpCreateStruct)
> {
> hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", 0,
> WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL |
> ES_AUTOVSCROLL | ES_MULTILINE | ES_WANTRETURN,
> rect.left, rect.top,
> (rect.right - rect.left), (rect.bottom -
> rect.top),
> hwnd,
> (HMENU)IDE_MAINEDIT,lpCreateStruct->hInstance, 0);
>
> FORWARD_WM_SETFONT(hwndEdit,
> (HFONT)GetStockObject(OEM_FIXED_FONT),
> 0,SendMessage);
> Edit_SetTabStops(hwndEdit, 1, &wTabSpacing);
> }
>
> This code works, but if i try to call Edit_SetTabStops in other
> functions
> independently from wTabSpacing value the tab characters become huge,
> even if
> i call SendMessage instead of Edit_SetTabStops macro: result doesn't
> change.
> I have tried also to destroy the edit control and recreate it and
> send
> message EM_SETTABSTOPS, but it doesn't works.
>
> Please help me.
>
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
|
|
From: Bolek V. <vr...@pa...> - 2001-03-22 16:43:10
|
> I have Borlands' command line compiler 5.5 and all the
> libraries - more libraries than come with Dev-C++ but
> Borland has no IDE ... anybody know where a good one
> could be? Or if there's some way to use Dev-C++
> editor to write and link code for borland compiler (or
> use the borland libraries in Dev-C++? I dont believe
> this violates any copright agreements) someone tell
> me if they have any idea. I dont know a lot of the
> details of compilers.
Of course you can use Dev-CPP to edit the files and BCC 5.5 to compile.
I had been doing it for a long time and I found these things:
1) BCC uses other switches and command line options than the standard
gcc or unix compilers do. For example, you don't use -llibrary to link a
library. Instead, you simply add the library file name to the list of
compiled files. So you will be unable to compile with F9 and will have
to call BCC from the command line, for example with a batch file or
something like that. Or you can write a wrapper program that will
translate dev-cpp compiler options to BCC options. I suspect that using
makefile generated with Dev-CPP will not work due to the difference in
command line options, but writing makefiles yourselves will work.
2) Borland uses another format of libraries (.lib) than Dev-CPP. You
cannot mix them. The same for include files. Of course include files are
simple text files in both Dev-cpp and Borland, but mixing them might
give very strange results. I suppose object files are different format
too.
3) Use tlib instead of ar or what Dev-CPP uses to create library files.
4) Don't use Dev-CPP compile to check your code before compiling with
Borland. Borland is more ANSI, some header files are different or have
different names and so on. So code that is OK for Borland might be wrong
for Dev-CPP and vice versa.
5) The command line switches for BCC 5.5 are partially documented in the
help file included with BCC 5.5 and are the same as for the command line
compiler in C++ Builder 5 (the compiler is the same).
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Mitchell, T. (HNA) <Tam...@hj...> - 2001-03-22 15:19:15
|
Help > -----Original Message----- > From: Mitchell, Tamra (HNA) > Sent: Thursday, March 22, 2001 10:07 AM > To: 'dev...@li...' > Subject: Stream Write Error > > > > When I try to save a file to my floppy I am receiving a Stream Write > Error. Does anyone know what I should do to correct this? > > Thanks > > Tamra Y. Mitchell > Heinz North America > Operating Systems Analyst > (412) 237-5232 Work > (412) 996-9078 Cell Phone > |
|
From: Bolek V. <vr...@pa...> - 2001-03-22 12:42:57
|
> I have Borlands' command line compiler 5.5 and all the
> libraries - more libraries than come with Dev-C++ but
> Borland has no IDE ... anybody know where a good one
> could be? Or if there's some way to use Dev-C++
> editor to write and link code for borland compiler (or
> use the borland libraries in Dev-C++? I dont believe
> this violates any copright agreements) someone tell
> me if they have any idea. I dont know a lot of the
> details of compilers.
Of course you can use Dev-CPP to edit the files and BCC 5.5 to compile.
I had been doing it for a long time and I found these things:
1) BCC uses other switches and command line options than the standard
gcc or unix compilers do. For example, you don't use -llibrary to link a
library. Instead, you simply add the library file name to the list of
compiled files. So you will be unable to compile with F9 and will have
to call BCC from the command line, for example with a batch file or
something like that. Or you can write a wrapper program that will
translate dev-cpp compiler options to BCC options. I suspect that using
makefile generated with Dev-CPP will not work due to the difference in
command line options, but writing makefiles yourselves will work.
2) Borland uses another format of libraries (.lib) than Dev-CPP. You
cannot mix them. The same for include files. Of course include files are
simple text files in both Dev-cpp and Borland, but mixing them might
give very strange results. I suppose object files are different format
too.
3) Use tlib instead of ar or what Dev-CPP uses to create library files.
4) Don't use Dev-CPP compile to check your code before compiling with
Borland. Borland is more ANSI, some header files are different or have
different names and so on. So code that is OK for Borland might be wrong
for Dev-CPP and vice versa.
5) The command line switches for BCC 5.5 are partially documented in the
help file included with BCC 5.5 and are the same as for the command line
compiler in C++ Builder 5 (the compiler is the same).
--
============================================================
Ing. Boleslav Vrany
Stanice techniku DDM hl. m. Prahy
Pod Juliskou 2a
Praha 6 - Dejvice
16000
Czech Republic
tel. (420 2) 243 10 240
|
|
From: Yeoh H. <ye...@ya...> - 2001-03-22 11:27:47
|
Hi, I'm using both Borland's C++5.5 command line compiler and Dev-C++. The IDE for Borland C++5.5 I'm using is called V IDE. It's a free IDE for GNU gcc, Borland C++5.5 and Sun Java. You can download a copy at : www.objectcentral.com It comes pre-configured for making BC++ projects and it's quite easy to use. There's also a free C++ gui library called V C++ GUI. And you can also configure it run other tools such as a resource editor like Weditres from the LCC-Win32 package. Yeoh ----- Original Message ----- From: Aaron Thomas <aar...@ya...> To: <dev...@li...> Sent: Thursday, March 22, 2001 8:05 AM Subject: [Dev-C++] Borlands command line compiler 5.5 has no editor > Probably an old question - > I have Borlands' command line compiler 5.5 and all the > libraries - more libraries than come with Dev-C++ but > Borland has no IDE ... anybody know where a good one > could be? Or if there's some way to use Dev-C++ > editor to write and link code for borland compiler (or > use the borland libraries in Dev-C++? I dont believe > this violates any copright agreements) someone tell > me if they have any idea. I dont know a lot of the > details of compilers. > |
|
From: Lorenzo <co...@in...> - 2001-03-22 10:15:23
|
I have problem with the message EM_SETTABSTOPS: if i set the tab character
size on message WM_CREATE all works, but if i try to set it in other place
in program it doesn't works.
Example:
OnCreate(HWND hwnd, CREATESTRUCT *lpCreateStruct)
{
hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", 0,
WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL |
ES_AUTOVSCROLL | ES_MULTILINE | ES_WANTRETURN,
rect.left, rect.top,
(rect.right - rect.left), (rect.bottom -
rect.top),
hwnd,
(HMENU)IDE_MAINEDIT,lpCreateStruct->hInstance, 0);
FORWARD_WM_SETFONT(hwndEdit, (HFONT)GetStockObject(OEM_FIXED_FONT),
0,SendMessage);
Edit_SetTabStops(hwndEdit, 1, &wTabSpacing);
}
This code works, but if i try to call Edit_SetTabStops in other functions
independently from wTabSpacing value the tab characters become huge, even if
i call SendMessage instead of Edit_SetTabStops macro: result doesn't change.
I have tried also to destroy the edit control and recreate it and send
message EM_SETTABSTOPS, but it doesn't works.
Please help me.
|
|
From: Prahlad P. <pra...@si...> - 2001-03-22 08:34:30
|
If You want to get a borlands compiler with ide than you need to purchase it from www.borland.com. On Thu, 22 Mar 2001, you wrote: > Probably an old question - > I have Borlands' command line compiler 5.5 and all the > libraries - more libraries than come with Dev-C++ but > Borland has no IDE ... anybody know where a good one > could be? Or if there's some way to use Dev-C++ > editor to write and link code for borland compiler (or > use the borland libraries in Dev-C++? I dont believe > this violates any copright agreements) someone tell > me if they have any idea. I dont know a lot of the > details of compilers. > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Andre` N. C. <ca...@op...> - 2001-03-22 00:21:05
|
SynEdit availible from www.Download.com Is cool I used it when I used Borland 5.5 Command line:) Aaron Thomas wrote: > Probably an old question - > I have Borlands' command line compiler 5.5 and all the > libraries - more libraries than come with Dev-C++ but > Borland has no IDE ... anybody know where a good one > could be? Or if there's some way to use Dev-C++ > editor to write and link code for borland compiler (or > use the borland libraries in Dev-C++? I dont believe > this violates any copright agreements) someone tell > me if they have any idea. I dont know a lot of the > details of compilers. > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Aaron T. <aar...@ya...> - 2001-03-22 00:06:36
|
Probably an old question - I have Borlands' command line compiler 5.5 and all the libraries - more libraries than come with Dev-C++ but Borland has no IDE ... anybody know where a good one could be? Or if there's some way to use Dev-C++ editor to write and link code for borland compiler (or use the borland libraries in Dev-C++? I dont believe this violates any copright agreements) someone tell me if they have any idea. I dont know a lot of the details of compilers. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
|
From: Cary S. <ca...@ly...> - 2001-03-22 00:05:59
|
it works > > I'm just checking whether the mailing list works I signed up 2 days ago > and haven't seen any posts... > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Andre` N. C. <ca...@op...> - 2001-03-22 00:00:50
|
I'm just checking whether the mailing list works I signed up 2 days ago and haven't seen any posts... |
|
From: <Dou...@ao...> - 2001-03-20 01:03:01
|
That worked! Thank you so very much for your help! |
|
From: Vassili <v.v...@bt...> - 2001-03-19 23:47:44
|
Just to let people know that I've found a site that has a reference mannual on 'C', it's very technical, but it has the definitions for functions in the standard library header files, it's a 1.2MB pdf file. Here's the site: http://www.lysator.liu.se/c/ ----- Original Message ----- From: <Hun...@ao...> To: <dev...@li...> Sent: Tuesday, March 13, 2001 8:29 PM Subject: Re: [Dev-C++] web sites > Here is a very good one. > > www.graylab.ac.uk/doc/tutorials/CPP/intro.htm > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <ma...@ju...> - 2001-03-19 16:18:33
|
Hi everyone,
I am trying to develop my first GUI using wxWindows. I basically took the
Hello World file off the site to see if it runs. I used these headers:
#rcinclude <wx/msw/wx.rc>
#include <wx/msw/setup.h>
#include <wx.h>
#include <wx/button.h>
#include <wx/wxprec.h>
#ifndef WXBASE
#include <stdio.h>
#include "wx/setup.h"
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/palette.h"
#include "wx/bitmap.h"
#include "wx/icon.h"
#endif
#include <wx/toolbar.h>
Here's what the compiler says:
215 c:\dev-c_~1\include\wx\defs.h
#error "No Target! Use
-D[__WXMOTIF__|__WXGTK__|__WXMSW__|__WXMAC__|__WXQT__|__WXPM__|__WXSTUBS_
_]"
7 c:\mydocu~1\cpp\firstm~1.cpp
C:\DEV-C_~1\INCLUDE\wx\setup.h:15: #error No __WXxxx__ define set! Please
define one of
__WXBASE__,__WXGTK__,__WXMSW__,__WXMOTIF__,__WXMAC__,__WXQT__,__WXPM__,__
WXSTUBS
I admit I am a newbie, basically clueless as to how to define targets or
build makefiles. So any help would be greatly appreciated on this.
|
|
From: Lorenzo <co...@in...> - 2001-03-19 13:45:02
|
What project options i have to use for create a library? In Ide i have found options for application, console and dll, but library? |
|
From: Lorenzo <co...@in...> - 2001-03-19 08:37:29
|
You have to add library to project, in the following mode:
1. go to theProject menu
2. select Project option
3. click on the Load object files button
4. select file libwsock32.a in the lib directory of dev-cpp
5. save all and rebuild all. Good luck.
----- Original Message -----
From: <Dou...@ao...>
To: <dev...@li...>
Sent: Sunday, March 18, 2001 5:10 PM
Subject: [Dev-C++] Winsock Help Request
> I am hoping someone who uses winsock can help me. I get the following
linker
> errors when I build the textbook example program shown below the error
> listing:
>
> c:\windows\TEMP\ccdc2agb.o: In function `doit(int, char **)':
> //c/dev-c_~1/localh~1.cpp:7: undefined reference to `gethostname@8'
> //c/dev-c_~1/localh~1.cpp:9: undefined reference to `WSAGetLastError@0'
> //c/dev-c_~1/localh~1.cpp:14: undefined reference to `gethostbyname@4'
> //c/dev-c_~1/localh~1.cpp:23: undefined reference to `inet_ntoa@4'
> c:\windows\TEMP\ccdc2agb.o: In function `main':
> //c/dev-c_~1/localh~1.cpp:32: undefined reference to `WSAStartup@8'
> //c/dev-c_~1/localh~1.cpp:38: undefined reference to `WSACleanup@0'
>
> #include <iostream.h>
> #include <winsock.h>
>
> int doit(int, char **)
> {
> char ac[80];
> if (gethostname(ac, sizeof(ac)) == SOCKET_ERROR) {
> cerr << "Error " << WSAGetLastError() <<
> " when getting local host name." << endl;
> return 1;
> }
> cout << "Host name is " << ac << "." << endl;
>
> struct hostent *phe = gethostbyname(ac);
> if (phe == 0) {
> cerr << "Yow! Bad host lookup." << endl;
> return 1;
> }
>
> for (int i = 0; phe->h_addr_list[i] != 0; ++i) {
> struct in_addr addr;
> memcpy(&addr, phe->h_addr_list[i], sizeof(struct in_addr));
> cout << "Address " << i << ": " << inet_ntoa(addr) << endl;
> }
>
> return 0;
> }
>
> int main(int argc, char *argv[])
> {
> WSAData wsaData;
> if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) {
> return 255;
> }
>
> int retval = doit(argc, argv);
>
> WSACleanup();
>
> return retval;
> }
>
> When I substitute "winsock2.h" for "winsock.h" I get the compiler error:
>
> ... \INCLUDE\winsock2.h:46:unbalanced '#endif'
>
|
|
From: Yeoh H. <ye...@ya...> - 2001-03-19 02:47:14
|
Hi John, I've built a front-end client to mySQL running under Win32. The C/C++ mySQL API is quite simple. Other than mySQL you can also try InterBase 6. Yeoh ----- Original Message ----- From: John Trevithick <Joh...@es...> To: DevC++ List (E-mail) <dev...@li...> Sent: Monday, March 19, 2001 8:57 AM Subject: [Dev-C++] DB Client Project > Hi Listers > > I am a 3rd-year IT student with a project to do, and I am considering using > Dev C++ to do it. > > The project is to create a compilable front-end client for an existing > (smallish) database. The existing db uses Access2000 front and back, and has > a heap of VB modules built in. We want to get away from relying on Access, > and to port to other platforms. > > Does anyone have any experience in or know of any resources for: > 1- Creating database front-ends of any kind in Dev C++ > 2- Embedding SQL and/or talking to an ODBC API in C/C++ > 3- Using any other OpenSource tool that may aid this task > > A lot to ask, but I live in hope. > Have mercy on a poor student. ;) > > Kind regards > > John Trevithick. > Manukau Institute of Technology > |
|
From: BoB S. <squ...@ya...> - 2001-03-19 02:14:08
|
I believe it is because C++ encounters the eof
marker AFTER it tries to read past the last item in
the file. Therefore you should be testing for the eof
after u read from the file each time rather than
before. Correct me if im wrong anyone please.
Sev
--- Sam <sch...@ho...> wrote:
> I'm trying to read through a file using the
> following statement:
>
> while(!feof(filePtr)
> {
> fread(&phone, sizeof(struct record), 1, filePtr);
> printf("%d%s", int, name);
> count++;
> }
>
> The problem is that it reads the last record twice
> and increments the count one more time than needed.
> Could someone explain why this happens and how to
> avoid it using the feof function? Thanks.
>
> Sam
>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
|
|
From: John T. <Joh...@es...> - 2001-03-19 00:54:47
|
Hi Listers I am a 3rd-year IT student with a project to do, and I am considering using Dev C++ to do it. The project is to create a compilable front-end client for an existing (smallish) database. The existing db uses Access2000 front and back, and has a heap of VB modules built in. We want to get away from relying on Access, and to port to other platforms. Does anyone have any experience in or know of any resources for: 1- Creating database front-ends of any kind in Dev C++ 2- Embedding SQL and/or talking to an ODBC API in C/C++ 3- Using any other OpenSource tool that may aid this task A lot to ask, but I live in hope. Have mercy on a poor student. ;) Kind regards John Trevithick. Manukau Institute of Technology "This message and any attachments are confidential to the ordinary user of the e-mail address to which it is addressed and may also be privileged. If you are not the addressee, you may not copy. Forward, disclose or use any part of this message or its attachments in any way. If you have received this message in error please notify the sender immediately by return e-mail and delete it from your system. Internet communications cannot be guaranteed to be secure or error- free, as information could be intercepted, corrupted, lost, arrive late or contain viruses. Eskimo Logistics Group and its subsidiaries, therefore does not accept liability for any errors or omissions on the context of this message which arise as a result of Internet transmission. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Eskimo Logistics Group Ltd. " |
|
From: Ioannis V. <no...@ya...> - 2001-03-19 00:21:03
|
I assume C++. string::substr(x,y) returns a string which is a copy of the defined substring. x is the starting position and y the length e.g. string s="Hello World"; string test=s.substr(6,5); //Here test is "World". s.replace(6, 5, "Nightmare"); // s is "Hello Nightmare" Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Brian Becker Sent: Sunday, March 18, 2001 10:33 PM To: Dev...@li... Subject: [Dev-C++] Getting only parts of strings Hi, I have had a terrible time trying to just copy part of a string into another string. I wanted to be able to pass a start and an end and a string to a function and have it return the part of the string between the two numbers without using anything but api, sort of like the BASIC mid function. I have tried lstrcpyn, and CharNext, and even incrementing pointers and assigning them to each other with no success. I was wondering if anybody could help me. Thanks. Brian ---------------------------------------------------------------------------- -- Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. |
|
From: Brian B. <bcb...@ya...> - 2001-03-18 20:31:17
|
Hi, I have had a terrible time trying to just copy part of a string into another string. I wanted to be able to pass a start and an end and a string to a function and have it return the part of the string between the two numbers without using anything but api, sort of like the BASIC mid function. I have tried lstrcpyn, and CharNext, and even incrementing pointers and assigning them to each other with no success. I was wondering if anybody could help me. Thanks. Brian --------------------------------- Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. |