[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] DLL's
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] DLL's
- From: Luke Paireepinart <rabidpoobear@xxxxxxxxx>
- Date: Sat, 11 Nov 2006 11:26:48 -0600
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 11 Nov 2006 12:27:08 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gxTsaC7hFLptmmO1nnj3e0aT991/R791xLTRL0tcU+ysdNZJfAIenG8BLpLWW0vAvwUipZSrPe2Ggo5T8FBtUEpn4tu6alF1POMR3WrGZfLNkVnKgICx5UIEUqXqzGqm92UOoG846lbPDkSZDgBY3jXPL+nx8OHzGgzPGIHCpyY=
- In-reply-to: <BAY115-F1384F5A8C2B838443E576699F60@phx.gbl>
- References: <BAY115-F1384F5A8C2B838443E576699F60@phx.gbl>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 1.5.0.8 (Windows/20061025)
Jason Ward wrote:
Hi.
I want to write program in assembler and put them into dlls.
Then I want to make python call those dlls for me. How does
python call up dlls?
Why not just make C++ dlls?
Assembler is scary :O
Yeah, you can do this.
You can use ctypes to call dlls.
Not sure how, but now that you have a hint,
you should be able to google 'python ctypes' and find info on it.
Also, if I make a function return a value in the dll and then python
calls it up. Can I do it like this.
num=dll_function()
I believe this is the point of ctypes.
Tell me how it goes.
-Luke