Hi,
I have a main application with a global exception handler installed. Now, for some specific exceptions being raised within another thread I want the global exception handler to be invoked. But it does only handle exceptions from the main thread. I also tried the following from within the thread but it does not work either:
RunInMai...
I have a problem with the properties of IInterface type.
I don't know how to assign values to these properties using RTTI
Here's an example:.
program Project2;
uses
Forms, RTTI, Windows, TypInfo;
{$R *.res}
type
ITestInterfacedClass = interface
['{25A5B554-667E-4FE4-B932-A5B8D9052A17}']
function GetA: ITestInterfacedClass...
Is there a way to get the RTF data from a richedit without using savetostream as in
strStream := TStringStream.Create('') ;
try
RichEdit.Lines.SaveToStream(strStream);
Text := strStream.DataString;
strStream.CleanupInstance;
finally
strStream.Free
...
im trying to send a message between 2 separate projects, but my problem is that im trying to make the receiver run inside a TThread Object, but WndProc wont work from inside an Object, must be a function, is there anyway to create a window inside a TThread that can process messages inside the thread?
here is what i mean
function TDataT...
How do I declare a fixed size string property in Delphi?
This is what I want to do, but I receive an error:
TMyObject = class(TObject)
private
FName : string[20];
public
property Name : string[20] read FName write FName; //<-- error
end;
The compiler error reads: 'INDEX, READ, or WRITE clause expected, but '[' found'.
...
I'm using an old script engine that's no longer supported by its creators, and having some trouble with memory leaks. It uses a function written in ASM to call from scripts into Delphi functions, and returns the result as an integer then passes that integer as an untyped parameter to another procedure that translates it into the correct...
I'm using Delphi (7-2010) and trying to figure out a good way to handle exceptions while freeing forms of an application. The application has several forms that are owned by the Application object. When the user logs out, I need to free all of the existing forms so no user state is maintained and then show the login dialog for the next...
I need to do it programatically similar to Spy++. All I need is the one WM_COMMAND message returned so I can retrieve the Command ID. Does anyone have source on this? I really appreciate it...
I am currently using Delphi...
...
is there any easy code sample out there or how-to on how to make a richedit control do syntax-Highlighting ?
i tried SynEdit but its very very complicated for me, i was wondering if there was a small code snippet there that i can work on? or just an idea on how to do it as fast as IDEs do?
cheers;
...
how to prevent the appearance of the dialog box This document has changed. save changes? which occurs in the transition when webbrowser about: blank
Thank you so much. did so
Browser.Navigate ('about: blank');
DesignMode (false ,'');
Browser.OnNavigateComplete2: = NavigateComplite;
procedure NavigateComplite (ASender: TObject; co...
Hi!
We wrote a Delphi program that send some informations with CDO.
In my Win7 machine (hungarian) the accents are working fine.
So if I sent a mail with "ÁÉÍÓÖŐÚÜŰ", I got it in this format.
I used iso-8859-2 encoding in the body, and this encode the subject, and the email addresses to (the sender address is contains name).
I though...
I'm trying to create a Gecko 2.0-compatible DLL in Delphi.
Previously (pre-Gecko 2.0) the DLL needed to export a NSGetModule() function. This worked flawlessly.
Starting with Firefox 4, my DLL is getting loaded (I have verified this though a breakpoint in my initialization section), but my NSGetModule() function does not get called any...
Hi Ray,
Did you ever solve the following problem? I am experiencing it. I'm running Windows 7 x64.
"I was able to find a Delphi 2007 installer that had the December 2007 update. This installed OK, though the help did not install (displaying message "Error", then exiting). It runs OK, and I have also run the updater, which Identifies a ...
Hi, in C# you can easily open an assembly (just another word from an EXE) and then get reflection information from that assembly. I've been looking for something similar for Delphi where I can write a Delphi program that can point to a Delphi EXE then get me reflection information. How can I archive this? Thanks
...
Hello
there is a code
var
myobject:OleVariant;
begin
myobject:=CreateOleObject('SomeNamespace.SomeClass');
end;
this com object has event OnClick for example. How must I connect to them without importing tlb?
Regards,
Yuriy
...
Does any one know of a Delphi to .NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search - maybe that's because one...
I am using the TcxDBTreeList component with Delphi 7 and I am having some wierd results adding rows.
I am using a Tclientdataset for my data. I am appending to it and the row shows up correctly in the treelist.
However, its never allowing me to arrow down past the 2nd node in the tree, Even if I've added 10 more nodes.
I'm sure it's ...
The reason I ask this is widows do not support a good method to communicate between processes. So I want to create a DLL for a communications point between windows processes. A thread is owned by a process and cannot be given to another process.
Each thread has a stack of its own.
If a DLL is loaded (loadlibray) and a DLL function is ca...
Hi
Could someone know / give me an example of how to read a section from an ini file into a stringGrid? As I am struggling to figure out how to do it.
thanks
Colin
...
I Program my local schools program launcher which allows students to get on the internet with an randomly generated key provided by a teacher. This is done by changing the proxy in Internet explorer to the one needed for the internet and the wb filter.
With the schools website and learning resources gradually moving to offsite hosting t...