Friday, 19 December 2008
|
| Borland Builder 6 compile problem with uxtheme.h Guest 08:25:46 |
| | When I try to compile the following program with Borland Builder 6 (I have update 4 installed)
#include <windows.h> #include <uxtheme.h>
int main(int /*argc*/, char ** /*argv*/) { return 0; }
I get the following error messages:
C:\Work\tmp>bcc32 main.cpp Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland main.cpp: Error E2146 C:\Program Files\Borland\CBuilder6\Include\uxtheme.h 176: Need an +identifier to declare Error E2146 C:\Program Files\Borland\CBuilder6\Include\uxtheme.h 546: Need an +identifier to declare *** 2 errors in Compile ***
I can solve the compile problem if I apply the following patch to uxtheme.h:
@@ -173,7 +173,7 @@ TS_MIN, // minimum size TS_TRUE, // size without stretching TS_DRAW, // size that theme mgr will use to draw part -}; +} foo_themesize; //------------------------------------------------------------------------- // GetThemePartSize() - returns the specified size of the theme part // @@ -543,7 +543,7 @@ PO_CLASS, // property was found in the class section PO_GLOBAL, // property was found in [globals] section PO_NOTFOUND // property was not found -}; +} foo_propertyorigin;
//----------------------------------------------------------------------- // GetThemePropertyOrigin()
Is this a known problem and is there a workaround available that does not require changing system headers? Some of our customers want to compile our sourcecode with Borland Builder 6 and I wonder what we should tell them to resolve the compile problem (or if we are able to fix the compile problem in our code without the need for them to do anything).
Best regards, Rainer
|
| | 2 answer | Add comment |
Sunday, 30 November 2008
|
VivaMP for OpenMP Thunderbolt 13:20:48 |
| | OOO “Program Verification Systems” Company informs you that the first beta-version of static C/C++ code analyzer VivaMP has been released. VivaMP is meant for diagnostics of parallel errors in software products based on OpenMP technology. The fact that modern compilers where parallel programming technology OpenMP support is implemented provide rather weak error diagnostics in OpenMP code makes no secret. Moreover, it's easy to make an error working with OpenMP. VivaMP is ready to repair this gap and to offer high-quality diagnostics for OpenMP usage.
VivaMP software product is an add-in module (AddIn) for Microsoft Visual Studio 2005/2008 development environment. Being added in the environment, this analyzer is able to verify code of applications written in C and C++ languages, in which OpenMP paralleling is used. The analyzer is able to find the errors which were made because the developers master OpenMP syntax insufficiently or if the principles of work with OpenMP are misunderstood. Errors of incorrect work with shared memory, errors of synchronization and errors of performance can also be discovered.
Unlike dynamic tools, static code analyzer VivaMP doesn't require starting of a program, that's why its diagnostics is always stable, precise and doesn't depend upon “the environment” in which the program being developed starts.
Though the present beta-version is called “beta”, still it is a full-fledged software product. Its only difference from the future release is the absence of help system. The help system is sure to be fully present in the release.
More...: http://www.viva64.com/vivamp-tool/ |
| | Add comment |
Saturday, 22 November 2008
|
c++ installer shobelissima 09:28:44 |
| | wa!!! could somebody help me where can i download a free turbo c++ installer. i tried to search a free installer but i ended up finding turbo explorer installer and the size of it is 300+ MB. isn't it that the turbo c++ is only 9MB - a size that is not greater than 20MB. please.. help me to find the installer.. please, or if you have an installer - could you please email it to prinsesang_diwata@yahoo.com ..tnx a lot in advance! |
| | 3 answer | Add comment |
Thursday, 16 October 2008
|
| [ROOT] Dear friend Mr Abba Dosama 22:23:20 |
| | Dear Sir/Madam,
I am the confidant of the ex-president of thePhilippines (Mr. Estrada) who was removed from power as you may know. He has secretly informed me tocontact you and to liaise with you to invest the total sum of {$9M} (Nine Million Dollars) which he deposited in a Bank in (Valencia Spain) during his tenure. Now the procedures are as follows, that you will be given the contact of the Bank so that you will contact them to open an online account where the money will be transferred into from his account in that Bank since he can not come out in the open to use this money. After you open this account, I will order the Bank in a written form to transfer the money into your own account after which you can then transfer it to some other account in your place or else where for sharing. Upon request by you, I can send to you the certificate of deposit of this money for your own assurance. We are willing to give to you 25% of the total sum and 5% for any expenses incurred during this transaction for all the anticipated help from you hoping that it will cover all your expenditures before and after the transaction. However, we will desire that you will help us invest our share till we will be free to meet you up in your country for further arrangements, Please if this proposal is Ok by you, please write me back via this address( dozamabba@yahoo.com [mailto:dozamabba@yahoo.com]) so that I can give to you all information?s. Regards. Dr. Dozamil Abbaphantilo
----------------------------------------------------------------------- Encuentra tu casa rГЎpida y cГіmodamente. Miles de viviendas te estГЎn esperando en http://www.portae.com [http://banner.eresmas.com/adclick/CID=000064c2c858344d00000000/site=ERESMAS/area=ERESMAS.CORREO/aamsz=PIE_WEBMAIL]
|
| | 1 answer | Add comment |
Wednesday, 1 October 2008
|
| Error: Too much global data defined in file Morosh 10:55:56 |
| | Hello: I made a C++ program for accountancy purposes, it's DOS style, I compile using bcc.exe of Borland C++ v5.2. I choose the "large model". Now I have this new error "Error: Too much global data defined in file" saying that I have a lot of global variables. I counted the space required for my global data, it didn't exceed 64k. my command line is: bcc -4 -ff -N -ml e:\my_data\prog\tc\%1.cpp > compc.rpt In the same time, I have a lot of message'strings, but with the large model there is 1MB of data space.
Is there any solution for that? Thanks
Morosh
|
| | 12 answers | Add comment |
Thursday, 4 September 2008
|
| SYSINIT.OBJ George Adamopoulos 01:40:54 |
| | When Iam trying to compile an empty project, Iam receiving a message from the linker:
[Linker Error] Unable to open file 'SYSINIT.OBJ'.
Can anyone give me a hint how to overlap this problem ?
|
| | 2 answer | Add comment |
Tuesday, 2 September 2008
|
Please any one help me regarding PostGreSQL with C++ yuvi 10:02:00 |
| | Hi friends,
I am new to Database PostgreSQL, I wanted to know the basic steps to able to write and execute the C++ program to connece to PostgreSQL database,
I need a help in basic requirements like Library, execution process and API's ( if possible please help me regarding resource links, where can i get these information) |
| | Add comment |
Sunday, 3 August 2008
|
| need railway reservation system software in VB +Oracle Ajay_iimt 22:06:02 |
| | hi all
i know this is c forum but still i am posting this bcoz its very urgent.i need railway reservation system software so if any one hav this in soft copy than plz mail me its very urgent or if anyone knows the link from where i can get the code of this than plz send me .
Its very urgent i need help from u all.
waiting for ur reply
ajay
------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/EbFolB/TM --------------------------------------------------------------------~->
|
| | 4 answer | Add comment |
Thursday, 10 July 2008
|
| press ENTER in Visual C++ Kurniawan_moonlight 15:46:38 |
| | hello every one, i just started to learned using visual C++ 6.0 after i learned C and C++ using Borland C 3.1 it's quite almost the same command at all
but, i'm having some problem, if i run my application and i press ENTER buton my Application is always EXIT. i've tried to use OnKeyDown function and i overide it to become :
//OnKeyDownFunction
int i; i = int(nChar); if ( i == 0 ) i = int(nChar);
if ( i == 13 ) // ENTER button is pressed DoNotExit();
//End Fucntion
that's all.. but it's still don't work.. i wonder what's wrong.. any help would be appreciated. thank you before.
------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/EbFolB/TM --------------------------------------------------------------------~->
|
| | 9 answers | Add comment |
Saturday, 28 June 2008
|
| how to open.bgi game files Kiran Kumar 11:50:09 |
| | hello I have a small doubt how to open the .bgi game files.
---------------------------------------------------------------------
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. http://in.photos.yahoo.com
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>.
---------------------------------------------------------------------
Yahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ [http://groups.yahoo.com/group/c-prog/]
* To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org [mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Unsubscribe]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service [http://docs.yahoo.com/info/terms/].
|
| | 3 answer | Add comment |
Friday, 9 May 2008
|
| New problem Marcos A Perelmuter 23:51:28 |
| | i am having problems with modal dialog box. In my main window there is a button that invokes a second box. I created the class "mySecondDialog" that inherits from TDialog, so i can use Execute() to create a modal dialog box. When I press the button, it runs a function that: 1) creates a pointer to an object of the type "mySecondDialog" mySecondDialog* MySecondDialog; 2) Executes the second dialog: MySeconDialog->Execute();
For my surprise, there is not modal dialog at all. The program keeps on creating the second dialog as many times as i press the button (modeless).
I don't know what am i doing wrong. I am using BCC++502 hosted in Win98.
Appreciate any help.
Thanks in advance, Marcos
|
| | 7 answers | Add comment |
Thursday, 8 May 2008
|
| OWLNEXT CBuilder 6 Ronald Praver 12:24:27 |
| | URGENT
I am currently working on CBuilder 5. My project is an ongoing one for the past 7 years. It started on BCW and we migrated to CBuilder when it came out. The project is now very dependent on the OWL framework and now also VCL's. We also use the Classlibs (ie TArray's Bags Maps ect..) heavily. I need to hear from someone that has successfully moved ALL of OWLNEXT INCLUDING Classlibs to this platform.
Please let me hear from someone ASAP.
Thanx
|
| | 2 answer | Add comment |
Tuesday, 15 April 2008
|
| dclite.bpl problem Stephen 10:59:23 |
| | Hi all
I hope someone can help me. I have been using C++Builder 6 for a couple of years on XP Pro without any problems. I had to do a reformat and reinstall but now I get access violation when I try to access the project options, something to do with not being able to load dclite.bpl.
Any ideas would be great. Thanks Stephen
|
| | 5 answers | Add comment |
Tuesday, 18 March 2008
|
| help:sine function(no usage of math.h) Rakesh V. 17:15:38 |
| | hi,can anyone help in correcting this function asap:- double mysin(double x) { int i=0; float term=x; float sinx=0; for(i=0;i<=10;i=i+2) { sinx=sinx+term; term=term*((-x*x)/(i+2)*(i+3)); } return sinx; }
---------------------------------------------------------------------
Do you Yahoo!? Yahoo! Mail [http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html] - 50x more storage than other providers!
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>.
Yahoo! Groups Sponsor
ADVERTISEMENT click here [http://us.ard.yahoo.com/SIG=129mn7cf4/M=295196.4901138.6071305.3001176/D=groups/S=1705006788:HM/EXP=1096480269/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com]
---------------------------------------------------------------------
Yahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ [http://groups.yahoo.com/group/c-prog/]
* To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org [mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org?subject=Unsubscribe]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service [http://docs.yahoo.com/info/terms/].
|
| | 1 answer | Add comment |
Thursday, 21 February 2008
|
| Internal Compiler Error HELP! Erik Sв??rensen 11:21:49 |
| | I am beeing shown this error message:
[C++ Fatal Error] F1004 Internal compiler error at 0xcaff8e with base 0xc10000
ever time I try to compile ANYTHING in C++ Builder 6 enterprise. And it is driving me nuts! I hope someone out there can help me soon because I am on a deadline and in a hurry.
Erik.
|
| | 1 answer | Add comment |
Monday, 19 November 2007
|
| Where to get BC++ 3.1, 4.5, 5.0x (for DOS code) ? Robert 09:55:52 |
| | I'm looking for a Borland C++ compiler which can create 16bit DOS code. Are some of the above available free (for edu) somewhere? Or where can one get commercial packages?
Robert
|
| | 2 answer | Add comment |
Tuesday, 13 November 2007
|
| share probalm Guest 06:32:07 |
| | hi friends, if you have any problam in c/c++.you can ask and share your problam me in mannewar_pankaj@yahoo.co.in. pankaj |
| | Add comment |
Monday, 17 September 2007
|
| Re: Help needed on a Banking solution source code Nico Heinze 08:47:50 |
| | --- In c-prog-hHKSG33TihhbjbujkaE4pw@public.gmane.org, "kdships" <kdships@y...> wrote:>
Hi guys,> I need help on this program. I have been trying to debug this code > and can't seem to get rid of the error messages. Please email me if > you can crack this. The source code is just below his line. Thanks <snip>
Hi guy(?),
first it would help if you told us _what_ error messages you get and when. Due to your description I suppose you're talking about compiler errors, but this is only a guess. Guesswork is useless in programming, so please tell us exactly.
Also it would be helpful to yourself if you try to write ANSI compatible code. Typical counterexample is your "main()" function; void main() is no standard conformant prototype.
Next point is that it makes sense to split up such code into different source files each of which is responsible for one particular sort of tasks. This also will help you to debug the code piece by piece. The keyword here is modular programming.
Lastly, debugging usually (granted, it's a matter of definition) means the process of finding errors in a running program. However, to me it seems you did not even get to that stage as you have compiling trouble. So the word "debugging" in the subject line of your post is misleading. Don't get me wrong: my main cause to mention is _not_ to behave like a pernickety school teacher but to help you to develop a correct and sharp language when talking to other programmers. The more exact your language is (no matter whom you talk to), the easier it will be to understand exactly what you mean and to reply correctly and in a useful manner.
Regards, Nico
------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/EbFolB/TM --------------------------------------------------------------------~->
|
| | 1 answer | Add comment |
Thursday, 16 August 2007
Monday, 6 August 2007
|
Issues of porting C++ code on the 64-bit platform Thunderbolt 16:55:00 |
| | Our team is work on the subject of 64-bit developing. We write new article for 64-bit developers: 20 issues of porting C++ code on the 64-bit platform.
Link to PDF: http://www.viva64.com/articles/20%20issues%20of%20porting%20C++%20code%20on%20the%2064-bit%20platform.pdf
We hope the article has been useful for you and will help to simplify the development and debugging of 64-bit applications. We will be glad to receive your opinions, remarks, corrections, additions and will surely include them in the next version of the article.
Annotation. Program errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of the code analysis which allow to diagnose the errors discussed, are listed.
In the article you will learn about: •typical errors of programming which occur on 64-bit systems; •the reasons for appearing of these errors and the corresponding examples; •methods of correcting the listed errors; •the review of methods and means of searching errors in 64-bit programs.
The given information will allow you: •to learn the differences between 32-bit and 64-bit systems; •to avoid errors while writing the code for 64-bit systems; •to speed up the process of migration of a 32-bit application on the 64-bit architecture with the help of the great reducing of the time of debugging and testing; •to forecast the time of porting the code on the 64-bit system more accurately and seriously.
Article is observing the type errors which occur while porting programs on the 64-bit architecture. List of themes: •Off-warnings •Use of the functions with a variable number of arguments •Magic numbers •Storing of integers in double type •Bit shifting operations •Storing of pointer addresses. •Memsize types in unions •Change of an array type •Virtual functions with arguments of memsize type •Serialization and data exchange •Bit fields •Pointer address arithmetic •Arrays indexing •Mixed use of simple integer types and memsize types •Implicit type conversions while using functions •Overload functions •Data alignment •Exceptions •Explicit type conversions
The diagnosis of the errors occurring while porting 32-bit programs on 64-bit systems is a difficult task. The port of a not very quality code written without taking into account peculiarities of other architectures, may demand a lot of time and efforts. We pay some attention to the description of methods and means which may simplify this task. ---- Viva64 team, www.Viva64.com
|
| | 1 answer | Add comment |
Tuesday, 31 July 2007
|
| i need help to make this program.. Guest 14:35:16 |
| | Im a SecOnd year college student taking up Information technology course.. and Computer programming is one of my major subjects.. but yet im not that good in turbo c++.. can you help me with my problem.. i have to program functions that wil display stacking and popping of boxes and the going up and down of the numbers inside those boxes.. |
| | Add comment |
Monday, 18 June 2007
|
| QT3 designer and SO library Ariafrancesco 23:12:52 |
| | Where I can find some example on SO library use in QT3designer ??
I can't compile my project because I recive : In file included from .ui/serialmodbus.cpp:25: .ui/../serialmodbus.ui.h: In member function `virtual void SerialModbus::OpenSerial()': .ui/../serialmodbus.ui.h:80: error: `Mb_open_device' undeclared (first use this function) .ui/../serialmodbus.ui.h:80: error: (Each undeclared identifier is reported only once for each function it appears in.) .ui/../serialmodbus.ui.h: At global scope: .ui/../serialmodbus.ui.h:73: warning: unused parameter 'NodeTest' make: *** [.obj/serialmodbus.o] Error 1
I download the library from : http://sourceforge.net/projects/libmodbus
Thanks to all and exusme for my bad English
------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/EbFolB/TM --------------------------------------------------------------------~->
|
| | 1 answer | Add comment |
Tuesday, 8 May 2007
|
| Bcc32 v5.5.1 - Massive amounts of compile errors when trying to include stl vector Aaron J. M. 19:50:09 |
| | I have the bcc command line tool, and I'm getting these weird errors when I try to include vector.h.
All I did was put "#include <vector>" in a header file, and then tried compiling (I'm not even using a vector yet in my actual code). Then I get these when I compile:
------------------
C:\Borland\BCC55\include\string.stl:304: Error E2293 : ) expected C:\Borland\BCC55\include\string.stl:483: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\string.stl:483: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\string.stl:485: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\string.stl:486: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\string.stl:491: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\string.stl:1065: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\string.stl:1066: Error E2272 : Identifier expected C:\Borland\BCC55\include\string.stl:1066: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\string.stl:1267: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\string.stl:1738: Error E2190 : Unexpected } C:\Borland\BCC55\include\ios.h:88: Error E2219 : Wrong number of arguments in call of macro 'clear' C:\Borland\BCC55\include\ios.h:88: Error E2092 : Storage class 'inline' is not allowed here C:\Borland\BCC55\include\ios.h:185: Error E2219 : Wrong number of arguments in call of macro 'clear' C:\Borland\BCC55\include\ios.h:206: Error E2219 : Wrong number of arguments in call of macro 'clear' C:\Borland\BCC55\include\ios.h:207: Error E2272 : Identifier expected C:\Borland\BCC55\include\ios.h:207: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\ios.h:229: Error E2219 : Wrong number of arguments in call of macro 'clear' C:\Borland\BCC55\include\vector.h:328: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\vector.h:334: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\vector.h:509: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\vector.h:510: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\vector.h:517: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\vector.h:550: Error E2219 : Wrong number of arguments in call of macro 'erase' C:\Borland\BCC55\include\vector.h:563: Error E2040 : Declaration terminated incorrectly C:\Borland\BCC55\include\vector.h:563: Error E2228 : Too many error or warning messages :: === Build finished: 26 errors, 0 warnings ===
------------------
This is my code:
main.cpp ------------------
#include "curses.h"
#include "level.h"
int main() { Level lev(1, 1, '.', '#');
return 0; }
level.h ------------------
#ifndef LEVEL_H #define LEVEL_H
#include <vector>
class Level { public: Level(const int width, const int height, const char floor, const char wall) : WIDTH(width), HEIGHT(height), GRID_SIZE(WIDTH * HEIGHT), GRID(new bool[GRID_SIZE]), FLOOR(floor), WALL(wall) {}
private: const int WIDTH, HEIGHT; const int GRID_SIZE; bool *const GRID;
const char FLOOR, WALL; };
#endif
------------------
I'm also using the curses library ("curses.h" in the main file) through PDCurses (http://pdcurses.sourceforge.net/). Getting rid of that include also makes the errors go away.
So, can anyone tell what's going on?
|
| | 3 answer | Add comment |
Thursday, 3 May 2007
|
| help Guest 20:37:12 |
| | how to make header file?
|
| | 1 answer | Add comment |
Wednesday, 2 May 2007
|
| help Guest 14:51:02 |
| | how I can use the option Lower/Upper on my find dialog thank you and sorry for my bad english |
| | Add comment |
|