dev-cpp-users Mailing List for Dev-C++ (Page 124)
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: mei_hua c. <u71...@se...> - 2005-06-28 05:18:10
|
hi all : Can you help me to give me a way to optimize my project . My project have many *.cpp files. How to optimize then to make my .exe file to to fast. Thank you !! |
|
From: andrey <ak...@bk...> - 2005-06-27 13:53:55
|
(2^8+1)/ 2 isn't pow(2,8)/2+1
try
double test = (pow(2.0,8.0)+1.0)/2.0;
it will give you 128.5 because compiler know each value in expression DOUBLE
(sorry for my english)
Andrey
>
> >I'm not sure how abs() would help.. unless that's to ensure that the
> >original value is positive before multiplying by negative one?
> >-Lukas
>
> This is still not working right,
> Iv'e been scratching my head on this all day..
>
> I'm trying to get the value of 128.5
> But instead all the mentioned formula's are giving me 129...
>
> What i'm trying to express is this..
>
> (2^8+1)/ 2 = 128.5
>
> So in C/C++ it should be pow(2,8)/2+1 (However it returns 129)
>
> Here is a quick test....
> ----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> double test;
> test=pow(2,8)/2+1; //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> float test;
> test=((2^8+1) / 2); //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -------------------------------------------------------------
>
> Here is a quick snippett from the actual source code i'm using to position
> points.
>
> sprintf( cmd, "MAKEBOX <%g %g %g> <%g %g %f> <%d %d %d>",
> -128.5, -0.0, -128.5, pow(2,8)/2+1, 0.0, pow(2,8)/2+1, 1, 1, 1 );
> local->evaluate( local->data, cmd );
>
> Both suffer from the returning the same 129 figure....
> I must be missing something stupid... (i'll try again in the morning)
>
> Thanks for the help guys..
>
> Cheers,
> Scott.
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Per W. <pw...@ia...> - 2005-06-27 12:59:47
|
2 raised to 8 is 256. Dividing by two is 128. 128+1 is 129.
Your compiler don't do wrong. You have to know what _you_ want before
putting requirements on the compiler.
The easiest way to get 128.5 is:
a = 128.5.
If you want a formula to evaluate to 128.5 for a specific variable value,
you have to explain what the formula should evaluate to reach the value
128.5 (or possibly -128.5).
/Per W
On Mon, 27 Jun 2005, Scott wrote:
> >I'm not sure how abs() would help.. unless that's to ensure that the
> >original value is positive before multiplying by negative one?
> >-Lukas
>
> This is still not working right,
> Iv'e been scratching my head on this all day..
>
> I'm trying to get the value of 128.5
> But instead all the mentioned formula's are giving me 129...
>
> What i'm trying to express is this..
>
> (2^8+1)/ 2 = 128.5
>
> So in C/C++ it should be pow(2,8)/2+1 (However it returns 129)
>
> Here is a quick test....
> ----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> double test;
> test=pow(2,8)/2+1; //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> float test;
> test=((2^8+1) / 2); //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -------------------------------------------------------------
>
> Here is a quick snippett from the actual source code i'm using to position
> points.
>
> sprintf( cmd, "MAKEBOX <%g %g %g> <%g %g %f> <%d %d %d>",
> -128.5, -0.0, -128.5, pow(2,8)/2+1, 0.0, pow(2,8)/2+1, 1, 1, 1 );
> local->evaluate( local->data, cmd );
>
> Both suffer from the returning the same 129 figure....
> I must be missing something stupid... (i'll try again in the morning)
>
> Thanks for the help guys..
>
> Cheers,
> Scott.
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Phil H. <phi...@De...> - 2005-06-27 12:56:09
|
>=20 > This is still not working right, > Iv'e been scratching my head on this all day.. >=20 > I'm trying to get the value of 128.5 > But instead all the mentioned formula's are giving me 129... >=20 > What i'm trying to express is this.. >=20 > (2^8+1)/ 2 =3D 128.5 >=20 > So in C/C++ it should be pow(2,8)/2+1 (However it returns 129) >=20 Shouldn't it be (pow(2,8)+1)/2 ? This email is confidential and intended solely for the use of the individ= ual to whom it is addressed. If you are not the intended recipient, be ad= vised that you have received this email in error and that any use, dissem= ination, forwarding, printing, or copying of this email is strictly prohi= bited. If you have received this email in error please contact the sender= =2E Any views or opinions presented are solely those of the writer and do= not necessarily represent those of Deep Sea Electronics Plc.=0A=0ADeep S= ea Electronics Plc, Highfield House, Hunmanby Industrial Estate, North Yo= rkshire YO14 0PH, England. Registered in England No. 1319649=0Ahttp://www= =2Edeepseaplc.com mailto:sa...@de...=0ATelephone:+44(0)1723 8900= 99 Fax:+44(0)1723 893303=0A |
|
From: Scott <fre...@ve...> - 2005-06-27 12:54:01
|
> (pow(2,8)+1)/2
Thanks, that worked...
Man, the difference a bracket can make here and there.. :)
Looking at that now of course makes some sense,
(well when you take into the differences between, maths, and CMaths)
Thanks.
Cheers,
Scott.
#include <stdio.h>
#include <math.h>
void main()
{
double test;
test=(pow(2,8)+1)/2; //figure 2 to the eighth power +1
printf("The number is %g.0 \n",test);
system("PAUSE");
return 0;
}
|
|
From: Mustafa A. <Mus...@TE...> - 2005-06-27 12:40:11
|
Please try: (pow(2,8)+1)/2
Scott schrieb:
>> I'm not sure how abs() would help.. unless that's to ensure that the
>> original value is positive before multiplying by negative one?
>> -Lukas
>
>
> This is still not working right,
> Iv'e been scratching my head on this all day..
>
> I'm trying to get the value of 128.5
> But instead all the mentioned formula's are giving me 129...
>
> What i'm trying to express is this..
>
> (2^8+1)/ 2 = 128.5
>
> So in C/C++ it should be pow(2,8)/2+1 (However it returns 129)
>
> Here is a quick test....
> ----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> double test;
> test=pow(2,8)/2+1; //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -----------------------------------------------------------
> #include <stdio.h>
> #include <math.h>
> void main()
> {
> float test;
> test=((2^8+1) / 2); //figure 2 to the eighth power +1
> printf("The number is %0.0f \n",test);
> system("PAUSE");
> return 0;
> }
> -------------------------------------------------------------
>
> Here is a quick snippett from the actual source code i'm using to
> position points.
>
> sprintf( cmd, "MAKEBOX <%g %g %g> <%g %g %f> <%d %d %d>",
> -128.5, -0.0, -128.5, pow(2,8)/2+1, 0.0, pow(2,8)/2+1, 1, 1, 1 );
> local->evaluate( local->data, cmd );
>
> Both suffer from the returning the same 129 figure....
> I must be missing something stupid... (i'll try again in the morning)
>
> Thanks for the help guys..
>
> Cheers,
> Scott.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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: Scott <fre...@ve...> - 2005-06-27 12:19:34
|
>I'm not sure how abs() would help.. unless that's to ensure that the
>original value is positive before multiplying by negative one?
>-Lukas
This is still not working right,
Iv'e been scratching my head on this all day..
I'm trying to get the value of 128.5
But instead all the mentioned formula's are giving me 129...
What i'm trying to express is this..
(2^8+1)/ 2 = 128.5
So in C/C++ it should be pow(2,8)/2+1 (However it returns 129)
Here is a quick test....
----------------------------------------------------------
#include <stdio.h>
#include <math.h>
void main()
{
double test;
test=pow(2,8)/2+1; //figure 2 to the eighth power +1
printf("The number is %0.0f \n",test);
system("PAUSE");
return 0;
}
-----------------------------------------------------------
#include <stdio.h>
#include <math.h>
void main()
{
float test;
test=((2^8+1) / 2); //figure 2 to the eighth power +1
printf("The number is %0.0f \n",test);
system("PAUSE");
return 0;
}
-------------------------------------------------------------
Here is a quick snippett from the actual source code i'm using to position
points.
sprintf( cmd, "MAKEBOX <%g %g %g> <%g %g %f> <%d %d %d>",
-128.5, -0.0, -128.5, pow(2,8)/2+1, 0.0, pow(2,8)/2+1, 1, 1, 1 );
local->evaluate( local->data, cmd );
Both suffer from the returning the same 129 figure....
I must be missing something stupid... (i'll try again in the morning)
Thanks for the help guys..
Cheers,
Scott.
|
|
From: Lukas 'C. M. <gry...@gm...> - 2005-06-27 11:04:15
|
I'm not sure how abs() would help.. unless that's to ensure that the original value is positive before multiplying by negative one? -Lukas On 6/27/05, Scott <fre...@ve...> wrote: > =20 > =20 > > Hi... > > try > > -(pow(2,8)/2+1) > > greetz > =20 > Yeah doing it that way seems to be incorrect!!,=20 > It does provide the correct result if you change it to -(pow(2,8)/2-1)=20 > =20 > But thanks for the reply none the less.=20 > Marco's "(pow(2,8)/2+1) * -1" also works..=20 > =20 > So thankyou for the replies guys.=20 > I'll also look into the ABS function as suggested.=20 > =20 > Cheers,=20 > Scott. |
|
From: Scott <fre...@ve...> - 2005-06-27 10:08:09
|
> Hi... > try > -(pow(2,8)/2+1) > greetz Yeah doing it that way seems to be incorrect!!, It does provide the correct result if you change it to -(pow(2,8)/2-1) But thanks for the reply none the less. Marco's "(pow(2,8)/2+1) * -1" also works.. So thankyou for the replies guys. I'll also look into the ABS function as suggested. Cheers, Scott. |
|
From: Franziska E. <fra...@ya...> - 2005-06-27 09:49:09
|
Hi... try -(pow(2,8)/2+1) greetz > Hi peoples, > > Can anyone shed some light on how i achieve a minus pow value? > > I'm trying to place a point at -128.5 > > I'm using "pow(2,8)/2+1" Will will give me 128.5.... > How do i get that to return -128.5 instead of a positive value > Iv'e tried putting the - simple in various place, to no avail. > > Cheers, > Scott. > ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Masthan R. <mas...@gm...> - 2005-06-27 09:48:50
|
Hi Scott, I have worked and tried your problem. The possible solution is multiply the= =20 returned value with -1. You can write the code like this. "(pow(2,8)/2+1) * -1" which will return the negative value or the other=20 option is to use the *abs()* which does the same functionality. If u still= =20 got problem Pls reply me back. Regards Masthan On 6/27/05, Scott <fre...@ve...> wrote:=20 >=20 > Hi peoples, > Can anyone shed some light on how i achieve a minus pow value? > I'm trying to place a point at -128.5=20 > I'm using "pow(2,8)/2+1" Will will give me 128.5.... > How do i get that to return -128.5 instead of a positive value > Iv'e tried putting the - simple in various place, to no avail. > Cheers, > Scott. > =20 --=20 Regards Masthan |
|
From: Scott <fre...@ve...> - 2005-06-27 09:25:52
|
Hi peoples, Can anyone shed some light on how i achieve a minus pow value? I'm trying to place a point at -128.5=20 I'm using "pow(2,8)/2+1" Will will give me 128.5.... How do i get that to return -128.5 instead of a positive value Iv'e tried putting the - simple in various place, to no avail. Cheers, Scott. |
|
From: Russell S. <rsc...@ya...> - 2005-06-26 23:59:27
|
I would love to try bloodshed software's latest Dev C++, but every single time I try to unpack the program it crashes and takes my computer with it. I have tried several downloads and several different computers. Has anyone else had this problem? if so, did you overcome it? and how? I believe one thing the computers had in common was that they have AMD processors, I'm not so sure about the Dell, and all are running Windows XP. Sincerely, Russell Schiwal __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Thoralf S. <tho...@ya...> - 2005-06-25 13:38:32
|
Hi there, kind of solved the issue: there is a switch _M_CEE_PURE, which turns off the use of inline assembler at almost all occasions. So defining #define _M_CEE_PURE at the beginning of winnt.h helps a lot, a few more #if !defined(_M_CEE_PURE) are needed to get this compiled. I would consider this a really ugly hack, but then again, these function do not seem to be important in my context, so what the ... thanks for the help, Thoralf. ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com |
|
From: Thoralf S. <tho...@ya...> - 2005-06-25 13:32:06
|
Hi list, still trying to get some directshow stuff compiled with dev-c++. This time, gcc chokes on line 271 of wxutil.h (the one form the M$ Platform SDK): hSemPut = CreateSemaphore(NULL, n, n, NULL); with these messages: D:/Programme/Microsoft Platform SDK/Samples/Multimedia/DirectShow/BaseClasses/wxutil.h: In member function `void CQueue<T>::Initialize(int)': D:/Programme/Microsoft Platform SDK/Samples/Multimedia/DirectShow/BaseClasses/wxutil.h:271: error: expected primary-expression before ',' token D:/Programme/Microsoft Platform SDK/Samples/Multimedia/DirectShow/BaseClasses/wxutil.h:271: error: expected primary-expression before ')' token D:/Programme/Microsoft Platform SDK/Samples/Multimedia/DirectShow/BaseClasses/wxutil.h:272: error: expected primary-expression before ',' token D:/Programme/Microsoft Platform SDK/Samples/Multimedia/DirectShow/BaseClasses/wxutil.h:272: error: expected primary-expression before ')' token CreateSemaphore gets defined in winbase.h, but even including this file explicitly in wxutil.h doesn't help ... I really searched my a.s off, but couldn't find any hints on how to solve this issue - I really appreciate any help. Thank you in adavance, Thoralf. ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com |
|
From: Scott S. <ssi...@sp...> - 2005-06-25 12:22:44
|
Akira Bergman wrote: > Hi, I got the following message while installing Dev-C++. > > "There dosn't seem to be GNU Make file in PATH or in Dev-C++'s Bin > path. Please make sure that you have GNU Make and adjust Bin settings > or system PATH environment variable and that make setting in Compiler > Option contains correct fle name, otherwise you will not be able to > compile anything." > > I have GNU Make, MSYS, MingW. > > Could someone tell me what to do please? In Dev-C++, go to Tools->Compiler Options. Under the programs tab, make sure that make points to the right location. For the PATH, go to the System Applet in the Control Panel, select the advanced tab, click the environment variables button, and find PATH. Make sure PATH includes the directory where you have make, which should be the bin folder of Dev-C++. I had this same problem when installing MSYS on one of my computers. -- ~~Scott~~ ssi...@sp... |
|
From: <gu...@et...> - 2005-06-25 12:13:07
|
365购物网 365shopw专业性化妆品网站 在这里(365shopw.com)您可以找到世界顶级名牌化妆品: 资生堂、兰蔻、SK-II、倩碧、雅顿、西黛、CD、雅诗兰黛、雅芳等。 5000多种国际名牌化妆品,全球低价! 免费加盟、免费开店、免费送货,免费咨询旅游信息,航空物流等多项服务。 如果这封善意邮件打扰了您,请随手删掉。我们向您表示道歉! 永远为客户的利益着想。 客服电话:010-85574172 网址:http://www.365shopw.com |
|
From: Akira B. <ak...@tp...> - 2005-06-25 02:41:36
|
Hi, I got the following message while installing Dev-C++. "There dosn't seem to be GNU Make file in PATH or in Dev-C++'s Bin path. = Please make sure that you have GNU Make and adjust Bin settings or = system PATH environment variable and that make setting in Compiler = Option contains correct fle name, otherwise you will not be able to = compile anything." I have GNU Make, MSYS, MingW. Could someone tell me what to do please? |
|
From: Antonio G. <ton...@gm...> - 2005-06-24 19:59:51
|
Why not create only one more window (or gtk_dialog, you know) and place your widgets in it? is wouldn't be enough ?! regards On 6/24/05, jal...@go... <jal...@go...> wrote: > After creating the top window, which contarins a menu, I want to creat > either a dialog box or another window that will house several widgets. My > question is should I create another window or should I create a widget > that will handle the input from the user? >=20 > Thanks folks! > _______________________________________________ > gtk-list mailing list > gtk...@gn... > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 --=20 Antonio Gomes E-mail: ant...@in... Embedded Linux Lab - 10LE INdT - Instituto Nokia de Tecnologia (Manaus/Br) NOKIA's Technology Institute |
|
From: Thoralf S. <tho...@ya...> - 2005-06-24 18:50:41
|
Hi Matthew, hi Alfred, first of all, thank you very much for your answers! The missing semicolon didn't do the trick, it seems like I hit the AT&T- vs. Intel-style inline asambler syntax issue here (as Alfred suggested). I'll see if I manage to get this rewritten to GAS-style ... If not, would it be a feasible solution to either a) replace the assembler bits by pure C(++) code (there are only 5 or 6 assembler bits scattered around winnt.h, and things like bit-shifting should be possible without assembler code) or b) throw in some extra #ifdef - stuff to make the compiler use the non-assembler function that _should_ be also present in this file (I've seen some declarations regarding Apple Macintosh stuff) ? In either case, I'll probably some help by people more experienced with c and assembler stuff - after all, I'm not really a programmer ... with kind regards, Thoralf. ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com |
|
From: <Mat...@Ve...> - 2005-06-24 17:49:27
|
PLEASE, PLEASE, PLEASE, somebody unsubscribe this inconsiderate individual from the Dev-C++ lists. I have asked once already several months ago and nothing happened. I am extremely tired of being spammed by these ridiculous messages! =20 -----Original Message----- From: AntiSpam UOL [mailto:mr-...@uo...] Sent: Friday, June 24, 2005 10:46 AM To: matthew.hall1 Subject: RE: RE: [Dev-C++] inline assembly in winnt.h ANTISPAM UOL =BB TIRA-TEIMA <http://antispam.uol.com.br> =09 =20 Ol=E1, Voc=EA enviou uma mensagem para mr...@uo... Para que sua mensagem seja encaminhada, por favor, clique aqui =09 Esta confirma=E7=E3o =E9 necess=E1ria porque mr...@uo... usa o Antisp= am UOL, um programa que elimina mensagens enviadas por rob=F4s, como pornografia, propaganda e correntes. As pr=F3ximas mensagens enviadas para mr...@uo... n=E3o precisar=E3o = ser confirmadas*. *Caso voc=EA receba outro pedido de confirma=E7=E3o, por favor, pe=E7a para mr...@uo... inclu=ED-lo em sua lista de autorizados. Aten=E7=E3o! Se voc=EA n=E3o conseguir clicar no atalho acima, acesse este = endere=E7o: http://tira-teima.as.uol.com.br/challengeSender.html?data=3D0373VKtWBkdl%2B= SWx hnyJs2PKfg8FGZhGmkk6jHz%2FZ1B7ZKs%2B3cA4tFBjC2MoOVo4fjjJDchqne1y%0AzbupQiWO% 2FmXncvLVdGMv7L9N%2FJcGA0EeapN0S1DWALcFBScJpm3OKkKJU0%2FhSG%2BwCcGbbVrJ%2FUj j%0A%2F11Hs2EDOSeg85sYJMeOyN71NlNb6qCbGGDQYhLv=09 _____ =20 =20 Hi, You=B4ve just sent a message to mr...@uo... In order to confirm the sent message, please click here =09 This confirmation is necessary because mr...@uo... uses Antispam UOL, a service that avoids unwanted messages like advertising, pornography, viruses, and spams. Other messages sent to mr...@uo... won't need to be confirmed*. *If you receive another confirmation request, please ask mr...@uo... to include you in his/her authorized e-mail list. Warning! If the link doesn=B4t work, please copy the address below and paste it on your browser: http://tira-teima.as.uol.com.br/challengeSender.html?data=3D0373VKtWBkdl%2B= SWx hnyJs2PKfg8FGZhGmkk6jHz%2FZ1B7ZKs%2B3cA4tFBjC2MoOVo4fjjJDchqne1y%0AzbupQiWO% 2FmXncvLVdGMv7L9N%2FJcGA0EeapN0S1DWALcFBScJpm3OKkKJU0%2FhSG%2BwCcGbbVrJ%2FUj j%0A%2F11Hs2EDOSeg85sYJMeOyN71NlNb6qCbGGDQYhLv=09 Use o <http://antispam.uol.com.br> AntiSpam UOL e proteja sua caixa postal =09 ___________________________________________________________________ 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: <Mat...@Ve...> - 2005-06-24 17:39:33
|
Hold on. Isn't that a function header? Those do not need semicolons... Thoralf, please have a look at the following and reformat the assembler: http://www-106.ibm.com/developerworks/library/l-ia.html <http://www-106.ibm.com/developerworks/library/l-ia.html> HTH, Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alfred P. Reaud Sent: Friday, June 24, 2005 9:24 AM To: Dev-Cpp UserList Subject: Re: [Dev-C++] inline assembly in winnt.h Hi Thoralf, Possibly a missing semi-colon? Try: DWORD ShiftCount ); Instead of DWORD ShiftCount ) I'm basing that on the first error, and the complaints of missing ";". Possibly a problem with the formatting of Int64ShllMod32 parameters? Thoralf Schulze <tho...@ya...> wrote: Hi there, I hope this is the right place to ask this question - I've been searching both the archive and the web, to no avail ... I'm just trying to compile a project (GEM for Pure Data, CVS version, see http://gem.iem.at/download.html#CVS) that involves some DirectShow stuff. Of course, a bunch of M$ libraries is needed for this, and Dev-C++ (or, for that matter, MinGW or g++) chokes on some inline assembly in winnt.h (lines 588 ff.), which is part of the MS Platform SDK. Here's the relevant code: #if _MSC_VER >= 1200 #pragma warning(push) #endif #pragma warning(disable:4035 4793) // re-enable below __inline ULONGLONG NTAPI Int64ShllMod32 ( ULONGLONG Value, DWORD ShiftCount ) { __asm { mov ecx, ShiftCount mov eax, dword ptr [Value] mov edx, dword ptr [Value+4] shld edx, eax, cl shl eax, cl } } and the error messages: <snip> D:/Programme/Microsoft Platform SDK/Include/winnt.h:588: error: expected `(' before '{' token D:/Programme/Microsoft Platform SDK/Include/winnt.h:588: error: expected asm body before '{' token D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: `mov' undeclared (first use this function) D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: (Each undeclared identifier is reported only once for each function it appears in.) D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: expected `;' before "ecx" <snip> Alfred P. Reaud <mailto:al...@ya...> <http://www.geocities.com/alreaud/> ___________________________________________________________________ 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: Alfred P. R. <al...@ya...> - 2005-06-24 16:23:57
|
Hi Thoralf,
Possibly a missing semi-colon?
Try:
DWORD ShiftCount
);
Instead of
DWORD ShiftCount
)
I'm basing that on the first error, and the complaints of missing ";". Possibly a problem with the formatting of Int64ShllMod32 parameters?
Thoralf Schulze <tho...@ya...> wrote:
Hi there,
I hope this is the right place to ask this question -
I've been searching both the archive and the web, to
no avail ...
I'm just trying to compile a project (GEM for Pure
Data, CVS version, see
http://gem.iem.at/download.html#CVS) that involves
some DirectShow stuff. Of course, a bunch of M$
libraries is needed for this, and Dev-C++ (or, for
that matter, MinGW or g++) chokes on some inline
assembly in winnt.h (lines 588 ff.), which is part of
the MS Platform SDK.
Here's the relevant code:
#if _MSC_VER >= 1200
#pragma warning(push)
#endif
#pragma warning(disable:4035 4793) //
re-enable below
__inline ULONGLONG
NTAPI
Int64ShllMod32 (
ULONGLONG Value,
DWORD ShiftCount
)
{
__asm {
mov ecx, ShiftCount
mov eax, dword ptr [Value]
mov edx, dword ptr [Value+4]
shld edx, eax, cl
shl eax, cl
}
}
and the error messages:
<snip>
D:/Programme/Microsoft Platform SDK/Include/winnt.h:588: error: expected `(' before
'{' token
D:/Programme/Microsoft Platform SDK/Include/winnt.h:588: error: expected asm body before '{' token
D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: `mov' undeclared
(first use this function)
D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: (Each undeclared
identifier is reported only once for each function it appears in.)
D:/Programme/Microsoft Platform SDK/Include/winnt.h:589: error: expected `;' before
"ecx"
<snip>
Alfred P. Reaud
|
|
From: <jal...@go...> - 2005-06-24 15:45:57
|
After creating the top window, which contarins a menu, I want to creat either a dialog box or another window that will house several widgets. My question is should I create another window or should I create a dialog bo= x to will handle the input from the user? TIA |
|
From: <jal...@go...> - 2005-06-24 15:35:02
|
After creating the top window, which contarins a menu, I want to creat either a dialog box or another window that will house several widgets. My question is should I create another window or should I create a widget that will handle the input from the user? Thanks folks! |