dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(8) |
2
(14) |
3
(7) |
4
(23) |
5
(6) |
6
(1) |
|
7
(5) |
8
(4) |
9
(1) |
10
(9) |
11
(23) |
12
(28) |
13
(21) |
|
14
(1) |
15
(6) |
16
(2) |
17
(8) |
18
(11) |
19
(17) |
20
(11) |
|
21
(12) |
22
(17) |
23
(7) |
24
(5) |
25
(7) |
26
(4) |
27
(9) |
|
28
(13) |
29
(31) |
30
(9) |
31
(7) |
|
|
|
|
From: Matthews <dem...@uw...> - 2003-12-23 15:46:10
|
The only way I can think of is change the original macro call to call the
function instead, ie:
#define CREATE(result,type,number) createf<type>(result,number)
At 07:22 AM 23/12/2003 -0800, David McKen wrote:
>I am cleaing up some code and came across the following macro:
>
>#define CREATE(result, type, number) \
>do \
>{ \
> if (!((result) = (type *) calloc ((number), sizeof(type)))) \
> { \
> perror("malloc failure"); \
> fprintf(stderr, "Malloc failure @ %s:%d\n", __FILE__, __LINE__ );
>\
> abort(); \
> } \
>} while(0)
>
>I want to convert to a function (most likely inline, its small
>enough) the problme I am having is with the second parameter, it is a
>data type!
>
>So far the following seems like it would work:
>
>template<class type>
>inline void CREATE(result, number)
>{
> if (!((result) = (type *) calloc ((number), sizeof(type))))
> {
> perror("malloc failure");
> fprintf(stderr, "Malloc failure @ %s:%d\n", __FILE__, __LINE__ );
> abort();
> }
>}
>
>The problem is this macro is quite heavily used. Changing the
>function to the following would require me to change the "macro call"
>to the following function call:
>
>CREATE<int>(pToSomewhere, 500); //To create 500 ints.
>
>Is there around this or will I also have to change all the function
>calls?
>
>Thanks in Advance.
>David McKen
>
>P.S. I am lazy, I admit it. I don't want to change all those lines of
>code, if I have to so be it. I am changing this macro to a function.
>
>__________________________________
>Do you Yahoo!?
>Free Pop-Up Blocker - Get it now
>http://companion.yahoo.com/
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
>Free Linux Tutorials. Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: David M. <ci...@ya...> - 2003-12-23 15:22:29
|
I am cleaing up some code and came across the following macro:
#define CREATE(result, type, number) \
do \
{ \
if (!((result) = (type *) calloc ((number), sizeof(type)))) \
{ \
perror("malloc failure"); \
fprintf(stderr, "Malloc failure @ %s:%d\n", __FILE__, __LINE__ );
\
abort(); \
} \
} while(0)
I want to convert to a function (most likely inline, its small
enough) the problme I am having is with the second parameter, it is a
data type!
So far the following seems like it would work:
template<class type>
inline void CREATE(result, number)
{
if (!((result) = (type *) calloc ((number), sizeof(type))))
{
perror("malloc failure");
fprintf(stderr, "Malloc failure @ %s:%d\n", __FILE__, __LINE__ );
abort();
}
}
The problem is this macro is quite heavily used. Changing the
function to the following would require me to change the "macro call"
to the following function call:
CREATE<int>(pToSomewhere, 500); //To create 500 ints.
Is there around this or will I also have to change all the function
calls?
Thanks in Advance.
David McKen
P.S. I am lazy, I admit it. I don't want to change all those lines of
code, if I have to so be it. I am changing this macro to a function.
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
|
|
From: <or...@vp...> - 2003-12-23 04:19:17
|
Hi! I would need some method, that can tell me, whether the right or the left shift (alt, ctrl) was pressed, when I recieve a WM_KEYDOWN message. Windows can only tell VK_SHIFT, VK_CONTROL, ... Looking at the OEM scan code is dangerous or not (in terms of portability)? Thanks in advance. -- Greetings, Balázs |
|
From: <de...@ci...> - 2003-12-23 02:00:01
|
Enum types are NOT the same as const int.
Each declared enum is a separate user defined type in the same way that
each different class is.
You could add a cast in the operator<< definition.
In article <3FE...@ne...>, Esc...@ne...
(Maya) wrote:
> Can someone please help me?
> I am using an enum type that I want to store in a std::IOStream object,
> but the compiler [complainer] tells me that the format is not
> supported. enum types are the same as 'const int' right? So, there
> should not be a problem!
>
> namespace jme{
> enum account_t {Zero, One, Two};
> class Account{
> protected:
> account_t type;
>
> ....
> public:
> friend std::istream&
> jme::operator>>(std::istream& is, jme::Account& obj){
> is >> obj.type; // <<======== Here is the problem ****
> return is;
> }
> };
> }
> This gives me an error that reads:
> ====================================================
> account.H: In function `std::istream& jme::operator>>(std::istream&,
> jme::Account&)':
> account.H:91: no match for `std::basic_istream<char,
> std::char_traits<char> >&
> >> jme::account_t&' operator <<<<<<<====== This is the problem *****
> ...: candidates are:
>
> /* Gives me a list of other candidates */
>
> ====================================================
>
|
|
From: Jack C. <jac...@ya...> - 2003-12-23 01:55:58
|
Ya, try the GTK DevPak which you can download from Dev-C++'s website. The tutorial on GTK's website is very easy to follow and understand, and you can create very cool user interfaces at the same time. You basically only need to know how functions work in C/C++, and you can create cool applications with GTK. Good luck. Jack --- Bac <wan...@su...> wrote: > Hi all, > I'm Gianluca, nice to meet you. > As a newbie, a learning newbie, I noted that a great opportunity to > learn programming is reading and interpreting (sic!) actual code... > but, > on the other side, reading the "actual code" is often too difficult > for > a newbie... so my question is: may I find some easy-to-read, > gradually > difficult c++ code somewhere in the net ? > Thank you in advance. > -- > > ( "Per Aspera ad Aspera"(sic!) > ) Vale > [_]> Bac > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
|
From: Michael C U. <mu...@cb...> - 2003-12-23 01:42:29
|
Can I post an example? No. Because it would be about 100 lines long. (That's the joy of the Windows API. If you don't want to deal with it, use a toolkit. I recommend wxWindows. The toolkit also gives you more portable code that will be cross platform.) But I can point you in the right direction. Look these up in the API documentation. SetScrollRange SetScrollInfo GetScrollInfo SetViewPortOrgEx SetWindowOrgEx In a nutshell, Windows API scrollbars don't do anything by themselves. They don't even set their own position much less the position of the text or whatever in their window. You have to explicitly program the logic for this in your callback function by catching the following: SB_LINEUP SB_LINEDOWN SB_PAGEUP SB_PAGEDOWN SB_THUMBTRACK or SB_THUMBPOS And even this won't let you use the arrow keys or page up/page down keys to scroll. You will need to program more logic to do that. If this all sounds daunting, it is. And if you are starting to think the Windows API is very poorly designed, you are right. It is. It requires some very esoteric programming methods, such as odd use of structures and such. This is why both Microsoft and Borland wrapped the API with MFC in Microsot's case, and OWL in Borland's case. Programmers were just getting too many migraines from using the Windows API directly. If you still are feeling masochistic and you want to program Windows this way, then buy the book "Programming Windows, 5th Edition" by Charles Petzold. When you aren't reading, it, you can use it to anchor your house in a wind storm. If this all sounds like more work than you want to do (and it should. 100 lines of code or more just to make scrolling work is unreasonable. Espcially when I can do the same thing with 2 lines of code in Java), then get a toolkit. Once again, I'll put in a plug for wxWindows. It uses native widgets, and is very cross platform, so you can easily port your program to Linux, UNIX, or Macintosh. Don't count on being able to port your program to any other platform if you use the Windows API. Possibly even Longhorn if you aren't careful. (Longhorn will have depricated the Win32 API and replaced it with the WinFX API, which doesn't resemble the Win32 API at all.) On Mon, 22 Dec 2003, Russell Schiwal wrote: > I am having a devil of a time getting my Win32 scroll bars to work. > Could someone post an example of the c-code required? > > > --------------------------------- > Do you Yahoo!? > Yahoo! Photos - Get your photo on the big screen in Times Square |
|
From: Russell S. <rsc...@ya...> - 2003-12-23 00:34:18
|
I am having a devil of a time getting my Win32 scroll bars to work. Could someone post an example of the c-code required? --------------------------------- Do you Yahoo!? Yahoo! Photos - Get your photo on the big screen in Times Square |