|
Build your test application. Then go back to your DLL project. Go to the Run menu. Select the Parameters menu item. In the Host Application area, put the path to your test application .exe.
NOTE: I'm telling you this from D5. I don't have D6 installed, but I think it was the same process.
Another issue you may run into (D5 suffers from this is), the breakpoints will disappear. This is a well known bug in D5 and debugging DLLs. Should this happen, make your test application test your DLL by using buttons. This way here, it won't automatically run through the DLL code. Before hitting a button (or some other control), go to the IDE. Go to the View->Debug Windows->Modules (or Ctrl+Alt+M). Right click your DLL in the list. Select Reload Symbol Table. This enter that path of your DLL. You should see your breakpoints re-appear.
Hope you find this information useful.
|
|
|
|
|
Hi,i have rtf formatted data stored in a file, the data is english letter and unicode character mixed format, i want to display the mixed data in a richviewEdit control. the problem is if the data is only unicode character or only the english character, it was displayed correctly,but it is not good for the mixed character, is there any way to fix it?by the way, i have to use the richview control,please help!
|
|
|
|
|
Simple Question:
How do I enable copy and paste actions for TDBEdit controls.
I hadn't noticed this didn't work until one of my customers pointed out you can't copy values from one of the edit controls and paste into another.
I tried it myself, and copy doesn't put anything to the clipboard, and if the clipboard contains appropriate data paste does nothing.
|
|
|
|
|
As there were no replies, I wrote a keyboard handler to manually perform the actions.
|
|
|
|
|
I have a question is it possible to delete the content of a textfile which items are all in a memobox
example
AssignFile(f, 'C:\windows\system32\drivers\etc\hosts'); {Assigns the Filename}
Append(f); {Opens the file for editing}
//Writeln(f, '127.0.0.1 '+ memo);
Writeln(F, Memo.text); //Could be multi-line...
//Writeln(F, 'www.'+ Memo.text); //Could be multi-line...
Closefile(f); {Closes file F}
This appends to a file text from a memo field,
I want a 2nd button that removes only the ontent that is currently in the same memobox.
Trick is there is other items in the textbox so i cant just recreate the file.
Anyone able to help ot give pointers?
|
|
|
|
|
I don't understand good enough your question.
Try yo use memo1.lines.savetofile and save content of Memo1 direct as file.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
|
http://www.delphibasics.co.uk/[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
http://www.marcocantu.com/[^]
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
|
How can I load XML file into TListBox in Delphi 2009? I want to make it possible to click a button and the channel lists will be load on ListBox and end user will click on any of the channel and it will start playing on media player.
http://s253696961.online.de/images/bxxda7q6am71jkuwtrb.jpg
modified on Tuesday, July 28, 2009 1:59 PM
|
|
|
|
|
You can load the .xml file in some of the xml components for Delphi, like TXMLDocument. But it is SLOW, takes a LOT of memory and worst of all - have some strange behavior - after accessing a node you have to manually free it. Not to mention that you have to traverse trough nodes until you reach desired branch.
If you need a simple job - like taking channels name from xml, I would suggest to open it as a txt file (you can open it trough TStringList for example, and use Text property for direct access) and manually parse it (use PosEx, to incrementally search for node names, and then Copy to extract desired names)
|
|
|
|
|
I am about to start learning a new programming language, and have recently acquired Delphi for no real reason. I was wondering, does Delphi write its code in Pascal? If so, what can I do with Pascal? Anyone have any good resources for it? Both online websites/tutorials and books (maybe even Delphi specific). If it isn't the same, which language is used in Delphi? Is it its own language? I ask because I read somewhere it uses ascal, but I didn't know if it used Pascal to physically run, or if that is what the code is. Thanks guys.
|
|
|
|
|
Check this link.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
There's no real one place to look for Delphi info, it's pretty scattered. A good site for the basics/just as a general reference, is Delphi Basics[^]
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Once upon a time, Delphi used Object Pascal. Today, Delphi is a language on its own. It is based upon Pascal, but too different to be called Pascal.
This statement is false.
|
|
|
|
|
|
Hello,
I'm trying to develop a dll for my application and what is good is that i have the code in pascal developed on Borland Delphi 6 BUT the problem is there are some objects which i can't define them in c++ .
So i need help for this migration and if there is someone can help me what is the best solution and objects in c++ relatives to this objects in Pascal :
TStringList
TMemoryStream
TStringStream
THandleStream
thank you.
|
|
|
|
|
TStringList is a linked list with string values.
TMemoryStream can be replaced by any other stream class or a byte array.
This statement is false.
|
|
|
|
|
I have searched all over for a proper manual - alas! I need to produce a Rave Report from an SQL statement in Delphi7, something like
SELECT * FROM tblTransaction WHERE TransDate>=[Starting Date] And TransDate<=[End Date]
ORDER BY Category, TransDate; (TransDate and Category are fields in the table)
The report must look like an MS Access report GROUPED by Category, then all the Transactions in that group (Category) ordered by TransDate, followed by a sub-total for the group and, finally, an overall TOTAL for all the transactions. The transactions are invoices with such information as supplier, date paid, detail, etc.
The SQL must be passed to Rave Reports from Delphi, as must be the ConnectionString to the database.
There are sites advertising examples of Rave for sale but, they are not specific and I do not want to spend unless I know it's what I'm looking for.
Hannes
|
|
|
|
|
Hi,
Need a clarification in Delphi 7
I have two applications running simultaniously.
One will feed the next with trigger files.
Here i want the second application to pick the oldest file in the list of files available.
Please suggest me an idea with example...
Thanks in advance...!! 
|
|
|
|
|
What kind of files your first applicateon feeds second application?
How is logic of comunication between that two applications?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Thnkx for the response...!!
First application is a report file generator, at the end of report generation it will create a trigger file with root path of those Report files. The second application will pick the trigger file and will Archive those report files to DB...
if i have ten trigger files present named 1.trg, 2.trg ... so on... The second application will pick the 1.trg and process it. After processing. it is not picking the 2.trg where as it starts picking 11.trg which the report gen was currently writing in. Where in i need the second application to pick 2.trg...
i have tried the following but no use...
*******************************************************
Type
FileRecTypePtr = ^FileRecType;
FileRecType =
Record
Time : String;
Name : String;
End;
pFileRecType = ^FileRecType;
Function FetchEOFFiles(SrcFoldName:String) : String;
Var
SearchRec1 : TSearchRec;
FilesList : TList;
FileRec : FileRectype;
FileRecPtr : pFileRecType;
Begin
FilesList := Tlist.Create;
If FindFirst(SrcFoldName + '\*.EOF', faAnyFile, SearchRec1) = 0 Then
Begin
FileRec.Time := FormatDateTime('yyyymmddhhnnss', SearchRec1.Time);
FileRec.Name := SearchRec1.Name;
New(FileRecPtr);
FileRecPtr^ := FileRec;
FilesList.Add(FileRecPtr);
While FindNext(Searchrec1) = 0 Do
Begin
FileRec.Time := FormatDateTime('yyyymmddhhnnss', SearchRec1.Time);
FileRec.Name := SearchRec1.Name;
New(FileRecPtr);
FileRecPtr^ := FileRec;
FilesList.Add(FileRecPtr);
End;
End;
Sysutils.FindClose(Searchrec1);
FilesList.Sort;
End;
***************************************************
|
|
|
|
|
I think your sort is wrong. Think you sort on filenames (strings), so not on numbers. It will sort:
File1
File10
File2
File20
To avoid this precede your filenames with zero's. Then it will sort:
File01
File02
File11
File20
I used only one preceding zero making a max. of 99 filenames, use more preceding zero's if you ll expect more files.
Rozis
|
|
|
|
|