Using Mappy with a Canvas

Community Forums/Developer Stations/Using Mappy with a Canvas

locoHost(Posted 2004) [#1]
Has anyone had trouble getting a Mappy map to load and then display in a canvas?

If I comment out the "MapLoad" line I get no error, the window opens fine and the textarea appears. Uncomment that line I get a Windows "Send Error Report" message box.

Here's a code snippet...

gWin = CreateWindow("EFW",50,50,1024,768,Desktop())
gTa = CreateTextArea(600,600,300,85,gWin)
SetTextAreaFont gTa,LoadFont("Tahoma",18)
addtextareatext(gTa, "Heeelllloooo")

gCanMap = createcanvas(5, 5, 1009, 585, gWin)

MapLoad("maps\gamemap00.fmp")

WaitKey
END

Why does the MappyLoad function crash the program?

Thanks a lot for any help :-)


Tri|Ga|De(Posted 2004) [#2]
Try sending an email to the creator of Mappy.

Linky