dev-cpp-users Mailing List for Dev-C++
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
1
|
2
(1) |
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
(2) |
12
|
13
(2) |
14
|
15
(3) |
16
|
17
(3) |
18
|
19
|
20
|
21
(1) |
22
(1) |
23
(2) |
24
(2) |
25
|
26
|
27
|
28
|
29
(1) |
30
|
|
|
|
|
From: sam R. <as...@ya...> - 2008-09-29 19:06:16
|
Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java? Thank you |
From: hhh h. <the...@ho...> - 2008-09-24 19:59:55
|
You should try to read more. Even though, I'll give you a hint findfirst(), findnext(), findclose() For windows, http://msdn.microsoft.com/en-us/library/zyzxfzac(VS.80).aspx > Date: Wed, 24 Sep 2008 10:13:36 -0300 > From: sup...@gm... > To: dev...@li... > Subject: [Dev-C++] Search for file with an specific extension > > Hello all! > > I need to create a procedure that is a loop for searching files with a > specific extension. > > For example, when starting the program, in the main function, it > enters in a loop for searching files with a specific extension. When > finding one, it calls a procedure that read this file and after > collecting its content, the file is deleted. > > My problem is, I do not know how to access the directory (actually is > the same where my program is) and search for files with an extension > ".inf", for example. > > I appreciate any help :) > > Thanks in advance, > > Ricardo. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 _________________________________________________________________ Confira vídeos com notícias do NY Times, gols direto do Lance, videocassetadas e muito mais no MSN Video! http://video.msn.com/?mkt=pt-br |
From: Ricardo S. <sup...@gm...> - 2008-09-24 13:13:42
|
Hello all! I need to create a procedure that is a loop for searching files with a specific extension. For example, when starting the program, in the main function, it enters in a loop for searching files with a specific extension. When finding one, it calls a procedure that read this file and after collecting its content, the file is deleted. My problem is, I do not know how to access the directory (actually is the same where my program is) and search for files with an extension ".inf", for example. I appreciate any help :) Thanks in advance, Ricardo. |
From: seb_kramm <seb...@ya...> - 2008-09-23 14:28:23
|
Well, Tom qian han, maybe you could tell us more about the error ? What's the full message ? qian han a écrit : > Dear All, > > The attached program compiled successfully in Visual Studio but has a > linking error with Dev. > Can anybody help checking what goes wrong? Thanks a lot! > > Tom |
From: <ma...@in...> - 2008-09-23 12:50:28
|
On Tuesday 23 Sep 2008 5:40:32 pm 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. Pointer and vector (Ricardo Schmidt) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 22 Sep 2008 14:55:55 -0300 > From: "Ricardo Schmidt" <sup...@gm...> > Subject: [Dev-C++] Pointer and vector > To: dev...@li... > Message-ID: > <db9...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello all, > > I am having a little problem that is turning me crazy!!! > > Well, I declared a hash table ht, using std::map, with a key of type > string, and content of type a vector of string: > sdt::map<string, vector<string>*> ht; > > > After inserting values into ht, I want to access the records. So, to > access the data I have the key and I found the its respective line in > ht. I did the following: > > std::map<string, vector<string>* >::iterator temp; //temporary structure > temp = ht.find(id); > > > Now, I want to access the data that is inside the vector that is the > second element in my hash table. I've been trying many ways to do > this, but without success. One of the ways I tried is the following: > > vector<string> data; //vector to store the data from the hash table > data.at(0) = temp->second->at(0); > > Try something like this. vector<string> ::iterator tmp = ht->second.begin(); while(tmp!=ht->second.end()){ std::cout<<*tmp; tmp++; } > It returns me an error like: > > terminate called after throwing an instance of 'std::out_of_range' > what(): vector::_M_range_check > > > Does anybody know what could be the problem here?! > > Thanks in advance for any help. > > Ricardo. > > > > ------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ------------------------------ > > _______________________________________________ > 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, Vol 28, Issue 5 > ******************************************** -- ---------------------------------------------------------------------------- Regards Mayank Jain Nawal ma...@in... http://www.niksun.com Tel: +91 9818390836 +91 124-2316012(109) |
From: Ricardo S. <sup...@gm...> - 2008-09-22 17:56:07
|
Hello all, I am having a little problem that is turning me crazy!!! Well, I declared a hash table ht, using std::map, with a key of type string, and content of type a vector of string: sdt::map<string, vector<string>*> ht; After inserting values into ht, I want to access the records. So, to access the data I have the key and I found the its respective line in ht. I did the following: std::map<string, vector<string>* >::iterator temp; //temporary structure temp = ht.find(id); Now, I want to access the data that is inside the vector that is the second element in my hash table. I've been trying many ways to do this, but without success. One of the ways I tried is the following: vector<string> data; //vector to store the data from the hash table data.at(0) = temp->second->at(0); It returns me an error like: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Does anybody know what could be the problem here?! Thanks in advance for any help. Ricardo. |
From: qian h. <ha...@gm...> - 2008-09-21 23:14:11
|
class DeckOfCards { public: DeckOfCards(); // constructor initializes deck void shuffle(); // member function that shuffles cards in deck void deal(); // member function that deals cards in deck private: int deck[3][14]; // represents deck of cards }; // end of class definition |
From: Per W. <pw...@ia...> - 2008-09-17 06:37:34
|
No, Wine was one alternative where a Linux machine could use DLL files. My example with a Linux program using Windows codecs was another reference where Windows DLL files are used on a Linux machine. One example is the XBMP (XBox Media Player): http://en.wikipedia.org/wiki/Xbox_Media_Player /pwm On Wed, 17 Sep 2008, hhh hhh wrote: > > Sorry, I missed your point, isn't Wine a Windows Emulator of some sort? Why would someone need to "link" a dll to a process that uses Linux code ( as the original poster said ) inside a windows emulator? > You kinda lost me there pwm. > > Refering to the media players that read win codecs... well, as I said, it *is* possible. But as I also said, its doubtfull that the code is as smooth one. > The aformention media player has to resolve many things in process, when linking to the DLL. Even if the module dll is implicitly linked to the process, it still loses much to a native format ( *.so ) that has all the dragging parser code and resolver code done by the OS. > I do not want to deny your claim, but I do not see the point in a media player ( A good one, at that ) to use this techniquee. > > > Anyway, apart from diferent technical views, Yes you are right, when one does not have all the needed information, it is hard to anyone to help in a significant way. > > > > Date: Sat, 13 Sep 2008 13:17:38 +0200 > > From: pw...@ia... > > To: the...@ho... > > CC: fre...@gm...; dev...@li... > > Subject: Re: [Dev-C++] dll / linux > > > > And then there is Wine. > > > > By the way - there are a couple of media players that are making use of > > Windows DLL files just to be able to use Windows codecs. > > > > But in this case, the bit problem is that the post is just a request for > > using a dll file, without any motivation why. Because of knowing that a > > dll file is the Windows name for the concept while actually intending to > > use a *.so dynamic library? Because the dll file contains important > > functions to use? Because the dll is supposed to contain important > > functions, but the functions already existing for Linux, if we just knew > > what the dll does? > > > > It is always hard - often impossible - to help someone who are not ready > > to write a lot of information about the what and the why. > > > > /pwm > > > > _________________________________________________________________ > Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! > http://www.msn.com.br/emoticonpack |
From: hhh h. <the...@ho...> - 2008-09-17 06:25:32
|
Sorry, I missed your point, isn't Wine a Windows Emulator of some sort? Why would someone need to "link" a dll to a process that uses Linux code ( as the original poster said ) inside a windows emulator? You kinda lost me there pwm. Refering to the media players that read win codecs... well, as I said, it *is* possible. But as I also said, its doubtfull that the code is as smooth one. The aformention media player has to resolve many things in process, when linking to the DLL. Even if the module dll is implicitly linked to the process, it still loses much to a native format ( *.so ) that has all the dragging parser code and resolver code done by the OS. I do not want to deny your claim, but I do not see the point in a media player ( A good one, at that ) to use this techniquee. Anyway, apart from diferent technical views, Yes you are right, when one does not have all the needed information, it is hard to anyone to help in a significant way. > Date: Sat, 13 Sep 2008 13:17:38 +0200 > From: pw...@ia... > To: the...@ho... > CC: fre...@gm...; dev...@li... > Subject: Re: [Dev-C++] dll / linux > > And then there is Wine. > > By the way - there are a couple of media players that are making use of > Windows DLL files just to be able to use Windows codecs. > > But in this case, the bit problem is that the post is just a request for > using a dll file, without any motivation why. Because of knowing that a > dll file is the Windows name for the concept while actually intending to > use a *.so dynamic library? Because the dll file contains important > functions to use? Because the dll is supposed to contain important > functions, but the functions already existing for Linux, if we just knew > what the dll does? > > It is always hard - often impossible - to help someone who are not ready > to write a lot of information about the what and the why. > > /pwm > _________________________________________________________________ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack |
From: hhh h. <the...@ho...> - 2008-09-17 06:08:02
|
Well, if I got your message right, I guess this will help you... http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#ipaddr And please note, the IP 1.2.3.4 is converted to a 4-byte value, in Big Endian, using this functions... > From: ll...@cd... > To: pw...@ia...; dev...@li... > Date: Tue, 16 Sep 2008 09:39:01 +0530 > Subject: Re: [Dev-C++] initializing string with memory buffer > > I think my explanation was not clear.I was not talking about the memory > representation of "1.2.3.4", but how the system will store IP. The > system stores an IP address in 4bytes.(As in IPv4 header). I want to > make the string representation of this 4bytes. Think now I made it > clear. > > Thanks, > Lloyd > > On Mon, 2008-09-15 at 22:20 +0200, Per Westermark wrote: > > That is not a string. > > > > A string representation of the IP number should have "1.2.3.4" or in > > binary: > > 0x31 > > 0x2e > > 0x32 > > 0x2e > > 0x33 > > 0x2e > > 0x34 > > 0x00 > > > > /pwm > > > > On Mon, 15 Sep 2008, Lloyd wrote: > > > > > Hi, > > > > > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > > > So its memory will be 0x01020304. I want to initialise a string with > > > this memory. How can I do this? > > > > > > > > > > > > int ip=0x01020304; > > > string s(<I dont know how to fill this area>); > > > > > > so that > > > > > > s[0]=0x01; > > > s[1]=0x02; > > > s[2]=0x03; > > > s[3]=0x04; > > > > > > Thanks, > > > Lloyd > > > > > > > > > > > > > > > ______________________________________ > > > Scanned and protected by Email scanner > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > 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 > > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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 _________________________________________________________________ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! http://www.msn.com.br/emoticonpack |
From: Lloyd <ll...@cd...> - 2008-09-15 21:04:28
|
I think my explanation was not clear.I was not talking about the memory representation of "1.2.3.4", but how the system will store IP. The system stores an IP address in 4bytes.(As in IPv4 header). I want to make the string representation of this 4bytes. Think now I made it clear. Thanks, Lloyd On Mon, 2008-09-15 at 22:20 +0200, Per Westermark wrote: > That is not a string. > > A string representation of the IP number should have "1.2.3.4" or in > binary: > 0x31 > 0x2e > 0x32 > 0x2e > 0x33 > 0x2e > 0x34 > 0x00 > > /pwm > > On Mon, 15 Sep 2008, Lloyd wrote: > > > Hi, > > > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > > So its memory will be 0x01020304. I want to initialise a string with > > this memory. How can I do this? > > > > > > > > int ip=0x01020304; > > string s(<I dont know how to fill this area>); > > > > so that > > > > s[0]=0x01; > > s[1]=0x02; > > s[2]=0x03; > > s[3]=0x04; > > > > Thanks, > > Lloyd > > > > > > > > > > ______________________________________ > > Scanned and protected by Email scanner > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > 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 > > ______________________________________ Scanned and protected by Email scanner |
From: Lloyd <ll...@cd...> - 2008-09-15 13:54:20
|
Hi, I am using C++ STL string. I have an IP address something like 1.2.3.4 So its memory will be 0x01020304. I want to initialise a string with this memory. How can I do this? int ip=0x01020304; string s(<I dont know how to fill this area>); so that s[0]=0x01; s[1]=0x02; s[2]=0x03; s[3]=0x04; Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Per W. <pw...@ia...> - 2008-09-15 13:20:42
|
That is not a string. A string representation of the IP number should have "1.2.3.4" or in binary: 0x31 0x2e 0x32 0x2e 0x33 0x2e 0x34 0x00 /pwm On Mon, 15 Sep 2008, Lloyd wrote: > Hi, > > I am using C++ STL string. I have an IP address something like 1.2.3.4 > So its memory will be 0x01020304. I want to initialise a string with > this memory. How can I do this? > > > > int ip=0x01020304; > string s(<I dont know how to fill this area>); > > so that > > s[0]=0x01; > s[1]=0x02; > s[2]=0x03; > s[3]=0x04; > > Thanks, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > 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...> - 2008-09-13 11:17:58
|
And then there is Wine. By the way - there are a couple of media players that are making use of Windows DLL files just to be able to use Windows codecs. But in this case, the bit problem is that the post is just a request for using a dll file, without any motivation why. Because of knowing that a dll file is the Windows name for the concept while actually intending to use a *.so dynamic library? Because the dll file contains important functions to use? Because the dll is supposed to contain important functions, but the functions already existing for Linux, if we just knew what the dll does? It is always hard - often impossible - to help someone who are not ready to write a lot of information about the what and the why. /pwm |
From: hhh h. <the...@ho...> - 2008-09-13 10:26:40
|
Hello, I'll assume that you know that nealy all functions inside a DLL use Windows API, an that Windows API is not supported in Linux kernel. Bear in mind that even if you have the source code, and it has known functions... ( e.g.: malloc()... ) in the compiled version, the result.dll, the malloc call is assembled into the windows-spefic malloc implementation, that calls a function like _mzAlloc (or something like that), that actually performs all the mem allocation tasks. Obviosly, linux kernel malloc implementation( compiled version) probably will not have the same function name and other aspects ( reside on the same address, uses the same number of args, etc, etc ). So, assuming you considered the above and the code that resides in the .DLL is a very simple one, you *can* parse the header, load the symbol table, resolve it, load it to a buffer, witch allows you to execute code, and "jmp" to that location. It is... very hard work, and even if you can do it, the code in the dll, must be very simple( even function calls inside the parsed come, must be in the same calling covention to execute right... and you'll have to resolve the code address all hiover again). I would not bother without a very good reason... mind you, even if you pull this off, it'll be a hogger of a code.... Date: Thu, 11 Sep 2008 18:32:59 -0300From: fre...@gm...To: dev...@li...Subject: [Dev-C++] dll / linux Hello,I need import some functions of a .dll on linux. I using kernel 2.6.24, Ubuntu 8.04 server edition.tanks _________________________________________________________________ Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile! http://mobile.live.com/signup/signup2.aspx?lc=pt-br |
From: Chris M. <lor...@gm...> - 2008-09-11 21:56:03
|
On Sep 11, 2008, at 2:32 PM, frederico schardong wrote: > Hello, > > I need import some functions of a .dll on linux. I using kernel > 2.6.24, Ubuntu 8.04 server edition. Linux doesn't use DLL files. You will want a .so file instead, or cross-compile to a .so file. Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |
From: frederico s. <fre...@gm...> - 2008-09-11 21:33:06
|
Hello, I need import some functions of a .dll on linux. I using kernel 2.6.24, Ubuntu 8.04 server edition. tanks |
From: Al W. <86...@go...> - 2008-09-02 09:38:10
|
Hi: Hi Community, I habe written a small program which works fine, by printing the results to the screen . Having taken a look at the MS XP developers helpside, I have now modified the C++ code as follows: { fprintf(stdprn, " 9bB 6dB 3dB 0dB\n"); fprintf(stdprn, " freq dB | | | | \n"); } but to now avail, would you be able to offer a solution, which can be implemented without using the full windows API ? Your help is much appreciated and all comments are welcome. Kind regards Al: |