December 29th, 2012 01:07 PM
I wrote this code, I think it's all okay but I cannot even use it because the visual c++ 2010 express linker says that the file is corrupt.
I have attached the *.zip file to this post in hopes...
September 26th, 2011 04:02 PM
#include <iostream>
int main(int argc,char * argv[])
{
char chInput = 0;
cin << chInput;
if ( (chInput >= 'A' && chInput <= 'Z') || (chInput >= 'a' && chInput <= 'z') )
{
August 30th, 2011 10:29 AM
It's not just about the variables going out of scope, each thread has it's own stack and the params variable he creates is in the main thread. In order to access the variables in the newly created...
August 24th, 2011 10:59 AM
std::string LeftTrim(const char * pString)
{
while (*pString == ' ')
{
++pString;
}
std::string retValue(pString);
January 27th, 2011 03:28 PM
Since you are using Windows, you can use the performance counter.
#include <windows.h>
#include <iostream>
unsigned long long GetPerformanceTicks();
unsigned long long...
April 23rd, 2010 07:16 PM
A few things. As stated before, if using CreateWindowEx your CHILD windows will get the WM_CREATE message.
Also, there is a more elegant function to use for storing window data properties, has...
April 20th, 2010 10:13 PM
Shouldn't IconInfo be a value struct? Also, shouldn't you declare the following:
[DllImport("user32.dll")]
static bool GetIconInfo(IntPtr hIcon, IconInfo^ pIconInfo);
// as
...
April 16th, 2010 01:06 PM
If you are only looking for a range of integral values "existence" or "flag", you can use a bit array to store the "boolean bit flags", there's no need for a full blown hash table.
class...
April 16th, 2010 12:06 PM
void GetTextAndDoSomething(HWND hWnd)
{
// get the length of the text
const int nTextLength = ::GetWindowTextLength(hWnd);
// allocate a buffer for the text
char * pData = new...