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) |
2
(5) |
3
(3) |
4
(6) |
5
(9) |
6
(2) |
7
(2) |
8
|
9
|
10
(1) |
11
(1) |
12
(1) |
13
(2) |
14
|
15
|
16
(4) |
17
|
18
|
19
(1) |
20
|
21
|
22
|
23
|
24
(4) |
25
|
26
(6) |
27
|
28
(1) |
29
(1) |
30
|
|
|
|
|
|
From: Per W. <pw...@ia...> - 2007-04-29 10:55:51
|
You have to give more information about your problem. What are the exact errror message you get from the linker? What do the link command look like? Note that Dev-C++ normally uses Unix-style naming for libraries, i.e. a library libxx.a is specified as -lxx in the project. /pwm On Sat, 28 Apr 2007 k.a...@at... wrote: > I found source codes for pong which I would love to program. I am using Dev C++ 4.9,9, the program calls for allegro library. I downloaded allegro into my Dev-cpp directory and when I try to compile the source codes my compiler keeps telling me no such file. > > I am new to this group and am a beginner programmer (over time I have used codes for certain things but have never programed anything useful) and new to Dev C++. > > Can someone help me out. > > K.A. Elia |
From: <k.a...@at...> - 2007-04-28 19:04:50
|
I found source codes for pong which I would love to program. I am using Dev C++ 4.9,9, the program calls for allegro library. I downloaded allegro into my Dev-cpp directory and when I try to compile the source codes my compiler keeps telling me no such file. I am new to this group and am a beginner programmer (over time I have used codes for certain things but have never programed anything useful) and new to Dev C++. Can someone help me out. K.A. Elia |
From: Thymian <Th...@gm...> - 2007-04-26 15:00:51
|
Additional to the answer of Per Westermark you could take a look to this Wikipedia article for a better / deeper understanding of the coherences of UTF along with operating systems, editors, e-mails, web, fonts, storage, converters and ... a lot more: http://en.wikipedia.org/wiki/Unicode Gruß, Werner Kitzmann Duong Ha Nguyen schrieb: > Hi Adrian, thank you for answering my question! > > I understand your answer. I tried to do as you said but I don't know > how to type Unicode characters in Dev-C++ IDE. When I typed "ư", it > displayed "?". Can you tell me how to solve it? > > I tried to convert Unicode characters to ANSI using native2ascii.exe > (as I said at my first mail) but the displayed characters were not > what I wanted. I think maybe there was some problems with the fonts. > Can you tell me how to solve it? > > Thanks in advance, > > 2007/4/25, adrian <ad...@la... <mailto:ad...@la...>>: > > Have a nice day, nha...@gm... <mailto:nha...@gm...>! > You, "Duong Ha Nguyen" <mailto:nha...@gm... > <mailto:nha...@gm...>> wrote: > > > >Hello everyone, > >I'm using Dev-C++ 4.9.9.2 <http://4.9.9.2> to write Windows > application. I would like to > >write program using Unicode encoding. I tried to use native2ascii to > >translate Unicode source code to ANSI, but it didn't display > exactly what I > >want. Can someone tell me how to write Windows programs with > Unicode in > >Dev-C++? > >Thanks in advance. > > > > > WinAPI has a two function for straight working with Unicode strings: > - MultiByteToWideChar(...) - for encoding ANSI strings in Unicode, > and > - WideCharToMultiByte(...) - for decoding Unicode to ANSI > > Also you can use TCHAR type for unvisible translating, for example: > > #include <windows.h> > #include <stdio.h> > #ifndef UNICODE > #define UNICODE > ... > TCHAR *s; > scanf ("%s", s); > printf("%s\n", s); > ... > #endif //UNICODE > > if you define UNICODE then > typedef wchar_t TCHAR, > else > typedef char TCHAR; also defined functions, working with this type > (for more see MSDN and tchar.h file) > > > Sincerely, Churin. > > P.S. Excuse me for my bad english - it's not my native language. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > |
From: Per W. <pw...@ia...> - 2007-04-26 14:27:05
|
First of all: 16-bit numbers requires 4 hex characters. 32-bit numbers requires 8 hex characters. 64-bit numbers requires 16 hex characters. Either you are not generating 64-bit numbers, or you are using the wrong with in the formatting string. Second, the MinGW tool uses parts of M$ libraries, i.e. 64-bit numbers are emitted using %I64d/%I64u/%I64x. You are specifying %lX, which represents long integers. For a 32-bit compiler, long is normally also 32-bit (same as int), and to get 64-bit numbers you normally have to write long long, or __int64. Third: For such a trivial set of numbers - only 15000 - duplicates are trivially counted by allocating an array to hold all generated numbers. Then sort the array, and walk through it to count number of instances of each generated value. /pwm On Thu, 26 Apr 2007, Pablo Itaim A. wrote: > Hi, > > I'm working with an application that generate N (1<N<15000) 64 bits numbers in hexadecimal format (%08lX - %08lX) and save it in a .txt file. Some numbers repeats more than ones, so my problem is that i want to know which of the numbers in the file repeats most and how many times. > > Can someboby help me? > > Thank you > > Best regards > > Pablo > |
From: Pablo I. A. <rig...@ho...> - 2007-04-26 13:43:55
|
Hi,=20 I'm working with an application that generate N (1<N<15000) 64 bits = numbers in hexadecimal format (%08lX - %08lX) and save it in a .txt = file. Some numbers repeats more than ones, so my problem is that i want = to know which of the numbers in the file repeats most and how many = times. Can someboby help me? Thank you Best regards Pablo |
From: Per W. <pw...@ia...> - 2007-04-26 13:00:26
|
There are windows API calls to convert between Unicode and MBCS (MultiByte Character Set). You can _never_ convert unicode to ANSI (other than for the characters that fit in the ANSI character set). You want to use a Unicode-compatible editor, i.e. an editor that checks if there are a magic marker in the beginning of the file to inform that the file is not ASCII (or ANSI or whatever single-byte format) but either UTF8 or UTF16. /pwm On Thu, 26 Apr 2007, Duong Ha Nguyen wrote: > Hi Adrian, thank you for answering my question! > > I understand your answer. I tried to do as you said but I don't know how = to > type Unicode characters in Dev-C++ IDE. When I typed "=C6=B0", it display= ed "?". > Can you tell me how to solve it? > > I tried to convert Unicode characters to ANSI using native2ascii.exe (as = I > said at my first mail) but the displayed characters were not what I wante= d. > I think maybe there was some problems with the fonts. Can you tell me how= to > solve it? > > Thanks in advance, > > 2007/4/25, adrian <ad...@la...>: > > > > Have a nice day, nha...@gm...! > > You, "Duong Ha Nguyen" <mailto:nha...@gm...> wrote: > > > > > > >Hello everyone, > > >I'm using Dev-C++ 4.9.9.2 to write Windows application. I would like t= o > > >write program using Unicode encoding. I tried to use native2ascii to > > >translate Unicode source code to ANSI, but it didn't display exactly w= hat > > I > > >want. Can someone tell me how to write Windows programs with Unicode i= n > > >Dev-C++? > > >Thanks in advance. > > > > > > > > WinAPI has a two function for straight working with Unicode strings: > > - MultiByteToWideChar(...) - for encoding ANSI strings in Unicode, and > > - WideCharToMultiByte(...) - for decoding Unicode to ANSI > > > > Also you can use TCHAR type for unvisible translating, for example: > > > > #include <windows.h> > > #include <stdio.h> > > #ifndef UNICODE > > #define UNICODE > > ... > > TCHAR *s; > > scanf ("%s", s); > > printf("%s\n", s); > > ... > > #endif //UNICODE > > > > if you define UNICODE then > > typedef wchar_t TCHAR, > > else > > typedef char TCHAR; also defined functions, working with this type (for > > more see MSDN and tchar.h file) > > > > > > Sincerely, Churin. > > > > P.S. Excuse me for my bad english - it's not my native language. > > > > > > > |
From: Duong Ha N. <nha...@gm...> - 2007-04-26 11:28:07
|
SGkgQWRyaWFuLCB0aGFuayB5b3UgZm9yIGFuc3dlcmluZyBteSBxdWVzdGlvbiEKCkkgdW5kZXJz dGFuZCB5b3VyIGFuc3dlci4gSSB0cmllZCB0byBkbyBhcyB5b3Ugc2FpZCBidXQgSSBkb24ndCBr bm93IGhvdyB0bwp0eXBlIFVuaWNvZGUgY2hhcmFjdGVycyBpbiBEZXYtQysrIElERS4gV2hlbiBJ IHR5cGVkICLGsCIsIGl0IGRpc3BsYXllZCAiPyIuCkNhbiB5b3UgdGVsbCBtZSBob3cgdG8gc29s dmUgaXQ/CgpJIHRyaWVkIHRvIGNvbnZlcnQgVW5pY29kZSBjaGFyYWN0ZXJzIHRvIEFOU0kgdXNp bmcgbmF0aXZlMmFzY2lpLmV4ZSAoYXMgSQpzYWlkIGF0IG15IGZpcnN0IG1haWwpIGJ1dCB0aGUg ZGlzcGxheWVkIGNoYXJhY3RlcnMgd2VyZSBub3Qgd2hhdCBJIHdhbnRlZC4KSSB0aGluayBtYXli ZSB0aGVyZSB3YXMgc29tZSBwcm9ibGVtcyB3aXRoIHRoZSBmb250cy4gQ2FuIHlvdSB0ZWxsIG1l IGhvdyB0bwpzb2x2ZSBpdD8KClRoYW5rcyBpbiBhZHZhbmNlLAoKMjAwNy80LzI1LCBhZHJpYW4g PGFkcmlhbkBsYW1pbmFyLnJ1PjoKPgo+IEhhdmUgYSBuaWNlIGRheSwgbmhhLmR1b25nQGdtYWls LmNvbSEKPiBZb3UsICJEdW9uZyBIYSBOZ3V5ZW4iIDxtYWlsdG86bmhhLmR1b25nQGdtYWlsLmNv bT4gd3JvdGU6Cj4KPgo+ID5IZWxsbyBldmVyeW9uZSwKPiA+SSdtIHVzaW5nIERldi1DKysgNC45 LjkuMiB0byB3cml0ZSBXaW5kb3dzIGFwcGxpY2F0aW9uLiBJIHdvdWxkIGxpa2UgdG8KPiA+d3Jp dGUgcHJvZ3JhbSB1c2luZyBVbmljb2RlIGVuY29kaW5nLiBJIHRyaWVkIHRvIHVzZSBuYXRpdmUy YXNjaWkgdG8KPiA+dHJhbnNsYXRlIFVuaWNvZGUgc291cmNlIGNvZGUgdG8gQU5TSSwgYnV0IGl0 IGRpZG4ndCBkaXNwbGF5IGV4YWN0bHkgd2hhdAo+IEkKPiA+d2FudC4gQ2FuIHNvbWVvbmUgdGVs bCBtZSBob3cgdG8gd3JpdGUgV2luZG93cyBwcm9ncmFtcyB3aXRoIFVuaWNvZGUgaW4KPiA+RGV2 LUMrKz8KPiA+VGhhbmtzIGluIGFkdmFuY2UuCj4gPgo+ID4KPiBXaW5BUEkgaGFzIGEgdHdvIGZ1 bmN0aW9uIGZvciBzdHJhaWdodCB3b3JraW5nIHdpdGggVW5pY29kZSBzdHJpbmdzOgo+IC0gTXVs dGlCeXRlVG9XaWRlQ2hhciguLi4pIC0gZm9yIGVuY29kaW5nIEFOU0kgc3RyaW5ncyBpbiBVbmlj b2RlLCBhbmQKPiAtIFdpZGVDaGFyVG9NdWx0aUJ5dGUoLi4uKSAtIGZvciBkZWNvZGluZyBVbmlj b2RlIHRvIEFOU0kKPgo+IEFsc28geW91IGNhbiB1c2UgVENIQVIgdHlwZSBmb3IgdW52aXNpYmxl IHRyYW5zbGF0aW5nLCBmb3IgZXhhbXBsZToKPgo+ICNpbmNsdWRlIDx3aW5kb3dzLmg+Cj4gI2lu Y2x1ZGUgPHN0ZGlvLmg+Cj4gI2lmbmRlZiBVTklDT0RFCj4gI2RlZmluZSBVTklDT0RFCj4gLi4u Cj4gVENIQVIgKnM7Cj4gc2NhbmYgKCIlcyIsIHMpOwo+IHByaW50ZigiJXNcbiIsIHMpOwo+IC4u Lgo+ICNlbmRpZiAvL1VOSUNPREUKPgo+IGlmIHlvdSBkZWZpbmUgVU5JQ09ERSB0aGVuCj4gdHlw ZWRlZiB3Y2hhcl90IFRDSEFSLAo+IGVsc2UKPiB0eXBlZGVmIGNoYXIgVENIQVI7IGFsc28gZGVm aW5lZCBmdW5jdGlvbnMsIHdvcmtpbmcgd2l0aCB0aGlzIHR5cGUgKGZvcgo+IG1vcmUgc2VlIE1T RE4gYW5kIHRjaGFyLmggZmlsZSkKPgo+Cj4gU2luY2VyZWx5LCBDaHVyaW4uCj4KPiBQLlMuIEV4 Y3VzZSBtZSBmb3IgbXkgYmFkIGVuZ2xpc2ggLSBpdCdzIG5vdCBteSBuYXRpdmUgbGFuZ3VhZ2Uu Cj4KPgo+Cg== |
From: <ba...@o2...> - 2007-04-26 08:37:14
|
Hello.=20 I=20have=20a=20litle=20problem=20with=20WinApi. I've=20opened=20a=20windows=20template,=20but=20I=20have=20no=20idea,=20h= ow=20could=20I=20add=20some=20visual=20components,=20like=20buttons,=20te= xt=20menus=20etc.=20Are=20there=20any=20libraries=20included,=20in=20wich= =20I=20could=20do=20this? Best=20Regards Bartek. |
From: Adam P. <wo...@wo...> - 2007-04-24 23:47:34
|
Hello List, I'm very new to win32... Actually I work always on *nix and I absolutly haven't got a clue about win, but at this time I have to port my application to win32. My problem is: I found your great development ide, which includes the MinGW (so I can write clean ANSI C code... huhh), but I don't know how to write a "Service". Till now, I realized, that the "Service" is equivalent to "daemon". But @ win32 it's not so clean howto do it. I've already written my app, it's working, but I want to install it as a service, to start @ bootup. What are the free installers? Mean, I want to create an install package which installs the whole application as a service and that's all. It should start without any user intervention.. I don't really know where to start. Any comments are welcome. Thanks in advance, -- Adam PAPAI D i g i t a l Influence http://www.digitalinfluence.hu E-mail: wo...@wo... Phone: +36 30 33-55-735 (Hungary) |
From: Duong Ha N. <nha...@gm...> - 2007-04-24 13:32:16
|
Hello everyone, I'm using Dev-C++ 4.9.9.2 to write Windows application. I would like to write program using Unicode encoding. I tried to use native2ascii to translate Unicode source code to ANSI, but it didn't display exactly what I want. Can someone tell me how to write Windows programs with Unicode in Dev-C++? Thanks in advance. |
From: Jonathan W. <jon...@gm...> - 2007-04-24 08:32:07
|
Hi, >I would like to know what is the best way to extract a math expression The best way I can think of is to create a parser to read the expression. I would do it using flex and bison, and incorporating the produced parser int= o your project. Flex will chop the input into tokens (more precisely 'lex=E8mes' in french. not sure in english) based on regular expressions you specify. eg. numbers, operators... Bison is usually fed the output from Flex, and matches the tokens to syntax rules, eg. EXPRESSION: NUMBER OPERATOR NUMBER Every time bison matches a rule, you can execute some code (usually build a tree representing the input) Compilers (maybe not all, but probably) are built this way. The tree is the= n analysed, checked, and turned into something useful :D Building a simple flex file and set of bison rules for just arithmetic should be simple, and you'll probably be able to find a lot of doc' out there The flex/bison programs will parse your spec. files, creating a C or C++(some hacks required) file you can incorporate into your project. You can also use flex/bison to parse your config file if you want, while you're at it :D Best of luck, Jonathan On 4/19/07, Jan Mura <jan...@vo...> wrote: > > Hello, > > I would like to know what is the best way to extract a math expression to > IF condition. > > For instance: > I have in a configuration file an expression X=3DY and I want use the > expression in IF conditin as it is. So the condition will look like: > IF (x=3Dy( ... > > Also would like to know about some XML parser written in C. > I prefer C to C++. > Thank you. > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > 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 > > --=20 <Morpheus> linux, c'est une question de VI ou de MORE |
From: <Ber...@eu...> - 2007-04-24 06:15:38
|
>Also would like to know about some XML parser written in C. =20 http://www.libxml.org =20 -- Bernd M=FCnt Durchwahl: 030/69032-509 euroscript Deutschland GmbH Zentrale: 030/69032-300 Abteilung IT-Management Fax: 030/69032-505 Alt-Moabit 91 Mail: Ber...@eu... 10559 Berlin Web: http://www.euroscript.de = <http://www.euroscript.de/> =20 =20 |
From: Jan M. <jan...@vo...> - 2007-04-19 13:47:26
|
Hello, I would like to know what is the best way to extract a math expression = to=20 IF condition. For instance: I have in a configuration file an expression X=3DY and I want use the = expression in IF conditin as it is. So the condition will look like: IF (x=3Dy( ... Also would like to know about some XML parser written in C. I prefer C to C++. Thank you. Jan Mura jan...@vo... |
From: Roger F. <ra...@ha...> - 2007-04-16 23:06:25
|
Aloha from honolulu, My notes say you need to use the project options and set them for the Win32 Console. This will happen automatically if you open a new project as a Console Application. I've found that to be the easiest way. Simply start a new project as a Console Application and add your code file to the project. Aloha, Roger Frank Wagner wrote: > Hi, > > first thanks for your fast reply. > > Yes, I can remember that as I tried this a long time ago a console window opens without any problems just the time I started the debug session. I compiled and debuged my program using CodeBlocks and after I started the debug session the console window opens. > > I cant find some option that type Per Westermark wrote about in his mail. > There is a option in Dev-C++ named "Dont open a console window". But if I set this to yes the console window won't open also in normal execution and has nothing to do with debugging. > > I don't know what I still can do to get the console window in debugging mode and what has been changed in Dev-C++ because I remember in former versions it woked like I expeceted. > > Thanks in advance > > > Frank > > >>>>Per Westermark <pw...@ia...> 04/16/07 10:30 >>> > > The console window have nothing to do with your use of cout or printf() or > similar. The console window is caused by one of the settings to the > linker. Alas, I don't have Dev-C++ available right now, to check exactly > which setting it is. > > If I remember correctly, you have something like --subsystem,console or > something like that to specify to the linker that it should create a > console. > > If you play around a bit, you can also manage the reverse, i.e. getting a > graphical application that also have a console. > > /pwm > > On Mon, 16 Apr 2007, Frank Wagner wrote: > > >>Hi again, >> >>and thanks to churin for his reply, but I still get the problem. >> >>For a little more information my code looks like this: >> >>#include <string> >>#include <fstream> >>#include <iostream> >> >>using namespace std; >> >>char zeichen, endchar; >>int line = 1, ans, mess, conf, mode, ANA_SW; >>main() >>{ >> string infilename; >> ifstream infile; >> >> cout << "Dateiname? " << flush; >> cin >> infilename; >> infile.open(infilename.c_str(), ios::binary | ios::in); >> while(infile.get(zeichen)) >> { >> ......so something >> } >> >>} >> >>At normal execution at the line cout << ... a console window opens but not in debug mode. >>I set breakpoints to at this line and at lines before and steped through the code in single step mode but when I reach the cout, cin line no console window appear so I'm not able to input a infilename. >> >>I can't imagine where the problem is, maybe someone has a hint to look at. >> >>Greetings >> >>Frank >> >> >>WIKA Alexander Wiegand GmbH & Co. KG >>Alexander-Wiegand-Straße 30 - 63911 Klingenberg - Germany >>Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1819 >>Komplementärin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenberg - >>Amtsgericht Aschaffenburg HRB 306 >>Geschäftsführer: Alexander Wiegand >>Telefon: (09372) 132-0 >>Internet: www.wika.com >>------------------------------------------------------------------------------------------------ >>The information contained in this E-mail and any attached files are strictly >>confidential and may be subject to legal privilege. If you are not the >>intended recipient, his representative or the person responsible for delivering >>the message to the intended recipient, be advised that you have received this >>message in error and that any dissemination, copying or use of this message >>or attachment is strictly forbidden, as is the disclosure of the information >>therein. If you have received this E-mail in error, please notify us immediately >>by E-mail or telephone and delete this message and all its attachments >>subsequently. All reasonable precautions have been taken to ensure no >>viruses are present in this E-mail. >>------------------------------------------------------------------------------------------------ >> >> >> >>------------------------------------------------------------------------- >>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 >> > > > > > WIKA Alexander Wiegand GmbH & Co. KG > Alexander-Wiegand-Straße 30 - 63911 Klingenberg - Germany > Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1819 > Komplementärin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenberg - > Amtsgericht Aschaffenburg HRB 306 > Geschäftsführer: Alexander Wiegand > Telefon: (09372) 132-0 > Internet: www.wika.com > ------------------------------------------------------------------------------------------------ > The information contained in this E-mail and any attached files are strictly > confidential and may be subject to legal privilege. If you are not the > intended recipient, his representative or the person responsible for delivering > the message to the intended recipient, be advised that you have received this > message in error and that any dissemination, copying or use of this message > or attachment is strictly forbidden, as is the disclosure of the information > therein. If you have received this E-mail in error, please notify us immediately > by E-mail or telephone and delete this message and all its attachments > subsequently. All reasonable precautions have been taken to ensure no > viruses are present in this E-mail. > ------------------------------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > 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 > |
From: Frank W. <F.W...@wi...> - 2007-04-16 12:49:02
|
Hi, first thanks for your fast reply. Yes, I can remember that as I tried this a long time ago a console window = opens without any problems just the time I started the debug session. I = compiled and debuged my program using CodeBlocks and after I started the = debug session the console window opens. I cant find some option that type Per Westermark wrote about in his mail. There is a option in Dev-C++ named "Dont open a console window". But if I = set this to yes the console window won't open also in normal execution and = has nothing to do with debugging. I don't know what I still can do to get the console window in debugging = mode and what has been changed in Dev-C++ because I remember in former = versions it woked like I expeceted. Thanks in advance Frank >>> Per Westermark <pw...@ia...> 04/16/07 10:30 >>> The console window have nothing to do with your use of cout or printf() or similar. The console window is caused by one of the settings to the linker. Alas, I don't have Dev-C++ available right now, to check exactly which setting it is. If I remember correctly, you have something like --subsystem,console or something like that to specify to the linker that it should create a console. If you play around a bit, you can also manage the reverse, i.e. getting a graphical application that also have a console. /pwm On Mon, 16 Apr 2007, Frank Wagner wrote: > Hi again, > > and thanks to churin for his reply, but I still get the problem. > > For a little more information my code looks like this: > > #include <string> > #include <fstream> > #include <iostream> > > using namespace std; > > char zeichen, endchar; > int line =3D 1, ans, mess, conf, mode, ANA_SW; > main() > { > string infilename; > ifstream infile; > > cout << "Dateiname? " << flush; > cin >> infilename; > infile.open(infilename.c_str(), ios::binary | ios::in); > while(infile.get(zeichen)) > { > ......so something > } > > } > > At normal execution at the line cout << ... a console window opens but = not in debug mode. > I set breakpoints to at this line and at lines before and steped through = the code in single step mode but when I reach the cout, cin line no = console window appear so I'm not able to input a infilename. > > I can't imagine where the problem is, maybe someone has a hint to look = at. > > Greetings > > Frank > > > WIKA Alexander Wiegand GmbH & Co. KG > Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany > Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA = 1819 > Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz = Klingenberg - > Amtsgericht Aschaffenburg HRB 306 > Gesch=E4ftsf=FChrer: Alexander Wiegand > Telefon: (09372) 132-0 > Internet: www.wika.com=20 > -------------------------------------------------------------------------= ----------------------- > The information contained in this E-mail and any attached files are = strictly > confidential and may be subject to legal privilege. If you are not the > intended recipient, his representative or the person responsible for = delivering > the message to the intended recipient, be advised that you have received = this > message in error and that any dissemination, copying or use of this = message > or attachment is strictly forbidden, as is the disclosure of the = information > therein. If you have received this E-mail in error, please notify us = immediately > by E-mail or telephone and delete this message and all its attachments > subsequently. All reasonable precautions have been taken to ensure no > viruses are present in this E-mail. > -------------------------------------------------------------------------= ----------------------- > > > > -------------------------------------------------------------------------= > 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/=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li...=20 > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm=20 > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 > WIKA Alexander Wiegand GmbH & Co. KG=20 Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany=20 Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA = 1819=20 Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenber= g -=20 Amtsgericht Aschaffenburg HRB 306=20 Gesch=E4ftsf=FChrer: Alexander Wiegand=20 Telefon: (09372) 132-0=20 Internet: www.wika.com=20 ---------------------------------------------------------------------------= --------------------- The information contained in this E-mail and any attached files are = strictly=20 confidential and may be subject to legal privilege. If you are not the=20 intended recipient, his representative or the person responsible for = delivering=20 the message to the intended recipient, be advised that you have received = this=20 message in error and that any dissemination, copying or use of this = message=20 or attachment is strictly forbidden, as is the disclosure of the informatio= n=20 therein. If you have received this E-mail in error, please notify us = immediately=20 by E-mail or telephone and delete this message and all its attachments=20 subsequently. All reasonable precautions have been taken to ensure no=20 viruses are present in this E-mail.=20 ---------------------------------------------------------------------------= ---------------------=20 =20 |
From: Per W. <pw...@ia...> - 2007-04-16 08:30:59
|
The console window have nothing to do with your use of cout or printf() or similar. The console window is caused by one of the settings to the linker. Alas, I don't have Dev-C++ available right now, to check exactly which setting it is. If I remember correctly, you have something like --subsystem,console or something like that to specify to the linker that it should create a console. If you play around a bit, you can also manage the reverse, i.e. getting a graphical application that also have a console. /pwm On Mon, 16 Apr 2007, Frank Wagner wrote: > Hi again, > > and thanks to churin for his reply, but I still get the problem. > > For a little more information my code looks like this: > > #include <string> > #include <fstream> > #include <iostream> > > using namespace std; > > char zeichen, endchar; > int line =3D 1, ans, mess, conf, mode, ANA_SW; > main() > { > string=09infilename; > =09ifstream infile; > > =09cout << "Dateiname? " << flush; > =09cin >> infilename; > =09infile.open(infilename.c_str(), ios::binary | ios::in); > =09while(infile.get(zeichen)) > =09{ > ......so something > } > > } > > At normal execution at the line cout << ... a console window opens but no= t in debug mode. > I set breakpoints to at this line and at lines before and steped through = the code in single step mode but when I reach the cout, cin line no console= window appear so I'm not able to input a infilename. > > I can't imagine where the problem is, maybe someone has a hint to look at= =2E > > Greetings > > Frank > > > WIKA Alexander Wiegand GmbH & Co. KG > Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany > Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1= 819 > Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenb= erg - > Amtsgericht Aschaffenburg HRB 306 > Gesch=E4ftsf=FChrer: Alexander Wiegand > Telefon: (09372) 132-0 > Internet: www.wika.com > -------------------------------------------------------------------------= ----------------------- > The information contained in this E-mail and any attached files are stric= tly > confidential and may be subject to legal privilege. If you are not the > intended recipient, his representative or the person responsible for deli= vering > the message to the intended recipient, be advised that you have received = this > message in error and that any dissemination, copying or use of this messa= ge > or attachment is strictly forbidden, as is the disclosure of the informat= ion > therein. If you have received this E-mail in error, please notify us imme= diately > by E-mail or telephone and delete this message and all its attachments > subsequently. All reasonable precautions have been taken to ensure no > viruses are present in this E-mail. > -------------------------------------------------------------------------= ----------------------- > > > > ------------------------------------------------------------------------- > 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 > |
From: Frank W. <F.W...@wi...> - 2007-04-16 07:59:49
|
Hi again, and thanks to churin for his reply, but I still get the problem. For a little more information my code looks like this: #include <string> #include <fstream> #include <iostream> using namespace std; char zeichen, endchar; int line =3D 1, ans, mess, conf, mode, ANA_SW; main() { string infilename; ifstream infile; =09 cout << "Dateiname? " << flush; cin >> infilename; infile.open(infilename.c_str(), ios::binary | ios::in); while(infile.get(zeichen)) { ......so something=20 } } At normal execution at the line cout << ... a console window opens but not = in debug mode. I set breakpoints to at this line and at lines before and steped through = the code in single step mode but when I reach the cout, cin line no = console window appear so I'm not able to input a infilename. I can't imagine where the problem is, maybe someone has a hint to look at. Greetings Frank WIKA Alexander Wiegand GmbH & Co. KG=20 Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany=20 Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA = 1819=20 Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenber= g -=20 Amtsgericht Aschaffenburg HRB 306=20 Gesch=E4ftsf=FChrer: Alexander Wiegand=20 Telefon: (09372) 132-0=20 Internet: www.wika.com=20 ---------------------------------------------------------------------------= --------------------- The information contained in this E-mail and any attached files are = strictly=20 confidential and may be subject to legal privilege. If you are not the=20 intended recipient, his representative or the person responsible for = delivering=20 the message to the intended recipient, be advised that you have received = this=20 message in error and that any dissemination, copying or use of this = message=20 or attachment is strictly forbidden, as is the disclosure of the informatio= n=20 therein. If you have received this E-mail in error, please notify us = immediately=20 by E-mail or telephone and delete this message and all its attachments=20 subsequently. All reasonable precautions have been taken to ensure no=20 viruses are present in this E-mail.=20 ---------------------------------------------------------------------------= ---------------------=20 =20 |
From: Frank W. <F.W...@wi...> - 2007-04-13 13:25:27
|
Hi, I wrote a little program that parses a textfile. This is a console = application and if I start with the run button within DEV-C++ all things = look good. But if I try to use the debugger and step trough my app no = console window will be opend for in and output. What might I do wrong, what can I do to solve this? Thanks in advance Frank WIKA Alexander Wiegand GmbH & Co. KG=20 Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany=20 Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA = 1819=20 Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenber= g -=20 Amtsgericht Aschaffenburg HRB 306=20 Gesch=E4ftsf=FChrer: Alexander Wiegand=20 Telefon: (09372) 132-0=20 Internet: www.wika.com=20 ---------------------------------------------------------------------------= --------------------- The information contained in this E-mail and any attached files are = strictly=20 confidential and may be subject to legal privilege. If you are not the=20 intended recipient, his representative or the person responsible for = delivering=20 the message to the intended recipient, be advised that you have received = this=20 message in error and that any dissemination, copying or use of this = message=20 or attachment is strictly forbidden, as is the disclosure of the informatio= n=20 therein. If you have received this E-mail in error, please notify us = immediately=20 by E-mail or telephone and delete this message and all its attachments=20 subsequently. All reasonable precautions have been taken to ensure no=20 viruses are present in this E-mail.=20 ---------------------------------------------------------------------------= ---------------------=20 =20 |
From: <k.a...@at...> - 2007-04-13 01:59:47
|
I am trying to execute the following program in Dev C++ / Chapter Two #include <iostream.h> int main () {// int count_steps; count_steps = 0; int top_step = 10; while (count_steps < top_step) { count_steps = count_steps + 1; } cout << "count_steps has reached its limit of top_step and the loop has been exited.\n"; return 0; }//end of program and this is what I am getting. I don't understand what is happening, can someone help me. // Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 2, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING. If not, write to the Free // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. // As a special exception, you may use this file as part of a free software // library without restriction. Specifically, if other files instantiate // templates or use macros or inline functions from this file, or you compile // this file and link it with other files to produce an executable, this // file does not by itself cause the resulting executable to be covered by // the GNU General Public License. This exception does not however // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. #ifndef _CPP_BACKWARD_IOSTREAM_H #define _CPP_BACKWARD_IOSTREAM_H 1 #include "backward_warning.h" #include <iostream> using std::iostream; using std::ostream; using std::istream; using std::ios; using std::streambuf; using std::cout; using std::cin; using std::cerr; using std::clog; #ifdef _GLIBCPP_USE_WCHAR_T using std::wcout; using std::wcin; using std::wcerr; using std::wclog; #endif using std::ws; using std::endl; using std::ends; using std::flush; #endif // Local Variables: // mode:C++ // End: Kathy Elia k.a...@at... |
From: Josep M C. <jos...@wa...> - 2007-04-12 10:09:11
|
Hi all, as your last suggestion worked perfectly, I would like to ask you = something else related to the compilation of the STK tutorials...I'm probably = missing a file but after including all the required stuff I can't find wat's missing, maybe it's something subtle?...I'm just compilling the Control Input example from the online tutorial and I attach you the compiler = output, should you give me a quick hint...it would save me tons of time :)!!!! Thanks in advance, in case any of you have some time :)=20 Josep m =20 =20 Compilador: Default compiler Building Makefile: "C:\Dev-Cpp\provastk2\Makefile.win" Executant make... make.exe -f "C:\Dev-Cpp\provastk2\Makefile.win" all g++.exe -D__DEBUG__ -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" = -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/stk/stk-4.2.1/include" -I"C:/Dev-Cpp/Common/Include" -I"C:/Dev-Cpp/Common" -D__WINDOWS_DS__ -Wno-deprecated -D__LITTLE_ENDIAN__ -D__WINDOWS_MM__ -fexceptions -fexpensive-optimizations -O3 -g3 =20 g++.exe -D__DEBUG__ main.o ../../stk/stk-4.2.1/src/WvOut.o ../../stk/stk-4.2.1/src/FileRead.o ../../stk/stk-4.2.1/src/FileWrite.o ../../stk/stk-4.2.1/src/FileWvIn.o ../../stk/stk-4.2.1/src/FileWvOut.o ../../stk/stk-4.2.1/src/Generator.o ../../stk/stk-4.2.1/src/RtAudio.o ../../stk/stk-4.2.1/src/RtWvOut.o ../../stk/stk-4.2.1/src/SineWave.o ../../stk/stk-4.2.1/src/Stk.o ../../stk/stk-4.2.1/src/WaveLoop.o ../../stk/stk-4.2.1/src/WvIn.o ../../stk/stk-4.2.1/src/Messager.o ../../stk/stk-4.2.1/src/RtMidi.o ../../stk/stk-4.2.1/src/Instrmnt.o ../../stk/stk-4.2.1/src/Socket.o ../../stk/stk-4.2.1/src/Thread.o ../../stk/stk-4.2.1/src/Mutex.o ../../stk/stk-4.2.1/src/Skini.o ../../stk/stk-4.2.1/src/TcpServer.o -o "provaDevCpp.exe" = -L"C:/Dev-Cpp/lib" ../lib/libdsound.a ../lib/libole32.a ../lib/libwinmm.a = ../lib/libwsock32.a ../lib/libuuid.a ../lib/libws2_32.a -g3=20 =20 ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x265): In function `ZN9RtMidiOutC1Ev': C:/Dev-Cpp/../stk/stk-4.2.1/src/RtMidi.cpp:148: undefined reference to `vtable for RtMidiOut' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x274):C:/Dev-Cpp/../stk/stk-4.2.1= /sr c/RtMidi.cpp:149: undefined reference to `RtMidiOut::initialize()' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x365): In function `ZN9RtMidiOutC2Ev': C:/Dev-Cpp/../stk/stk-4.2.1/src/RtMidi.cpp:148: undefined reference to `vtable for RtMidiOut' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x374):C:/Dev-Cpp/../stk/stk-4.2.1= /sr c/RtMidi.cpp:149: undefined reference to `RtMidiOut::initialize()' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x699): In function `ZN8RtMidiInC1Ev': C:/Dev-Cpp/../stk/stk-4.2.1/src/RtMidi.cpp:73: undefined reference to `vtable for RtMidiIn' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x6ba):C:/Dev-Cpp/../stk/stk-4.2.1= /sr c/RtMidi.cpp:74: undefined reference to `RtMidiIn::initialize()' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x8d9): In function `ZN8RtMidiInC2Ev': C:/Dev-Cpp/../stk/stk-4.2.1/src/RtMidi.cpp:73: undefined reference to `vtable for RtMidiIn' ../../stk/stk-4.2.1/src/RtMidi.o(.text+0x8fa):C:/Dev-Cpp/../stk/stk-4.2.1= /sr c/RtMidi.cpp:74: undefined reference to `RtMidiIn::initialize()' collect2: ld returned 1 exit status =20 make.exe: *** [provaDevCpp.exe] Error 1 =20 Execuci=F3 finalitzada |
From: Valdir M. <val...@su...> - 2007-04-11 04:36:42
|
Boa noite. Voc=EA pode me indicar um contador com pre=E7os de abertura de empresa e = mensalidade pag=E1vel para quem =E9 assalariado? Um amigo precisa trabalhar como PJ ao inv=E9s de CLT. Trata-se de abrir = uma pequena empresa (como exig=EAncia legal) para emitir nota fiscal de = programa=E7=E3o. Isso para a cidade de S=E3o Paulo em SP. Por favor, enviem a resposta em particular para val...@ig... Um abra=E7o, Valdir |
From: Philip B. <phi...@pb...> - 2007-04-10 21:52:05
|
Hello. I am having some really weird issues when designing my dll library, = related to the stdcall and cdecl calling conventions. I am trying to = make it use only the stdcall convention and not cdecl. I have tried both = adding __stdcall to my function declarations, and to set the = --add-stdcall-alias in the command line. Sometimes I get an export table = with multiple exports, function names with and without the @# appended = to them. I would like it to make a dll that does not have the @ signs appended but which only uses stdcall so that = any language with dll support can call it. When I get the export table = with multiple versions of each function, the numbers are not 1, 2, 3 etc after the = @sign. Instead, it appends 0 to all the functions that don't take any = arguments and appends 4 to the functions that do. This really confuses = me and I have no idea what I might be doing wrong. Any tips? I don't = want to have to have an export table with each function exported twice = for it to work. Thanks in advance. Regards Philip Bennefall |
From: Jerry G. <jz...@gt...> - 2007-04-07 02:47:38
|
From: Philip B. <phi...@pb...> - 2007-04-07 01:49:56
|
Hi everone, I'm in the process of building a voicechat dll for developers to allow = them to add voicechat capabilities to their applications quickly and = easily. I have just started so there is not much stuff implemented yet. = I want it to work with the stdcall method and have a C interface. I = think I've done everything right, but the export table looks really = weird. It defines each function twice, first one without an @ # and then = one with. Here is the export table: PbTalker_Free PbTalker_Free@0 PbTalker_GetInputDeviceCount PbTalker_GetInputDeviceCount@0 PbTalker_GetInputDeviceName PbTalker_GetInputDeviceName@4 PbTalker_GetLastError PbTalker_GetLastError@0 PbTalker_GetLastErrorText PbTalker_GetLastErrorText@0 PbTalker_GetOutputDeviceCount PbTalker_GetOutputDeviceCount@0 PbTalker_GetOutputDeviceName PbTalker_GetOutputDeviceName@4 PbTalker_Init PbTalker_Init@0 PbTalker_SetHostAPI PbTalker_SetHostAPI@4 PbTalker_StreamSound PbTalker_StreamSound@4 Maybe I should metnion also that some of the functions return char *. = The functions are declared like so: #define exporting __declspec( dllexport ) extern "C" exporting int __stdcall PbTalker_Init(void); extern "C" exporting int __stdcall PbTalker_SetHostAPI(int); extern "C" exporting int __stdcall PbTalker_GetInputDeviceCount(void); extern "C" exporting const char* __stdcall = PbTalker_GetInputDeviceName(int); extern "C" exporting int __stdcall PbTalker_GetOutputDeviceCount(void); extern "C" exporting const char* __stdcall = PbTalker_GetOutputDeviceName(int); extern "C" exporting int __stdcall PbTalker_GetLastError(void); extern "C" exporting const char* __stdcall = PbTalker_GetLastErrorText(void); extern "C" exporting int __stdcall PbTalker_StreamSound(const char*); extern "C" exporting int __stdcall PbTalker_Free(void); In the project options, the compiler has the command line=20 parameter -mrtd set, and the linker has the following: --no-export-all-symbols --add-stdcall-alias Is it normal behavior, to export each function twice? If not, how can I = fix it? Regards Philip Bennefall |
From: Per W. <pw...@ia...> - 2007-04-06 19:07:00
|
You are using memory that you don't own. Either you are using uninitialized pointers, or you have a valid block of memory (for example an array) but you are trying to access the block outside the available memory (for example by using an incorrect index to an array, or incrementing a pointer past the end of the allocated memory and then using the pointer). Build the program with debug information, and then start it in gdb. It will show you where you get the segmentation error. /pwm On Fri, 6 Apr 2007, super.ismiti wrote: > Hi, > > I'm starting to work with C++ and I don't know too much about the errors... > I've already searched about (core dumped) in the Internet, but I've not > understood it yet. > > I have a program that I need run in the OS Linux. This program is working > correctly. > But I made an extension to this program and I compiled this one again, it > seemed work right. > But when I run this program now an error is showed: Segmentation fault (core > dumped). > > I don't understand what it can be. What kind of error is it... > If you could explain to me what this error is about, probably I will be able > to find the error that could be in my source. > > The structure of the files are: > - I created two files: file.cc and file.h > - I run make (with a Makefile file) command in the shell and it works > correctly > - I run the program (./program), that will use the files that I created and > the error is showed > > I really appreciate any kind of help! > > Thanks in advance, > Ricardo. > |