LPD3DXBUFFER is 0xcccccccc
When I initilize an LPD3DXBUFFER, it is set to 0xcccccccc (which I found out using the debugger). As a result of this, LoadMeshFromX is failing. Here is the delcaration of the variable:
LPD3DXBUFFER matbuff;
// is 0xccccccccit is just like the example provided by DX, why should this occur? If you would like, I will post the entire function. ( I am not sure why this text is green)
A quick search in the documentation will reveal that 0xCCCCCCCC is a special code inserted by the VStudio debugger to indicate an uninitialized variable. It's intentionally put there as a flag to you indicating your code is badly written 
I don't know the surrounding context, but you need to initialize it - either to NULL or actually create a buffer for the call you're trying to use.
hth
Jack
thanks. For some reason, this post was marked as answered, even theough I still have problems, so I started a new thread, but now it is marked as unanswered, when it is better left as answered. sorry:)