Author | Message | Time |
---|---|---|
BreW | Hi, i'm having trouble with the LoadResData() function. for some reason, when i try to do LoadResData(101, 10) it apparently can't find resource 101, but thats bullshit because it's right there. any ideas? I already look in msdn and couldn't find any possible reasons for this | March 18, 2007, 3:10 PM |
Barabajagal | Where you have the number 10 is where the resource type (which is a STRING) goes. | March 18, 2007, 9:24 PM |
BreW | I want to load it as a byte array | March 19, 2007, 8:52 PM |
Barabajagal | I don't think you understood my statement. It works like this: LoadResData(ID, Type). ID is the Identification Number of the resource. Type is the resource type. For instance, you may have a wave file labeled as 108, with a type of "WAVE". You use LoadResData to load it into a byte array like so: bArray() = LoadResData(108, "WAVE") . | March 19, 2007, 8:57 PM |
BreW | Ohhhh, so anotherwords you're not supposed to use the const value of the resource type, but a string literal? I think i know what you mean. It works perfect now, thanks, Ripple. | March 20, 2007, 1:20 AM |