Delphi Compiler Defines

Posted by admin
VS ide / delphi ide key map
I'm quit lost in VS ide, F9 run, F8 / F7 Ctrl+Alt+P for tool pallet and the fast find when you type component name F11 to switch to code view / object inspector, the ability to navigate in the object inspector with tab and writing property name. Will someone make a Delphi to VS guide? -- Henning Swiboda wrote: > I'm quit lost in VS ide, F9 run, F8 / F7 > Ctrl+Alt+P for tool pallet and the fast find when you type component > name > F11 to switch to code view / object inspector, the ability to navigate > in the object inspector with tab and writing propert..
Delphi 2006 vs Delphi 2009 IDE stability
Hello, all. I have medium sized project which includes about 20Mb of source code (just size of *.pas files). I use Delphi 2006. There are third party component suites JVCL, DevExpress Bars, Pegasus Imaging. All updates applied. The main problem is IDE stability. About four.five times a day IDE become unstable after intensive usage of code insight functions (most often I press Ctrl+Space key). The best outcome is that I have to save everything and restart the IDE. The worst outcome is when IDE stalls or falls into endless loop of error messages and any unsaved work is lost. OS..
Delphi IDEs
Is it possible to write applications for Android and touch sensitive screens with Delphi XE4 or later versions of Delphi? Is it possible to write applications for Windows 8 and touch sensitive screens with Delphi XE4 and later versions of Delphi? Pier Pier wrote: > Is it possible to write applications for Android and touch sensitive > screens with Delphi XE4 or later versions of Delphi? iOS support was added in XE4. Android support was added in Delphi XE5. > Is it possible to write applications for Windows 8 and touch sensitive > screens with Delphi XE4 an..
Comparison between Visual Studio 2008 IDE and Delphi 2010 IDE?
Hi, I wonder which is more programmer friendly. Especially for syntax highlighting and fast code writting, viewing. Thanks. Mehmet Fide wrote: > Hi, > > I wonder which is more programmer friendly. Especially for syntax > highlighting and fast code writting, viewing. > > > Thanks. See 'RAD Studio 2010 vs. Visual Studio 2010' in non-technical group. -- Warm Regards, Lee ..
Re: Where is data form wizard in Delphi 2009? [pubic.delphi.ide]
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --JivePart=_21560.zeB8CwDOH5aMJzMl Content-Type: text/plain; charset='Utf-8' Sample picture showing drag and drop from persistent fields edit window. (Any TField in any TDataset should work, TSomeKindofTable, or TSomeKindofQuery. Warren --JivePart=_21560.zeB8CwDOH5aMJzMl Content-Type: image/jpeg; name='drag_and_drop_from_persistent_fields_editor.jpg' Content-Transfer-Encoding: base64 Content-Disposition: attachment; ..
Is it posible to configure Delphi XE3 IDE to use Delphi 7 compiler/debuger
Hi! Like many other developer out there I have several project which has been developed with older version of Delphi (Delphi 7). Since theese projects rely on some components which are not compatible with newer versions of Delphi (no newer versions available) I'm forced to do any maintnance on theese projects using Delphi 7. Another solution would be to find replacment components which would provide me with same capabilities and work with latest versions of Delphi. But this would probbably require compleete rewritings of my projects (lots and lots of work). So currently I'm using..
Delphi needs this: Designtime 'tasks' panes in MS Visual Web Developer 2008 [picture]
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --JivePart=_8bd4.zeB8CwDOH5aMJzMl Content-Type: text/plain; charset='Utf-8' --JivePart=_8bd4.zeB8CwDOH5aMJzMl Content-Type: image/jpeg; name='WeNeedThis.jpg' Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename='WeNeedThis.jpg' iVBORw0KGgoAAAANSUhEUgAAARcAAAEaCAYAAAA7TRMKAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAL1wAAC9cBJXXS8AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURB VHic..
{$define does not work in IDE
I need to set a {$define NZ} in the IDE, so that all 40 units are compiled in a certain way. I have set the define in Project-Options-Compiler-Conditional defines, and also in Resource Compiler-Directories and Conditionals. I have set it under Base, and Base is copied down the tree, I see the Define under Base, and under Debug. But whatever I try, it does not seem to do anything. Only when I add the same {$define NZ} into a unit, it works correctly. No way I can do this for all 40 units, every time I switch. In D2006 this always worked okay. Ideas?? Bart -- Bart Kindt / SA..
IDE macros
I'm having difficulty with Delphi XE2 having started with it fresh coming from Delphi 7. So the current IDE is big and complex and confusing. If anyone has a good source for tutorial material on the IDE and the many parts of Delphi, I'd be grateful. The current issue is this: I downloaded Virtual Treeview from the SVN latest source. Made a directory for it and pulled down the whole source tree. Went tot he packages subdir and opened the project group for Delphi XE. That got me a run time project and a design time project. So far so good. I compile the run time project with only ..
define global variables
I know this sounds like a noob of a question but where is the best place to define a site wide variable that i can always call on? for asp.net 2.0 in the global.ascx file? or the web.config file? and what would be the proper syntax? Regards, Abysspwpaust You still can use global.asax. What's you need to do is to add a new item as global application class. thats great.. But how?pwpaust can someone please give some more information on this?pwpaust dont you put it in the web.config?pwpaust doesn't anyone have the faintest idea?pwpaust absolutly no-one kn..
How is made the Delphi IDE ?
Hello Some years ago it was clear (for me) that Delphi was written in..Delphi + VCL. Is it always true ? Are there some informations about it ? I curious about editor because it is quite clean and efficient, and is 'customised' with some third party software like CnPack, do they have acces to sources or new functions are done via a plug in ? Am 26.07.2013 10:11, schrieb phil prost: > Hello > Some years ago it was clear (for me) that Delphi was written in..Delphi + VCL. Is it always true ? Are there some informations about it ? > I curious about editor because it is q..
Delphi 7 IDE
Anyone know where I might go to get some information on a nasty 'Debug process already running' message in Delphi 7 IDE? I can't compile any of my D7 projects. I uninstalled and reinstalled D7 but the same message pops up. XE3 is not affected by whatever is happening. All my XE3 programs compile and run fine. Are there any D7 forums left out there? My google search on the problem has yielded nothing useful. On which OS? Delphi 7 works very well under Vista/Seven/Eight if you install it not in C:Program files (the default) but in a dedicated folder (I use C:Progs) - d..
Global IDE directory?????????????
This may have been asked before but I couldn't locate anything in the Newsgroup. What is the global ide directory? What would/could it be used for. I noticed in the sfm.xlog1 file: 2004-03-17 11:47:48.279 ims53cluster 43628 772 sfm20.1 clinfoInit() gl obal data area ptr [0x0000227331b8], len = [131072] 2004-03-17 11:47:48.384 ims53cluster 43628 772 sfm20.1 ImpactOdlObject ::Init() invalid global ide directory specified '/Sybase/Impact-5_3/tcernerout/ cerner_out/sfm20/prodobjs' - ignoring I can't see in the configurator where this direc..
Defining global constants ..
I have a question with regard to defining constants and using them throughout a web application. In Classic ASP, we defined all global constants in a single file which could then be easily included into any web page (see below). I would like to know the best way of acheiving the same functionality as below using ASP.Net, ie: define constants in a single location and then use those constants within HTML markup (ie: URL's with name/value pairs), within code behind, etc. Ideally, an example in ASP.NET (VB) that mirrors the code shown below would be ideal. Many thanks. File: /..

Compiler Directives

No information is available for this page.Learn why.

In the $IFDEF example above, the TEMPOUT identifier is not defined, the $IFDEF evaluates to false and skips the code during compile. The code is never compiled.

Common Examples:

The following are some commonly used compiler directives you should be familiar with:

{$APPTYPE CONSOLE}
The $APPTYPE compiler directive is used in the project source file (.DPR) to tell the compiler to create a Win32 console application or a GUI application. When left out, the default is {$APPTYPE GUI}.

The following is a simple console application:


{$R *.res} and {$R *.DFM}
The $R*.res compiler directive is frequently found in .DPR source files and the $R *.dfm is found in form source units. The revenant rating. The $R compiler directive specifies the name of a resource file to be included. The * indicates to include the base name of the file, no extension, it does not mean to include all files (it is not a wild card character).


{$E cpl}

The $E directive sets the extension of the executable.The following is the project source code from a basic Control Panel Applet. Notice the extension is changed to .cpl. Also note the header starts with library instead of with program. There are three types of headings: program, library, and package.

Custom Compiler Directives

In addition to using the many built-in compiler directives, you can define your own. Here is a simple example.

Notice the $IFDEF above does NOT use a Then. If you put one, it will work because Delphi for Win32 sees the Then as a comment. However, Delphi Prism does not and you will get an error.