Re: User32 And GDI32 Wrapper Feedback

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

Hello All,

So has anyone used my wrappers or taken a look at them? I spent a lot of time writing them. I was also thinking of making some more wrappers. Any bugs or anything that I may have missed in my current wrappers? I know these were kinda of large projects to take on, but I had fun doing them and I learned some more about the windows API and euphoria. So any feedback?

I fast look at user32.ew and found something doubtfull here:

procedure WinHelp(atom handle,sequence str,atom ex,atom ex2) 
	 
	 c_proc(xWinHelp,{handle,str,ex,ex2}) 
	 
end procedure 

You can't pass a string to a WIN32 API function. Windows knows nothing about euphoria sequence. this should be something like that:

procedure WinHelp(atom handle,sequence str,atom ex,atom ex2) 
atom pStr 
         pStr = allocate_string(str)	 
	 c_proc(xWinHelp,{handle,pStr,ex,ex2}) 
         free(pStr) 
	 
end procedure 
 

By the way I did a lot of win32 API wrapping in past years. Take a look at: win32 api wrappers. Others did alot of it too, look at Judith Evans IDE. WIN32 API is huge. You would better improve and expand what as already been done than starting all over.

This is not to critisize, this work is usefull.

Jacques

Right, I understand. While starting from scratch may not have been the best approach, it was something rewarding to do. And as you noted, I will go back and fix anything I have missed.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu