The Operating system and your anti-virus should not allow you to write to your program's code segments after it is loaded into memory. Any attempt to do so will result in either a AV fault and program crash or the anti-virus quarantining your program. This a very specific viral behavior that...
There are several Windows API functions you could use to notify a parent process that the child process has crapped out. The Exception model is only for use within a process; DLL's can use exceptions to notify calling processes because they use the same stack frame and memory space. To...
A stream in Delphi and C++ is just a more generic mechanism for transferring information. In Object oriented languages like Delphi and C++, streams allow you to send and receive information from a device, whether it be a keyboard, Display device, File system or IP Socket without having to worry...
In that case, TStringStream and TSTringList are both good candidates, and they have the advantage of using the default String type which is Unicode in current versions going back to 2009. TStringList has streaming and file functions built in; you just call TStringlist.LoadFromStream and...
The shortstring is the implementation of the original Pascal string type; the OP may be doing something that he wants to be compatible with other Pascal compilers. I generally don't ask why somebody is doing something a certain way unless it is obviously a wrong or dangerous way of doing it, I...
In a short string, the leading byte (i.e. Temp[0]) is a length byte, denoting the number of characters in the string. This is why it cannot be more than 254 chars long. In other words, length(Temp) = Temp[0]; see the following from Delphi's online help: Delphi Short String
Yes, you are correct in that it should be parentheses instead of brackets. I have just been coding in C++ and Delphi instead of Basic for a long stretch and just got accustomed to their style of indexing. MajP's comments are all on target.
Use database.QueryDefs.execute instead of DoCmd.Open. Try using something like this:
Private Sub Combo60_AfterUpdate()
dim Qname as string
Dim DB as Database
Dim RowsChanged as Integer
Set DB = CurrentDB
Select Case Me.Combo60.Column(1)
Case 1
QName = "qry_UPD_MReq_ReceipientShip"...
Started using AppMethod with C++ (Same compiler as 64 bit C++ Builder) for Android just to see what it could do. First app, going just fine until I test restarting the App. I get a ALOOPER_POLL_ERROR exception. Has anyone else here had this problem, and if so, how did you solve it? I have...
The problem is that TService automatically creates a new TServiceThread on its own when it starts. Try moving all your ADO startup code into the TService.OnStart event along with the CoInitialize statement.
Just call it like you would any other function:
TForm1::Button1Click(TObject *Sender)
{
Application->MessageBox("Button1 Handler!", NULL, MB_Ok);
};
TForm1::Button2Click(TObject *Sender)
{
Button1Click(Sender); //calls Button1's handler
};
Or, if you want to call it from the event...
Does anyone have a reference or link to creating XML data transform files without using XML Mapper? I only have DelphiXE2 Pro, which does not include XML Mapper.
Why are you using char arrays instead of the default string type? The listbox.items will accept them, and concatenation should be availble with + operator.
After looking at the sites code in a web debugger, it appears that the javascript used by it utilzes some functions that are not compatible with IE8. I run IE9 on my windows 7 machine and I love it more than FF or Chrome. I would strongly encourage you to upgrade to 9. I tried 10, but for...
I know that there are some sites out there now that will not run on IE8 and below. (DisneyJunior.com, for one). The website scripting has a test for IE 8 and below, and if it fails, it displays a warning about you web browser being too old to be able to display the site. It might be the same...
I'm sorry, I can't resist it: "Button, Button, who's got the button?" [spin2]
Seriously, let me make sure I have this straight: You want to put a button on the Client page that passes data to and executes a script on the server?
The TObject ancestor method returns a dereferenced self pointer as a TObject class. Since the Class reference's address is the same as the actual object (since any object type declared with a "class" declaration are descended from TObject, and therfore IS a TObject), my guess is the debugger...
a.ClassType does NOT = TMyObject, unless you overload the ClassType function in TBaseObject to return a TMyClass; that was the whole point of my most recent post. In your original Code, a.ClassType = TObject, not TMyObject, because you have not overloaded it. I suppose this is why the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.