dev-cpp-users Mailing List for Dev-C++ (Page 188)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Per W. <pw...@ia...> - 2004-08-23 07:16:35
|
Please notice that the request for for a Console application. Most
graphics libraries are limited to non-console mode.
The djgpp compiler contains a DOS-extender to allow it to work in a Win32
environment and still hook interrupts etc. Also, the built-in graphics
support uses VESA and runs in console mode.
/Per W
On Sun, 22 Aug 2004, David McKen wrote:
> What version of windows are you running if you are running any version
> of NT (including 2000 & XP) then no matter what the compiler you will
> get this crash. You will have to use a graphics library to program
> graphics on any of these OSes (allegro, SDL, OpenGL, DirectX, are some
> options you can look into.
>
>
> James Dent wrote:
>
> > Hello.
> > I have been trying to program some low-level graphics routines for a
> > console application. All of the
> > C++ books I have read have used the data structure union REGS to
> > represent the registry, and
> > functions such as int86(), outport, etc. etc. (included in dos.h).
> > This header may be obsolete, or
> > a Borland extension of C++ - I don't know. I turned to assembly to
> > accomplish the same function,
> > but the code shown below resulted in the Blue Screen of Death when the
> > 'int' command was
> > called.
> >
> > int mode = -1;
> >
> > void SetVideoMode (int local_mode)
> > {
> > // This function consists of two parts: firstly, it saves the current
> > // video mode in the global variable oldmode, and secondly, it loads
> > // various values into the registry and calls the Video BIOS interrupt
> > // for changing screen mode.
> >
> > mode = local_mode;
> >
> > asm( "movb $0xF,%ah" ); // The BIOS interrupt to
> > return
> > // the video
> > mode.
> > asm( "int $0x10" ); // The Video BIOS
> > interrupt.
> > asm( "movb %al,_oldmode" ); // Stick the mode value (in
> > %al)
> > // into the
> > variable oldmode. */
> >
> > // The old mode has been retrieved, now all that needs to be done
> > is the
> > // actual mode changing.
> >
> > asm( "movb $0x0,%ah" ); // Interrupt 0h - Screen
> > mode.
> > asm( "movb _mode,%al" ); // Put the mode into %al
> > asm( "int $0x10" ); // Video BIOS interrupt.
> > }
> >
> > I have never been very good at assembly, but this code has been
> > terribly hard to debug. Does anyone
> > know if a new version of the dos.h functions exists for Dev-C++, or
> > how to use assembly to the
> > same extent?
> >
> > Gratefully,
> >
> >> From the Assembly-Migraine afflicted.
> >
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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: David M. <dml...@co...> - 2004-08-23 02:31:14
|
What version of windows are you running if you are running any version
of NT (including 2000 & XP) then no matter what the compiler you will
get this crash. You will have to use a graphics library to program
graphics on any of these OSes (allegro, SDL, OpenGL, DirectX, are some
options you can look into.
James Dent wrote:
> Hello.
> I have been trying to program some low-level graphics routines for a
> console application. All of the
> C++ books I have read have used the data structure union REGS to
> represent the registry, and
> functions such as int86(), outport, etc. etc. (included in dos.h).
> This header may be obsolete, or
> a Borland extension of C++ - I don't know. I turned to assembly to
> accomplish the same function,
> but the code shown below resulted in the Blue Screen of Death when the
> 'int' command was
> called.
>
> int mode = -1;
>
> void SetVideoMode (int local_mode)
> {
> // This function consists of two parts: firstly, it saves the current
> // video mode in the global variable oldmode, and secondly, it loads
> // various values into the registry and calls the Video BIOS interrupt
> // for changing screen mode.
>
> mode = local_mode;
>
> asm( "movb $0xF,%ah" ); // The BIOS interrupt to
> return
> // the video
> mode.
> asm( "int $0x10" ); // The Video BIOS
> interrupt.
> asm( "movb %al,_oldmode" ); // Stick the mode value (in
> %al)
> // into the
> variable oldmode. */
>
> // The old mode has been retrieved, now all that needs to be done
> is the
> // actual mode changing.
>
> asm( "movb $0x0,%ah" ); // Interrupt 0h - Screen
> mode.
> asm( "movb _mode,%al" ); // Put the mode into %al
> asm( "int $0x10" ); // Video BIOS interrupt.
> }
>
> I have never been very good at assembly, but this code has been
> terribly hard to debug. Does anyone
> know if a new version of the dos.h functions exists for Dev-C++, or
> how to use assembly to the
> same extent?
>
> Gratefully,
>
>> From the Assembly-Migraine afflicted.
>
|
|
From: <dan...@ya...> - 2004-08-22 15:44:01
|
--- Zvi Sebrow <zvi...@ve...> escreveu: > Are there any other parts of the library that are > not present > in the dev-cpp implementation? Is there a complete > port > of the GNU C library to win32 somewhere else? Dev-C++ is only an IDE. The compiler used is MinGW, and it IS the official GCC for Windows. Your question about strfmon() should go to MinGW's mailing list (there they'll be able to tell why there's no such function in MinGW). Regarding the question about parts of the library that are not present, of course, there are a lot of things that can't be done in a native Win32 environment. There are issues with signals, pipes, sockets, files, threads, etc. MinGW tries to rely on the native Win32 support; Cygwin OTOH tries to emulate a *nix environment (with a big DLL and a 'magic' directory strcuture) so it usually has better support for *nix libraries. If you want to create a cross-platform app to run on Windows, better use a cross-platform library instead if possible. Daniel K. O. _______________________________________________________ Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! http://br.acesso.yahoo.com/ |
|
From: Scott S. <age...@co...> - 2004-08-22 13:22:12
|
I got this error before. I did a complete uninstall and then reinstalled it, and t would work for me. I have no idea what causes it. From time to time, things like this just happen for some reason. OROSZI Balázs wrote: > Hi! > > Can someone tell me why the hell do I keep getting this stupid error > whenever I want to compile some projects??? As it really upsets me. > > When I start the compilation, I get this message, but Makefile.win > gets created, it is just totally empty. > > Until now, I worked this stupid error around by double clicking on the > project file, instead of opening it from the IDE, but now even this > doesn't work. >:( > > What causes this error to appear? > > -- > Greetings, > Balázs > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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: Zvi S. <zvi...@ve...> - 2004-08-22 13:19:44
|
I understand that strfmon() is not part of the ANSI standard, but I was assuming that dev-cpp contains the full port of the GNU gcc compiler as well as the GNU C library. Are there any other parts of the library that are not present in the dev-cpp implementation? Is there a complete port of the GNU C library to win32 somewhere else? zvi ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Zvi Sebrow" <zvi...@ve...> Cc: <dev...@li...> Sent: Sunday, August 22, 2004 7:03 AM Subject: Re: [Dev-C++] strfmon > Because the function isn't part of the ANSI standard. It is part of XPG/4 > and SUSv2. Because of the different locale handling in Windows, it might > need some work to port to the Win32 environment. > > /Per W > > On Sat, 21 Aug 2004, Zvi Sebrow wrote: > > > Hi. > > Can someone tell me why the strfmon() function, listed in the GNU C library, > > is not found in dev-cpp. > > The manual page is at > > http://www.gnu.org/software/libc/manual/html_node/Formatting-Numbers.html#Formatting%20Numbers > > yet it doesnt appear in any of the dev-cpp header files, nor is it in any of the libraries. > > > > |
|
From: <or...@vp...> - 2004-08-22 12:10:27
|
Hi! Can someone tell me why the hell do I keep getting this stupid error when= ever I want to=20 compile some projects??? As it really upsets me. When I start the compilation, I get this message, but Makefile.win gets c= reated, it is=20 just totally empty. Until now, I worked this stupid error around by double clicking on the pr= oject file,=20 instead of opening it from the IDE, but now even this doesn't work. >:( What causes this error to appear? -- Greetings, Bal=E1zs |
|
From: Per W. <pw...@ia...> - 2004-08-22 11:05:47
|
Take a look at the djgpp compiler. It is a DOS extender, i.e. for running
32-bit code from the original DOS command line. It has very good support
for graphics, and the applications runs from the Win32 command line too.
/Per W
On Sun, 22 Aug 2004, James Dent wrote:
> Hello.
> I have been trying to program some low-level graphics routines for a cons=
ole
> application. All of the
> C++ books I have read have used the data structure union REGS to represen=
t
> the registry, and
> functions such as int86(), outport, etc. etc. (included in dos.h). This
> header may be obsolete, or
> a Borland extension of C++ - I don't know. I turned to assembly to
> accomplish the same function,
> but the code shown below resulted in the Blue Screen of Death when the 'i=
nt'
> command was
> called.
>
> int mode =3D -1;
>
> void SetVideoMode (int local_mode)
> {
> // This function consists of two parts: firstly, it saves the current
> // video mode in the global variable oldmode, and secondly, it loads
> // various values into the registry and calls the Video BIOS interrup=
t
> // for changing screen mode.
>
> mode =3D local_mode;
>
> asm( "movb $0xF,%ah" ); // The BIOS interrupt to ret=
urn
> // the video mod=
e.
> asm( "int $0x10" ); // The Video BIOS
> interrupt.
> asm( "movb %al,_oldmode" ); // Stick the mode value (in %a=
l)
> // into the
> variable oldmode. */
>
> // The old mode has been retrieved, now all that needs to be done is =
the
> // actual mode changing.
>
> asm( "movb $0x0,%ah" ); // Interrupt 0h - Screen mod=
e.
> asm( "movb _mode,%al" ); // Put the mode into %al
> asm( "int $0x10" ); // Video BIOS interrupt=
=2E
> }
>
> I have never been very good at assembly, but this code has been terribly
> hard to debug. Does anyone
> know if a new version of the dos.h functions exists for Dev-C++, or how t=
o
> use assembly to the
> same extent?
>
> Gratefully,
> >From the Assembly-Migraine afflicted.
>
> _________________________________________________________________
> There=92s never been a better time to get Xtra JetStream @
> http://xtra.co.nz/jetstream
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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...> - 2004-08-22 11:03:50
|
Because the function isn't part of the ANSI standard. It is part of XPG/4 and SUSv2. Because of the different locale handling in Windows, it might need some work to port to the Win32 environment. /Per W On Sat, 21 Aug 2004, Zvi Sebrow wrote: > Hi. > Can someone tell me why the strfmon() function, listed in the GNU C library, > is not found in dev-cpp. > The manual page is at > http://www.gnu.org/software/libc/manual/html_node/Formatting-Numbers.html#Formatting%20Numbers > yet it doesnt appear in any of the dev-cpp header files, nor is it in any of the libraries. > |
|
From: James D. <sem...@ho...> - 2004-08-22 04:56:45
|
Hello.
I have been trying to program some low-level graphics routines for a console
application. All of the
C++ books I have read have used the data structure union REGS to represent
the registry, and
functions such as int86(), outport, etc. etc. (included in dos.h). This
header may be obsolete, or
a Borland extension of C++ - I don't know. I turned to assembly to
accomplish the same function,
but the code shown below resulted in the Blue Screen of Death when the 'int'
command was
called.
int mode = -1;
void SetVideoMode (int local_mode)
{
// This function consists of two parts: firstly, it saves the current
// video mode in the global variable oldmode, and secondly, it loads
// various values into the registry and calls the Video BIOS interrupt
// for changing screen mode.
mode = local_mode;
asm( "movb $0xF,%ah" ); // The BIOS interrupt to return
// the video mode.
asm( "int $0x10" ); // The Video BIOS
interrupt.
asm( "movb %al,_oldmode" ); // Stick the mode value (in %al)
// into the
variable oldmode. */
// The old mode has been retrieved, now all that needs to be done is the
// actual mode changing.
asm( "movb $0x0,%ah" ); // Interrupt 0h - Screen mode.
asm( "movb _mode,%al" ); // Put the mode into %al
asm( "int $0x10" ); // Video BIOS interrupt.
}
I have never been very good at assembly, but this code has been terribly
hard to debug. Does anyone
know if a new version of the dos.h functions exists for Dev-C++, or how to
use assembly to the
same extent?
Gratefully,
From the Assembly-Migraine afflicted.
_________________________________________________________________
Theres never been a better time to get Xtra JetStream @
http://xtra.co.nz/jetstream
|
|
From: Zvi S. <zvi...@ve...> - 2004-08-22 03:39:38
|
Hi. Can someone tell me why the strfmon() function, listed in the GNU C = library, is not found in dev-cpp. =20 The manual page is at http://www.gnu.org/software/libc/manual/html_node/Formatting-Numbers.html= #Formatting%20Numbers yet it doesnt appear in any of the dev-cpp header files, nor is it in = any of the libraries. |
|
From: <con...@ya...> - 2004-08-20 23:34:25
|
_________________________________________________________ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx |
|
From: Per W. <pw...@ia...> - 2004-08-20 22:33:44
|
How about making it a Windows application, i.e. using WinMain() instead of
main() as entry point. Then you won't get a console window.
By the way, in case the copy fails, your program display both message
boxes, i.e. the OK box too.
Also, there is no need to have a system("PAUSE") at the end of the
program. The message box is enough.
/Per W
On Fri, 20 Aug 2004, Guillermo Gutierrez wrote:
> How would I get a program to run without displaying a console or a window?
> I just want it to do its thing and then pop up a message box with a message at the end.
>
> My program does what I want it to do, but I don't want a console or window to appear.
>
> Here is my code:
> _____________________________________________
> #include <iostream>
> #include <stdlib.h>
> #include <windows.h>
> #include <winbase.h>
>
> using namespace std;
>
> int main(int argc, char *argv[])
> {
> char* cFileToCopy = "Q:\\QA\\2004-08 RC1\\lp4.exe";
> char* cDestination = "C:\\Documents and Settings\\ggutierrez\\Desktop\\lp4.exe";
>
> cout<<"gonna copy:\n";
> cout<<"this ->" << cFileToCopy<<endl;
> cout<<"to this->" << cDestination<<endl;
> system("PAUSE");
>
> if (CopyFile(cFileToCopy, cDestination, false) == 0)
> {
> MessageBox(NULL, "File Copy Failed", "Error", MB_OK);
> }
> MessageBox(NULL, "Files Copied Successfully.", "Copy Complete", MB_OK);
>
> system("PAUSE");
> return 0;
> }
>
> any suggestions?
>
> Guillermo Gutierrez
> Market Scan Information Systems
> Software Q.A. Supervisor
> (818) 575-2000 x2427
> ggu...@ma...
>
>
|
|
From: Guillermo G. <ggu...@ma...> - 2004-08-20 22:13:06
|
How would I get a program to run without displaying a console or a =
window?
I just want it to do its thing and then pop up a message box with a =
message at the end.
My program does what I want it to do, but I don't want a console or =
window to appear.
Here is my code:
_____________________________________________
#include <iostream>
#include <stdlib.h>
#include <windows.h>
#include <winbase.h>
using namespace std;
int main(int argc, char *argv[])
{
char* cFileToCopy =3D "Q:\\QA\\2004-08 RC1\\lp4.exe";
char* cDestination =3D "C:\\Documents and =
Settings\\ggutierrez\\Desktop\\lp4.exe";
=20
cout<<"gonna copy:\n";
cout<<"this ->" << cFileToCopy<<endl;
cout<<"to this->" << cDestination<<endl;
system("PAUSE");
=20
if (CopyFile(cFileToCopy, cDestination, false) =3D=3D 0) =20
{
MessageBox(NULL, "File Copy Failed", "Error", MB_OK);
} =20
MessageBox(NULL, "Files Copied Successfully.", "Copy Complete", =
MB_OK);
=20
system("PAUSE");=09
return 0;
}
any suggestions?
Guillermo Gutierrez
Market Scan Information Systems
Software Q.A. Supervisor
(818) 575-2000 x2427
ggu...@ma...
|
|
From: Scott S. <age...@co...> - 2004-08-20 11:29:56
|
For 50 bucks, you can buy a nice C++ book. You could get The C++ Language for that much, and you could get the special edition for a little more. Or, you can get an STL specific book. Dane Ensign wrote: > Hi all, > > Im looking for someone to tutor me on how to combine vectors of class > objects and access the member of the objects that are in the vector. > Im fairly broke, but I really need help. If anyone wants/thinks 50 > bucks through paypal > is worth it and you are fluent with these then email me at > w0r...@ya... <mailto:w0r...@ya...> and I will > give you the specifics about my small tutoring project and you can decide. > > Best regards, > > Dane |
|
From: Per W. <pw...@ia...> - 2004-08-20 08:18:20
|
When compiling with Turbo C++ - are you generating a 16-bit small memory model application? In that case, the NULL pointer is mapped to the start of the data segment within the program, i.e. a NULL pointer operation doesn't touch any memory outside of the application, and there are no read/write protection of memory. When the application ends, the Turbo C++ runtime library checks a private variable stored first in the data segment. If that variable has been changed, the application has done assignments through a NULL pointer and the error message is printed. When building 16-bit applications in large memory model, the NULL pointer is mapped to a critical memory area in MS-DOS. When the machine gets interrupts (keyboard presses, timer interrupts, hard disk activity etc), this critical area specifies memory addresses to handlers to process the interrupts. In case of a NULL-pointer assignment, one or more of these addresses will be overwritten and the machine will hang. For 32-bit applications (Win32, Linux etc) the application is running in an environment where the memory is hardware-supervised. A NULL pointer here points to a memory area that is read/write-protected. As soon as the application tries to follow the NULL-pointer, the OS catches the illegal access and kills the application - or lets a debugger display the offending instruction in case you use a development environment. /Per W On Fri, 20 Aug 2004, Daniel K. O. wrote: > Abhijeet S wrote: > > > this is the program I have written.. this works fine on Turbo C++ > > except that in the end it gives a null pointer assignment after giving > > the output. in DevC++ it just accepts the input and crashes.. can > > anyone tell me why.. I tried using the while loop structure too but > > same error also tried finding out the length of the sting and then > > using that in the for loop > > anyways.. I guess I'm going in the wrong direction so can anyone help > > me out ? > > > This was already answered (by me) to your previous e-mail. It's time to > learn what "memory allocation" means. Any good book/tutorial have this > topic. (where are you learning C++ from?) > > > Daniel K. O. > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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...> - 2004-08-20 07:58:15
|
That is one of the disadvantages with being a software developer. A lot of the time, I have to solve a problem I have already solved before. However, I can't resuse the solution because it was made for another employer or customer. Alas, it's the same thing with the XML editor :( On the bright side, it is also a big reason why it is always important to do a thorough google before solving a problem. Can I use a 3rd-party library for it, then the solution isn't locked to a single customer, or at least only a few code lines gets branded as proprietary. /Per W On Fri, 20 Aug 2004, OROSZI Bal=E1zs wrote: > Hi! > > Could you pass me your XML editor? I currently have need of a good XML ed= itor (only if > it's free of course). Using generic code-editors isn't the most comfortab= le for me. > > -- > Greetings, > Bal=E1zs |
|
From: <tm...@za...> - 2004-08-20 07:56:57
|
OROSZI Bal=E1zs =EDrta: > Moln=E1r Tam=E1s wrote: > >> Hi! >> >> My name is Tamas from Hungary. I've just finished to download the=20 >> program Dev-C++ 4.9.9.0 because I've been looking for a greet and=20 >> efficient C++ developer. >> I've just only a big problem for the application: >> when I'm working width the editor cannot use ";" characters all of=20 >> the editor window so it is unconfortable to use the application. If=20 >> my character set is EN not problem but my default character set is HU=20 >> (hungarian) and the character ";" I can use ALTGR+"," all aplication=20 >> of my windows. >> >> It is my question: >> How can I configure or set my IDE for using above character? I need i= t. >> Many thanks for Your help. > > > Szia! > > Go to: > "Tools" -> "Configure Shortcuts" > then select the line > "Edit:Uncomment" > and press escape. > > --=20 > Greetings, > Bal=E1zs (from Hungary as well :) > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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 > > Szia Bal=E1zs! Many thanks for your help, it's really working! Thank you. Tam=E1s |
|
From: Daniel K. O. <dan...@ya...> - 2004-08-20 07:51:30
|
Abhijeet S wrote: > this is the program I have written.. this works fine on Turbo C++ > except that in the end it gives a null pointer assignment after giving > the output. in DevC++ it just accepts the input and crashes.. can > anyone tell me why.. I tried using the while loop structure too but > same error also tried finding out the length of the sting and then > using that in the for loop > anyways.. I guess I'm going in the wrong direction so can anyone help > me out ? This was already answered (by me) to your previous e-mail. It's time to learn what "memory allocation" means. Any good book/tutorial have this topic. (where are you learning C++ from?) Daniel K. O. |
|
From: Abhijeet S <abh...@ms...> - 2004-08-20 07:22:12
|
Hi guys,
this is the program I have written.. this works fine on Turbo C++ except
that in the end it gives a null pointer assignment after giving the output.
in DevC++ it just accepts the input and crashes.. can anyone tell me why.. I
tried using the while loop structure too but same error also tried finding
out the length of the sting and then using that in the for loop
anyways.. I guess I'm going in the wrong direction so can anyone help me out
?
#include <iostream>
#include <conio.h>
using namespace std;
class strin
{
private:
char *str;
public:
void getstr()
{
cout<<"Enter the string : ";
cin>>str;
}
void putstr()
{
cout<<"String is : "<<str<<endl;
}
strin operator +(strin s2)
{
int i,j;
strin temp;
for(i=0;str[i]!='\0';i++)
temp.str[i] = str[i];
for(j=0;s2.str[j]!='\0';j++)
temp.str[i++] = s2.str[j];
temp.str[i] = '\0';
return temp;
}
};
int main()
{
strin s1,s2,s3;
s1.getstr();
s1.putstr();
s2.getstr();
s2.putstr();
s3 = s1 + s2;
s3.putstr();
getch();
}
_________________________________________________________________
Apply to 50,000 jobs now. http://go.msnserver.com/IN/46921.asp Post your CV
on naukri.com today.
|
|
From: <pi...@ot...> - 2004-08-20 05:30:37
|
On 19 Aug 2004 at 16:24, Guillermo Gutierrez wrote:
>
> Hello All,
> I am having trouble figuring out how to copy/cut/paste files through
> cpp. Is there some kind of "Copy()" function or similar? I want to
> copy an executable from one folder to another. All help is greatly
> appreciated. Guillermo Gutierrez Market Scan Information Systems
> Software Q.A. Supervisor (818) 575-2000 x2427
> ggu...@ma...
Windows API function that should do the trick:
#include <winbase.h>
BOOL CopyFile(
LPCTSTR lpExistingFileName, // pointer to name of an
existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);
BOOL MoveFile(
LPCTSTR lpExistingFileName, // address of name of the
existing file
LPCTSTR lpNewFileName // address of new name for the file
);
BOOL MoveFileEx(
LPCTSTR lpExistingFileName, // address of name of the
existing file
LPCTSTR lpNewFileName, // address of new name for the file
DWORD dwFlags // flag to determine how to move file
);
|
|
From: Dane E. <wor...@so...> - 2004-08-20 03:57:07
|
Hi all, Im looking for someone to tutor me on how to combine vectors of class objects and access the member of the objects that are in the vector. Im fairly broke, but I really need help. If anyone wants/thinks 50 bucks through paypal is worth it and you are fluent with these then email me at w0r...@ya... and I will give you the specifics about my small tutoring project and you can decide. Best regards, Dane |
|
From: <or...@vp...> - 2004-08-20 01:50:38
|
Hi! Could you pass me your XML editor? I currently have need of a good XML ed= itor (only if=20 it's free of course). Using generic code-editors isn't the most comfortab= le for me. -- Greetings, Bal=E1zs Per Westermark wrote: > I have written compilers, XML editors and a number of other > string-manipulating things, but 99% of the time when I use C-strings, I > work with static buffers or make one-time assignments with strdup(). A = lot > of the manipulation doesn't even need any new buffers but may use direc= t > pointer substrings. The only realloc code I have are 3 or 4 small > functions, about 5 lines each, that I wrote about 15 years ago to inser= t > and remove text in a dynamically allocated buffer. Hardly any bother to > write. Hardly any bother to use. >=20 > For doing reg-exp it doesn't matter if I use my code, or if I use a > third-part library, such as the wxRegEx class from wxWidgets. >=20 > The point is, I don't spend any time fighting any strxx() functions, si= nce > they are not enemies. They are one of several useful (good) tools to us= e, > not something to ignore because god has created std::string. >=20 > There are a number of reasons to keep all options open. Some of them ar= e: > - C++ not available for a specific embedded environment. > - The application may not include libstd++ because of code size (may co= st > huge amounts of money if application is updated through mobile phone) > - Application must dynamically link with modules written using other > compiler. > - Application must interact with existing C libraries. > - Preformance. std::string can not do anything that C/C++ can't do > directly. Direct manipulation can do things that requires extra > book-keeping (reference counting etc.) for a std::string solution. >=20 > For most problems, there are a number of available solutions. Even if w= e > go to the extreme and compare C with C++, most problems can be solved i= n a > good way with or without objects or templates. The C implementation doe= s > not automatically need twice as much code or gets twice as many bugs. >=20 > That is why - if people ask about a "C-type" problem - I don't say they > have to use streams, strings etc. I mention that they are available, bu= t > at the same time discuss what to think about if the C functions are use= d. > In this case, that scanf() shouldn't be used without specifying maximum > sizes for the strings, that it doesn't allocate the strings (except in = a > gnu extension) and that fgets()/strchr()/strtok() are the other common > C-library solution to the problem. People becomes better programmers if > they learn multiple solutions to the same problem. >=20 > /Per W |
|
From: Scott S. <age...@co...> - 2004-08-20 00:02:38
|
Try changing the order you include headers. Normally you have to include the Windows header first. Also, you can try another compiler, like the MSVC++ compiler. Look around on MSDN for it, you can download just the compiler for free. Or you can try Borland's command line compiler. Hielke wrote: > Billiam wrote: > >> Do you have all the libraries linked to it that you should have? That >> might be the problem, but Im not sure. > > > That's probably not it cause as mentioned I did use the GetInstance() > API call on another place with the very same includes. The > (internal)header files included by the source only include > self-implemented classheaderfiles besides the <windows.h> header. > Those classes do not include any other header not also mentioned in > those internal headers. That's why I think it is a linkerproblem. > However I don't get it solved no matter what change in the projects > filesettings. > > Regards, > Hielke > zw...@he... > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > 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: Scott S. <age...@co...> - 2004-08-20 00:01:00
|
Sounds like the Windows Shell might help: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_intro.asp Guillermo Gutierrez wrote: > /Hello All,/ > > /I am having trouble figuring out how to copy/cut/paste files through > cpp. Is there some kind of "Copy()" function or similar?/ > > /I want to copy an executable from one folder to another./ > > /All help is greatly appreciated./ > > /_*Guillermo Gutierrez*_/ > /*Market Scan Information Systems*/ > /*Software Q.A. Supervisor*/ > /*(818) 575-2000 x2427*/ > *_ggutierrez@marketscan.com_* > |
|
From: Guillermo G. <ggu...@ma...> - 2004-08-19 23:27:03
|
Hello All, I am having trouble figuring out how to copy/cut/paste files through = cpp. Is there some kind of "Copy()" function or similar? I want to copy an executable from one folder to another. All help is greatly appreciated. Guillermo Gutierrez Market Scan Information Systems Software Q.A. Supervisor (818) 575-2000 x2427 ggu...@ma... |