Re: Manage C structures

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is pretty neat. Although I'm not sure I fully understand. I can't get the one simple example test I wrote to work correctly.

include std/dll.e 
include std/machine.e 
include std/console.e 
 
include common.e 
include structs.e 
 
sequence rect = "struct _rect {" & 
		"int x;" & 
		"int y;" & 
		"int w;" & 
		"int h;" & 
		"} RECT;" 
		 
 
sequence r = allocateStructure(rect) 
sequence rs = readStructure(r) 
 
for i = 1 to length(rs)  do 
    printf(1,"%s",{i}) 
end for 
 
freeStructure(r) 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu