dev-cpp-users Mailing List for Dev-C++ (Page 127)
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: Markku P. <mar...@ko...> - 2005-06-11 07:40:20
|
Hi, I've used Inno Setup : http://www.jrsoftware.org/isinfo.php And ISTool which helps create scripts for Inno Setup compiler : http://www.istool.org/default.aspx/ There is also Inno Setup Form Designer (ISFD) : http://isfd.kaju74.de/ Regards, Markku ----- Original Message ----- From: "Fibre Optic" <fib...@go...> To: <dev...@li...> Sent: Saturday, June 11, 2005 2:36 AM Subject: [Dev-C++] How to prepare installation of my GTK DB ? > Hi, > > I have just ended my GTK database and I would like to prepare some kind > of installation package. I would like to prepare one exe file, which > allows install GTK runtime library and my program. Which > program/installer i need ? How to do ? > > Regards, > Fibre Optic > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > 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: Jarren L. <vb...@gm...> - 2005-06-11 04:11:01
|
I would use the clickteam installer. Free and easy. www.clickteam.com |
|
From: Fibre O. <fib...@go...> - 2005-06-10 23:36:39
|
Hi, I have just ended my GTK database and I would like to prepare some kind of installation package. I would like to prepare one exe file, which allows install GTK runtime library and my program. Which program/installer i need ? How to do ? Regards, Fibre Optic |
|
From: lordSauron <lor...@gm...> - 2005-06-10 20:20:29
|
This is really more IDE specific to DevC++ 4.9.9.2 <http://4.9.9.2>, but I= =20 was wondering, how do I access the current project version information. I know that the project can be told to keep the version information, but I= =20 just don't get how to access this from within my programs, without having t= o=20 go into project properties and look at the current version and then copy=20 them into the program myself. Does anyone know how to do this? Lord Sauron the Great lor...@gm... Live Free or Die | www.redhat.com <http://www.redhat.com> |=20 www.bloodshed.net <http://www.bloodshed.net> | www.gnu.org<http://www.gnu.o= rg>|=20 www.ubuntulinux.org <http://www.ubuntulinux.org> |
|
From: Michal M. <mi...@mo...> - 2005-06-10 19:17:28
|
Hello, the new engine is on place at http://devpaks.org . The old version is still available at http://old.devpaks.org . -- Regards, Michal ICQ# 175762750 |
|
From: Per W. <pw...@ia...> - 2005-06-09 18:26:20
|
Follow the "TO UNSUBSCRIBE" link at the bottom of all mails. Subscribe to the list using your new email address. Then unsubscribe your old address. That simple! /Per W On Thu, 9 Jun 2005, Gustavo Lopez wrote: > Does anyone know where to change the submited e-mail address? > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > 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: Gustavo L. <gl...@qa...> - 2005-06-09 18:17:12
|
Does anyone know where to change the submited e-mail address? |
|
From: Chris S. <csh...@qu...> - 2005-06-09 12:49:41
|
Hi, No I haven't added either of these headers--shouldn't I get a compile error? I'll try adding them and see what happens. Thanks, Chris Guillermo Gutierrez wrote: > Just a guess from an observer but, out of curiosity, since this is a WIN32 API call have you included the windows.h and maybe the winbase.h header files? > > ex: #include <windows.h> > #include <winbase.h> > > if you have, forgive my uninformed suggestion. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Chris > Share > Sent: Thursday, June 09, 2005 3:42 AM > To: Per Westermark > Cc: dev...@li... > Subject: Re: [Dev-C++] Newbie Question: Writing Ouput to the Debug > Window > > > Hi, > > Thanks for your help. > > I've tried adding the following code to my program however it doesn't > seem to be doing anything: > > LPCTSTR lpsz = "Hello!"; > OutputDebugString(lpsz); > > What am I missing? > > Cheers, > > Chris > > Per Westermark wrote: > >>You may use the Win32 API: >>OutputDebugString(LPCTSTR lpsz); >>to emit debug messages. >> >>For just looking at the debug output, a really great program is DebugView >>which you can retrieve from >>http://www.sysinternals.com/Utilities/DebugView.html >> >>/Per W >> >>On Wed, 8 Jun 2005, Chris Share wrote: >> >> >> >>>Hi, >>> >>>I'm interested in moving my development work from Visual Studio to >>>wxDev-C++. >>> >>>In VS I've been using TRACE to output to the debug window and find this >>>very useful. I've had a look through wxDev-C++'s online help but can't >>>find any mention of how to do this. >>> >>>Is there something equivalent to TRACE in wxDev-C++? >>> >>>Cheers, >>> >>>Chris >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >>>a projector? How fast can you ride your desk chair down the office luge track? >>>If you want to score the big prize, get to know the little guy. >>>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >>>_______________________________________________ >>>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: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > 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: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > _______________________________________________ > 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: Guillermo G. <ggu...@ma...> - 2005-06-09 12:41:44
|
Just a guess from an observer but, out of curiosity, since this is a =
WIN32 API call have you included the windows.h and maybe the winbase.h =
header files?
ex: #include <windows.h>
#include <winbase.h>
if you have, forgive my uninformed suggestion.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Chris
Share
Sent: Thursday, June 09, 2005 3:42 AM
To: Per Westermark
Cc: dev...@li...
Subject: Re: [Dev-C++] Newbie Question: Writing Ouput to the Debug
Window
Hi,
Thanks for your help.
I've tried adding the following code to my program however it doesn't=20
seem to be doing anything:
LPCTSTR lpsz =3D "Hello!";
OutputDebugString(lpsz);
What am I missing?
Cheers,
Chris
Per Westermark wrote:
> You may use the Win32 API:
> OutputDebugString(LPCTSTR lpsz);
> to emit debug messages.
>=20
> For just looking at the debug output, a really great program is =
DebugView
> which you can retrieve from
> http://www.sysinternals.com/Utilities/DebugView.html
>=20
> /Per W
>=20
> On Wed, 8 Jun 2005, Chris Share wrote:
>=20
>=20
>>Hi,
>>
>>I'm interested in moving my development work from Visual Studio to
>>wxDev-C++.
>>
>>In VS I've been using TRACE to output to the debug window and find =
this
>>very useful. I've had a look through wxDev-C++'s online help but can't
>>find any mention of how to do this.
>>
>>Is there something equivalent to TRACE in wxDev-C++?
>>
>>Cheers,
>>
>>Chris
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you =
shotput
>>a projector? How fast can you ride your desk chair down the office =
luge track?
>>If you want to score the big prize, get to know the little guy.
>>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20
>>_______________________________________________
>>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
>>
>=20
>=20
>=20
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you =
shotput
a projector? How fast can you ride your desk chair down the office luge =
track?
If you want to score the big prize, get to know the little guy. =20
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20
_______________________________________________
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: Chris S. <csh...@qu...> - 2005-06-09 10:41:50
|
Hi, Thanks for your help. I've tried adding the following code to my program however it doesn't seem to be doing anything: LPCTSTR lpsz = "Hello!"; OutputDebugString(lpsz); What am I missing? Cheers, Chris Per Westermark wrote: > You may use the Win32 API: > OutputDebugString(LPCTSTR lpsz); > to emit debug messages. > > For just looking at the debug output, a really great program is DebugView > which you can retrieve from > http://www.sysinternals.com/Utilities/DebugView.html > > /Per W > > On Wed, 8 Jun 2005, Chris Share wrote: > > >>Hi, >> >>I'm interested in moving my development work from Visual Studio to >>wxDev-C++. >> >>In VS I've been using TRACE to output to the debug window and find this >>very useful. I've had a look through wxDev-C++'s online help but can't >>find any mention of how to do this. >> >>Is there something equivalent to TRACE in wxDev-C++? >> >>Cheers, >> >>Chris >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >>a projector? How fast can you ride your desk chair down the office luge track? >>If you want to score the big prize, get to know the little guy. >>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >>_______________________________________________ >>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: Setrio <se...@gm...> - 2005-06-08 20:46:40
|
Yes, it must be XLS files. Ok, if i can do some class or functions to access this files i let you know. tks On 6/8/05, Jay Blanchard <jay...@ni...> wrote: > [snip] > The first question to be asking is, is reading these files actually > necessary? If not, you could do very much the same thing with comma or > tab > delimited files, or XML files, and then you would avoid the headaches of > the > binary XLS format, which is so thoroughly broken that not even Microsoft > understands it. > [/snip] >=20 > If the OP does not have anything other than the XLS files then all of > this is moot unless you want to require the user to save the file as > tab-delimited or CSV. I have not found any COM classes that work really > well for doing this. > |
|
From: Jay B. <jay...@ni...> - 2005-06-08 19:32:29
|
[snip] The first question to be asking is, is reading these files actually necessary? If not, you could do very much the same thing with comma or tab delimited files, or XML files, and then you would avoid the headaches of the binary XLS format, which is so thoroughly broken that not even Microsoft understands it. [/snip] If the OP does not have anything other than the XLS files then all of this is moot unless you want to require the user to save the file as tab-delimited or CSV. I have not found any COM classes that work really well for doing this. |
|
From: <Mat...@Ve...> - 2005-06-08 19:28:14
|
The first question to be asking is, is reading these files actually necessary? If not, you could do very much the same thing with comma or tab delimited files, or XML files, and then you would avoid the headaches of the binary XLS format, which is so thoroughly broken that not even Microsoft understands it. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Per Westermark Sent: Wednesday, June 08, 2005 12:23 PM To: Josh McFarlane Cc: Setrio; dev...@li... Subject: Re: [Dev-C++] Read XLS files Feel free to post directly to this list :) /Per W On Wed, 8 Jun 2005, Josh McFarlane wrote: > XLS files are highly shrouded in mystery. If you can find good > documentation on it, feel free to point me that way. > > On 6/8/05, Setrio <se...@gm...> wrote: > > Hi, > > > > Anyone knows if DevC++ has a package to read and write XLS files? > > > > tks > > > > > > ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |
|
From: Per W. <pw...@ia...> - 2005-06-08 19:22:57
|
Feel free to post directly to this list :) /Per W On Wed, 8 Jun 2005, Josh McFarlane wrote: > XLS files are highly shrouded in mystery. If you can find good > documentation on it, feel free to point me that way. > > On 6/8/05, Setrio <se...@gm...> wrote: > > Hi, > > > > Anyone knows if DevC++ has a package to read and write XLS files? > > > > tks > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > > a projector? How fast can you ride your desk chair down the office luge track? > > If you want to score the big prize, get to know the little guy. > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > > _______________________________________________ > > 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 > > > > > -- > Darsant Silverstring > > "Peace cannot be kept by force. It can only be achieved by understanding." > -Albert Einstein |
|
From: Josh M. <da...@gm...> - 2005-06-08 19:18:18
|
XLS files are highly shrouded in mystery. If you can find good documentation on it, feel free to point me that way. On 6/8/05, Setrio <se...@gm...> wrote: > Hi, >=20 > Anyone knows if DevC++ has a package to read and write XLS files? >=20 > tks >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you sho= tput > a projector? How fast can you ride your desk chair down the office luge t= rack? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > _______________________________________________ > 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 >=20 --=20 Darsant Silverstring=20 "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein |
|
From: Setrio <se...@gm...> - 2005-06-08 19:14:14
|
Hi, Anyone knows if DevC++ has a package to read and write XLS files? tks |
|
From: Per W. <pw...@ia...> - 2005-06-08 17:44:46
|
You may use the Win32 API: OutputDebugString(LPCTSTR lpsz); to emit debug messages. For just looking at the debug output, a really great program is DebugView which you can retrieve from http://www.sysinternals.com/Utilities/DebugView.html /Per W On Wed, 8 Jun 2005, Chris Share wrote: > Hi, > > I'm interested in moving my development work from Visual Studio to > wxDev-C++. > > In VS I've been using TRACE to output to the debug window and find this > very useful. I've had a look through wxDev-C++'s online help but can't > find any mention of how to do this. > > Is there something equivalent to TRACE in wxDev-C++? > > Cheers, > > Chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > 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: Chris S. <csh...@qu...> - 2005-06-08 16:55:48
|
Hi, I'm interested in moving my development work from Visual Studio to wxDev-C++. In VS I've been using TRACE to output to the debug window and find this very useful. I've had a look through wxDev-C++'s online help but can't find any mention of how to do this. Is there something equivalent to TRACE in wxDev-C++? Cheers, Chris |
|
From: Per W. <pw...@ia...> - 2005-06-08 06:26:18
|
Did you test \r\n in the edit box?
Reading a text file "as text" only loads a \n into memory.
/Per W
On Tue, 7 Jun 2005, Noorez Kassam wrote:
> In my file handling, I'm ending up with something like this when I attempt
> to read from a text file and print it out to an EDIT control: Hello|how are
> you today. Instead of the new line in the EDIT, I get a small black line.
> Hear is the function...
>
> void OpenText(HWND main)
> {
> char lpstrFile[256];
>
> char inLine[256];
> inLine[0] = '\0';
>
> char buffer[5000];
> buffer[0] = '\0';
>
> LPOPENFILENAME openFileInfo = new OPENFILENAME;
>
> getOFNproperties(main, openFileInfo, lpstrFile);
>
> if( !GetOpenFileName(openFileInfo) )
> {
> MessageBox(main,"Could Not Open","ERROR",MB_OK | MB_ICONERROR);
> return;
> }
>
> ifstream openTextFile(openFileInfo->lpstrFile);
>
> while( !openTextFile.eof() )
> {
> openTextFile.getline(inLine,500);
> //MessageBox(main,inLine,"Message", MB_OK);
> strcat(buffer,inLine);
> }
>
> SetDlgItemText(main, IDC_MAIN_EDIT, buffer);
>
> delete openFileInfo;
> }
>
> I also attached the whole program
>
> _________________________________________________________________
> Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new
> MSN Search! Check it out!
>
|
|
From: Noorez K. <lor...@ho...> - 2005-06-08 05:09:10
|
In my file handling, I'm ending up with something like this when I attempt
to read from a text file and print it out to an EDIT control: Hello|how are
you today. Instead of the new line in the EDIT, I get a small black line.
Hear is the function...
void OpenText(HWND main)
{
char lpstrFile[256];
char inLine[256];
inLine[0] = '\0';
char buffer[5000];
buffer[0] = '\0';
LPOPENFILENAME openFileInfo = new OPENFILENAME;
getOFNproperties(main, openFileInfo, lpstrFile);
if( !GetOpenFileName(openFileInfo) )
{
MessageBox(main,"Could Not Open","ERROR",MB_OK | MB_ICONERROR);
return;
}
ifstream openTextFile(openFileInfo->lpstrFile);
while( !openTextFile.eof() )
{
openTextFile.getline(inLine,500);
//MessageBox(main,inLine,"Message", MB_OK);
strcat(buffer,inLine);
}
SetDlgItemText(main, IDC_MAIN_EDIT, buffer);
delete openFileInfo;
}
I also attached the whole program
_________________________________________________________________
Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new
MSN Search! Check it out!
|
|
From: Scott <mat...@gm...> - 2005-06-07 22:21:14
|
Also just repeating my earlier bug statement.... Templates do not work for "C" only "CPP" so you have to man ually edit them to work as C templates... Cheers, Scott. > To create a template, do the following: > 1) Create a project. > 2) Add the files that will be in the template to the > project. > 3) Select File-New Template... from the Dev-C++ > menu. > You'll be presented with a tabbed window, where you > can define the name, description, category, icon, > files to include, compiler and linker settings, and so > on. > > Once you've saved the template, you can create a > project based on the template by selecting > File-New-Project... Templates are a great feature > because you can define standard project settings. In > a team environment, this can be a lifesaver. > > Ira Krakow > ikr...@ya... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > 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: Ira K. <ikr...@ya...> - 2005-06-07 19:49:20
|
Templates are a neat feature of Dev-C++. They are what the name implies - a blueprint for future projects. All the template definition files (.template extension) as well as the files in the template, such as .cpp, .cpp, .h, .rc files, etc., are stored in the \Templates directory based on the directory where you installed Dev-C++ (by default, C:\dev-Cpp). To create a template, do the following: 1) Create a project. 2) Add the files that will be in the template to the project. 3) Select File-New Template... from the Dev-C++ menu. You'll be presented with a tabbed window, where you can define the name, description, category, icon, files to include, compiler and linker settings, and so on. Once you've saved the template, you can create a project based on the template by selecting File-New-Project... Templates are a great feature because you can define standard project settings. In a team environment, this can be a lifesaver. Ira Krakow ikr...@ya... |
|
From: Per W. <pw...@ia...> - 2005-06-07 07:14:36
|
Hrm. Check once more how you use lpstrFile and nMaxFile.
You want your file name in a writeable buffer.
saveFileInfo.lpstrFile = "Untitled.txt"
assumes lpstrFile to be a pointer.
saveFileInfo.nMaxFile = sizeof(saveFileInfo.lpstrFile)
assumes lpstrFile to be a character buffer - a pointer always have a fixed
size and doesn't say anything about number of characters possible to store
in the buffer.
/Per W
On Mon, 6 Jun 2005, Noorez Kassam wrote:
> Sry, resend.
>
> For my program, I need a part that is like a simple text editor, but I can't
> get the 'save' function to work. This error is received while debugging :
> 'An Access Violation (Segmentation Fault) raised in your program' at the
> marked line. I attached the entire program so that you can try to run it.
>
> void SaveText(HWND main)
> {
> int length;
> char* buffer;
>
> length = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
>
> if(length>0)
> {
> OPENFILENAME saveFileInfo;
>
> saveFileInfo.lStructSize = sizeof(saveFileInfo);
> saveFileInfo.hwndOwner = main;
> saveFileInfo.hInstance = gThisInstance;
> saveFileInfo.lpstrFilter = ".TXT"+'\0';
> saveFileInfo.lpstrCustomFilter = '\0';
> saveFileInfo.nMaxCustFilter = 0;
> saveFileInfo.nFilterIndex = 1;
> saveFileInfo.lpstrFile = "Untitled.txt";
> saveFileInfo.nMaxFile = sizeof( saveFileInfo.lpstrFile );
> saveFileInfo.lpstrFileTitle = 0;
> saveFileInfo.lpstrInitialDir = "C:\\";
> saveFileInfo.lpstrTitle = "Hey";
> saveFileInfo.nFileOffset = 0;
> saveFileInfo.nFileExtension = 0;
> saveFileInfo.lCustData = 0;
> saveFileInfo.lpstrDefExt = 0;
> saveFileInfo.Flags = OFN_HIDEREADONLY;
> saveFileInfo.lpfnHook = (LPOFNHOOKPROC)0;
> saveFileInfo.lpTemplateName = 0;
>
>
> GetSaveFileName(&saveFileInfo); //error is here in debugging
> buffer = new char[length+1];
> GetDlgItemText(main, IDC_MAIN_EDIT, buffer, length + 1);
> ifstream saveTextFile("SaveText.txt", ios::binary);
> saveTextFile >> buffer;
> saveTextFile.close();
> delete buffer;
>
> }
> }
>
|
|
From: Noorez K. <lor...@ho...> - 2005-06-07 03:56:20
|
Sry, resend.
For my program, I need a part that is like a simple text editor, but I can't
get the 'save' function to work. This error is received while debugging :
'An Access Violation (Segmentation Fault) raised in your program' at the
marked line. I attached the entire program so that you can try to run it.
void SaveText(HWND main)
{
int length;
char* buffer;
length = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
if(length>0)
{
OPENFILENAME saveFileInfo;
saveFileInfo.lStructSize = sizeof(saveFileInfo);
saveFileInfo.hwndOwner = main;
saveFileInfo.hInstance = gThisInstance;
saveFileInfo.lpstrFilter = ".TXT"+'\0';
saveFileInfo.lpstrCustomFilter = '\0';
saveFileInfo.nMaxCustFilter = 0;
saveFileInfo.nFilterIndex = 1;
saveFileInfo.lpstrFile = "Untitled.txt";
saveFileInfo.nMaxFile = sizeof( saveFileInfo.lpstrFile );
saveFileInfo.lpstrFileTitle = 0;
saveFileInfo.lpstrInitialDir = "C:\\";
saveFileInfo.lpstrTitle = "Hey";
saveFileInfo.nFileOffset = 0;
saveFileInfo.nFileExtension = 0;
saveFileInfo.lCustData = 0;
saveFileInfo.lpstrDefExt = 0;
saveFileInfo.Flags = OFN_HIDEREADONLY;
saveFileInfo.lpfnHook = (LPOFNHOOKPROC)0;
saveFileInfo.lpTemplateName = 0;
GetSaveFileName(&saveFileInfo); //error is here in debugging
buffer = new char[length+1];
GetDlgItemText(main, IDC_MAIN_EDIT, buffer, length + 1);
ifstream saveTextFile("SaveText.txt", ios::binary);
saveTextFile >> buffer;
saveTextFile.close();
delete buffer;
}
}
_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Noorez K. <lor...@ho...> - 2005-06-07 03:52:19
|
For my program, I need a part that is like a simple text editor, but I can't
get the 'save' function to work. This error is received while debugging :
'An Access Violation (Segmentation Fault) raised in your program' at the
marked line. I attached the entire program so that you can try to run it.
void SaveText(HWND main)
{
int length;
char* buffer;
length = GetWindowTextLength(GetDlgItem(main, IDC_MAIN_EDIT));
if(length>0)
{
OPENFILENAME saveFileInfo;
saveFileInfo.lStructSize = sizeof(saveFileInfo);
saveFileInfo.hwndOwner = main;
saveFileInfo.hInstance = gThisInstance;
saveFileInfo.lpstrFilter = ".TXT"+'\0';
saveFileInfo.lpstrCustomFilter = '\0';
saveFileInfo.nMaxCustFilter = 0;
saveFileInfo.nFilterIndex = 1;
saveFileInfo.lpstrFile = "Untitled.txt";
saveFileInfo.nMaxFile = sizeof( saveFileInfo.lpstrFile );
saveFileInfo.lpstrFileTitle = 0;
saveFileInfo.lpstrInitialDir = "C:\\";
saveFileInfo.lpstrTitle = "Hey";
saveFileInfo.nFileOffset = 0;
saveFileInfo.nFileExtension = 0;
saveFileInfo.lCustData = 0;
saveFileInfo.lpstrDefExt = 0;
saveFileInfo.Flags = OFN_HIDEREADONLY;
saveFileInfo.lpfnHook = (LPOFNHOOKPROC)0;
saveFileInfo.lpTemplateName = 0;
GetSaveFileName(&saveFileInfo)
buffer = new char[length+1];
GetDlgItemText(main, IDC_MAIN_EDIT, buffer, length + 1);
ifstream saveTextFile("SaveText.txt", ios::binary);
saveTextFile >> buffer;
saveTextFile.close();
delete buffer;
}
}
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|