msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Does D3DX8.CreateTextureFromResource work in vb6?

 
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX
Author Message
nottoooily



Joined: 20 Oct 2007
Posts: 1

PostPosted: Sat Oct 20, 2007 6:08 am    Post subject: Does D3DX8.CreateTextureFromResource work in vb6? Reply with quote

When I try like this

Set g_TEXT_Texture = g_d3dx.CreateTextureFromResource(g_D3DDevice,
App.hInstance, "101")

it causes the error

D3DXERR_INVALIDDATA

I think invalid data is not really the problem beacuse the same error
happens even if I make up a bogus name for the resource instead of
"101", it also happens if I make up a bogus number for the 2nd
parameter. Clearly it can't access any data in these cases, whether
invalid or not.

Unfortuanetly the definition of the last parameter isn't given in MSDN
and I'm only guessing it should be the name of the resource. It's
described like this:

"SrcResource
String that specifies the resource from which to create the texture. "

Does that sound like "101"?



Alternatively is there any other way to create a texture from memory
without it having to be already in the correct format?

What do people usually do for textures without having to keep seperate
files?

Archived from group: microsoft>public>win32>programmer>directx>managed
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
D3DX8 CreateTextureFromResource (Ex) Hi, Is there anyone out there that have got either of these functions to work with VB6/DX8.1 ? There are several posts on forums around the world asking the same question, but so far no one has got either to work. (I have had no success either - trying to

DDRAW problem : it doesn't work while i using BltFX with DDB DDRAW problem : it doesn't work while i using BltFX with 'Add a picturebox to Form1 Option Explicit Dim DX As New DirectX7 Dim ddraw As DirectDraw7 Dim ddsfront As ddsback As Dim ddClp As DirectDraw

DDRAW: it doesn't work while i using BltFX with DDBLTFX_ROTA 'Add a picturebox to Form1 Option Explicit Dim DX As New DirectX7 Dim ddraw As DirectDraw7 Dim ddsfront As ddsback As Dim ddClp As Private Sub Form_Load() On Error GoTo ErrCode Dim ddsfrontdesc As D

How to make MSWebDVD.Capture() work Hi, I am programming the MSWebDVD using C# in Now, I want to capture the image by using () interface. As I read the DirectX manual, there says "This method captures the current frame from the DVD-Video image and pastes it i

Does the VB6 CommonDialog work (compiled on Win98se) work on I have a program that uses a common dialog control that works great on win98/XP but gives this error on Vista: component comdlg32.ocx or one of its dependices is not correct. the file is missing or invalid. Can the common dialog control work on Vista or d
Post new topic   Reply to topic    msvisual.com Forum Index -> DirectX All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group