In ms paint save as option is there i want the sample code for that .can any body give ..or anybody have share it. please its urgent because what iam doing means i have images which are not fixed to screen so many images are there iam scrolling and taking screen shots and thats why its flickering.i saw ms paint save as image in png format how much u will have image it will not flicker. please help give code for ms paint save image code in mfc
No. We can't. You haven't described your problem well enough for us to properly search for it. Only you know what you need exactly, so you do the search!
Besides, even if you took the time to precisely describe what you want, it would take as at least as much time to search for those links as it would take you - so why should we? Please learn to use the search function, here, on google, or on any other site that you might consider useful (e. g. MSDN). That will save everyone a lot of time - including yourself!
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
Here the value for (LPTSTR)lpszValueName is 'SQLPath' and the value which returns for 'szValue' in RegQueryValueEx method is “c:\Program Files (x86)\Microsoft SQL Server\100\Tools\” which should be “c:\Program Files\Microsoft SQL Server\100\Tools\”
We have noted that the data value for SQLPath in RegistryKey "SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\ClientSetup" is “c:\Program Files\Microsoft SQL Server\100\Tools\”
Could anybody please tell why RegQueryValueEx method is returning a wrong value “c:\Program Files (x86)\Microsoft SQL Server\100\Tools\” which should be “c:\Program Files\Microsoft SQL Server\100\Tools\”
When a 32 bit application accesses the path starting with SOFTWARE under the key HKEY_LOCAL_MACHINE on a 64 bit OS, there is a Wow6432Node added automatically after the SOFTWARE. So the path you really accessed was
"SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\100\Tools\ClientSetup"
instead of the one you expected.
Depening on what you want to use the information for, you may need to compile your app as x64.
The good thing about pessimism is, that you are always either right or pleasently surprised.
I'm trying to read a BMP image, the code is as follows. If i'm using a value 820 as BMP_HEADER_SIZE, my program works fine. I tried calculating the BMP_HEADER_SIZE value by summing the size of structure tagBITMAPFILEHEADER and tagBITMAPINFOHEADER (from BMP header file) but the program is not working. How can i solve this?
# define BMP_HEADER_SIZE 820
void ReadImage(const char* filename);
void Blockinessproc::ReadImage(const char* filename)// Reading a BMP Image
inFile.seekg (0, ios::beg);
long nHeaderSize = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER);
inFile.read ((char*)m_info, nHeaderSize);
width = *(int*)&m_info; //Getting Image width from Header
height = *(int*)&m_info;// Getting Image height from Header
long pos = inFile.tellg();
m_memblock = new uchar* [width];
m_memblock_out = new uchar* [width];
for (int i = 0; i < height; i++) // create new array size: height of image.
m_memblock[i] = new uchar [width*3];
m_memblock_out[i] = new uchar [width*3];
int size_s = inFile.gcount();
for(int i=0; i<height; i++) // Read row into each array entry.