Thread: Re: [Dev-C++] writing windows service application using dev-cpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: MOHAMMED S. <chi...@ya...> - 2007-06-05 15:18:50
|
Hi Everyone, I need help regarding writing c++ application that either starts up when windows is started or runs at the background whiles windows runs using the Dev-C++ ide. dev...@li... wrote: 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. (no subject) (hhh hhh) 2. Re: (no subject) (Rory Walsh) 3. Re: (no subject) (Jonathan Winterflood) 4. Compile library - linking error (warbad celvinc) 5. Gettimeofday in dev-c++ (barreto) 6. Re: Gettimeofday in dev-c++ (Per Westermark) 7. Re: Dev-cpp-users Digest, Vol 12, Issue 11 (MOHAMMED SEIDU) ---------------------------------------------------------------------- Message: 1 Date: Sun, 27 May 2007 10:56:05 +0000 From: "hhh hhh" Subject: [Dev-C++] (no subject) To: dev...@li... Message-ID: Content-Type: text/plain; charset=iso-8859-1; format=flowed Estimeed dev...@li... : Hi people... I was hoping that you could point me some guidance. I want to write a little app that captures images and video from my web cam, but i can't seem to find any useful sources, as they are all strangely written, like private use code. So, if u please could help me out, I would be very much appreciated _________________________________________________________________ Fazer um telefonema para o PC de um amigo n?o custa nada. ? gr?tis! http://get.live.com/pt-pt/messenger/overview ------------------------------ Message: 2 Date: Sun, 27 May 2007 18:08:33 +0100 From: Rory Walsh Subject: Re: [Dev-C++] (no subject) To: hhh hhh Cc: dev...@li... Message-ID: <465...@ea...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I have done this using the windows API but it was a long time ago and that code is long gone. Try doing a search for 'Video Capture Functions win32' in google and you should find plenty of useful info. You could also try using directx which also has certain functions to capturing video. Best of luck with it. Rory. hhh hhh wrote: > Estimeed dev...@li... : > > Hi people... I was hoping that you could point me some guidance. I want to > write a little app that captures images and video from my web cam, but i > can't seem to find any useful sources, as they are all strangely written, > like private use code. > So, if u please could help me out, I would be very much appreciated > > _________________________________________________________________ > Fazer um telefonema para o PC de um amigo n?o custa nada. ? gr?tis! > http://get.live.com/pt-pt/messenger/overview > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > ------------------------------ Message: 3 Date: Sun, 27 May 2007 19:22:16 +0200 From: "Jonathan Winterflood" Subject: Re: [Dev-C++] (no subject) To: "Rory Walsh" Cc: dev...@li..., hhh hhh Message-ID: Content-Type: text/plain; charset="iso-8859-1" You could try looking into the Virtualdub capture mode code: it supports windows' video capture interface. http://www.virtualdub.org Jonathan On 5/27/07, Rory Walsh wrote: > > I have done this using the windows API but it was a long time ago and > that code is long gone. Try doing a search for 'Video Capture Functions > win32' in google and you should find plenty of useful info. You could > also try using directx which also has certain functions to capturing > video. Best of luck with it. > > Rory. > > hhh hhh wrote: > > Estimeed dev...@li... : > > > > Hi people... I was hoping that you could point me some guidance. I > want to > > write a little app that captures images and video from my web cam, but i > > can't seem to find any useful sources, as they are all strangely > written, > > like private use code. > > So, if u please could help me out, I would be very much appreciated > > > > _________________________________________________________________ > > Fazer um telefonema para o PC de um amigo n?o custa nada. ? gr?tis! > > http://get.live.com/pt-pt/messenger/overview > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > -- linux, c'est une question de VI ou de MORE -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Tue, 29 May 2007 22:24:26 +0000 (GMT) From: warbad celvinc Subject: [Dev-C++] Compile library - linking error To: dev...@li... Message-ID: <470...@we...> Content-Type: text/plain; charset=ascii Hello all, I'm currently trying to compile a library from my own, with actually only one function which call a system call (the rest of the files are not shown here): DLLIMPORT void DumpNetConnection (void) { LPHANDLE net; WnetOpenEnum(RESOURCE_CONNECTED, RESOURCETYPE_ANY, 0, NULL, net); return; } However, i have the follwing error at compile time : dllwrap.exe --output-def libMyLib.def --implib libMyLib.a dllmain.o -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias C:/Dev-Cpp/lib/libmpr.a -g3 -o MyLib.dll dllmain.o(.text+0x2d): In function `DumpNetConnection': D:/sources/MyLib/dllmain.c:13: undefined reference to `WnetOpenEnum' What goes wrong ? I linked to the correct library in project parameter. Thank's for any help. _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail ------------------------------ Message: 5 Date: Wed, 30 May 2007 17:52:44 -0300 From: "barreto" Subject: [Dev-C++] Gettimeofday in dev-c++ To: Message-ID: <00aa01c7a2fc$788c08d0$17040a0a@LAPDELL> Content-Type: text/plain; charset="iso-8859-1" Hi all. Is there any example of how to use gettimeofday() similar functions to manage time in Dev-C++? Thanks. |---------------------------------------| | Prof. Marcos Ennes Barreto | Coordenador - Computa??o | Centro Universit?rio La Salle | www.inf.unilasalle.edu.br/~barreto | barreto at unilasalle dot edu dot br |---------------------------------------| No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 29/5/2007 13:01 ------------------------------ Message: 6 Date: Thu, 31 May 2007 00:16:35 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] Gettimeofday in dev-c++ To: barreto Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Check out the gnu documentation. It contains all information needed to use the GNU-based runtime library. You can also check out the documentation available on the MinGW site. Or you can just google gettimeofday() - it's a standard function, so you will get a lot of good hits. /pwm On Wed, 30 May 2007, barreto wrote: > > Hi all. > > Is there any example of how to use gettimeofday() similar functions to > manage time in Dev-C++? > > Thanks. > |---------------------------------------| > | Prof. Marcos Ennes Barreto > | Coordenador - Computa??o > | Centro Universit?rio La Salle > | www.inf.unilasalle.edu.br/~barreto > | barreto at unilasalle dot edu dot br > |---------------------------------------| > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 29/5/2007 > 13:01 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > ------------------------------ Message: 7 Date: Thu, 31 May 2007 05:51:31 -0700 (PDT) From: MOHAMMED SEIDU Subject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 12, Issue 11 To: dev...@li... Message-ID: <215...@we...> Content-Type: text/plain; charset="iso-8859-1" Hi Everyone, I need help regarding writing c++ application that either starts up when windows is started or runs at the background whiles windows runs using the Dev-C++ ide. dev...@li... wrote:Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.ncet/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. Re: Dev-cpp-users Digest, Vol 12, Issue 9 (Luis Alfonso Giraldo) 2. Re: Dev-cpp-users Digest, Vol 12, Issue 9 (Per Westermark) 3. memory leak! (Lloyd) 4. Re: memory leak! (Jonathan Winterflood) 5. Re: memory leak! (Lloyd) 6. Re: memory leak! (Per Westermark) ---------------------------------------------------------------------- Message: 1 Date: Wed, 23 May 2007 23:21:37 -0500 From: "Luis Alfonso Giraldo" Subject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 12, Issue 9 To: Message-ID: <200...@sm...> Content-Type: text/plain; charset="iso-8859-1" Hi, Please, I need code of sparse Matriz in C++: M?thods: 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac?a 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est? vac?a 3. getNumberOfRows(DisperseMatrix): Indica el n?mero de filas de la Matriz Dispersa 4. getNumberOfColumns(DisperseMatrix): Indica el n?mero de columnas de la Matriz Dispersa 5. getNumberOfElements(DisperseMatrix): Indica el n?mero de elementos existentes en la Matriz Dispersa 6. printMatrix(DisperseMatrix): Imprime la matriz por filas 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un archivo (Guardar) 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los predecesores en la fila a insertar. 9. makeNode(object, nF, nC): Crea un nodo. 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los predecesores en la columna a insertar. 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en la fila y columna indicada. 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor almacenado en la fila y columna indicado. Si no existe devuelve 0. 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos almacenados. 14. getMaxElements(DisperseMatrix): Indica el n?mero m?ximo de elementos que pueden ser almacenados en la matriz. 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en DisperseMatrix1 el resultado de sumar las dos matrices. 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz resultante de multiplicar cada posici?n existente por valor. 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, DisperseMatrix3): Retorna en DisperseMatrix3 el resultante de multiplicar las matrices DisperseMatrix1 y DisperseMatrix2(en ese orden). Thanks and excuse me :( Luis Alfonso Colombia ------------------------------ Message: 2 Date: Thu, 24 May 2007 07:34:19 +0200 (CEST) From: Per Westermark Subject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 12, Issue 9 To: Luis Alfonso Giraldo Cc: dev...@li... Message-ID: Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Is this part of a school work? If your list is part of an existing library, Google should find the code. If it is part of a school assignment, you better start coding. /pwm On Wed, 23 May 2007, Luis Alfonso Giraldo wrote: > Hi, > > > Please, I need code of sparse Matriz in C++: > M?thods: > 1. MakeDisperseMatrix(nF, nC): Matriz Dispersa vac?a > 2. isEmpty(DisperseMatrix): Decide si la Matriz Dispersa est? vac?a > 3. getNumberOfRows(DisperseMatrix): Indica el n?mero de filas de la Matriz > Dispersa > 4. getNumberOfColumns(DisperseMatrix): Indica el n?mero de columnas de la > Matriz Dispersa > 5. getNumberOfElements(DisperseMatrix): Indica el n?mero de elementos > existentes en la Matriz Dispersa > 6. printMatrix(DisperseMatrix): Imprime la matriz por filas > 7. printMatrizInFile(DisperseMatrix, File): Imprime la matriz en un archivo > (Guardar) > 8. getRowOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a los > predecesores en la fila a insertar. > 9. makeNode(object, nF, nC): Crea un nodo. > 10. getColumnOfInsertion(DisperseMatrix, nF, nC): Retorna una referencia a > los predecesores en la columna a insertar. > 11. InsertInMatriz(DisperseMatrix, nF, nC, object): Inserta "object" en la > fila y columna indicada. > 12. getValuePosition(DisperseMatrix, nF, nC): Retorna el valor almacenado en > la fila y columna indicado. Si no existe devuelve 0. > 13. getPorcentUsed(DisperseMatrix): Indica el porcentaje de elementos > almacenados. > 14. getMaxElements(DisperseMatrix): Indica el n?mero m?ximo de elementos que > pueden ser almacenados en la matriz. > 15. addDisperseMatrix(DisperseMatrix1, DisperseMatrix2): Devuelve en > DisperseMatrix1 el resultado de sumar las dos matrices. > 16. scaleDisperseMatrix(DisperseMatrix, valor): Retorna la matriz resultante > de multiplicar cada posici?n existente por valor. > 17. multDisperseMatrix (DisperseMatrix1,DisperseMatrix2, DisperseMatrix3): > Retorna en DisperseMatrix3 el resultante de multiplicar las matrices > DisperseMatrix1 y DisperseMatrix2(en ese orden). > > Thanks and excuse me :( > > Luis Alfonso > Colombia > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > ------------------------------ Message: 3 Date: Thu, 24 May 2007 11:24:16 +0530 From: Lloyd Subject: [Dev-C++] memory leak! To: dev...@li... Message-ID: <1179986056.9291.6.camel@RCCF025> Content-Type: text/plain Hi, I have written a program in Linux. It opens a file and maps it to memory using mmap and unmaps and closes the file. I am using a custom written data structure as well in the program. There is no leak associated with the data structure. But some ware a big leak is present. (I dont know where) I assume it could be with mmap and munmap... Because as I open more and more files, the leak gradually increases to megabytes! but for each mam,p the munmap is called correspondingly. And the range which I give to unmap is correct. Where could be the source of problem? Even after the program exit the memory consumption remains same (not reducted to the program startup state). I see this with the aid of system monitoring tool.. please help me... Thanks and Regards, Lloyd ______________________________________ Scanned and protected by Email scanner ------------------------------ Message: 4 Date: Fri, 25 May 2007 08:28:29 +0200 From: "Jonathan Winterflood" Subject: Re: [Dev-C++] memory leak! To: ll...@cd... Cc: dev...@li... Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Maybe you should use valgrind to test your program for leaks (compiling with debugging symbols should help you get a digestable log) Jonathan On 5/24/07, Lloyd wrote: > > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps and closes > the file. I am using a custom written data structure as well in the > program. There is no leak associated with the data structure. But some > ware a big leak is present. (I dont know where) I assume it could be > with mmap and munmap... Because as I open more and more files, the leak > gradually increases to megabytes! but for each mam,p the munmap is > called correspondingly. And the range which I give to unmap is correct. > > Where could be the source of problem? Even after the program exit the > memory consumption remains same (not reducted to the program startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 > -- linux, c'est une question de VI ou de MORE -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Fri, 25 May 2007 12:27:15 +0530 From: Lloyd Subject: Re: [Dev-C++] memory leak! To: dev...@li... Message-ID: <1180076235.12168.5.camel@RCCF025> Content-Type: text/plain Thank you Jonathan. I tried using valgrind, but my program uses wxWidgets (a GUI library). The out put of valgrind is unreadable and not understandable for me :( It shows lots of lines as output When I executed my program more and more, at the first stages (first few === message truncated === --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. |