dev-cpp-users Mailing List for Dev-C++ (Page 102)
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: Per W. <pw...@ia...> - 2005-10-29 11:12:46
|
To emit your color numbers as integers you have to multiply them with a
constant to increase them from the 0..1 range to span 0.255. Then you
typecast this value to an integer and use %u instead of %f to print them.
When it comes to colors, it all depends on which environment you are in.
If you print to a console supporting ANSI ESC sequences, you can use these
sequences to control the emitted color.
An example is:
printf("\x1b[1m\x1b[32mhello ");
printf("\x1b[32mthere ");
printf("\x1b[35mcolorful ");
printf("\x1b[0mworld\n");
However, the text console in Windows normally don't support the ESC
sequences, resulting in a very ugly printout.
More info about use of ANSI ESC sequences can be found at:
http://www.evergreen.edu/biophysics/technotes/program/ansi_esc.htm
If you are in a graphical environment, then there are normally better
output methods than printf, allowing control not just over color but over
font, printding direction, slanting, ...
Windows have a lot of attribute functions to control the output to the
currently selected DC (Device Context). SetTextColor() and SetBkColor()
are good functions too look a bit closer at :)
Remember that most Windows API have online-browseable documentation
available directly on the Microsoft web site.
/Per W
On Sat, 29 Oct 2005, Scott wrote:
> Newbie C, help...
>
> Is there a way to write the number as 255
> instead of 0.1 or 0.13434 etc.....
>
> sprintf(str, "R:%1.2f G:%1.2f B:%1.2f", color[0], color[1], color[2]);
>
> And also is it possible to change the text color?
>
> sprintf(str, "Red:%1.2f Green:%1.2f Blue:%1.2f", color[0], color[1], color[2]);
>
> I would like have Red (in red), Green in Green, and Blue text....
> Is this easy or possible to do in C?
>
> This function is obviosuly part of a 3D plugin, but it uses C commands,
> like sprintf....
>
> Cheers,
> Scott.
>
>
>
>
>
>
|
|
From: <jal...@go...> - 2005-10-29 06:03:13
|
When I try to compile my program I get this error, which I don't understa=
nd.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Compiler: Default compiler
Building Makefile: "C:\...\dev\c++\jme\exception\Makefile.win"
Executing make clean
rm -f main.o exception.o Exception.exe
g++.exe -c main.C -o main.o -I"C:/GnuWin32/INCLUDE"=20
-I"C:/GnuWin32/INCLUDE/GTK-2.0" -I"C:/GnuWin32/INCLUDE/GLIB-2.0"=20
-I"C:/GnuWin32/INCLUDE/PANGO-1.0" -I"C:/GnuWin32/INCLUDE/ATK-1.0"=20
-I"C:/GnuWin32/INCLUDE/GTKGLEXT-1.0" -I"C:/GnuWin32/LIB/GTK-2.0/INCLUDE"=
=20
-I"C:/GnuWin32/LIB/GLIB-2.0/INCLUDE"=20
-I"C:/GnuWin32/LIB/GTKGLEXT-1.0/INCLUDE"=20
-I"C:/GnuWin32/INCLUDE/LIBGLADE-2.0" -I"C:/GnuWin32/INCLUDE/LIBXML2"
g++.exe: no input files
make: *** [main.o] Error 1
Execution terminated
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Also, why are the GTK(mm) added to my compilation if this is a console
program?
What do I need to change here?
TIA
--=20
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* It's amazing how the small seeds of distrust and misunderstanding can
yield a crop of hate and death...
* If that document has fine printing anywhere, just chuck it in the garba=
ge
- Jorge Escalante
Ma'assalama! Adi=F3s! bye!
|
|
From: Scott <fre...@ve...> - 2005-10-29 05:05:22
|
Newbie C, help... Is there a way to write the number as 255=20 instead of 0.1 or 0.13434 etc..... sprintf(str, "R:%1.2f G:%1.2f B:%1.2f", color[0], color[1], color[2]); And also is it possible to change the text color? sprintf(str, "Red:%1.2f Green:%1.2f Blue:%1.2f", color[0], color[1], = color[2]); I would like have Red (in red), Green in Green, and Blue text.... Is this easy or possible to do in C? This function is obviosuly part of a 3D plugin, but it uses C commands, like sprintf.... Cheers, Scott. |
|
From: rohit b. <rv...@gm...> - 2005-10-28 13:09:48
|
> If you stiil have problems I will send an example. I'm still having problems. A simple example will help for sure. :-D Also, if only two files are needed, what am I supposed to do with the rest of the unzipped/installed stuff? I wonder if you could walk me quickly through a Dislin install. I've installed dislin in E:\dislin and my Dev-C++ is in E:\devcpp. -- Rohit V. Bhute http://rvbhute.blogspot.com/ |
|
From: Per W. <pw...@ia...> - 2005-10-28 11:30:10
|
All errors are generated by the g++ compiler. However, that is not the complete message - just part of the information where the error was found, and how the compiler managed to navigate to the specific file. There is also the actuall error message, i.e. what was wrong at line 2 of bank.h. /Per W On Fri, 28 Oct 2005, Safak =D6kmen wrote: > Can you tell me where to look for a list with explanations to compiler > errors like: > > 2 D:\c++lernen\bank.h:2, from kunde.cpp In file included from bank.h:2, f= rom > kunde.cpp > > ? > > Are they g++ compiler errors or generated by Dev-C++ ? > > Thank you, > Safak > |
|
From: <saf...@gm...> - 2005-10-28 10:26:55
|
Can you tell me where to look for a list with explanations to compiler errors like: 2 D:\c++lernen\bank.h:2, from kunde.cpp In file included from bank.h:2, fro= m kunde.cpp ? Are they g++ compiler errors or generated by Dev-C++ ? Thank you, Safak |
|
From: Wim S. <wim...@ba...> - 2005-10-27 21:08:27
|
Is there somebody out who can compile the real mysql++ library from tangensoft. I know the devpack from libmysql works. But this is C and de mysql++ library is really good. Does or Could someone make a devpack from it. I'm always stuck with compiling it at ResUse and ResNSel classes. I can't figure out why. I always get the warning message that attribute is ignored with actually isn't. Anybody ? Kind regards Wim |
|
From: Marcelo D. <mds...@ya...> - 2005-10-26 00:07:55
|
Hi Doctors, I got some link errors when I compiled and linked for use MySQL C API. Parts of error list: .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized (...) .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized (...) [Linker error] undefined reference to `connect@12' [Linker error] undefined reference to `socket@12' (...) [Linker error] undefined reference to `_ftol2' (...) [Linker error] undefined reference to `libmsvcrt_a_iname' (...) resolving Gtk::Stock::NEW by linking to __imp___ZN3Gtk5Stock3NEWE (auto-import) (...) [Linker error] undefined reference to `_nm___iob' I'm using Dev-C++ 4.9.9.2, Gtk+ 2.6.10, Gtkmm 2.6.2 and MySQL 5.0 (all for Windows). For Compiling and Linking Parameters I'm using: -IC:\Dev-Cpp\include\gtkmm-2.4 -IC:\Dev-Cpp\lib\gtkmm-2.4\include -IC:\Dev-Cpp\include\glibmm-2.4 -IC:\Dev-Cpp\lib\glibmm-2.4\include -IC:\Dev-Cpp\include\gdkmm-2.4 -IC:\Dev-Cpp\lib\gdkmm-2.4\include -IC:\Dev-Cpp\include\pangomm-1.4 -IC:\Dev-Cpp\include\atkmm-1.6 -IC:\Dev-Cpp\include\gtk-2.0 -IC:\Dev-Cpp\include\sigc++-2.0 -IC:\Dev-Cpp\lib\sigc++-2.0\include -IC:\Dev-Cpp\include\glib-2.0 -IC:\Dev-Cpp\lib\glib-2.0\include -IC:\Dev-Cpp\lib\gtk-2.0\include -IC:\Dev-Cpp\include\pango-1.0 -IC:\Dev-Cpp\include\atk-1.0 -IC:\Dev-Cpp\include -IC:\Dev-Cpp\include\mysql and -LC:\Dev-Cpp\lib -LC:\mysql\lib\opt -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-win32-2.0 -lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -Wl,--enable-runtime-pseudo-reloc -lmysqlclient -lz Thanks. (o_o) - mds GATBRASIL Thanks. (o_o) - mds GATBRASIL --------------------------------- Promoção Yahoo! Acesso Grátis: a cada hora navegada você acumula cupons e concorre a mais de 500 prêmios! Participe! |
|
From: DJK S. W. <ic3...@ho...> - 2005-10-24 18:45:00
|
<html><div style='background-color:'><DIV class=RTE> <P>Hi there, I am using a database in mysql with WIN32 in C++, full api, buy when I get a result from a query about 500 rows of info, and after I sent it to print but it just print me one page why??, I need to how make a print preview if someone know how I fix and make it, please answer me, the rows going to print from the query using StarDoc, PAGINFO and so on.<BR><BR></P></DIV></div><br clear=all><hr>MSN Amor <a href="http://g.msn.com/8HMAES/2737??PS=47575" target="_top">Busca tu ½ naranja</a> </html> |
|
From: rohit b. <rv...@gm...> - 2005-10-24 14:11:15
|
Does anybody know how to use dislin (www.dislin.de) with Dev-C++ ? I tried putting the entire package in a folder with the C file, but am getting a linker error. -- Rohit V. Bhute http://rvbhute.blogspot.com/ |
|
From: Nicusor S. <sh...@sa...> - 2005-10-22 19:22:25
|
Hello Pr oazac Amnbj en Xan anax Cj ALLjS $3.38 VjAG RRA $3.43 VA LLjUM $1.26 UItt ram Soa ma Levv jtra Prrop ecja http://Cornishokx.caganel.info _________________________________________________________________ color arose from his washing in the water in which he swam, the The Bear and the Two Travelers And how much more beautiful than you am I, who am decorated, not to their high place in the general literature of Christendom, is The Hawk and the Nightingale |
|
From: <ric...@rc...> - 2005-10-21 16:28:54
|
Hi, I'm using wxDev-C++ to make my wxWidgets application,=20 when I make a new application, it compiles ok, but if I open an = wxWidgets example, an try to compile I get and compiler erro 255, does any one knows what this is? |
|
From: Blagoja G. <bla...@gm...> - 2005-10-21 14:22:04
|
Ok, but you must follow this procedure: Insert this Paths in Tools / Compiler Options / Directories / Libraries "C:\Dev-Cpp\lib C:\Programme\Microsoft Platform SDK\Lib" Insert this Paths in Tools / Compiler Options / Directories / C Includes "C:\Dev-Cpp\include C:\Programme\Microsoft Platform SDK\Include" Insert this Paths in Project / Project Options / Directories / Library Directories "C:\Dev-Cpp\lib C:\Programme\Microsoft Platform SDK\Lib" Insert this Paths in Project / Project Options / Directories / Include Directories "C:\Dev-Cpp\include C:\Programme\Microsoft Platform SDK\Include" Insert this Paths in Project / Project Options / Parameters / Linker "C:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib" Execute batch file "SetEnv.Cmd" in C:\Programme\Microsoft Platform SDK\ In "main.c" file insert this: #include "WtsApi32.h" or full path #include "C:/Programme/Microsoft Platform SDK/Include/WtsApi32.h" Thats all, Blagoja |
|
From: Andreas M. <and...@sb...> - 2005-10-21 12:52:29
|
Blagoja Gjakovski schrieb: >> Hi, >> I'm not sure, but I think that you must enter path to=20 >> C:\Programme\Microsoft Platform SDK\Lib >> and >> C:\Programme\Microsoft Platform SDK\Include >> in the Dev-Cpp. You can do this by clicking on the Tools / Compiler=20 >> Options menu. Go to "Directories" tab and "Libraries" and "C Includes"= =20 >> (or "C++ Includes") sub-tabs. >> >> Good luck, >> Blagoja >=20 >=20 > I forget, > You can do this also in the Project / Project Options menu. > In the "Directories" tab. >=20 > Blagoja >=20 >=20 Hello Blagoja, I had already set the path in my project. Now I did delete it from there=20 and put it into the compiler options. The linker finds the library I have set as parameter in the=20 project/options/parameters/linker ( -lwtsApi32 ) I am sure because if I change this name I get the error that the file=20 was not found Now it continues to tell me that there is a undefined reference to `WTSEnumerateSessionsA@20' even if the function I use is WTSEnumerateSessionsA Does the compiler mangle the names the way that they are different than=20 the icrosoft one ? Is mangling not used only in c++, my project is c Bye Andreas here the output Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Andreas\wtshost\Makefile.win" F=FChrt make... aus make.exe -f "C:\Dev-Cpp\Andreas\wtshost\Makefile.win" all gcc.exe main.o -o "wtshost.exe" -L"C:/Dev-Cpp/lib"=20 -L"C:/Programme/Microsoft Platform SDK/Lib" -mwindows -lwtsApi32 main.o(.text+0x33):main.c: undefined reference to `WTSEnumerateSessionsA@= 20' main.o(.text+0x4b):main.c: undefined reference to `WTSFreeMemory@4' collect2: ld returned 1 exit status make.exe: *** [wtshost.exe] Error 1 Ausf=FChrung beendet |
|
From: Blagoja G. <bla...@gm...> - 2005-10-21 12:39:50
|
> Hi, > I'm not sure, but I think that you must enter path to > C:\Programme\Microsoft Platform SDK\Lib > and > C:\Programme\Microsoft Platform SDK\Include > in the Dev-Cpp. You can do this by clicking on the Tools / Compiler > Options menu. Go to "Directories" tab and "Libraries" and "C Includes" > (or "C++ Includes") sub-tabs. > > Good luck, > Blagoja I forget, You can do this also in the Project / Project Options menu. In the "Directories" tab. Blagoja |
|
From: Blagoja G. <bla...@gm...> - 2005-10-21 12:32:20
|
Hi, I'm not sure, but I think that you must enter path to C:\Programme\Microsoft Platform SDK\Lib and C:\Programme\Microsoft Platform SDK\Include in the Dev-Cpp. You can do this by clicking on the Tools / Compiler Options menu. Go to "Directories" tab and "Libraries" and "C Includes" (or "C++ Includes") sub-tabs. Good luck, Blagoja |
|
From: Andreas M. <and...@sb...> - 2005-10-21 12:00:49
|
Alfred P. Reaud schrieb: > Hi Andreas, > > The only thing that I can obviously see is the text: > -lC:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib > > As gcc is using the Unix convention for path names, the spaces in the > path name will cause a problem. Try single quoting it as > -l'C:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib'. If that > doesn't work, just physically copy it to the lib folder of dev-cpp. > > The other possibility is that if you're adding this to the to the linker > parameters with the -l, that -l tries to add the prefix lib and suffix > .a to the library, making it actually libWtsApi32.Lib.a which won't be > found. As an example my use of -lgimp-2.0 in Project > Options->Parameters->Linker actually refers to libgimp-2.0.dll.a in the > default lib directory. Hello Alfred, I copied the file to the lib directory, but now i get this error main.o(.text+0x33):main.c: undefined reference to `WTSEnumerateSessionsA@20' main.o(.text+0x4b):main.c: undefined reference to `WTSFreeMemory@4' collect2: ld returned 1 exit status any hint ? Bye Andreas |
|
From: Guillermo G. <ggu...@ma...> - 2005-10-19 20:24:51
|
I believe by default it does.=20 Correct me if I am wrong. ;) -----Original Message----- From: dev...@li... = [mailto:dev...@li...]On Behalf Of Tyler = Boland Sent: Wednesday, October 19, 2005 1:20 PM To: dev...@li... Subject: [Dev-C++] can dev C++ 5 Hi I was wondering if Dev C++ can make EXE.(Exicutables). thanks Tyler Tyler Boland _____ =20 Yahoo! = <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=3D36035/*http://music.ya= hoo.com/unlimited/> Music Unlimited - Access over 1 million songs. Try = it free. |
|
From: Tyler B. <tyl...@ya...> - 2005-10-19 20:20:23
|
Hi I was wondering if Dev C++ can make EXE.(Exicutables). thanks Tyler Tyler Boland --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
|
From: Alfred P. R. <al...@ya...> - 2005-10-19 04:34:13
|
Various sources on the Internet recommend using the Win32 API CreateProcess method. Researching this question appears to show that popen does not appear to posess that capability, as console applications are expected to operate with a console :^o. http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q190351 http://groups.google.com/group/comp.lang.python/browse_thread/thread/f3dee2bba90f27a2/e33360750389fdf8%23e33360750389fdf8?sa=X&oi=groupsr&start=0&num=3 (Jan 7 2004, 3:36 AM entry) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp (CreateProcess Method) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/process_creation_flags.asp (Process Creation Flags - CREATE_NO_WINDOW) Noorez Kassam <lor...@ho...> wrote: I'm using the FILE *popen() function to open a console program from a gui program to process a text file, but when I start the console program, a dos window appears for a few seconds and disappears. Is it possible to suppress the console window? <snip> Alfred P. Reaud |
|
From: Karlee O. <Ta...@ww...> - 2005-10-19 03:49:58
|
An Investor ALERT is being issued starting right NOW. Keep your eyes glued Wednesday 19th , 2005 on CHMS... EXPLOSIVE PICK FOR OUR MEMBERS! !!! THIS IS OUR 4th Quarter LOCK OF THE YEAR !!! OUR HOT PICK IS CHMS. SYMBOL: CHMS CURRENT PRICE: $.49 12 Day Trading Projection: $1.75 STATUS: (BUY) RATING: 3-STAR WE GIVE IT TO YOU AS A GIFT AND THIS IS WHY !!! About China Mobility Solutions Inc. China Mobility Solutions (OTC Bulletin Board: CHMS - News), a pioneer in developing Short Message Services (SMS) as a primary advertising medium in China, provides mobile marketing, branding and enterprise solutions to its rapidly expanding client base of Small and Medium Enterprises (SME). Through proprietary profit sharing agreements, the company's advertising audience includes SMS subscribers from China Mobile, China Unicom and China Telecom. |
|
From: Noorez K. <lor...@ho...> - 2005-10-19 03:07:28
|
I'm using the FILE *popen() function to open a console program from a gui program to process a text file, but when I start the console program, a dos window appears for a few seconds and disappears. Is it possible to suppress the console window? _________________________________________________________________ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |
|
From: Gaetano S. <gae...@gm...> - 2005-10-18 07:00:25
|
Hi Alfred,
the only one library used in my project is the "libmsacm32.a", this
library is the only one that contains acmDriverAdd/acmDriverRemove
APIs ("grep docet"), it is in the default library path (dev-cpp/lib)
so no others directories should be included and the linker have the
"-lmsacm32" parameter setted on. Everything seems to be correct, there
are other APIs in the "libmsacm32.a" (such as acmDriverOpen) and I'm
using some of those without any linking problems (but I still need of
acmDriverAdd, without this one the entire project is unuseful).
Thank you,
--
Gaetano Sferra
2005/10/17, Alfred P. Reaud <al...@ya...>:
>
> Hi Gartano,
>
> In my experience with this kind of occurrence, usually it means more than
> one library file contains the same definition and your linker parameter
> -lmsacm32 is probably pointing to the wrong one.
>
> That is why I recommend using grep (FINDSTR in MS Windows), used from the
> root of the dev-cpp library directories to find all libraries that may
> contain this reference. Alternatively, it may be that libmsacm32.a libra=
ry
> file is not in a default path, i.e. ~/dev-cpp/lib or that you haven't
> included it's directory in Project Options->Directories->Library Director=
y
> tab if it's not in a default path.
>
> Gaetano Sferra <gae...@gm...> wrote:
> Hello,
> I need to use the audio compression manager and add a custom
> compressor to it using the acmDriverAdd() API. I've included the
> msacm.h header file in my project and specified to the linker to use
> the "libmsacm32.a" library file throught the project option dialogs.
> In my project I also use others ACM APIs such as acmDriverOpen(),
> acmDriverClose() etc...
> The matter is the linking step:
>
> [Linker error] undefined reference to `acmDriverAdd'
> [Linker error] undefined reference to `acmDriverRemove'
>
> Using a hexadecimal editor I've taked a look in the "libmsacm32.a"
> file and there are the definitions for acmDriverAdd and
> acmDriverRemove (with or without UNICODE support). What's wrong?
>
> Thank you,
> --
> Gaetano Sferra
>
> PS: I've already tryed to put an '_' or "__" before the function names
> but it's not useful, the same er rors occurs.
> <snip>
>
>
>
>
> Alfred P. Reaud
|
|
From: Reid T. <rei...@at...> - 2005-10-18 03:08:19
|
Noorez Kassam wrote:
> I have a GUI program that calls on another command line program to
> perform a task on a file, but how do i capture the results of the
> command line output so that i can use it in my GUI and display it to
> the user?
simplistic example...
$cat popentst.c
#include <stdio.h>
#include <stdlib.h>
main()
{
char *cmd = "/usr/bin/ls *.c";
char buf[BUFSIZ]; /* BUFSIZ is declared in my stdio.h to be 1024 */
FILE *ptr;
if ((ptr = popen(cmd, "r")) != NULL)
while (fgets(buf, BUFSIZ, ptr) != NULL)
(void) printf("%s", buf);
(void) pclose(ptr);
return 0;
}
|
|
From: Alfred P. R. <al...@ya...> - 2005-10-18 02:57:33
|
Hi Noorez, This is a case of redirecting cout (stdout) and/or cerr (stderr) to an input stream. This is something I've never tried, to be honest. A simple way would be to output redirect (>) the output of the command line program to a temporary text file, then import and display the text file in your GUI, deleting the text file after capture. BTW: insight.exe probably uses this capability, as it's actually a GUI shell for GDB. So it's source may be helpful. Also see: http://forum.java.sun.com/thread.jspa?threadID=535799&messageID=2596130 http://www.cplusplus.com/ref/iostream/ios/rdbuf.html http://lists.boost.org/Archives/boost/2005/01/78560.php ***!!!*** Noorez Kassam <lor...@ho...> wrote: I have a GUI program that calls on another command line program to perform a task on a file, but how do i capture the results of the command line output so that i can use it in my GUI and display it to the user? <snip> Alfred P. Reaud |