ahmed zahmed wrote:
can't speak English and have no
clue who their Daddy's are
But they'd know where to put an apostrophe, right?
ahmed zahmed wrote:
can't speak English and have no
clue who their Daddy's are
But they'd know where to put an apostrophe, right?
I think your starting point should be learning how to use the debugger, rather than copying low-level code off the internet and then asking other people to explain it to you.
First you need to create a procedure to handle the event, with the same signature as the delegate e.g. procedure CallArrivedHandler(Sender TObject, Message string) begin //Your event handling code end Then you need to point your CallArrived member at the procedure... CallArrived := CallArivedHandler; And that should do it. (Apologies for syntax errors - from memory, and I haven't Delphi'd for a few years)
Hi Vijay
vijay.victory wrote:
some of my queries take time
then what should I do??
Identify where the queries are coming from in your code, then run them in Management Studio and take it from there. Right-clicking in the query pane and selecting 'Display Estimated Execution Plan' may be of help in identifying where your problem lies.
vijay.victory wrote:
Is it take more time than expected?
I can't tell you that - it's your database and code, so only you can know.
vijay.victory wrote:
all the queries having Select * will replaced with only needed Column name.
That's a good idea - you should always do that anyway because it reduces network traffic, but your problem here is the time of execution, not the time of retrieval. Cheers, Dan
My favourite ever colour name, found in a paint shop (and now confirmed on the web as not being something I dreamed up after a weird cigarette) is Moon Carrot[^] To think someone must have got paid for thinking that up...
Fritz, by a mile. (Not work safe!)
Stryder_1 is quite right - this is too-big an issue to get a simple answer to. However, a good place to start may be with SQL Server Profiler (on the Tools menu of you Management Studio). Use this to set up a trace and identify what's happening when things are starting to go wrong. Two other (easy) things to check are: In your code, make sure you aren't opening new connections all over the place (the trace will tell you this) and, if you have stored procedures, make sure you are deallocating cursors correctly. Good luck!
I think you'll struggle to find a single component to do all that for you. When it comes to de/encryption in Delphi, it's hard to beat dcpcrypt As for your xml documents, just use the classes and interfaces available to you in the XMLDoc, XMLIntf, XMLDOM units. They give you TXMLDocument and IXMLNode, which is all you really need to load up a file and parse its nodes.
You don't build forms, you build a project. If you don't have a project file then you have no choice but to make one. I suggest dumping all the files you have into one directory, creating a new project, adding all of your various *cpp/*h files to it, electing the most likely-looking form to be the 'main' form (i.e. the one created when the program starts) and taking it from there. If you have little experience of dealing with projects then this is not going to be an easy task.
Member 3862339 wrote:
and i will send you the source code
No thanks! I have quite enough to do already, but I'm happy to give advice. Dan
Now you come to mention it, I think C++ Builder used *.dfm file extension for its forms, too? I never used it myself, but it would be the most obvious explanation.
So, according to [This article pointed up in the Daily News] the top three cloud computing mistakes are... No. 1: Ignoring governance and security until the end of the project No. 2: Leveraging "big consulting" No. 3: Falling in love with the technology, not the solution Right. Completely different to normal, then.
Given the amount of deciphering they take, I thought your posts were already CCCs.
Don't you just hake someone else getting the last word?
Arghhh! You've got me there - guilty as charged. I was going to stop anyway, before I strain my pun mussel :-D
Am I the sole person with any sense in this plaice?
Pollacks!
This is reely making me groan
Yeah, and these these prawns don't taste so good, either.
Oh man. Now you've made me sound like an old perv, when really I'm a winter sports enthusiast with a keen interest in international relations. You and your mucky mind...
Hi. I think you may have a mixture of things there: *.cpp and *.h suggests you have a C++ project. *.dfm does indeed suggest Delphi form files, but without any *.pas (i.e. pascal) files, it's very unlikely that what you have is a Delphi proect.