delphi package - madRes, madTools, madStrings, ...
-
zcecil
- Posts: 22
- Joined: Thu Sep 09, 2004 8:16 am
Post
by zcecil »
hi, I wrote this is C++ builder 6
Code: Select all
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if(OS().win9x){
ShowMessage("win9x");
}
else
ShowMessage("not win9x");
}
when i click button1, is has EAccessViolation error, while
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
if OS.win9x then
ShowMessage('win9x')
else
ShowMessage('not win9x')
end;
is working fine.
-
madshi
- Site Admin
- Posts: 10764
- Joined: Sun Mar 21, 2004 5:25 pm
Post
by madshi »
Well, that really surprises me! But right now I don't know why the crash occurs. Quite probably it's a bug in BCB...
-
zcecil
- Posts: 22
- Joined: Thu Sep 09, 2004 8:16 am
Post
by zcecil »
btw, my development environment:
BCB 6.0 pro sp4
windows xp pro (trad. chinese) sp1
delphi 7.0