Quote Originally Posted by Realeg View Post
This is the code i just write to handle the files. The error i recive is that the path variable gets an AnsiString and the parameter for the IMG_LoadTexture is a pChar. How do i convert them?
Wrap the code defining path into PChar method:

Code:
    Tex[1]:=IMG_LoadTexture(PChar(Ren,path+'\monster.bmp'));