Click here to Skip to main content
15,796,102 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I make Command at runtime? Pin
leppie6-Feb-03 22:53
leppie6-Feb-03 22:53 
GeneralThanks a lot!! Pin
bania7-Feb-03 4:32
bania7-Feb-03 4:32 
Questionassociate an object with datagrid's row ? Pin
Paresh Gheewala6-Feb-03 15:11
Paresh Gheewala6-Feb-03 15:11 
QuestionDrawString Diagonally on Image object? Pin
wkoch6-Feb-03 11:23
wkoch6-Feb-03 11:23 
AnswerRe: DrawString Diagonally on Image object? Pin
Paresh Gheewala6-Feb-03 11:43
Paresh Gheewala6-Feb-03 11:43 
AnswerRe: DrawString Diagonally on Image object? Pin
James T. Johnson6-Feb-03 16:37
James T. Johnson6-Feb-03 16:37 
GeneralRe: DrawString Diagonally on Image object? Pin
b99koch17-Mar-03 10:58
sussb99koch17-Mar-03 10:58 
GeneralManaged DirectDraw Pin
Tomas Petricek6-Feb-03 10:49
Tomas Petricek6-Feb-03 10:49 
Hi,
I'm trying to direct acces to MDDraw surface memory.
I'm using Lock() method but I don't understand it.

I was doing same thing in C++ and DX7..
Unmanaged Lock() returns pointer to memory and informations about format, but managed Lock() returns 2-dimensional array of byte (width and height of this array is same as size of the surface, but this is not enough for saving color in 32bit format).

Following code does nothing: Unsure | :~
Byte[,] btData=surfaceBack.Lock(LockFlags.SurfaceMemoryPointer|LockFlags.Wait);
for(int x=0; x<100; x++)
{
  for (int y=0; y<100; y++)
  {
    btData[x,y]=(byte)x;
  }
}
srfBack.Unlock(btData);

Confused | :confused: Thank you for help.

[edit]Hmmm | :| MSDN : Surface.Lock()http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.directdraw/c/surface/m/lock0.asp[^][/edit]

i'm only pointer to myself
GeneralUsing Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 9:28
draco_iii6-Feb-03 9:28 
GeneralRe: Using Bitmap.Save(FileName, ImageFormat.Icon) Pin
Paresh Gheewala6-Feb-03 10:32
Paresh Gheewala6-Feb-03 10:32 
GeneralRe: Using Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 12:55
draco_iii6-Feb-03 12:55 
GeneralWhich PixelFormat. to use Pin
draco_iii6-Feb-03 15:54
draco_iii6-Feb-03 15:54 
GeneralShow System Menu on a borderless form Pin
Peter Dedene6-Feb-03 8:58
Peter Dedene6-Feb-03 8:58 
Generalproblem with saving XML to xml file Pin
Wizard_016-Feb-03 6:33
Wizard_016-Feb-03 6:33 
GeneralRe: problem with saving XML to xml file Pin
Paresh Gheewala6-Feb-03 8:46
Paresh Gheewala6-Feb-03 8:46 
GeneralRe: problem with saving XML to xml file Pin
Ryan Cromwell7-Feb-03 10:23
Ryan Cromwell7-Feb-03 10:23 
GeneralSerialization Pin
Filip Strugar6-Feb-03 5:56
Filip Strugar6-Feb-03 5:56 
GeneralRe: Serialization Pin
Furty7-Feb-03 15:16
Furty7-Feb-03 15:16 
GeneralRe: Serialization Pin
Victor Vogelpoel8-Feb-03 0:06
Victor Vogelpoel8-Feb-03 0:06 
GeneralDocking Windows Pin
Braulio Dez6-Feb-03 2:20
Braulio Dez6-Feb-03 2:20 
GeneralRe: Docking Windows Pin
TigerNinja_6-Feb-03 4:52
TigerNinja_6-Feb-03 4:52 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 5:31
Braulio Dez6-Feb-03 5:31 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 5:45
Paul Riley6-Feb-03 5:45 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 6:12
Braulio Dez6-Feb-03 6:12 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 6:36
Paul Riley6-Feb-03 6:36 

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.