Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange initialization problem Pin
Stephen Hewitt24-Jan-07 11:11
Stephen Hewitt24-Jan-07 11:11 
Questionwinform treeview customisation Pin
Yannnomad23-Jan-07 11:38
Yannnomad23-Jan-07 11:38 
QuestionGetProcAddress, I'm confused Pin
Anders Molin23-Jan-07 11:19
professionalAnders Molin23-Jan-07 11:19 
AnswerRe: GetProcAddress, I'm confused Pin
Stephen Hewitt23-Jan-07 11:35
Stephen Hewitt23-Jan-07 11:35 
GeneralRe: GetProcAddress, I'm confused Pin
Anders Molin23-Jan-07 11:52
professionalAnders Molin23-Jan-07 11:52 
GeneralRe: GetProcAddress, I'm confused Pin
Cedric Moonen23-Jan-07 20:17
Cedric Moonen23-Jan-07 20:17 
AnswerRe: GetProcAddress, I'm confused Pin
Michael Dunn23-Jan-07 12:17
sitebuilderMichael Dunn23-Jan-07 12:17 
QuestionTexture handling in DirectX Pin
spacecadet1023-Jan-07 11:13
spacecadet1023-Jan-07 11:13 
Hey,

I've created an SDI MFC app that needs to switch between several standard view classes and a Direct3D surface. I've managed to do this by preserving the HDC, destroying the CView, creating a new one, attaching the HDC then creating a new directx surface within the view class.

The Texture for each triangle set is loaded from a file when the vertex buffer is created. This means the textures are reloaded everytime the view is changed, which is taking too long.
I've tried not releasing the texture buffers between view switches, but the textures then get mixed up and some are missing.

My question is, what is the best way cache / store textures that need to be reloaded alot ?

Also do i need to destroy the DirectX Render Surface at all or can it be hidden behind a CView class?

Thanks
AnswerRe: Texture handling in DirectX Pin
Waldermort23-Jan-07 13:28
Waldermort23-Jan-07 13:28 
GeneralRe: Texture handling in DirectX Pin
spacecadet1026-Jan-07 2:29
spacecadet1026-Jan-07 2:29 
QuestionTrouble trapping keyboard messages Pin
marcmelillo23-Jan-07 10:33
marcmelillo23-Jan-07 10:33 
QuestionGetActivePane() no longer works in VC++ 2005 Pin
Ted94423-Jan-07 9:12
Ted94423-Jan-07 9:12 
AnswerRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery23-Jan-07 9:24
Mark Salsbery23-Jan-07 9:24 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Ted94423-Jan-07 10:16
Ted94423-Jan-07 10:16 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery23-Jan-07 12:00
Mark Salsbery23-Jan-07 12:00 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Ted94424-Jan-07 3:36
Ted94424-Jan-07 3:36 
GeneralRe: GetActivePane() no longer works in VC++ 2005 Pin
Mark Salsbery24-Jan-07 5:10
Mark Salsbery24-Jan-07 5:10 
QuestionVS 2005 MFC project and the Properties Window ? Pin
Jerry Evans23-Jan-07 8:47
Jerry Evans23-Jan-07 8:47 
AnswerRe: VS 2005 MFC project and the Properties Window ? Pin
BrianCharles23-Jan-07 9:39
BrianCharles23-Jan-07 9:39 
GeneralRe: VS 2005 MFC project and the Properties Window ? Pin
Jerry Evans23-Jan-07 11:43
Jerry Evans23-Jan-07 11:43 
QuestionExporting a class from a DLL Pin
Anders Molin23-Jan-07 8:27
professionalAnders Molin23-Jan-07 8:27 
AnswerRe: Exporting a class from a DLL Pin
Cedric Moonen23-Jan-07 8:33
Cedric Moonen23-Jan-07 8:33 
GeneralRe: Exporting a class from a DLL Pin
Anders Molin23-Jan-07 8:39
professionalAnders Molin23-Jan-07 8:39 
GeneralRe: Exporting a class from a DLL Pin
Cedric Moonen23-Jan-07 8:46
Cedric Moonen23-Jan-07 8:46 
GeneralRe: Exporting a class from a DLL Pin
Anders Molin23-Jan-07 8:53
professionalAnders Molin23-Jan-07 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.