Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Delphi Programming


DLL - stdcall  

What will be the difference if I have no stdcall at the end of the declaration?... Continue Reading
Views : 2503
Tuesday 27th of November 2012

debugger gets out of step with source code  

Hi gang! I'm a Delphi newbie, and I've just encountered a frustrating phenomenon that I remember being an occasional issue with Microsoft Fortran PowerStation 1.0 (no dinosaur cracks, please). While stepping through code after a breakpoint, I noticed that the ... Continue Reading
Views : 304
Tuesday 27th of November 2012

Re: Delphi 2007 IDE very slow  

John, Me too. My Delphi 2007 Enterprise (Update 2) just "hangs" most of the time. I do have a fairly large project. I have disabled numerous IDE settings for Delphi. The IDE has become almost unusable for me and I'm ... Continue Reading
Views : 277
Tuesday 27th of November 2012

BDS2600 Delphi falsely claiming "Undeclared identifier"   

What can suddenly cause BDS2006 Delphi to report syntax error: "E2003 Undeclared identifier" for an identifier that is declared as a constant (with a unique name) in a separate unit? I suppose the problem is in the unit where the ... Continue Reading
Views : 313
Tuesday 27th of November 2012

Vista apps from D7  

Are there any problems writing Vista-compatible apps with D7? Will the applications adopt the Vista look, minimise to the task bar properly, and so on? Thanks, SteveT... Continue Reading
Views : 290
Tuesday 27th of November 2012

Debugging DLL's from within Codegear 2007 RAD Studio  

My application is written in Delphi, apart from a few DLL's that are written in assembler and C++. I recomplied the DLL's under the RAD Studio C++ compiler, copied theses DLL's into my main program directory along with the corrosponding ... Continue Reading
Views : 236
Tuesday 27th of November 2012

Dispose not disposing.  

Consider the following code that leaks memory: TStringRecord = record Value: string; end; PStringRecord = ^TStringRecord; procedure TForm1.Button1Click(Sender: TObject); var StringRecord: PStringRecord; p: Pointer; //untyped pointer begin //Allocate record that contains a string field... Continue Reading
Views : 245
Tuesday 27th of November 2012

Re: Capture poker software data  

On Tue, 27 Nov 2007 13:47:23 +0100, "Atle Smelv?r" $PHXLESSatle@datagrafikk.no$PHXGREAT wrote: $PHXGREATThere is software for windows to snoop packets from processes. But the only $PHXGREATdata you would get through this connection is the data you already can see $PHXGREATin your ... Continue Reading
Views : 248
Tuesday 27th of November 2012

find items that appears twitce in a Stringlist  

Hi I have a bug. I can catch the bug when an any item appears more than one in a stringlist. How do you know if an item appears more than once in a stringlist. Or do I need to ... Continue Reading
Views : 227
Tuesday 27th of November 2012

Return value of the function might be undefined   

Hi, I have a somewhat lengthy function (see below) which when compiled with BDS2006 always gives me a warning saying that its return value might be undefined. But it says so on a line where Result itself is assigned to ... Continue Reading
Views : 280
Tuesday 27th of November 2012

Refactor-Declare Variable...  

Hello, I am working through some of the features in D2007. I like the Ctrl+Shift+V. My code formatting uses lower case for reserved words. How can I edit the type names in the combo so the changes are saved? Ideas? ... Continue Reading
Views : 320
Tuesday 27th of November 2012

Using Visual Studio DLL in Delphi 7  

Bo Berglund wrote: $PHXGREAT I need to use a DLL from another company to interface to their $PHXGREAT equipment from my Delphi 7 application. $PHXGREAT The software people over there have handed me the DLL plus a few H $PHXGREAT ... Continue Reading
Views : 256
Tuesday 27th of November 2012

How can I tell which update level is installed  

This may sound silly, but how do I tell if Update 3 is installed in RAD Studio 2007? When I click on Help About I get: CodeGear(tm) Delphi (R) 2007 for Win32(R)R2 Version 11.0.2804.9245 Nothing on the screen says Update ... Continue Reading
Views : 265
Tuesday 27th of November 2012

Re: D2007_R2_Pro_Update3 700 mb usage + 800 virtual memory  

No answer yet?... Continue Reading
Views : 135
Tuesday 27th of November 2012

Minimize CodeGear Delphi 2007  

Hi, I have problem with Delphi 2007 for Win32, when I click on minimize button to minimize IDE all windows (forms, data modules) stay opened and IDE is minimized. I try to reinstall but nothin has changed. Hoe to solve ... Continue Reading
Views : 262
Tuesday 27th of November 2012

