For Programmers: Free Programming Magazines  


Home > Archive > Delphi > October 2004 > serial xp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author serial xp
Mirek

2004-10-20, 8:56 am

Hi!
I've found such a code:
http://www.bcsoft.org/windows-product-key.htm

but it generates errors:

Data: array [1..] of Byte; // Raw data from registry key placed here
//expresion expected but ] found


CopyMemory(@BinaryKey, @Data[], SizeOf(BinaryKey));
//expresion expected but ] found:(

Enybody can help me?

--
Pozdrawiam
Mirek
ForceASPI v1.8 http://www.dhost.info/boski/forceaspi.html
http://tiny.pl/f5r
gg:4500044
Artek

2004-10-22, 8:56 am

Hello! (Czesc!)
Try this: (Spróbuj tak:)

Data: array [1..1024] of Byte; // Raw data from registry key placed here

CopyMemory(@BinaryKey, @Data[1], SizeOf(BinaryKey));

It should be OK (Powinno byc OK)


--
Pozdrawiam.
Artek.
GG:4166545 (invisible for unknown)


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com