OK, this error has got me beat. In my code I have this:
cTextureResource *Texture = TexturePool.FindResource("Texture1");
And I get the error:
C2039: 'FindResourceA' : is not a member of 'cResourcePool'
with
[
T=cTextureResource
]
I'm using Visual C++ .NET and I don't understand why the compiler is seeing it as FindResourceA when I have written FindResource.
If I go through my code and change FindResource to FindResourceA, it works! So why is my compiler deciding to rewrite my code? I presume there is some kind of clash with the Windows FindResource function, but shouldn't the compiler realise that I am calling the member of cResourcePool?
I could obviously fix this by changing the name, but I'd like to understand what is going on too.
pan narrans |
My Website | Study + Hard Work + Loud Profanity = Good Code
[edited by - pan narrans on January 14, 2004 2:43:37 PM]