dev-cpp-users Mailing List for Dev-C++ (Page 638)
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: Ioannis V. <no...@ya...> - 2001-12-22 15:48:59
|
Your code was not proper ANSI C++ too. Your code corrected and fully
portable:
#include <cstdlib>
#include <cctype>
#include <iostream>
int main()
{
using namespace std;
unsigned char number;
cout << "\n\tInput number or letter: ";
cin >> number;
if(isalnum(number))
{
cout << "\n\tIt is alnum" <<endl;
if(isdigit(number))
cout << "\tIt is digit" <<endl;
else if(isalpha(number))
{
cout << "\tIt is alpha" << endl;
if(islower(number))
cout << "\tIt is lower"<< endl;
}
}
cout << endl;
system("PAUSE");
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Exuss Draugas
> Sent: Saturday, December 22, 2001 10:11 AM
> To: Dev...@li...
> Subject: [Dev-C++] Checking data type
>
>
>
>
> Hi, All! :)
>
> How to check input data type from the console? For example, I need
> only number, and how to check that some letters wasn't entered?
>
> This code shows doesn't work for me, if I try to enter some number,
> it shows a zero in every condition. ://
>
> #include <stdlib.h>
> #include <ctype.h>
> #include <iostream.h>
>
> void main()
> {
>
> int number;
> cout << "\n\tInput number or letter: ";
> cin >> number;
> cout << "\n\tIs alnum?: " << isalnum(number) << endl;
> cout << "\tIs digit?: " << isdigit(number) << endl;
> cout << "\tIs alpha?: " << isalpha(number) << endl;
> cout << "\tIs lower?: " << islower(number) << endl;
> cout << endl;
> system("PAUSE");
> }
>
> Are there other way to check what was entered from console, digital
> number or text ???
>
> Thanx,
>
> Exuss :)
>
>
>
> --
> Nemokama el.pasto dezute - http://webmail.delfi.lt/
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: DXFX <vin...@ed...> - 2001-12-22 15:22:30
|
I have been searching through the Win32 API reference and still have no answer. Currently, I don't have an internet connection and I'm using a free dial-up service to my Email only. I need help from you guys... I've been testing values for the BitBlt function, and I haven't found any good solution. Ok now... here's the problem: How do I do a bitmap so that when it draws, it wouldn't paint a specific color -- giving it a bitmap transparency. If you guys still don't get what I'm saying, I've attached a gif image with this email. The one on the left is the original bitmap. It is basically a rectangle with curved corners, and a pink background(Max Red, Max Blue, 0 Green). The one on the right is what I want to accomplish when I'm going to paint it to another bitmap. that other bitmap will replace the pink background... Thus when I'm going to paint the original Bitmap, the pink areas/background would never be painted. Currently, Im using BitBlt to do this... but all I can do with that function is paint the whole bitmap. Im unable to exclude the pink areas of the bitmap in drawing. Can anyone PLEASE POINT ME to the right DIRECTION. Thanks to anyone DXFX Note: attached is "Sample1.gif", 1.24KB __________________________________ www.edsamail.com |
|
From: Kevin W. <ke...@me...> - 2001-12-22 12:19:18
|
Change the type of " number " to char.
The output will probably still be not you want, so I would use e.g. :
cout << "\tIs digit?: ";
if(isdigit(number))
cout << "Yes" << endl;
else
cout << "No" << endl;
----- Original Message -----
From: Exuss Draugas <dra...@ce...>
To: <Dev...@li...>
Sent: Saturday, December 22, 2001 8:10 AM
Subject: [Dev-C++] Checking data type
>
>
> Hi, All! :)
>
> How to check input data type from the console? For example, I need
> only number, and how to check that some letters wasn't entered?
>
> This code shows doesn't work for me, if I try to enter some number,
> it shows a zero in every condition. ://
>
> #include <stdlib.h>
> #include <ctype.h>
> #include <iostream.h>
>
> void main()
> {
>
> int number;
> cout << "\n\tInput number or letter: ";
> cin >> number;
> cout << "\n\tIs alnum?: " << isalnum(number) << endl;
> cout << "\tIs digit?: " << isdigit(number) << endl;
> cout << "\tIs alpha?: " << isalpha(number) << endl;
> cout << "\tIs lower?: " << islower(number) << endl;
> cout << endl;
> system("PAUSE");
> }
>
> Are there other way to check what was entered from console, digital
> number or text ???
>
> Thanx,
>
> Exuss :)
>
|
|
From: Exuss D. <dra...@ce...> - 2001-12-22 07:10:20
|
Hi, All! :)
How to check input data type from the console? For example, I need
only number, and how to check that some letters wasn't entered?
This code shows doesn't work for me, if I try to enter some number,
it shows a zero in every condition. ://
#include <stdlib.h>
#include <ctype.h>
#include <iostream.h>
void main()
{
int number;
cout << "\n\tInput number or letter: ";
cin >> number;
cout << "\n\tIs alnum?: " << isalnum(number) << endl;
cout << "\tIs digit?: " << isdigit(number) << endl;
cout << "\tIs alpha?: " << isalpha(number) << endl;
cout << "\tIs lower?: " << islower(number) << endl;
cout << endl;
system("PAUSE");
}
Are there other way to check what was entered from console, digital
number or text ???
Thanx,
Exuss :)
--
Nemokama el.pašto dėžutė - http://webmail.delfi.lt/
|
|
From: <jd...@da...> - 2001-12-21 23:38:12
|
How can I add a horizontal tab in the text of a List? If I use \t don't works!! |
|
From: Jason H. <jas...@bt...> - 2001-12-21 23:12:13
|
Do you have Hide File Extensions for Known types active? If so then it is possible that the extension put on the file is .exe but you just can't see it. Alternativly the association for your zip files is wrong. The message you are getting is suggesting that you are trying to execute the file, which is wrong if it is a zip file. Try going to WinZip or whatever the application of your choice it and opening the file through the File-Open dialog it supplies. That should work. You may need to tell it to show all files (*.*) instead of ".zip" only. Jason. ----- Original Message ----- From: "L. C." <cla...@ho...> To: <Dev...@li...> Sent: Friday, December 21, 2001 6:19 PM Subject: [Dev-C++] Error message > Actually I have tried C:\WINDOWS\Desktop\devcpp4.zip > C:\Windows\Desktop\devcpp401.zip > C:\Windows\Desktop\setup.zip > I still get the same message: C:WINDOWS\Desktop\-----zip is not a valid > Win32 application. > I even sent Dev-cpp to the recycle bin. Maybe I should try to download it > one more time? Of course I don't beleive this is the solution. > > Thank you jansb000 for your reply. > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Kevin W. <ke...@me...> - 2001-12-21 19:40:21
|
If Windows thinks that a file with a zip extension should be a program, then you don't have WinZip (or other unzipper) installed, or else the zip extension is not registered (though in this case Windows should give you the opportunity to select a program to open the file). Kev. ----- Original Message ----- From: L. C. <cla...@ho...> To: <Dev...@li...> Sent: Friday, December 21, 2001 6:19 PM Subject: [Dev-C++] Error message > Actually I have tried C:\WINDOWS\Desktop\devcpp4.zip > C:\Windows\Desktop\devcpp401.zip > C:\Windows\Desktop\setup.zip > I still get the same message: C:WINDOWS\Desktop\-----zip is not a valid > Win32 application. > I even sent Dev-cpp to the recycle bin. Maybe I should try to download it > one more time? Of course I don't beleive this is the solution. > > Thank you jansb000 for your reply. > >.... |
|
From: Ricardo R. <ri...@po...> - 2001-12-21 19:24:32
|
I try to make the Setup program of a project but when it tries to build the Setup I have the error message: 'I cannot find C:\Dev-Cpp\Lib\setup.exe'. Someone could help me??. Thank you. Ricardo. |
|
From: L. C. <cla...@ho...> - 2001-12-21 18:20:08
|
Actually I have tried C:\WINDOWS\Desktop\devcpp4.zip
C:\Windows\Desktop\devcpp401.zip
C:\Windows\Desktop\setup.zip
I still get the same message: C:WINDOWS\Desktop\-----zip is not a valid
Win32 application.
I even sent Dev-cpp to the recycle bin. Maybe I should try to download it
one more time? Of course I don't beleive this is the solution.
Thank you jansb000 for your reply.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|
|
From: Gary S. <bad...@ba...> - 2001-12-21 15:13:48
|
Is there a means to incorporate Microsoft's Structured Exception Handling with Dev-C++ in a C++ console project? My program compiles correctly; however, I get a run-time crash at the __try/__except portion of the program. I heard that Metrowerks will attempt to introduce SEH into next year's CodeWarrior Pro 8. Is there some other means to use SEH w/o using a Microsoft product for an IDE? |
|
From: Jason H. <jas...@bt...> - 2001-12-21 00:01:51
|
The current C++ standard says that the standard libraries don't have the .h at the end, but allows the .h though (depreciated I think). So #include <iostream.h> and #include <iostream> are equivalent, although some implementations have a difference in the use of namespaces. One thing of note however is the C standard libraries, <stdlib.h>, <stdio.h>, <string.h>, etc...are all libraries that came with C, but using the C++ notation they change too <cstdlib>, <cstdio>, <cstring>, etc... they all have a 'c' in front of them, but notice the <cstring>, in C++ there is a <string> library which is different as it defines the std::string container intruduced with C++, whereas <cstring> has the functions strcpy(), strstr(), strcmp(), etc... I don't know much about using gcc from the command line, but there are pleanty of tutorials on the web. Checkout the man pages with linux. Hope this helps, Jason. ----- Original Message ----- From: "John Kilbourne" <jki...@po...> To: <dev...@li...> Sent: Thursday, December 20, 2001 8:21 PM Subject: [Dev-C++] newbie question on header files > How do I compile on the command line using gcc, g++, or another > compiler , circumventing Dev-C++ (which I relly like))?. > Specifically, I receive errors b/c of my #include statements > (<iostream> and <string>), which I understand to be > somehow "standard". When I use <stdio.h>, my code compiles fine. > > I will be moving to unix where I will only have gcc and other unix > tools, and I am trying to get oriented to that environment. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Luigi S. <gi...@li...> - 2001-12-20 23:51:52
|
I agree with what Mr. Woods says about the reason why you are getting the
warning.
Here, I would like to point out what IMHO is another problem.
In your code you say:
...
for(int i = 0; i < 2; i++)
for(int j = 0; j < 2; j++)
pArray[i][j] = new char [10]; // acquire space for 10 characters
strcpy(pArray[0][0],"1234567890"); // copy 10 + 1 characters in pArray[0][0]
...
remember that "1234567890" is a string literal made of 10 + 1 characters
(the "+1" is for the terminating '\0'); thus your code writes beyond the
end of the array pArray[0][0].
At 18.08 18/12/01 -0800, Julio Lajara wrote:
>I can't figure out why the compiler gives me a warning
>about deleting the array in the following code:
>
>...
--
gisan
gi...@li...
|
|
From: John K. <jki...@po...> - 2001-12-20 21:59:10
|
My real point is not to find an IDE, but to learn how to work "generically", without dependence on the TDE. For insatance, I have always used TextPad for my Java work, which allows you to compile and run from the editor. In a recent class, I was forced to "make" my files form the command line, and I found it helpful and educational to work without a net, at least for a while. ------------------ Reply Separator -------------------- Originally From: "jansb000" <jan...@wx...> Subject: Re: [Dev-C++] newbie question on header files Date: 12/20/2001 10:21pm On UNIX (LINUX) you may enjoy X-Windows, also a graphical user interface. For GCC i believe there is RHIDE for UNIX. This may be what you are looking for. I have RHIDE for DOS, which is really good. I have heard that there is a version for UNIX too (it's open source). I can also recommend the newsgroup comp.os.msdos.djgpp; they discuss RHIDE (among others) and they can point you to other resources I am sure. ----- Original Message ----- From: "John Kilbourne" <jki...@po...> To: <dev...@li...> Sent: Thursday, December 20, 2001 9:21 PM Subject: [Dev-C++] newbie question on header files > How do I compile on the command line using gcc, g++, or another > compiler , circumventing Dev-C++ (which I relly like))?. > Specifically, I receive errors b/c of my #include statements > (<iostream> and <string>), which I understand to be > somehow "standard". When I use <stdio.h>, my code compiles fine. > > I will be moving to unix where I will only have gcc and other unix > tools, and I am trying to get oriented to that environment. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: jansb000 <jan...@wx...> - 2001-12-20 21:16:24
|
On UNIX (LINUX) you may enjoy X-Windows, also a graphical user interface. For GCC i believe there is RHIDE for UNIX. This may be what you are looking for. I have RHIDE for DOS, which is really good. I have heard that there is a version for UNIX too (it's open source). I can also recommend the newsgroup comp.os.msdos.djgpp; they discuss RHIDE (among others) and they can point you to other resources I am sure. ----- Original Message ----- From: "John Kilbourne" <jki...@po...> To: <dev...@li...> Sent: Thursday, December 20, 2001 9:21 PM Subject: [Dev-C++] newbie question on header files > How do I compile on the command line using gcc, g++, or another > compiler , circumventing Dev-C++ (which I relly like))?. > Specifically, I receive errors b/c of my #include statements > (<iostream> and <string>), which I understand to be > somehow "standard". When I use <stdio.h>, my code compiles fine. > > I will be moving to unix where I will only have gcc and other unix > tools, and I am trying to get oriented to that environment. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: jansb000 <jan...@wx...> - 2001-12-20 21:00:40
|
Rename to setup.zip (and not setup.zp). ----- Original Message ----- From: "L. C." <cla...@ho...> To: <dev...@li...> Sent: Sunday, December 16, 2001 7:26 PM Subject: [Dev-C++] Error message > I would appreciate if anyone could help me with the following:After > downloding devcpp and setup zip,whenever I try to open them, I get the > Message:"C:WINDOWS\Desktop\setup.zp is not a valid Win32 application". > Could anyone help me with this problem? > Thanks, > Claudia > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: John K. <jki...@po...> - 2001-12-20 20:29:06
|
How do I compile on the command line using gcc, g++, or another compiler , circumventing Dev-C++ (which I relly like))?. Specifically, I receive errors b/c of my #include statements (<iostream> and <string>), which I understand to be somehow "standard". When I use <stdio.h>, my code compiles fine. I will be moving to unix where I will only have gcc and other unix tools, and I am trying to get oriented to that environment. |
|
From: Kevin W. <ke...@me...> - 2001-12-19 16:00:48
|
As I understand it (I could be wrong) you are deleting the wrong thing.
The array is static - you did not use new to create it, so you shouldn't use
delete to get rid of it. Instead, you need to delete all the character
arrays that are pointed to by the pointers in the static array:
for(int i = 0; i < 2; i++)
for(int j = 0; j < 2; j++)
delete[] pArray[i][j];
Kev.
----- Original Message -----
From: Julio Lajara <ju2...@ya...>
To: <dev...@li...>
Sent: Wednesday, December 19, 2001 2:08 AM
Subject: [Dev-C++] warning when deleting allocated mem
> I can't figure out why the compiler gives me a warning
> about deleting the array in the following code:
>
>
> #include <iostream>
> #include <fstream>
> #include <cstdlib>
> using namespace std;
>
> ofstream fout;
> ifstream fin;
>
> int main()
> {
> char *pArray[2][2];
>
> for(int i = 0; i < 2; i++)
> for(int j = 0; j < 2; j++)
> pArray[i][j] = new char [10];
>
> strcpy(pArray[0][0],"1234567890");
> strcpy(pArray[0][1],"1112131415");
> strcpy(pArray[1][0],"1617181920");
> strcpy(pArray[1][1],"2122232425");
>
> cout << pArray << "\n\n";
>
> fout.open("writing 2D array from stack.ini",
> ios::out);
>
> if(fout.good())
> {
> fout.write(pArray, sizeof pArray);
> fout.close();
> }
> else
> {
> cout << "\n\nERROR, could not write data to
> file...";
> fout.close();
> }
>
> delete [] pArray;
> system("PAUSE");
> return 0;
> }
>
>
> Of course I can ignore the warning and it still runs
> fine, but I still would like to know why it is giving
> the warning...
>
> =====
> Julio
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Julio L. <ju2...@ya...> - 2001-12-19 02:09:03
|
I can't figure out why the compiler gives me a warning
about deleting the array in the following code:
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
ofstream fout;
ifstream fin;
int main()
{
char *pArray[2][2];
for(int i = 0; i < 2; i++)
for(int j = 0; j < 2; j++)
pArray[i][j] = new char [10];
strcpy(pArray[0][0],"1234567890");
strcpy(pArray[0][1],"1112131415");
strcpy(pArray[1][0],"1617181920");
strcpy(pArray[1][1],"2122232425");
cout << pArray << "\n\n";
fout.open("writing 2D array from stack.ini",
ios::out);
if(fout.good())
{
fout.write(pArray, sizeof pArray);
fout.close();
}
else
{
cout << "\n\nERROR, could not write data to
file...";
fout.close();
}
delete [] pArray;
system("PAUSE");
return 0;
}
Of course I can ignore the warning and it still runs
fine, but I still would like to know why it is giving
the warning...
=====
Julio
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
|
|
From: Jason H. <jas...@bt...> - 2001-12-18 18:41:58
|
The Arguments list for WinMain is:
int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // pointer to command line
int nCmdShow // show state of window
);
As you can see there is a pointer to the command line, which is a null
terminated string. As for argc I think you need to parse the string yourself
in order to determine seperate options etc...
Jason.
----- Original Message -----
From: "Gregor Peter" <pe...@in...>
To: "dev cpp" <dev...@li...>
Sent: Tuesday, December 18, 2001 1:44 AM
Subject: [Dev-C++] main( int argc, char* argv[] ) equivalents at
winmain(...)?
> How to acsess parameters of a Windowsprogramm?
>
> A console aplication with those lines in main() ...
>
>
> int main( int argc, char* argv[]){
> statements;
> return 0;
> }//main
>
> ... which gets started like:
>
> main_exe option1 option2 ... optionXY
>
> ... is able to acsess it's calling parameters.
>
> How do I acess parameters provieded to my programm like the above under
> windows?
> Where do these parameters (argc argv[]) hide in WinMain( ... ) ?
>
> THANX
> Gregor (pe...@in...)
>
>
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Gregor P. <pe...@in...> - 2001-12-18 01:57:34
|
How to acsess parameters of a Windowsprogramm?
A console aplication with those lines in main() ...
int main( int argc, char* argv[]){
statements;
return 0;
}//main
... which gets started like:
main_exe option1 option2 ... optionXY
... is able to acsess it's calling parameters.
How do I acess parameters provieded to my programm like the above under
windows?
Where do these parameters (argc argv[]) hide in WinMain( ... ) ?
THANX
Gregor (pe...@in...)
|
|
From: Brian M. <str...@ho...> - 2001-12-17 16:02:48
|
<html><div style='background-color:'><DIV>i've found a page on DLL's.</DIV> <DIV>Here's the url</DIV> <DIV><A href="http://www.iseran.com/Win32/FAQ/section7.html#113">http://www.iseran.com/Win32/FAQ/section7.html#113</A></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: Daniel G. <sp...@ho...> - 2001-12-17 09:10:28
|
<html><div style='background-color:'><DIV> <P>Hey Jason,</P> <P>Nice description, very informative. Thanks from me!</P> <P>Daniel</P> <P><BR><BR> </P></DIV> <DIV></DIV> <DIV></DIV>>From: "Jason Hardman" <JAS...@BT...> <DIV></DIV>>To: "Dev-C++" <DEV...@LI...> <DIV></DIV>>Subject: Re: [Dev-C++] DLL's? <DIV></DIV>>Date: Mon, 17 Dec 2001 02:15:58 -0000 <DIV></DIV>> <DIV></DIV>>Seeing no other answers yet so I'll say what I know. <DIV></DIV>> <DIV></DIV>>A DLL or Dynamic Link Library is a way of way of distributing code that <DIV></DIV>>performs a task and is reusable. An ordinary library contains code for <DIV></DIV>>various functions, like the standard C and C++ libraries, and when used the <DIV></DIV>>library itself is added to the executable file and the only thing the <DIV></DIV>>compiler needs to know is the function prototypes. The code is connected to <DIV></DIV>>yours by the linker, which can sort out things like function call <DIV></DIV>>addresses/offsets. While this is fine for small and simple programs it <DIV></DIV>>becomes a problem for if you use many libraries because each adds to the <DIV></DIV>>size of your executable, and having several programs that use the same <DIV></DIV>>libraries will mean that there will be a copy of the same functions within <DIV></DIV>>several different executables. If a library changes, to fix a bug for <DIV></DIV>>example, then your code would need to be recompiled and the entire thing, <DIV></DIV>>which may be several megs, will need to be redistributed, or you would at <DIV></DIV>>least need to generate a patch. <DIV></DIV>> <DIV></DIV>>With a DLL the code is put into a seperate file and the system can be <DIV></DIV>>instructed to load in a particular DLL when needed, so your program can take <DIV></DIV>>advantage of the functionality the DLL provides. So the main executable is <DIV></DIV>>smaller for not having the extra code, you only need one copy of a DLL, <DIV></DIV>>saving disk space, and if several programs all need the same DLL at the same <DIV></DIV>>time then only one copy needs to be loaded into memory. An added benefit is <DIV></DIV>>that if you need to update the DLL, fixing bugs or adding new functionality, <DIV></DIV>>then all you need to replace is the DLL and you don't have to update all <DIV></DIV>>your executable that use it. <DIV></DIV>> <DIV></DIV>>That's the basic idea of a DLL, unfortunately I don't know much about <DIV></DIV>>creating and using them. I do know to use them then you have to instruct the <DIV></DIV>>system (Windows) to load in the DLL and you need to aquire information from <DIV></DIV>>the DLL to be able to call a specific function within it. Sometimes when <DIV></DIV>>using a particular library (such as DirectX) this part is done for you. <DIV></DIV>>Maybe there is a guide on the web somewhere that tells you the details of <DIV></DIV>>creation and use of DLL's. I think that different programming languages <DIV></DIV>>would have different mechanisms for making use of DLL's that fit with the <DIV></DIV>>complexity of the language. <DIV></DIV>> <DIV></DIV>>I hope this is of help, Jason. <DIV></DIV>> <DIV></DIV>>----- Original Message ----- <DIV></DIV>>From: "Johnny Dessì" <JD...@DA...> <DIV></DIV>>To: "Dev-Cpp" <DEV...@LI...> <DIV></DIV>>Sent: Sunday, December 16, 2001 5:38 PM <DIV></DIV>>Subject: Re: [Dev-C++] DLL's? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> > Nice Question! <DIV></DIV>> > I'd like to read some answer! <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > _______________________________________________ <DIV></DIV>> > Dev-cpp-users mailing list <DIV></DIV>> > Dev...@li... <DIV></DIV>> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://go.msn.com/bql/hmtag3_etl_EN.asp'>Click Here</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2001-12-17 03:05:39
|
Seeing no other answers yet so I'll say what I know. A DLL or Dynamic Link Library is a way of way of distributing code that performs a task and is reusable. An ordinary library contains code for various functions, like the standard C and C++ libraries, and when used the library itself is added to the executable file and the only thing the compiler needs to know is the function prototypes. The code is connected to yours by the linker, which can sort out things like function call addresses/offsets. While this is fine for small and simple programs it becomes a problem for if you use many libraries because each adds to the size of your executable, and having several programs that use the same libraries will mean that there will be a copy of the same functions within several different executables. If a library changes, to fix a bug for example, then your code would need to be recompiled and the entire thing, which may be several megs, will need to be redistributed, or you would at least need to generate a patch. With a DLL the code is put into a seperate file and the system can be instructed to load in a particular DLL when needed, so your program can take advantage of the functionality the DLL provides. So the main executable is smaller for not having the extra code, you only need one copy of a DLL, saving disk space, and if several programs all need the same DLL at the same time then only one copy needs to be loaded into memory. An added benefit is that if you need to update the DLL, fixing bugs or adding new functionality, then all you need to replace is the DLL and you don't have to update all your executable that use it. That's the basic idea of a DLL, unfortunately I don't know much about creating and using them. I do know to use them then you have to instruct the system (Windows) to load in the DLL and you need to aquire information from the DLL to be able to call a specific function within it. Sometimes when using a particular library (such as DirectX) this part is done for you. Maybe there is a guide on the web somewhere that tells you the details of creation and use of DLL's. I think that different programming languages would have different mechanisms for making use of DLL's that fit with the complexity of the language. I hope this is of help, Jason. ----- Original Message ----- From: "Johnny Dessì" <jd...@da...> To: "Dev-Cpp" <dev...@li...> Sent: Sunday, December 16, 2001 5:38 PM Subject: Re: [Dev-C++] DLL's? > Nice Question! > I'd like to read some answer! > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jason H. <jas...@bt...> - 2001-12-17 00:36:10
|
Hi again! I like answering your questions sometimes. It's good practice for the skills I have managed to develop so far. I assume it's for a lesson or such? If you are generating an output string then using a string to store it isn't hard, all you need to do is append each letter as it is generated onto the output string, when you output it all you do is just reinitialise it to an empty string to start again. The C++ std::string would be best (use += to append), but it could be done with a C null terminated string, with a little more work, just keep track of the index (or pointer) into an array, move it on as you add each letter, and null terminate it before displaying. Just makesure that you don't overrun the arrays bounds. If you are looking to use a container type then a queue would be suited, push your letters into the queue and then, to display them, just pop them off one at a time until the queue is empty. As I like to I have made a small program that follows what you have said (AFAICT), but I don't know all the rules so you can implement the rest yourself. Jason. ----- Original Message ----- From: "chromatonus 712" <chr...@ho...> To: <dev...@li...> Sent: Sunday, December 16, 2001 8:23 PM Subject: [Dev-C++] encoding > using the numerical val of each letter a=1, b=2... z=26, and rules as > follows: > rule 1... multiply its numberical val by 2 > rule 2... divide its val by 3... > rule 3 > rule 4 (irrelevant, i can take care of them) > rule 5 > > so an input of C1B2F3$ would provide an output of GQI: > > C is 3, which becomes a 6 by rule 1 (the number right after) so counting 6 > letters from A, the result is G. B is 2, using rule 2 eval to 10 (ommitted > here) so counting 10 letters from G is Q. the $ prompts the output. > > When entering a new set like k2j3h2k1$ or b3n2j5$ or more, always start > counting with A. > > i tried to store the output letters in link-ed list but don't work. can you > please help asap? thank you! > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: chromatonus 7. <chr...@ho...> - 2001-12-16 20:23:52
|
using the numerical val of each letter a=1, b=2... z=26, and rules as follows: rule 1... multiply its numberical val by 2 rule 2... divide its val by 3... rule 3 rule 4 (irrelevant, i can take care of them) rule 5 so an input of C1B2F3$ would provide an output of GQI: C is 3, which becomes a 6 by rule 1 (the number right after) so counting 6 letters from A, the result is G. B is 2, using rule 2 eval to 10 (ommitted here) so counting 10 letters from G is Q. the $ prompts the output. When entering a new set like k2j3h2k1$ or b3n2j5$ or more, always start counting with A. i tried to store the output letters in link-ed list but don't work. can you please help asap? thank you! _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |