Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 declaring pictures
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AsianSensation




PostPosted: Fri May 21, 2004 6:07 pm   Post subject: declaring pictures

i want to declare a bunch of pictures, so I declare an array of glTexture and generate a for loop to get all the pictures. But I encountered some problems.

code:
glTexture TexMap [16];
CString picID;

        for (k = 0; k < 16; k++){
                itoa (k, picID, 10);
      picID += ".bmp";
                TexLoader -> LoadTextureFromDisk(picID, &TexMap[k]);
        }


but I can't seem to declare a CString,

any better way to do this? Cuz I tried strings, but even with string.c_str(), it doesn't work, and array of char is really hard to work with.
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Fri May 21, 2004 6:32 pm   Post subject: (No subject)

nevermind, I figured it out with just array of chars.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: