I was trying to create an example. but it would have been better if i gave you the code. I'm sorry.
CODE
For i = 1 To 300
Input #1, heder1, heder2, heder3
If heder1 = "myWall" Then
Call DrawGraphic(myWall, heder2, heder3)
ElseIf heder1 = "myFloor" Then
Call DrawGraphic(myFloor, heder2, heder3)
End If
Next i
Close 1
The above code is what i have rite now and i need to make an if statement for every graphic.
If i change the code to.
CODE
For i = 1 To 300
Input #1, heder1, heder2, heder3
Call DrawGraphic(heder1, heder2, heder3)
Next i
Close 1
It Inputs the name of the image from the file. I need it to input the value of the location in ram of the image name.
I have a variable names myWall and its a long. that variable holds the DC of the image file. The DC is the location in ram. I don't know how to make the value of myWall that's in the file to tell the program to use the myWall variable.
If posting the program I have will help with finding a solution please tell me and i will attach.
This application is baced off a tutorial on GDI32