Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to prevent screen capture? [modified] Pin
hxhl959-Nov-09 10:38
hxhl959-Nov-09 10:38 
GeneralRe: How to prevent screen capture? [modified] Pin
semaphore19-Nov-09 19:48
semaphore19-Nov-09 19:48 
GeneralRe: How to prevent screen capture? Pin
Midono126-Nov-09 21:00
Midono126-Nov-09 21:00 
GeneralRe: How to prevent screen capture? Pin
semaphore126-Nov-09 23:51
semaphore126-Nov-09 23:51 
GeneralRe: How to prevent screen capture? Pin
Midono127-Nov-09 3:47
Midono127-Nov-09 3:47 
GeneralRe: How to prevent screen capture? Pin
Ramkrishna Pawar5-Jan-10 7:53
Ramkrishna Pawar5-Jan-10 7:53 
GeneralDetails of Screen Capture Prevention Pin
Gopalakrishna Palem10-Jan-10 0:34
Gopalakrishna Palem10-Jan-10 0:34 
Questioncreating directx texture from raw image data Pin
Andreoli Carlo8-Nov-09 23:58
professionalAndreoli Carlo8-Nov-09 23:58 
My goal:
- display a texture that i can modify in real time (windowing the histogram)

My steps:

1) create an array that will hold my raw information with fast access so i can modify windowing, the array is declared by setting RGB values 8 bit per pixel

// declaring array that will hold raw image
array<Byte> dataArray = gcnew array<Byte>(Length);


2) modify the values of the images and set it to texture

IO::MemoryStream ^fs = gcnew IO::MemoryStream(this->dataArray);
fs->Seek(0,IO::SeekOrigin::Begin);

try {
	mTexture = TextureLoader::FromStream(this->device,
									fs,
									(int)fs->Length,
									768,
									640,
									0,
									Usage::None,
									Format::R8G8B8,
									Pool::Default,
									Filter::None,
									Filter::None,
									0);
}
catch (Direct3D::InvalidDataException ^e) {
	te=e->ToString();
}
fs->Close();


3) display a sprite with texture in it
mSprite->Begin(SpriteFlags::None);
mSprite->Draw(this->mTexture, 
			Rectangle(posx*3,posy*3, 5000,5000),
			Vector3(0.0F, 0.0F, 0.0F),
			Vector3(0.0F, 0.0F, 0.0F), 
			Color::White);
mSprite->End();


the problem is that in this step it die on execution Frown | :(

An unhandled exception of type 'Microsoft.DirectX.Direct3D.Direct3DXException' occurred in Microsoft.DirectX.Direct3DX.dll

Additional information: Error in the application.

Someone can help me point out the problem? thank in advance
QuestionTYPE_E_CANTLOADLIBRARY Pin
deadlyabbas8-Nov-09 23:47
deadlyabbas8-Nov-09 23:47 
AnswerRe: TYPE_E_CANTLOADLIBRARY Pin
opedroso221-May-10 8:22
opedroso221-May-10 8:22 
QuestionAboutBox Pin
johnjitu8-Nov-09 23:36
johnjitu8-Nov-09 23:36 
AnswerRe: AboutBox Pin
josda10009-Nov-09 2:47
josda10009-Nov-09 2:47 
AnswerRe: AboutBox Pin
Stephen Hewitt9-Nov-09 3:18
Stephen Hewitt9-Nov-09 3:18 
AnswerRe: AboutBox Pin
johnjitu9-Nov-09 5:25
johnjitu9-Nov-09 5:25 
QuestionMFC: Drawing Overlapping Circles Pin
TechAvtar8-Nov-09 23:26
TechAvtar8-Nov-09 23:26 
AnswerRe: MFC: Drawing Overlapping Circles Pin
Cedric Moonen9-Nov-09 0:12
Cedric Moonen9-Nov-09 0:12 
AnswerRe: MFC: Drawing Overlapping Circles Pin
KingsGambit9-Nov-09 0:16
KingsGambit9-Nov-09 0:16 
GeneralRe: MFC: Drawing Overlapping Circles Pin
TechAvtar9-Nov-09 0:26
TechAvtar9-Nov-09 0:26 
Questionmysql_query Pin
MsmVc8-Nov-09 20:48
MsmVc8-Nov-09 20:48 
AnswerRe: mysql_query Pin
Rajesh R Subramanian8-Nov-09 21:54
professionalRajesh R Subramanian8-Nov-09 21:54 
GeneralRe: mysql_query Pin
MsmVc9-Nov-09 0:24
MsmVc9-Nov-09 0:24 
QuestionRe: mysql_query Pin
David Crow9-Nov-09 3:04
David Crow9-Nov-09 3:04 
AnswerRe: mysql_query Pin
MsmVc9-Nov-09 17:08
MsmVc9-Nov-09 17:08 
QuestionRe: mysql_query Pin
David Crow10-Nov-09 3:03
David Crow10-Nov-09 3:03 
QuestionShell_NotifyIcon( NIM_DELETE, ... ) fails on app exit Pin
mkoroudjiev8-Nov-09 19:53
mkoroudjiev8-Nov-09 19: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.