Martial Code's DX win apps has inspired me to rewrite mine(with me unfortunatly staying up way to late when I have to work tommorrow(now 3:45 AM))

Part of my implamentatio requires? a writeable code section. This is what I'm using:




...code... (here)


That should make all the code in there writeable right? I've been having some access problems(maybe I need to rebuild)

BTW: In a few days(after I clean up the code, and test it), I will post a source that lets you use directx with invoke , not dxinvoke or ddinvoke. Nope, good ol invoke.
Posted on 2002-09-15 13:41:13 by ThoughtCriminal
As far as I'm using segment directives, I haven't been able to successfully make the code section writeable(.asm code controlled) but you can specify this parameter during linking.


r = read
w =write
e = execute

I could be wrong with the segment directive`s capabilities. :o
Posted on 2002-09-15 22:15:53 by stryker
Thanks. This extened segment directives are not well(or easily understadably) documented IMO.

My code seems to be working now. But I think I'll try your method just to be sure.

Using these directives seems to remove some bothersome "errors" that come from using .code et al...
Posted on 2002-09-15 23:31:49 by ThoughtCriminal