in the following code iam trying to save an edited icon with its relevant pixel information.
But iam unable to save in Iconformat using the specifier ImageFormatIcon.
But the same can be saved in Bmp format using the specifier ImageFormatBMP
Can anyone let me know the reason.
CImage icon_image;
icon_image.Create(sizex, sizey, 8);
// Fill color table with pre-defined colors
RGBQUAD FAR* pRGB = new RGBQUAD[nColors];
DWORD dwval;
UINT r, g, b;
int j;
for (int i=0; i
ok , this is the "long" way that i thought about ,
but can`t i do it with out creat new class ??
does microsoft didnt make to us "easy" to us easy life ?
yanshof wrote: but can`t i do it with out creat new class ??
No you have to make you own class derived from CButton!
yanshof wrote: does microsoft didnt make to us "easy" to us easy life ?
Don't you think MS already make you life easy by providing Inheritance to there proprietary classes
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
I need to read a data file using C++, it's a data file that contains a row of column headers before the actual data. I need C++ to remove the header and re-print just the data into a new data file. Any suggestions?
Use iostreams. MFC file reading is crap.
You just want to read the first line and discard it, then read and keep the rest ? Use getline, an ifstream and an ofstream ( or a stringstream to read the file, then write it to the same file in a seperate operation ). I've written articles on this here on CP, you should have no trouble finding them.
Im confused about how to create a C++ constructor that uses the current time from the time() function that will declare in the C++ standard library header
Hi
i have tried utilities like Dumpbin, OLEview, DEPENDS but we only get the function names. Is there any way to know the prototype of a function exported by a DLL.
If you are good at reverse engineering, you can try to find a call to that function. Than look at the sthings that are pushed onto the stack. That should give you an idea about how many variables are used by the api. There is one catch though, you don't know what the variables types are, nor do you know what they are used for.
I don't know why you need to do that, but if you're planning to use undocumented api's, I can only say that you should not! They are not documented for a reason. The could be subject to change, or complete removal, so in the long run, it will break your program.