Summary: I'm able to compile a RAD Studio 2009 project using MSBuild on a Build Server using the RAD Studio Command Prompt, but not with a batch file. This same batch file, however, works successfully on my workstation. On the server the error returned is: MSB4057.
I'm just learning how to use MSBuild with RAD Studio and am trying to...
I'm getting this worthless error in my code. it's very consistant and restarting the compiler hasn't done anything. Has anyone else ever solved this?
while( int CharPos = _Message.Pos(_What) )
{
_Message.Insert( _With, CharPos);
_Message.Delete(CharPos + 1, 1);
}
...
I'm curious about what it takes to program for mobile devices (Windows Mobile 6.1) and if I can use the IDE's we're already used to (RAD Studio 2009).
Is there a Mobile Development Community around where Delphi or C++Builder users can learn from?
Are there differences in development techniques, like: Drivers, Memory Limits, Device ...
Here's what I did:
I've opened a C++ Builder 6 - project in C++ Builder 2009.
Auto-converted it to a C++ Builder 2009 project.
Told it (C++ Builder 2009) to build everything.
Here's what it did:
Successfully compiled everything.
Failed to complete ILINK32, exiting with
"Error: Unresolved external '_CG_DESC' referenced from MyProj...
I've recently began to upgrade my RAD Studio 2007 project to RAD Studio 2009. One thing I noticed is when seemingly simple code all of a sudden failed to compile.
Example Code:
class CButtonPopupMenu
{
// Snip
public:
void Init( TButton* SrcButton )
{
SrcButton->OnClick = OnButtonClick;
}
private:
void __...
I would like to drag and drop files from windows explorer onto my application which is being built in Codegear RAD studio 2009. Then I would like to be able to access data from the object I am dragging and dropping. I believe I have to implement IDropTarget. Can someone please provide an example of how I might implement IDropTarget to ac...
Is there a way to indent/tab multiple lines in one action in the Codgear RAD Studio IDE?
I.e. I would like to be able to highlight multiple lines and indent them all by one tab simultaneously.
...
Hi
I need to migrate to RAD Studio and have this installed on a new workstation. At the moment I still need to develop with Delphi 6 until we get all the necessary control updates and sort out the version control.
So my question is can I just install Delphi 6 on the same machine with no adverse impact for either product?
Thanks in adv...
For example, this simple program:
Program Helloworld;
Begin
writeln ('Hello world!');
readln;
End;
...
I have a situation where I need to compare a char* with a WideString. How do I convert the WideString to a char* in C++?
...
I am reading in a file with a format similar to:
TIME, x, y, z
00:00:00.000 , 1, 2 , 3
00:00:00.001 , 2 , 3 , 4
etc, and code similar to the following:
std::ifstream& istream;
char buffer[15];
double seconds, hours, mins; // initialised properly in real code
// to read in first column
istream.get(buffer, 14, ',');
int scanned = std...
I would like to select the compiler optimizations to generate the fastest possible application.
Which of the following settings should I set to true?
Dead store elimination
Eliminate duplicate expressions within basic blocks and functions
Enable loop induction variable and strength reduction
Enable pentium instruction scheduling
Expan...
I have been stuggling to get the MSBuild to successfully build my .dproj file for the last few days on a build machine.
First, I needed the EnvOptions.proj file from the developer's machine, which got me clear of the missing system.pas file, but now I am getting a compile error for a missing .dcu
C:\Program Files\CodeGear\RAD Studio...
I just noticed that some of my new Delphi controls get installed in the Public Documents folder in windows 7 (TMS Smooth controls and Virtual Treeview). Is there a reason for this, is this a convention or a few way of doing things or something that the operating system does.
Is there a place where I can set the root of my Source con...
Is there anything equivalent to #pragma once for Codegear RAD Studio 2009?
I am using the precompiled header wizard and I would like to know if it is still necessary to use include guards when including header files?
...
Are 'redundant include guards' necessary in Codegear RAD Studio 2009? Is the compiler smart enough to deal with this on it's own?
For example, I might have the following 'include guard' in foo.h:
#ifndef fooH
#define fooH
// ... declaration here
#endif
and the following 'redundant include guard' in use_foo.h:
#ifndef fooH
#inclu...
I'm currently going through a process of refactoring includes to reduce compile time, and I've come across the following compile error:
[C++ Error] some_class.cpp(53): E2015 Ambiguity between 'IID_IDropTarget' and 'Virtualtrees::IID_IDropTarget'
The line of code it points to is:
if (iid == IID_IUnknown || iid == IID_IDropTarget)
If...
I found this line of code when upgrading a C++ Builder project to RAD Studio 2009:
mProcessLength->Text.printf("%d",mStreamLength);
It doesn't compile in 2009, however what is the intent of this line and what is a better equivalent? Given that mProcessLength->Text is now a wchar_t*.
...
Are there any tips to speed up debugging in Codegear?
For example, when I set breakpoints it can sometimes take a long time for the IDE to be active once the breakpoint is reached and likewise when I hit F8(stepover).
...
I use Firefox as my web browser, mostly for access to add-ins such as Flashblock and No-script. I noticed yesterday that the RAD Studio internal browser used for the Welcome Page etc has scripting and Active X etc enabled. Is there a way to disable scripting, or better still, block all access to non-local sources in the built-in browser?...