Hello:
I want to preview a report in a Delphi 7 program that connects to a SQL database. The database can use SQL or Windows Authentication.
If SQL Authentication my program do:
MyReportComponent.Connect.Server:=myServer;
MyReportComponent.Connect.UserId:=myUserId;
MyReportComponent.Connect.Password:=myPassword;
MyReportComponent.Conn...
Hi,
I am improving a Delphi program...
There is a procedure that expects a TFormClass argument (class of TForm).
I passed in TForm1 or like and it did not like. E.g. procname(TForm1);
There are other forms in the program that are passed in similarly in the program,
yet there is no such compilation errors for them.
E.g. there is anothe...
I have a C++ program, that calls Delphi DLL to initialize a buffer that contains chars.
I am testing out the interface to make sure the data are passed correctly:
In C++ program:
char * pMsg = (char*)malloc(3); //allocate buffer
Init(pMsg * char); //Delphi DLL function
In Delphi DLL:
procedure Init(pMsg:PChar);
var
pHardcodedMsg...
Hi.
I have a MDI main (parent) form and a MDI child form. I create the child at runtime like this:
VAR
FrmDereplic: TFrmDereplic;
procedure TMainFrm.Button2Click(Sender: TObject);
begin
FrmDereplic:= TFrmDereplic.Create(MainFrm);
FrmDereplic.Show;
end;
Steps to reproduce the error:
I start the app, I press the button to create...
Hello. I'm trying to point an entity to a 3D vector. (basically setting an entities angle so it points to a position in 3D space). At the moment, I'm stuck with getting an angle from a vector.
//Vectors in the bracket are 3D, first is the entity position, second is a position in space where I want to point at.
( myEntity.Pos - posToPoi...
I want to find out which ip can be remote. (remote desktop)
For example, I set a valid IP of my network into an edit box and the program says it can be remote or not.
...
I'm trying to compile this project in Delphi 2010, which uses TNetSharingManager. I have imported the type library and tried compiling it, but unfortunately I'm getting an Access Violation in this function:
function TNetSharingManager.GetDefaultInterface: INetSharingManager;
begin
if FIntf = nil then
Connect;
Assert(FIntf nil,...
Alright, so you have a TObjectList instance. You want to loop through the items in it and delete some of the objects from the list. You can't do this:
for I := 0 to ObjectList.Count - 1 do
if TMyClass(ObjectList[I]).ShouldRemove then
ObjectList.Delete(I);
...because once you delete the first object the index counter I will be al...
Today C# and a modern copy of Delphi is getting very expressive for a student /hobbyist to start out on with a $2,000 price tag to get started. I remember when you could get started at a 10th of the price with Delphi. And a very large array of small programs came about in all sorts of fields. The ones that come through that hobby level a...
Hi,
How would you change the colour of the current selection in cxGrid?
Thank you.
...
Could you please provide me with a simple example of using the Filter Property of ADOQuery in Delphi 7?
Thanks.
...
Hi.
I have a program that just popped up an AV. Until now the Eureka Log could find the source code line that generated the error but now it displays only this:
Access violation at address 7E452E4E in module 'USER32.dll'. Read of address 00000015.
Call Stack Information:
----------------------------------------------------------------...
After adding a IdUDPServer to my form and trying to put some code into the OnUDPRead event, I'm not able to add any component to my form at design time, nor can I run the application.
is there any way to solve this ?
...
I want to dump a process image on the disk and then execute it
i listed the process modules
i used readprocessmemory to read the memory range of the exe
but when i try to execute it fails.how can i solve this?
thanks
...
Simple problem in Delphi. I've created a console application and I need to change the height of the console window to 80 lines, if it's less than 80 lines. This need to be done from code and is actually conditional within the code. (I.e. when an error occurs, it increases the size of the console so the whole (huge) error report is visibl...
I found a strange behavior in the component TwebBrowser, when I load certain pages they are shown with larger fonts. different from what is used in internet explorer.
see these sample images
Here in this link http://docwiki.embarcadero.com/RADStudio/en/Main_Page is loaded with larger fonts in TWebBrowser and with small fonts (another s...
After reading this article about SOAP versus REST I started to wonder what option Delphi developers have on choosing a good REST library to import REST-service functionality inside Delphi/WIN32 applications. And what options there are to create REST services in Delphi. So I have a few related questions:
Is there any open-source REST li...
I am looking for a method to intercept http post requests with delphi without hooking any browser functions.Is that possible? How??
...
what should i look for to start writing a software to design flow charts in delphi?
is there any example out there? any library or code sample?
thanks;
...
I have a legacy app written in Delphi 7. We are adding new modules to the app. The modules are written in Visual Studio 2010, .NET 4, C#, and exposed to the app through COM.
I have successfully defined a class, registered the assembly, exported the type library, imported the type library into Delphi, created the COM client in Delphi a...