You can do the following :
1. Extract the entire row and then extract text starting from '=' or
2. i do not remember the functionality of the following functions exactly but i think you can use GetPrivateProfileSectionNames () or GetPrivateProfileString ()
I am developing a dialog based application for a WINCE device in eVC++.
I cannot use GDI, ImagingFactory, IPicture API's
I need solution/suggestion to any of the following:
1. I have .jp2 image, how can i convert and save it as .jpg file.
2. I have the byte array of .jp2 image, how can i convert to .jpg byte array
3. How can i get the HBITMAP handle from .jp2 image's byte array.
I am having one more doubt:
Using picture Control i am not able to display a bitmap image
mcsMyImage - is the control variable of the Picture control of my dialog,
MyImage.bmp - is the bitmap file
Hi, you may be able to find an implementation of jp2 in the source code for celestia.
Haven't seen the LoadImageBitmap function before. I wonder if it works like LoadImage, if so, you'll need to throw it a copy of the hInstance, you'll also need to throw it the LR_LOADFROMFILE for the load flags.
i.e - using plain GDI:
HBITMAP hBitmap = (HBITMAP) LoadImage(
GetModuleHandle(0), // get hInstance of this program"MyImage.bmp", // name of image to load
IMAGE_BITMAP, // type of image (not a cursor or icon)0,0, // width, height - 0 = use image values
LR_LOADFROMFILE // this is where we want it from - ! a resource
I apologise in advance if my ignorance about mfc has made this a wasted post.
Remember, the first param of LoadImage can be NULL only when loading a bitmap from a resource within the module. If loading from a file, you must (a) pass the hInstance, (b) give a valid filename (c) pass the LR_LOADFROMFILE loading flag.
Your question is a bit unclear. I'm assuming you're asking how to detect thread creation from within the process that creates it. If this is the case one way is to load a DLL into the process and handle the DLL_THREAD_ATTACH notification in its DllMain[^] function.
sorry for not mentioning it earlier, it is from outside the software.
Actually, i want to detect the thread creation for a software (black box)running on windows xp. I want to write a software that could give me the following information for each thread in a process running on windows xp:
1. time of its creation
2. associated function (that was given in the lpStartAddress attribute of CreateThread function)
One way is to create the process to be monitored using the CreateProcess[^] function and passing the DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS flag (and I'd also add the CREATE_DEFAULT_ERROR_MODE flag) in the dwCreationFlags parameter. Alternatively you could use the DebugActiveProcess[^] function to attach to an active process. To find out how to proceed after this start at the WaitForDebugEvent[^] function.