dev-cpp-users Mailing List for Dev-C++ (Page 537)
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: RICARDO H. F. <OP...@si...> - 2002-08-19 13:57:46
|
Does anyone know how do I use WxWindows with DEV-C++ ? Which 'def' do I have to use ? Does the library that I had compiled in Visual C works with gcc ? I have to use DEV-C++ with gcc compiler and wxwindows interface, I'm kinda lost, if someone have some information that could help me, I would appreciate. Thanx, =20 =20 Ricardo Henrique Folador ICN-E ELM DQ Phone: +55 41 341 5598 Fax: +55 41 341 5594 e-mail: op...@si... |
|
From: Ioannis V. <no...@ho...> - 2002-08-19 08:43:26
|
-----Original Message-----
From: min...@li...
[mailto:min...@li...] On Behalf Of
no...@so...
Sent: Monday, August 19, 2002 5:37 AM
To: no...@so...
Subject: [Mingw-users] [SourceForge Release] mingw : gcc
Project: MinGW - Minimalist GNU for Windows (mingw)
Package: gcc
Date : 2002-08-19 14:36
Project "MinGW - Minimalist GNU for Windows" ('mingw') has released the
new
version of package 'gcc'. You can download it from SourceForge by
following
this link:
<http://sourceforge.net/project/showfiles.php?group_id=2435&release_id=1
05609>
or browse Release Notes and ChangeLog by visiting this link:
<http://sourceforge.net/project/shownotes.php?release_id=105609>
You receive this email because you requested to be notified when new
versions
of this package were released. If you don't wish to be notified in the
future,
please login to SourceForge and click this link:
<http://sourceforge.net/project/filemodule_monitor.php?filemodule_id=115
97>
If you lost your SourceForge login name or password, refer to this
document:
<http://sourceforge.net/docman/display_doc.php?docid=760&group_id=1>
Note that you may receive this message indirectly via one of your
mailing list
subscriptions. Please review message headers before reporting
unsolicited
mailings.
|
|
From: Ferror <fe...@gm...> - 2002-08-19 03:09:42
|
Is there a way to get away from this bug ? (list index out of bounds) ----- Original Message ----- From: "Eddy L O Jansson" <ed...@kl...> To: <Dev...@li...>; "Ferror" <fe...@gm...> Sent: Sunday, August 18, 2002 5:14 PM Subject: Re: out of bounds > 2002-08-18 16:08:41, "Ferror" <fe...@gm...> wrote: > > > Is it a known bug or something else. > > Yes. > > Please don't post in HTML. > > |
|
From: Miguel M <st...@ya...> - 2002-08-18 22:33:40
|
Yeah. Thanks Eddy thats what it was. Its working now. --- Eddy L O Jansson <ed...@kl...> wrote: > 2002-08-19 00:08:52, Miguel M <st...@ya...> > wrote: > Your program is valid and compiles. There's > probably a problem > with the includes or libs (i.e; are they found?) on > your side. > > It'd help if you'd gave us the first few lines of > error-messages. > > -- > "Reading this line brought you three seconds closer > to death." > Eddy L O Jansson | http://gazonk.org/~eloj > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of > that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: > http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Thanks for reading... "Without free will there is no difference between submission and rebellion." -Miguel st...@ya... __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com |
|
From: Eddy L O J. <ed...@kl...> - 2002-08-18 22:17:47
|
2002-08-19 00:08:52, Miguel M <st...@ya...> wrote: >Hey whats up people. Have another problem again... Im >just starting to learn how to program so this may seam Your program is valid and compiles. There's probably a problem with the includes or libs (i.e; are they found?) on your side. It'd help if you'd gave us the first few lines of error-messages. -- "Reading this line brought you three seconds closer to death." Eddy L O Jansson | http://gazonk.org/~eloj |
|
From: Miguel M <st...@ya...> - 2002-08-18 22:08:52
|
Hey whats up people. Have another problem again... Im
just starting to learn how to program so this may seam
strange but Im trying to compile a simple little
program. Its so I can get use to iostream.h
---
#include <iostream>
using namespace std;
int main() {
// Specifying formats with manipulators:
cout << "a number in decimal: "
<< dec << 15 << endl;
cout << "in octal: " << oct << 15 << endl;
cout << "in hex: " << hex << 15 << endl;
cout << "a floating-point number: "
<< 3.14159 << endl;
cout << "non-printing char (escape): "
<< char(27) << endl;
}
----
I try to compile this and I get like 400 and something
errors. Its strange. Am I going something wrong.
Thanks in advance. Later
=====
Thanks for reading...
"Without free will there is no difference between submission and rebellion."
-Miguel
st...@ya...
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
|
|
From: Ioannis V. <no...@ho...> - 2002-08-18 21:11:43
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Abhijit Shylanath
> Sent: Sunday, August 18, 2002 11:47 AM
> To: Dev-C++ Mailing List
> Subject: [Dev-C++] STL sort() problem
>
>
> Greets.
>
> I'm using a vector of a structure pointer (I use dynamic
> allocation), like
> so:
>
> vector<PlsLine *> lines;
>
> and PlsLine is a structure:
>
> typedef struct _PlsLine
> {
> char *fn; // Full filename (c:\foo\bar.mp3)
> char *filename; // Filename part only (bar.mp3)
> int size; // Filesize
> } PlsLine;
>
> I need to sort this, and I call sort() like this:
>
> sort(lines.begin(), lines.end());
>
> However, sort() uses the comparison operators (< and >), and
> I can't define
> them for pointers... The compiler flags this:
>
> bool operator <(const PlsLine *&left, const PlsLine *&right)
>
> as an error. It says it should be a class or enumerated type.
Yes you can not have a reference to a pointer with exception to
templates.
> I tried doing
> this:
>
> bool operator <(const PlsLine &left, const PlsLine &right)
>
> and the compile worked, but it doesn't seem to sort.
> Any work-around?
Yes, you probably made some logical error in the definition of
operator<(). Send us its definition.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Carlos d. M. <cg...@wo...> - 2002-08-18 15:40:17
|
Ehem... Three seconds after sending the message I noticed that DeleteObject(hbrush); I deleted the line and now it works fine. Thanks. |
|
From: Eddy L O J. <ed...@kl...> - 2002-08-18 14:15:03
|
2002-08-18 16:08:41, "Ferror" <fe...@gm...> wrote: > Is it a known bug or something else. Yes. Please don't post in HTML. |
|
From: Eddy L O J. <ed...@kl...> - 2002-08-18 10:10:42
|
2002-08-18 10:46:45, "Abhijit Shylanath" <mu...@gm...> wrote:
>I'm using a vector of a structure pointer (I use dynamic
>allocation), like
I'm in a good mood today, so I wrote you up a short example using
a functor predicate. I'm sure it can be solved using an overloaded
operator<() too, that's just now how I'd do it.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
template <typename T>
class on_age
{
public:
bool operator() (const T& v1, const T& v2) const
{
return v2->age_ > v1->age_;
}
};
struct t_person
{
t_person(const string& name, int age) : name_(name), age_(age)
{ };
string name_;
int age_;
};
int main(int argc, char *argv[])
{
vector<t_person*> people;
vector<t_person*>::const_iterator it;
people.push_back( new t_person("Gordon", 31) );
people.push_back( new t_person("Tiny", 1) );
people.push_back( new t_person("Alice", 16) );
people.push_back( new t_person("Second", 2) );
people.push_back( new t_person("Grandpa", 101) );
sort(people.begin(), people.end(), on_age<t_person*>() );
for( it = people.begin() ; it != people.end() ; ++it )
cout << (*(it))->name_ << ", " << (*(it))->age_ << endl;
// yeah, yeah, "leak". Whatever
return 0;
}
--
"Reading this line brought you three seconds closer to death."
Eddy L O Jansson | http://gazonk.org/~eloj
|
|
From: Abhijit S. <mu...@gm...> - 2002-08-18 08:48:08
|
Greets.
I'm using a vector of a structure pointer (I use dynamic allocation), like
so:
vector<PlsLine *> lines;
and PlsLine is a structure:
typedef struct _PlsLine
{
char *fn; // Full filename (c:\foo\bar.mp3)
char *filename; // Filename part only (bar.mp3)
int size; // Filesize
} PlsLine;
I need to sort this, and I call sort() like this:
sort(lines.begin(), lines.end());
However, sort() uses the comparison operators (< and >), and I can't define
them for pointers... The compiler flags this:
bool operator <(const PlsLine *&left, const PlsLine *&right)
as an error. It says it should be a class or enumerated type. I tried doing
this:
bool operator <(const PlsLine &left, const PlsLine &right)
and the compile worked, but it doesn't seem to sort.
Any work-around?
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Carlos d. M. <cg...@wo...> - 2002-08-17 22:31:24
|
I am writing a program which displays a series of bitmaps, placed such
that white is transparent, and it shall be displayed over a red
background.
The bitmap mask is generated by the program in a way specified at the
Forger's win32 programming tutorial, so I select the color bitmap in a
first memory device context (created with createcompatiblebitmap [I omit
the upper case only in the messages, not in the code]) to which I select
the color bitmap, I create a second bitmap with the color bitmap
dimensions and select it in a second memory DC, the bitmap is monochrome
with 1 depth and correct, then I bitblt from second to first with
SRCCOPY, then from first to second with SRCINVERT, then I bitblt from
second to the window, and bitblt from a previous memory device in which
I select the color image (I select it now) to the window, so the image
is set with white as transparent color to the window. And befora all
this I selected a brush.
I have an object with a member which is HBRUSH hbrush, in its
constructor I set it to red with createsolidbrush(RGB(255, 0, 0));,
then I have a function which is HBRUSH getBrush(){return hbrush} (It is
not inline but I write it this way in the message, so I don't spend
writing the code exactly, but I spend this explanation :)),
so before all that, I write brush = object.getBrush(); (object is a
static variable in WindowProcedure).
So, the image shall be displayed over a red background, and it is true
for the first three (perhaps one, two or four) bitmaps (the full amount
of bitmaps is sixteen, divided in two sets of eight), but after that the
background gets white. It doesn't happen if I substitute in windowproc
brush = object.getBrush(); with brush = createsolidbrush(RGB(255, 0,
0));.
Here is the code of the WM_TIMER: (where all these things happen)
The comments are added in the message.
case WM_TIMER:
{
RECT memRct;
SHORT l, r, t, b, f;
UINT pel;
UINT lucas;
HBRUSH hbrush, holdb;
SetLastError(0);
DWORD err;
long pol;
char *buffer, *point;
SetLastError(0);
if((err = GetLastError()) != 0){
fstream outf;
outf.open("D:/Devpro/NewF/Fail.txt", ios::out);
outf << err;
outf.close();
MessageBox(hwnd, "Init error", "ERROR", MB_OK |
MB_ICONEXCLAMATION);
}
HDC temp1, temp2;
BITMAP bm, ms, cr;
HBITMAP hdef, con2;
GetClientRect(hwnd, &rct);
InvalidateRect(hwnd, &rct, TRUE);
hdc = GetDC(hwnd); // HDC FOR THE WINDOW
col += 5;
if(col > 255)
col = 0;
l = GetAsyncKeyState(VK_LEFT);
r = GetAsyncKeyState(VK_RIGHT);
l >>= (sizeof(SHORT) - 1);
r >>= (sizeof(SHORT) - 1); //SELECT SERIES OF BITMAPS
AND POSITION
t = GetAsyncKeyState(VK_UP);
b = GetAsyncKeyState(VK_DOWN);
t >>= (sizeof(SHORT) - 1);
b >>= (sizeof(SHORT) - 1);
f = GetAsyncKeyState(VK_CONTROL);
f >>= (sizeof(SHORT) - 1);
if(l != 0){
cord.x-=10;
curb.move(0);
}
if(r != 0){
cord.x+=10;
curb.move(1);
}
if(t != 0)
cord.y -= 10;
if(b != 0)
cord.y += 10;
useBit = curb.getBit(); //CURB SELECTS THE BITMAP AND
USEBIT STORES IT
hbrush = /*CreateSolidBrush(RGB(255,0,
0));*/curb.getBrush();//THE TWO VERIONS FOR HBRUSH TOGETHER, NOW WORKING
WITH THE BRUSH RETURNED BY THE OBJECT'S METHOD
holdb = (HBRUSH)SelectObject(hdc, (HGDIOBJ)hbrush);//SELECT
THE BRUSH AND STORE THE DEFAULT BRUSH
FillRect(hdc, &rct, hbrush);//FILL THE RECT WITH THE BRUSH,
IT SHALL DO IT ALWAYS BUT IT SEEMS TO FAIL WITH OBJECT'S BRUSH
SelectObject(hdc, holdb);//RESTORE DEFAULT BRUSH TO HDC AND
PREPARE DELETION OF THE CREATED ONE
DeleteObject(hbrush);
hdcMem = CreateCompatibleDC(hdc);//THE PREVIOUS MEMORY DEVICE
FOR COLOR BITMAP
temp2 = CreateCompatibleDC(hdc);//THE SECOND BITMAP FOR
CREATING THE MASK
con2 = (HBITMAP)SelectObject(temp2,
(HGDIOBJ)useBit);//hBitMap[(con % 7) + 1]);//SELECT THE COLOR BITMAP IN
THE SECOND MEMORY DEVICE, NOTICE IT HAS NOT BEEN SELECTED IN THE
PREVIOUS
GetObject(useBit, sizeof(bm), &bm);//OBTAIN DIMENSIONS OF THE
BITMAP
hBitMask = CreateBitmap(bm.bmWidth, bm.bmHeight,1, 1,
NULL);//CREATE THE MONOCHROME
temp1 = CreateCompatibleDC(hdc);//CREATE THE FIRST MEMORY
DEVICE FOR THE MASK
hdef = (HBITMAP)SelectObject(temp1,
(HGDIOBJ)hBitMask);//SELECT THE BITMAP MASK IN THE FIRST
SetBkColor(temp2, RGB(255, 255, 255));//SELECT WHICH COLOR
FROM THE COLOR BITMAP WILL BE THE TRANSPARENT
BitBlt(temp1, 0, 0, bm.bmWidth, bm.bmHeight, temp2, 0, 0,
SRCCOPY);//COLOR BITMAP TO THE MONOCHROME, SO THE PARTS THAT WE WANT
BLACK WILL BE WHITE, AND THE ONES WE WANT WHITE ARE BLACK
BitBlt(temp2, 0, 0, bm.bmWidth, bm.bmHeight, temp1, 0, 0,
SRCINVERT);//FROM MONOCHROME TO COLOR, SO NOW WHAT WE WANT BLACK IS
BLACK AND WHAT WE WAN WHITE IS WHITE
SelectObject(temp2, (HGDIOBJ)con2);RESTORE DEFAULT BITMAP (IS
A 1*1 WHITE PIXEL)
DeleteDC(temp2);
hdefbit = (HBITMAP)SelectObject(hdcMem,
(HGDIOBJ)useBit);//hBitMap[(con % 7) + 1]);
BitBlt(hdc, cord.x, cord.y, bm.bmWidth, bm.bmHeight, temp1,
0, 0, SRCAND);
BitBlt(hdc, cord.x, cord.y, bm.bmWidth, bm.bmHeight, hdcMem,
0, 0, SRCPAINT);//HERE I GET A LITTLE CONFUSED THE FIRST BITBLT WITH
TEMP1?? BUT IF I CHANGE TO TEMP2 IT DOESN'T WORK (OR I FORGOT SOME
CHANGE DOING IT), THE WHITE AREAS OF THE BITMAP ARE THEN BLACK.
SelectObject(temp1, (HGDIOBJ)hdef);
DeleteObject(hBitMask);
DeleteDC(temp1);
SelectObject(hdcMem, (HGDIOBJ)hdefbit);
DeleteDC(hdcMem);
DeleteObject(useBit);
ReleaseDC(hwnd, hdc);
con++;
ValidateRect(hwnd, &rct);
bool res = false;
res = curb.trial(hInst);
if(res == false)
MessageBox(hwnd, "hInst failed", "Error!", MB_OK);
}
break;
I don't achieve to see any reason for that behavior, don't find my
error. Perhaps, that use of hbrush in objects is not correct?
Thanks in advance, and sorry if stupid message.
Yes, I suppose many things (other than the error which leads to the
color) can be improved, and I'll do that, now I am just in the beginning
of the experiment, doing things in the right first place, later I'll put
many of these things inside the object and more adequate places.
|
|
From: Miguel M <st...@ya...> - 2002-08-17 19:52:46
|
Thats 3 of us. I had the same problem. I have another way if it still doesn't work. But it sounds like that should do it. Just drop me a line. ===== Thanks for reading... "Without free will there is no difference between submission and rebellion." -Miguel st...@ya... __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com |
|
From: Abhijit S. <mu...@gm...> - 2002-08-17 17:04:52
|
Greets.
> Hello,
> Let me appologise for bothering this forum with what is a non related
> matter but such is my frustration.
>
> I have an Intel celeron 566 PC with an intel 810 chipset. It originally
> had windows 98 se which i have upgraded to 2000. The upgrade report
> indicated the possiblity of the Modem and the network adapters not working
> so I downloaded a windows 2000 compatible driver from PCtel for (HSP56
> micromodem which is the modem I've got).
>
> I updated the modem driver after installing win 2000 but it hasn't worked
> since. I have repeated the driver installation several time without
> success. I have taken the modem(built in) out , restarted the PC. I have
put
> it back in and restared but it still didn't pick it up. It's as if win
2000
> doesn't see the moden at all.
>
> Has anyone had this problem before and if so what can do to resolve it. As
> a result, I'm unable to connected to the internet with my PC. I have to
use
> a friends. Any help welcome please I'm desperate. Please.
>
> Napoleon.
Relax... I know your pain :).
First of all, try removing everything related to your modem from your
computer (including drivers, sound devices, etc). Some related devices may
be showing up as unclassified ('PCI communications device' under 'Unknown
devices'). To uninstall the drivers, check under 'Add-Remove programs').
Next, go to the 'windows\inf' directory and move all files related to your
device to a different directory as backup (not under 'inf' itself). Then
restart, and the modem should be detected. If it's not, and your modem
drivers come as an executable, run it and it should be installed.
All the best :).
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Abhijit S. <mu...@gm...> - 2002-08-17 17:04:44
|
Greets. > Hey all. Whats up. I have a problem when Im trying to > compile a simple window program. I keep on getting the > error message: > > > C:\Documents and Settings\Miguel\Desktop\Enticing > Software\Demos\DEMO2_3.CPP > [Warning] In function `int WinMain(HINSTANCE__ *, > HINSTANCE__ *, CHAR *, int)': > > 114 C:\Documents and Settings\Miguel\Desktop\Enticing > Software\Demos\DEMO2_3.CPP > [Warning] converting NULL to non-pointer type > > C:\DOCUME~1\MIGUEL~1\LOCALS~1\Temp\ccuabaaa.o > [Warning] In function `WinMain': > > > [Linker error] undefined reference to > `GetStockObject@4' > > I have worked with the compiler options and the > directories but nothing. I tried it with VC++ and it > worked fine. Now Im using version 4.9.5.0. Any reply > would be greatly appreciated. Thanks. Oh and the > source is attached. > > - Miguel Try pasting the code into a new Windows GUI project. Alternately, link it with the gdi lib (add '-lgdi32' to the command-line). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2002-08-17 17:04:38
|
Greets.
> Hi, did anyone even get this message? or did nobody know the solution :(
> i sent it a little while ago:
> ---------------------------------------
I don't remember getting it.
> Hi, I have a problem concerning timers in windows.
> I am using only win32 API, and i use the fuction:
>
> SetTimer(hwnd,id,len*100,NULL);
> //hwnd is the HWND of the window, id is a UINT, len is a UINT
>
> to set a timer that will later send a WM_TIMER message to my WindowProc.
In
> my WindowProc i have code like this:
>
> case WM_TIMER:
> {
> myclass->blah();
> return 0;
> }
> //myclass is a pointer to an object with a function called blah
>
> and the function blah sets bool thebool to the value false.
>
> in the function that calls SetTimer, i later have the code:
>
> thebool = true;
> while(thebool)
> {
> MessageBox(hwnd,"WAITING","ERROR",MB_OK); //this gets deleted
> }
>
> when i run the program, the messagebox comes up a number of times until
> len*100 milliseconds has passed, then it resumes normal operation.
> The problem is, i do not want to have to put up this messagebox. So i
delete
> the code for it. Once i do this, it seems the WM_TIMER message is never
sent
> for some reason. even if a put a messagebox in the case WM_TIMER: section,
> it is never shown, unless i keep the messagbox in the while loop.
> what is the meaning of this?
> how am i using the timer wrongly?
> thanks in advance
> ramana
> ps i also tried putting WaitMessage(); in the while loop instead, but it
has
> no effect.
I recall having this problem... I don't rememeber exactly how I resolved it.
Try setting up your window and showing it using ShowWindow() or something.
Maybe messages are sent only once the window is created and shown. This
would explain the MessageBox() thingy making it start working.
_________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: <st...@nu...> - 2002-08-17 12:50:01
|
Hi everybody... here's a link to my new site :)
Stein Nyg=E5rd - http://steinware.dk
lapidos, ergo sum
|
|
From: Miguel M <st...@ya...> - 2002-08-17 06:59:19
|
Hey all. Whats up. I have a problem when Im trying to compile a simple window program. I keep on getting the error message: C:\Documents and Settings\Miguel\Desktop\Enticing Software\Demos\DEMO2_3.CPP [Warning] In function `int WinMain(HINSTANCE__ *, HINSTANCE__ *, CHAR *, int)': 114 C:\Documents and Settings\Miguel\Desktop\Enticing Software\Demos\DEMO2_3.CPP [Warning] converting NULL to non-pointer type C:\DOCUME~1\MIGUEL~1\LOCALS~1\Temp\ccuabaaa.o [Warning] In function `WinMain': [Linker error] undefined reference to `GetStockObject@4' I have worked with the compiler options and the directories but nothing. I tried it with VC++ and it worked fine. Now Im using version 4.9.5.0. Any reply would be greatly appreciated. Thanks. Oh and the source is attached. - Miguel __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com |
|
From: Ramana K. <ra...@my...> - 2002-08-17 05:41:45
|
Hi, did anyone even get this message? or did nobody know the solution :(
i sent it a little while ago:
---------------------------------------
Hi, I have a problem concerning timers in windows.
I am using only win32 API, and i use the fuction:
SetTimer(hwnd,id,len*100,NULL);
//hwnd is the HWND of the window, id is a UINT, len is a UINT
to set a timer that will later send a WM_TIMER message to my WindowProc. In
my WindowProc i have code like this:
case WM_TIMER:
{
myclass->blah();
return 0;
}
//myclass is a pointer to an object with a function called blah
and the function blah sets bool thebool to the value false.
in the function that calls SetTimer, i later have the code:
thebool = true;
while(thebool)
{
MessageBox(hwnd,"WAITING","ERROR",MB_OK); //this gets deleted
}
when i run the program, the messagebox comes up a number of times until
len*100 milliseconds has passed, then it resumes normal operation.
The problem is, i do not want to have to put up this messagebox. So i delete
the code for it. Once i do this, it seems the WM_TIMER message is never sent
for some reason. even if a put a messagebox in the case WM_TIMER: section,
it is never shown, unless i keep the messagbox in the while loop.
what is the meaning of this?
how am i using the timer wrongly?
thanks in advance
ramana
ps i also tried putting WaitMessage(); in the while loop instead, but it has
no effect.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Napoleon A. <nah...@so...> - 2002-08-16 17:22:55
|
=20 Hello, Let me appologise for bothering this forum with what is a non related = matter but such is my frustration.=20 I have an Intel celeron 566 PC with an intel 810 chipset. It originally = had windows 98 se which i have upgraded to 2000. The upgrade report = indicated the possiblity of the Modem and the network adapters not = working so I downloaded a windows 2000 compatible driver from PCtel for = (HSP56 micromodem which is the modem I've got). I updated the modem driver after installing win 2000 but it hasn't = worked since. I have repeated the driver installation several time = without success. I have taken the modem(built in) out , restarted the = PC. I have put it back in and restared but it still didn't pick it up. = It's as if win 2000 doesn't see the moden at all. Has anyone had this problem before and if so what can do to resolve it. = As a result, I'm unable to connected to the internet with my PC. I have = to use a friends. Any help welcome please I'm desperate. Please. Napoleon. =20 |
|
From: Ioannis V. <no...@ho...> - 2002-08-16 14:14:30
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Ioannis Vranos
> Sent: Friday, August 16, 2002 5:06 PM
> To: dev...@li...
> Subject: RE: [Dev-C++] speed test
>
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of mo...@ju...
> > Sent: Friday, August 16, 2002 8:02 AM
> > To: dev...@li...
> > Subject: [Dev-C++] speed test
> >
> >
> > Running the program below in Dev-C++, Version 4, took between
> > 209 and 235
> > seconds on my system. I don't know why the running times
> > vary, but even
> > taking the fastest time of 209 seconds, it compares
> unfavorably with a
> > similar program compiled (36 seconds) or interpreted (55
> seconds) in
> > QBasic 4 .
>
>
> Did you printed the result after every x++ inside the for loop in QB?
>
>
>
> >
> > Does Dev-C++ really produce such leisurely code? Or can the
> > program be
> > speeded up?
>
>
> Of course it can. Printing in console is slow (the time cost of a
> function call, etc).
>
>
>
> >
> > Allan
> >
> > // This program prints (1) integers 1 to 1,000,000
> > // (2) starting & ending times
> > //======================================================
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <time.h>
> >
> > int main(int argc, char *argv[])
>
> Theese arguments are not needed.
>
>
> > {
> > struct tm *ptr;
> > time_t loc_time;
> > long int x;
> >
> > loc_time = time(NULL);
>
>
> No accurate results with this method.
>
>
>
> > ptr = localtime(&loc_time);
> >
> > for (x = 1;x <= 1000000;x++)
> > printf("%d ",x);
>
>
> Here you have 100000 function calls for printing in the console.
>
>
> >
> > printf("\nStarting time is ");
> > printf(asctime(ptr));
> >
> > loc_time = time(NULL);
> > ptr = localtime(&loc_time);
> > printf("\nEnding time is ");
> > printf(asctime(ptr), "\n");
> >
> > system ("PAUSE");
> >
> > return 0;
> > }
>
>
> A better program:
>
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> int main()
> {
> clock_t t1, t2;
>
> long int x;
>
> t1=clock();
>
> for (x = 1; x <= 1000000;x++)
> ;
>
> printf("%ld\n", x);
>
> t2=clock();
>
> printf("\n\nProcessor time: %lu", (unsigned long)t2-t1);
> printf("\nIn seconds: %f\n\n", (double)(t2-t1)/CLOCKS_PER_SEC);
>
> system ("PAUSE");
>
> return 0;
> }
>
>
>
> The above prints the final value of x only.
>
>
>
> Using MINGW GCC 3.1 with optimizations:
>
>
> gcc temp.c -o temp -ansi -pedantic-errors -Wall
> -fexpensive-optimizations -O3 -ffloat-store -mcpu=pentiumpro
>
>
> C:\c>temp
> 1000001
>
>
> Processor time: 0
> In seconds: 0.000000
>
> Press any key to continue . . .
>
>
>
> Here obviously the compiler performed an optimisation with
> which he saw
> the final result of the loop and avoided the loop completely.
>
>
> Running the GCC 3.1 without the optimisation switches:
>
>
> C:\c>gcc temp.c -o temp -ansi -pedantic-errors -Wall
>
> C:\c>temp
> 1000001
>
>
> Processor time: 10
> In seconds: 0.010000
>
> Press any key to continue . . .
>
>
>
> Here it performed the loop and it took it 10 msec (something similar
> will happen with Dev-C++ eith optimisations off).
>
>
> In summary, your time cost was imposed due to 1000000
> function calls to
> printf().
Also even if you use printf() inside the for loop, things will go much
faster if you minimize the console (command prompt) window during the
execution. And this because windows will not have to display every
number.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-08-16 14:06:49
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of mo...@ju...
> Sent: Friday, August 16, 2002 8:02 AM
> To: dev...@li...
> Subject: [Dev-C++] speed test
>
>
> Running the program below in Dev-C++, Version 4, took between
> 209 and 235
> seconds on my system. I don't know why the running times
> vary, but even
> taking the fastest time of 209 seconds, it compares unfavorably with a
> similar program compiled (36 seconds) or interpreted (55 seconds) in
> QBasic 4 .
Did you printed the result after every x++ inside the for loop in QB?
>
> Does Dev-C++ really produce such leisurely code? Or can the
> program be
> speeded up?
Of course it can. Printing in console is slow (the time cost of a
function call, etc).
>
> Allan
>
> // This program prints (1) integers 1 to 1,000,000
> // (2) starting & ending times
> //======================================================
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> int main(int argc, char *argv[])
Theese arguments are not needed.
> {
> struct tm *ptr;
> time_t loc_time;
> long int x;
>
> loc_time = time(NULL);
No accurate results with this method.
> ptr = localtime(&loc_time);
>
> for (x = 1;x <= 1000000;x++)
> printf("%d ",x);
Here you have 100000 function calls for printing in the console.
>
> printf("\nStarting time is ");
> printf(asctime(ptr));
>
> loc_time = time(NULL);
> ptr = localtime(&loc_time);
> printf("\nEnding time is ");
> printf(asctime(ptr), "\n");
>
> system ("PAUSE");
>
> return 0;
> }
A better program:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
clock_t t1, t2;
long int x;
t1=clock();
for (x = 1; x <= 1000000;x++)
;
printf("%ld\n", x);
t2=clock();
printf("\n\nProcessor time: %lu", (unsigned long)t2-t1);
printf("\nIn seconds: %f\n\n", (double)(t2-t1)/CLOCKS_PER_SEC);
system ("PAUSE");
return 0;
}
The above prints the final value of x only.
Using MINGW GCC 3.1 with optimizations:
gcc temp.c -o temp -ansi -pedantic-errors -Wall
-fexpensive-optimizations -O3 -ffloat-store -mcpu=pentiumpro
C:\c>temp
1000001
Processor time: 0
In seconds: 0.000000
Press any key to continue . . .
Here obviously the compiler performed an optimisation with which he saw
the final result of the loop and avoided the loop completely.
Running the GCC 3.1 without the optimisation switches:
C:\c>gcc temp.c -o temp -ansi -pedantic-errors -Wall
C:\c>temp
1000001
Processor time: 10
In seconds: 0.010000
Press any key to continue . . .
Here it performed the loop and it took it 10 msec (something similar
will happen with Dev-C++ eith optimisations off).
In summary, your time cost was imposed due to 1000000 function calls to
printf().
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Per W. <pw...@ia...> - 2002-08-16 13:55:28
|
No, I'm using a separately installed MinGW compiler, and as you can see from the extra Includes/libs, I keep the libraries/includes away from the compiler directories, since I want to be able to easily switch between different versions of wxWindows. /Per Westermark EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 8 410 17 198 S-906 42 Umeaa Sweden On Tue, 13 Aug 2002, Alfredo Cole wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > El Mar 13 Ago 2002 00:08, Per Westermark escribi=F3: > > The attached template is one I found somewhere and have been using. > > Besides the contents of the template, I had to add the following: > > > > Includes=3DC:\usr\src\wx2dev\wxWindows\include > > Libs=3DC:\usr\src\wx2dev\wxWindows\lib > > ResourceIncludes=3DC:\usr\src\wx2dev\wxWindows\include > > > > It seems to work quite fine for me with 2.2.9, 2.3.2 or the current > > CVS snapshot. > > > > /Per W >=20 > Thank you. I'll look into it. Did you just copy the 2.3.2 includes=20 > and libraries to the Dev-C++ 5 directory? >=20 > Regards. >=20 > - --=20 > Alfredo J. Cole > http://www.acyc.com (Accounting Systems) > http://www.clshonduras.com (Linux Hardware) > PGP Key available from certserver.pgp.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org >=20 > iD8DBQE9WQ6uu5DxuPWE298RAke4AJ9xAM1bU712ZDtIrhwRjwnXTwzGsgCfWaGj > s3ReIZ7PwD4od8ZtZi1Yj3g=3D > =3DtId0 > -----END PGP SIGNATURE----- >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code1 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Per W. <pw...@ia...> - 2002-08-16 13:51:13
|
What should be noted is that your test code doesn't test the speed of the Dev-Cpp++-generated program - which in fact is the MingGW- or Cygwin-genrated - but instead measures the time to process a couple of million bytes of output to standard out. Do you redicrect the output, or is it scrolling in a text window. What size is the text window etc. This kind of programs also notoriosly generates a large percent of system (kernel) time, giving the OS scheduler some extra concerns about how to schedule between this and other programs. /PWM EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 8 410 17 198 S-906 42 Umeaa Sweden On Fri, 16 Aug 2002 mo...@ju... wrote: > Running the program below in Dev-C++, Version 4, took between 209 and 235 > seconds on my system. I don't know why the running times vary, but even > taking the fastest time of 209 seconds, it compares unfavorably with a > similar program compiled (36 seconds) or interpreted (55 seconds) in > QBasic 4 . > > Does Dev-C++ really produce such leisurely code? Or can the program be > speeded up? > > Allan > > // This program prints (1) integers 1 to 1,000,000 > // (2) starting & ending times > //====================================================== > #include <stdio.h> > #include <stdlib.h> > #include <time.h> > > int main(int argc, char *argv[]) > { > struct tm *ptr; > time_t loc_time; > long int x; > > loc_time = time(NULL); > ptr = localtime(&loc_time); > > for (x = 1;x <= 1000000;x++) > printf("%d ",x); > > printf("\nStarting time is "); > printf(asctime(ptr)); > > loc_time = time(NULL); > ptr = localtime(&loc_time); > printf("\nEnding time is "); > printf(asctime(ptr), "\n"); > > system ("PAUSE"); > > return 0; > } > > ________________________________________________________________ > GET INTERNET ACCESS FROM JUNO! > Juno offers FREE or PREMIUM Internet access for less! > Join Juno today! For your FREE software, visit: > http://dl.www.juno.com/get/web/. > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2002-08-16 13:38:58
|
It usually occurs when you are storing your source files on a remote disk volume. The development environment - make - is using the local PC clock to decide what to do. However, for a number of file-sharing protocols, the last-change date on the files are set by the computer actually owning the files, i.e. exporting the file system. The make program emits the clock skew message if it compiles a file and notices that the emitted output file got a time stamp "older" than the source file. The correct solution is of course to use ntp or similar to keep the clocks synchronized between file servers and workstation machines. /Per Westermark EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 8 410 17 198 S-906 42 Umeaa Sweden On Wed, 14 Aug 2002, Daniel Glenfield wrote: > I think it means your clock on your pc is out of sync with the BIOS or the > Dev compiler. Not sure, though it has come up before. > > > >From: Murad Khan <MK...@ha...> > >To: "'dev...@li...'" > ><dev...@li...> > >Subject: [Dev-C++] What is the meaning of 'Clock skew detected'? > >Date: Tue, 13 Aug 2002 19:18:10 -0700 > > > >Hi: > > > >I get this every once in a while. Any thoughts what it means? > > > >make.exe C:\CProjects\make.exe > >[Warning] Clock skew detected. Your build may be incomplete. > > > > > >AdThanksVance > > > > > >Murad Yar Khan > >Harland Financial Solutions > >Pleasanton, CA 94588 > >925-463-8356 (x2253) > >mk...@ha... > > > > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |