Einzelnen Beitrag anzeigen

Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#13

AW: Code läuft in VCL aber nicht in Console (GetThreadContext)

  Alt 6. Jun 2010, 15:49
Please look back to Dezipaitor's answer on page 1, I agree with him that the error is likely to be caused because you are specifying a constant value and CreateProcess writes to it.

I wrote a while back about this on the Jedi Blog: http://blog.delphi-jedi.net/2009/11/...s-declaration/

It also explains why it works well in Delphi 2007 and not in 2010 (because 2010 uses CreateProcessW and 2007 will use CreateProcessA).
See my blog blog
See our Jedi blog
  Mit Zitat antworten Zitat