Have ProcessID, can I get the application name  

Is there a way I can find the application name for a process for which I only have the ProcessID? regards Sven... Continue Reading
Views : 247
Tuesday 27th of November 2012

Attempt to release mutex not owned by caller  

I'm getting this error over and over and I have to restart the IDE and I lose most of my work in the process. Has anyone come across this error or know a solution to it ? Thanks, MG... Continue Reading
Views : 217
Tuesday 27th of November 2012

Data Corruption when passing pointers to TThreadFunc  

Hi all, posted a few hours ago about using BeginThread / EndThread. Seem to be getting on ok, except that the data that I'm passing to the TThreadFunc seems to be getting corrupted (please excuse any blatant mistakes, only been ... Continue Reading
Views : 213
Tuesday 27th of November 2012

Problem with TFileStream.seek in Turbo Delphi  

Hi, I've just started using Turbo Delphi after 25 years with Turbo and Delphi products. I'm not sure if this is the appropriate forum, but I couldn't find another TD-specific support mechanism anywhere. I'm reading a large data file, using ... Continue Reading
Views : 313
Tuesday 27th of November 2012

How to launch just the Delphi personality  

What I want to do is launch the delphi only personality AND load the project file that I clicked on. I can use the installed shortcuts to start the Delphi personality only but it doesn't load a project. The installer ... Continue Reading
Views : 242
Tuesday 27th of November 2012

Vista and the registry, does this look ok to you  

Hi, I'm after any feedback on how I'm doing things (I'm just a home programmer, so please be forgiving ;-) On vista I found that I'd broken some of the rules about accessing the registry and my programs either died ... Continue Reading
Views : 218
Tuesday 27th of November 2012

Differences between WM_USER and WM_APP  

After reading the thread named "Sync thread with main thread" I'm wondering what is the main problem with WM_USER and WM_APP. I don't see why, if we just make sure that (WM_USER + XX) is not used in another pascal ... Continue Reading
Views : 310
Tuesday 27th of November 2012

Registry check on Linux  

My program has the ability to export to Excel using OLE automation, the problem is that we also need the program to work in Linux. Obviously the Excel automation won't work since there is no Microsoft Excel for Linux, but ... Continue Reading
Views : 218
Tuesday 27th of November 2012

Why would this code fail on Vista (Open file for read using SYstem.Resetraises error 104 on vista)  

Warren Postma wrote: $PHXGREAT What on EARTH is happening when you call Reset() that causes it to $PHXGREAT raise a permission exception on Vista? Wild guess: probably a sharing lock. Use SysInternals FileMon to be sure. -- Craig Stuntz [TeamB] ... Continue Reading
Views : 316
Tuesday 27th of November 2012

PChar - WHY  

Richard wrote: $PHXGREAT I'm sending and receiving data from a VB .DLL. $PHXGREAT VB has the string parameters as ByRef s: String; $PHXGREAT $PHXGREAT I converted them to: s: PChar; $PHXGREAT $PHXGREAT Why does this work..... $PHXGREAT $PHXGREAT Var $PHXGREAT ... Continue Reading
Views : 191
Tuesday 27th of November 2012

Use Ctrl+Del as ShortCut  

Hello, I want to use VTRL + Del as TAction shoretcut with D2007, but the shortcut editor seems to ignore the Del key..any idea ? Thanks John... Continue Reading
Views : 95
Tuesday 27th of November 2012

Any Automatic Parenthesis completion  

This year I'm really trying to get myself to start using Delphi 2007 instead of Delphi 7. And you know, this is a really painful transistion. CodeGear has asked people what is stopping them from upgrading. And while I agree ... Continue Reading
Views : 223
Tuesday 27th of November 2012

Who's Idea was it  

Who's idea was it to change a forms property to wsMinimized when the Form was minimized while working in the IDE? Without embedded designer, pressing F12 does indeed swap between code and Form, but it still allows the form to ... Continue Reading
Views : 203
Tuesday 27th of November 2012

Solution to a multithread problem  

Hello! I have been using a 3rd party library (which I don't have the code for) and I have been experimenting some lockouts with my application. The dll accepts an object on a callback function to return some file names ... Continue Reading
Views : 222
Tuesday 27th of November 2012

Inproper indentation in Live Templates  

Me again...still trying to get Delphi 2007 to work the way I need it to. One of my CodeRush templates was "bg". It causes a begin/end block to be inserted. Now, Delphi 2007 has two features to already do this. ... Continue Reading
Views : 207
Tuesday 27th of November 2012