Get the path of a file within the project in string form

Asked

Viewed 25 times

0

I am using a method that in its parameters I inform a path of an image, Example:

Meu_Metodo("image\\test.png");

Only that image is inside Resources, as you can see in this image:

inserir a descrição da imagem aqui

What I do to get the path of that image within my resources "in the form of string"

1 answer

0

If your file is in the project root and the image in a folder:

Meu_Metodo("Resources/Image1.png");
  • Kkkkkk I’ll pretend I didn’t read it

  • Seriously that after compiled it will work?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.