flat assembler
Message board for the users of flat assembler.

Index > Windows > DIRECTX problem

Author
Thread Post new topic Reply to topic
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
hi;
i want to write a program with DIRECTX but , when i was compile it DIRECTX have an erroron this word: "GUID"

plz guidance me about this problem .
thnx
Post 22 Jun 2006, 18:09
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
what do you mean "directx have an error on this word GUID" ?

directx can't have "error on word". you mean FASM reports error during compilation on word GUID?
Post 22 Jun 2006, 18:25
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
yes
Post 24 Jun 2006, 11:08
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
I don't think its included in the standard fasmw includes so here it is:

Code:
struct GUID
       Data1 dd ?
       Data2 dw ?
       Data3 dw ?
       Data4 db 8 dup(?)
ends    


and an example on how to use it:

Code:
IID_IDirectDraw GUID $6C14DB80, $A733, $11CE, <$A5,$21,$00,$20,$AF,$0B,$E5,$60>    


If you want some directx examples and more thorough includes, you can goto my website at: http://users.egl.net/talktomatt/default.html[/code]
Post 24 Jun 2006, 23:44
View user's profile Send private message Reply with quote
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
thnx for your guidance, but when i was compiled your code "struct GUID
Data1 dd ?
Data2 dw ?
Data3 dw ?
Data4 db 8 dup(?)
ends
"
with my program , get the error and also iwas get your inclouds in your site but althought not correct.
please UPLOAD all of your FASMW .
best regard.
Post 25 Jun 2006, 15:52
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
What error are you getting? Post the code where the error is happening.
Post 26 Jun 2006, 00:44
View user's profile Send private message Reply with quote
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
for example in file
"PROGRAMMING WINDOWS - CHARLES PETZOLD\Chapters 1-2-3\HelloMessage.asm"
error is "Out of Memory"
Post 26 Jun 2006, 07:37
View user's profile Send private message Reply with quote
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
and another file in that root "3D Game programming with DirectX 9.0\Chapter 1\d3d-Init.asm" in compiling get this

ERROR : "undefined symbol"
source:d3dx9.inc[219]
struct.inc[86]
struct.inc[106]
struct.inc[114]
Post 26 Jun 2006, 08:09
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Hi mm2929,
Embarassed You are right about the errors, the examples work fine, its the setup instructions that are the trouble. At the time I wrote the examples it was correct, but I forgot to update the instructions for future versions of the flat assembler for windows compiler, If you follow the instructions now the examples SHOULD work now Cool , THANKS for bringing this to my attention!! Very Happy

As far as the GUID errors, are you including the win32a.inc file?
Post 26 Jun 2006, 15:11
View user's profile Send private message Reply with quote
mrn2929



Joined: 22 Jun 2006
Posts: 7
mrn2929
hi madmatt ;
Smile
I was addition this 4 line in the top of your exmples and work correctlly :

include '%fasminc%\win32a.inc'
include '%fasminc%\equates\kernel32.inc'
include '%fasminc%\equates\gdi32.inc'
include '%fasminc%\equates\user32.inc'
include '%fasminc%\equates\winmm.inc'

thnx for your help.
plz get me help about another function in your example :
e.g :

fld [TeapotPosition.x]
mov [temp], 3.0
fld [timeDelta]
fmul [temp]
fsubp
fstp [TeapotPosition.x]

if you can, gauidance me to a WEBSITE that learn MAT FUNCTION in FASM .
best regard.
Post 26 Jun 2006, 17:34
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
What trouble are you having with that piece of code?
For info about matrices, You can go here: http://www.gamedev.net/reference/
Look under "math and physics"
Post 27 Jun 2006, 09:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.