Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#1
Ok im working on some programs to help new people customize Mirage Source. One is a Offline Map Editor.

Im adding stuff as I go and its giving me this error.

User Defined Type not Defined

Code:
Public DX As New DirectX7

I have the modDirectX and all I dont see why that part is getting an error.

Thanks
Reply
#2
You need to add a reference to DirectX with the VB IDE like MS does, I don't remember how though, but its either a reference or component, so look for those words.
Reply
#3
Oh yeah that wold make a lot of sense. Thanks

EDIT: FOund it

If anyone cares... its a reference.

To get it you must click open and it should already be in the win32 folder if not go there. Then find dx7vb or something like that. THats waht you need then.
Reply
#4
Dave Wrote:Project - references

Find DX7 in there, forgot exactly what it's called.

Yep thanks. I found it right before you posted though.

So far I have it showing the image for the tiles but cant select any. I have to find out what im missing for that.
Reply
#5
Ok Another Question. Thought this would be better rather than a new topic.

Ok I got more progress on it... what code though blts the tiles to picScreen while you are editing maps. I have it where you select a tile and all but after that if you click on picSCreen you get error saying "Run Time Error Object Required"

Also I couldnt find the code relating to that I was looking at blttile and stuff but is that just to show the maps while playing or for tiles actually... I added that but dont know if I need too.

Thanks
Reply
#6
blttile and such, just like normal. It uses savemap to revert back to how it was previously if you choose cancel.
Reply
#7
Ok now the error... in bltTile (unchanged) it highlights

Code:
Call DD_BackBuffer.BltFast(x * PIC_X, y * PIC_Y, DD_TileSurf, rec, DDBLTFAST_WAIT)

Run Time Error 91
Object Variable or With Block variable not set
Reply
#8
can you post more than just that one line?
This is called after the DX is initialized...right?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)