Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (ozgur), 762 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[Delphi SDK] load image to game by dll #398367
03/31/12 22:47
03/31/12 22:47
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
hi
I am trying to make a dll that load an image and show it in gs.
i am working by Delphi SDK by LazyDog.
but i need an example to load an image from dll in delphi nd load to a BMAP* in gs.
did any one has any experince on it?

Last edited by flatron; 04/02/12 23:50.
Re: [Delphi SDK] load image to game by dll [Re: flatron] #398730
04/05/12 18:15
04/05/12 18:15
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
is it impossible?

Re: [Delphi SDK] load image to game by dll [Re: flatron] #398870
04/08/12 05:18
04/08/12 05:18
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
LazyDog ,can you help me?
i mad that dll but it crash when i call "BitmapToTexture"

Re: [Delphi SDK] load image to game by dll [Re: flatron] #398874
04/08/12 08:45
04/08/12 08:45
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
LazyDog is quite inactiv and there are not many people using the delphi SDK, so that might be the reason why no one answers your question... smirk

Re: [Delphi SDK] load image to game by dll [Re: Rei_Ayanami] #398876
04/08/12 09:13
04/08/12 09:13
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline OP
Member
flatron  Offline OP
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
thank you for your answer.
i have some problem and hope some one can help me:
1-how can i debug a dll in delphi in winXP .
2-there is a problem in code of dx9library.pas:
ddsd : TD3DSURFACE_DESC;



// check the texture format
if not FAILED(dx9tex.GetLevelDesc(0,ddsd)) then
begin
if not (ddsd.Format in [D3DFMT_A8R8G8B8,D3DFMT_A4R4G4B4,D3DFMT_A1R5G5B5,D3DFMT_R5G6B5]) then
begin
Result := _VAR(2); // format not supported
Exit;
end;

as you can see ddsd in define and used in GetLevelDesc .
the problem is every time i start my dll it go to exit line.
and do nothing.

Re: [Delphi SDK] load image to game by dll [Re: flatron] #398928
04/08/12 21:40
04/08/12 21:40
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
This should also not be in starting with game studios, which is for basic theory and beginner code. The is miles above the beginner code. I believe there is an SDK forum or an advance language forum that those who are more familiar with DLL workings than those that help out here.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1