Re: How to get the adress machine of any c_proc()

new topic     » goto parent     » topic index » view thread      » older message » newer message
javier07b9 said...

Example :

atom libr 
 
libr = open_dll("mylibrary.dll") 
 
constant proc_00 = define_c_proc(libr,"ini",{}) 
 
c_proc(proc_00,{}) 

This is the correct way to call the proc. This is the only way that you should be doing this.

javier07b9 said...
-- Now would get the adress machine 32 bits of this c_proc  
-- and then call the proc 

You can do so like this:

atom libr 
 
libr = open_dll("mylibrary.dll") 
 
constant proc_00 = define_c_proc(libr,"ini",{}) 
 
c_proc(proc_00,{}) 
-- Now would get the adress machine 32 bits of this c_proc  
-- and then call the proc 
constant proc_00_addr define_c_var(libr,"ini") 
call(proc_00_addr) 
javier07b9 said...
call(proc_00) 
 

But why would you ever want to do this? There are a lot of gotchas and pitfalls to be aware of when doing this.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu