[Dev-C++] Re: Dev-cpp-users digest, Vol 1 #2168 - 4 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <dav...@vi...> - 2004-09-30 11:16:47
|
To evrybody, This is to show how messages posted in html look in Outlook Express even if I setted my email in html. I ges somewhere in the follow up line the messages are readed with a text/plain mailer and then are reposted to the list. Jean. ----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Wednesday, September 29, 2004 11:14 PM Subject: Dev-cpp-users digest, Vol 1 #2168 - 4 msgs > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Windows Volume (get/set) (A_B...@gm...) > 2. Question about the Dev-C++ license (Christoph Peters) > 3. weird warning about gcov (Guillermo Gutierrez) > 4. Any idea about other mailing lists that deal with posix threads (on Linux). (Rio Mascarenhas) > > --__--__-- > > Message: 1 > From: A_B...@gm... > To: dev...@li... > Date: Wed, 29 Sep 2004 17:14:31 +0200 > Subject: [Dev-C++] Windows Volume (get/set) > > --Alt-Boundary-20458.314299 > Content-type: text/plain; charset=US-ASCII > Content-transfer-encoding: 7BIT > Content-description: Mail message body > > Hi, > I whant to get and set the main volume. > Well, I mean the value from the volume control at the tray bar from windows. > I'm sure it could be done with the Windows API, but I don't know how... > I tried it like this: > > double GetWaveVolumePercent(bool blLeft){ > unsigned long ulCurrentVolume = 0; > if(waveOutGetVolume(0, (LPDWORD) &ulCurrentVolume) == MMSYSERR_NOERROR){ > if(blLeft) return double(double(LOWORD(ulCurrentVolume))*100.0/65535.0); > else return double(double(HIWORD(ulCurrentVolume))*100.0/65535.0); > } > else return 0.0; > } > > bool SetWaveVolumePercent(double dlValue, bool blLeft){ > unsigned long ulCurrentVolume = 0; > if(dlValue < 0.0) dlValue = 0.0; > else if(dlValue > 100.0) dlValue = 100.0; > if(waveOutGetVolume(0, (LPDWORD) &ulCurrentVolume) == MMSYSERR_NOERROR){ > WORD ilNewVolume = int(double(65535.0)/100.0*dlValue); > if(blLeft) ulCurrentVolume = ulCurrentVolume & 0xFFFF0000 | ilNewVolume; > else ulCurrentVolume = ulCurrentVolume & 0x0000FFFF | ilNewVolume*0x10000; > return waveOutSetVolume(0, ulCurrentVolume) == MMSYSERR_NOERROR; > } > else return false; > } > > But this is not what I whant and doesn't work at all... > I whant the main volume !!! > > Any suggestions ??? > > thx, Acki > > > --Alt-Boundary-20458.314299 > Content-type: text/html; charset=US-ASCII > Content-transfer-encoding: 7BIT > Content-description: Mail message body > > <?xml version="1.0" ?><html> > <head> > <title></title> > </head> > <body> > <div align="left"><font face="Arial"><span style="font-size:10pt">Hi,</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">I whant to get and set the main volume.</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">Well, I mean the value from the volume control at the tray bar from windows.</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">I'm sure it could be done with the Windows API, but I don't know how...</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">I tried it like this:</span></font></div> > <div align="left"><br/> > </div> > <div align="left"><font face="Arial"><span style="font-size:10pt">double GetWaveVolumePercent(bool blLeft){</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  unsigned long ulCurrentVolume = 0;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  if(waveOutGetVolume(0, (LPDWORD) &ulCurrentVolume) == MMSYSERR_NOERROR){</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    if(blLeft) return double(double(LOWORD(ulCurrentVolume))*100.0/65535.0);</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    else return double(double(HIWORD(ulCurrentVolume))*100.0/65535.0);</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  }</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  else return 0.0;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">}</span></font></div> > <div align="left"><br/> > </div> > <div align="left"><font face="Arial"><span style="font-size:10pt">bool SetWaveVolumePercent(double dlValue, bool blLeft){</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  unsigned long ulCurrentVolume = 0;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  if(dlValue < 0.0) dlValue = 0.0;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  else if(dlValue > 100.0) dlValue = 100.0;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  if(waveOutGetVolume(0, (LPDWORD) &ulCurrentVolume) == MMSYSERR_NOERROR){</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    WORD ilNewVolume = int(double(65535.0)/100.0*dlValue);</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    if(blLeft) ulCurrentVolume = ulCurrentVolume & 0xFFFF0000 | ilNewVolume;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    else ulCurrentVolume = ulCurrentVolume & 0x0000FFFF | ilNewVolume*0x10000;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">    return waveOutSetVolume(0, ulCurrentVolume) == MMSYSERR_NOERROR;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  }</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">  else return false;</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">}</span></font></div> > <div align="left"><br/> > </div> > <div align="left"><font face="Arial"><span style="font-size:10pt">But this is not what I whant and doesn't work at all...</span></font></div> > <div align="left"><font face="Arial"><span style="font-size:10pt">I whant the main volume !!!</span></font></div> > <div align="left"><br/> > </div> > <div align="left"><font face="Arial"><span style="font-size:10pt">Any suggestions ???</span></font></div> > <div align="left"><br/> > </div> > <div align="left"><font face="Arial"><span style="font-size:10pt">thx, Acki</span></font></div> > <div align="left"></div> > </body> > </html> > > --Alt-Boundary-20458.314299-- > > > > --__--__-- > > Message: 2 > Date: Wed, 29 Sep 2004 17:53:06 +0200 > From: Christoph Peters <Chr...@we...> > To: dev...@li... > Subject: [Dev-C++] Question about the Dev-C++ license > > In the last months I created a 3D engine based on Direct3D. I compiled > it in Dev-C++ as dll. I intend to publish it in the internet. Of course > I'll show the users the license agreement of Dev-C++. > Would it be legally if I publish it in the internet? And would the users > be allowed to sell games they made using this dll? > I'd be thankful for a fast and obliging answer. > With kind regards > Christoph Peters. > > > > --__--__-- > > Message: 3 > Date: Wed, 29 Sep 2004 12:44:02 -0700 > From: "Guillermo Gutierrez" <ggu...@ma...> > To: <dev...@li...> > Subject: [Dev-C++] weird warning about gcov > > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C4A65C.AC2D4A72 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > with mingw/gcc 3.4.2 on Dev-Cpp 4990, I get an odd message regarding = > something called nul.gcda. Does anyone know what that this means: > > Compiler: Default compiler > Building Makefile: = > "W:\Dev-Cpp\GuillermoGutierrez\VaultViewer\Makefile.win" > Executing make... > mingw32-make.exe -f = > "W:\Dev-Cpp\GuillermoGutierrez\VaultViewer\Makefile.win" all > g++.exe -S Main.cpp -o nul -I"W:/Dev-Cpp/include/c++/3.4.2" = > -I"W:/Dev-Cpp/include/c++/3.4.2/mingw32" = > -I"W:/Dev-Cpp/include/c++/3.4.2/backward" = > -I"W:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"W:/Dev-Cpp/include" = > -I"W:/Dev-Cpp/include/c++" -I"W:/Dev-Cpp/include/FL" = > -I"W:/Dev-Cpp/include/FLU" =20 > -fexpensive-optimizations -O2=20 > Main.cpp:1: warning:`nul.gcda' is not a gcov data file=20 > windres.exe -i VaultVewer_private.rc --input-format=3Drc -o nul -O coff = > > Execution terminated > Compilation successful > > I also have MinGW-runtime 3.5, WinAPI 3.1, make-3.80.0-3, = > bin-utils-2.15.91 on windows 2000 Pro > > Guillermo Gutierrez > Market Scan Information Systems > Software Q.A. Supervisor > (818) 575-2000 x2427 > ggu...@ma... > > > ------_=_NextPart_001_01C4A65C.AC2D4A72 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <HTML> > <HEAD> > <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = > charset=3Diso-8859-1"> > <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = > 6.5.7226.0"> > <TITLE>weird warning about gcov</TITLE> > </HEAD> > <BODY> > <!-- Converted from text/rtf format --> > > <P><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">with mingw/gcc = > 3.4.2 on Dev-Cpp 4990, I get an odd message regarding something called = > nul.gcda. Does anyone know what that this means:</FONT></I></P> > > <P><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">Compiler: Default = > compiler</FONT></I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">Building Makefile: = > "W:\Dev-Cpp\GuillermoGutierrez\VaultViewer\Makefile.win"</FONT>= > </I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">Executing = > make...</FONT></I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">mingw32-make.exe = > -f "W:\Dev-Cpp\GuillermoGutierrez\VaultViewer\Makefile.win" = > all</FONT></I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">g++.exe -S = > Main.cpp -o nul -I"W:/Dev-Cpp/include/c++/3.4.2" = > -I"W:/Dev-Cpp/include/c++/3.4.2/mingw32" = > -I"W:/Dev-Cpp/include/c++/3.4.2/backward" = > -I"W:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" = > -I"W:/Dev-Cpp/include" = > -I"W:/Dev-Cpp/include/c++" = > -I"W:/Dev-Cpp/include/FL" = > -I"W:/Dev-Cpp/include/FLU" </FONT></I></P> > > <P><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans = > MS">-fexpensive-optimizations -O2 </FONT></I> > > <BR><I><FONT COLOR=3D"#0000FF" FACE=3D"Comic Sans MS">Main.cpp:1: = > warning:`nul.gcda' is not a gcov data file</FONT> </I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">windres.exe -i = > VaultVewer_private.rc --input-format=3Drc -o nul -O coff = > </FONT></I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">Execution = > terminated</FONT></I> > > <BR><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">Compilation = > successful</FONT></I> > </P> > > <P><I><FONT COLOR=3D"#000000" FACE=3D"Comic Sans MS">I also have = > MinGW-runtime 3.5, WinAPI 3.1, make-3.80.0-3, bin-utils-2.15.91 on = > windows 2000 Pro</FONT></I> > </P> > > <P><I><U><B><FONT COLOR=3D"#000080" SIZE=3D4 FACE=3D"Monotype = > Corsiva">Guillermo Gutierrez</FONT></B></U></I> > > <BR><I><B><FONT COLOR=3D"#000080" SIZE=3D4 FACE=3D"Monotype = > Corsiva">Market Scan Information Systems</FONT></B></I> > > <BR><I><B><FONT COLOR=3D"#000080" SIZE=3D4 FACE=3D"Monotype = > Corsiva">Software Q.A. Supervisor</FONT></B></I> > > <BR><I><B><FONT COLOR=3D"#000000" SIZE=3D4 FACE=3D"Monotype = > Corsiva">(818) 575-2000 x2427</FONT></B></I> > > <BR><B><U><FONT COLOR=3D"#0000FF" = > FACE=3D"Arial">ggu...@ma...</FONT></U><I></I><I></I></B> > </P> > > </BODY> > </HTML> > ------_=_NextPart_001_01C4A65C.AC2D4A72-- > > > --__--__-- > > Message: 4 > Date: Wed, 29 Sep 2004 14:42:43 -0700 (PDT) > From: Rio Mascarenhas <car...@ya...> > To: dev...@li... > Subject: [Dev-C++] Any idea about other mailing lists that deal with posix threads (on Linux). > > Hi, > I have some questions regarding using posix threads > (on Linux). > I know that this is not the forum for this. > However I am hoping that someone would be able to > point me to some mailing lists that deal with this > topic. > > Regards, > Rio > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > > > --__--__-- > > _______________________________________________ > 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 > > > End of Dev-cpp-users Digest > |