Click here to Skip to main content
15,905,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHKEY to string Pin
Chintoo72330-Jul-05 3:47
Chintoo72330-Jul-05 3:47 
GeneralObtaining an Application's Folder Pin
rbrunton30-Jul-05 2:33
rbrunton30-Jul-05 2:33 
GeneralRe: Obtaining an Application's Folder Pin
Scozturk30-Jul-05 3:06
professionalScozturk30-Jul-05 3:06 
GeneralRe: Obtaining an Application's Folder Pin
Jack Puppy30-Jul-05 3:46
Jack Puppy30-Jul-05 3:46 
GeneralRe: Obtaining an Application's Folder Pin
ThatsAlok30-Jul-05 3:51
ThatsAlok30-Jul-05 3:51 
GeneralRe: Obtaining an Application's Folder Pin
rbrunton30-Jul-05 10:42
rbrunton30-Jul-05 10:42 
GeneralDisk devices count and NIC card count Pin
pradeepchinnasamy30-Jul-05 2:20
pradeepchinnasamy30-Jul-05 2:20 
GeneralGDI+ Image clone Pin
Hesham Desouky30-Jul-05 1:52
Hesham Desouky30-Jul-05 1:52 
Hi all
Will I am using GDI+ to manipulate images.
I am having this strange behaviour with Bitmap::Clone() function.

When I create a Clone from an Image object, and then try to LockBits for the cloned image, I get invalid pointer.

I did a workarround for this:

Bitmap* p_new_image = new Bitmap(p_src_image->GetWidth(),p_src_image->GetHeight(),p_src_image->GetPixlFormat());

Graphics* p_graphics = Graphics::FromImage(p_new_image);

p_graphics->DrawImage(p_src_image,0,0);

delete p_graphics;

will this code is working with LockBits very fine.

The documentation for the clone function is not clear, is this a bug in the Clone function, or I didnt understad the Clone function will?

Regards

Hesahm

Hesham
GeneralListView background item color and .exe.manifest file Pin
int01h30-Jul-05 1:28
int01h30-Jul-05 1:28 
GeneralSource Control (SCC) Icons on VC++ 6.0 Pin
Axter30-Jul-05 1:26
professionalAxter30-Jul-05 1:26 
Generalplease help me Pin
sebinfrancis30-Jul-05 1:00
sebinfrancis30-Jul-05 1:00 
GeneralRe: please help me Pin
toxcct30-Jul-05 3:26
toxcct30-Jul-05 3:26 
GeneralReliable date and time of Windows startup Pin
johannks30-Jul-05 0:11
johannks30-Jul-05 0:11 
GeneralRe: Reliable date and time of Windows startup Pin
Garth J Lancaster30-Jul-05 1:39
professionalGarth J Lancaster30-Jul-05 1:39 
GeneralReply # 2 Pin
Garth J Lancaster30-Jul-05 1:50
professionalGarth J Lancaster30-Jul-05 1:50 
GeneralRe: Reliable date and time of Windows startup Pin
pradeepchinnasamy30-Jul-05 2:09
pradeepchinnasamy30-Jul-05 2:09 
GeneralRe: Reliable date and time of Windows startup Pin
User 1278230-Jul-05 12:36
User 1278230-Jul-05 12:36 
GeneralRe: Reliable date and time of Windows startup Pin
Alexander M.,1-Aug-05 1:21
Alexander M.,1-Aug-05 1:21 
GeneralRe: Reliable date and time of Windows startup Pin
johannks2-Aug-05 19:35
johannks2-Aug-05 19:35 
GeneralUnicode class Pin
ThaSaVa29-Jul-05 23:57
ThaSaVa29-Jul-05 23:57 
GeneralRe: Unicode class Pin
Jack Puppy30-Jul-05 1:08
Jack Puppy30-Jul-05 1:08 
GeneralRe: Unicode class Pin
ThaSaVa1-Aug-05 1:09
ThaSaVa1-Aug-05 1:09 
Generaldetecting the input from a receiver Pin
Nilegna29-Jul-05 22:56
Nilegna29-Jul-05 22:56 
GeneralMSHTML Editing problem Pin
Scozturk29-Jul-05 22:37
professionalScozturk29-Jul-05 22:37 
GeneralRe: MSHTML Editing problem Pin
Scozturk30-Jul-05 4:08
professionalScozturk30-Jul-05 4:08 

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.