Search:
Type: Posts; User: SkyNetTo
Search:
Search took 0.06 seconds.
-
April 26th, 2012, 09:56 AM
#ifndef _UNICODE_RANGE_INCLUDE_
#define _UNICODE_RANGE_INCLUDE_
#include <tchar.h>
struct UnicodeRangeSpec
{
const unsigned int start_;
const unsigned int end_;
};
-
April 4th, 2012, 06:39 AM
-
January 26th, 2012, 01:32 PM
std::pair<LONG,LONG> WinTraits::GetSize() const
you have choosen not to modify any class member by placing that const in red, but you have just modified one.
-
January 25th, 2012, 03:23 PM
You forgot to clear the eof and/or fail bit of stream
int main()
{
std::string word;
std::fstream file_to_fix ("c:\\path_to_file.txt", (std::fstream::in | std::fstream::out));
if...
-
January 17th, 2012, 10:16 AM
Quick test on a real file.
#include <iostream>
#include <fstream>
#include <iterator>
#include <string>
class line {
std::string data;
-
September 15th, 2011, 05:18 PM
What about this?:
http://msdn.microsoft.com/en-US/library/cxwwzx1z%28v=VS.80%29.aspx
taken from MSDN
.........
int index = GetTopIndex();
int last_visible_index = index +...
-
August 8th, 2011, 06:59 AM
@Skizmo
Waiting for your patent Click message :)
-
have you used srand() at the top of the program?
-
June 16th, 2011, 09:38 AM
If it is scaled I'm afraid you get what is scaled not the actual size. So my idea doesn't apply :(
-
June 16th, 2011, 05:01 AM
A quick idea:
Can't you copy what's on the DC of the RichEditControl in an image and apply a mask in that image to remove the background? Than you just have to Draw an image over an image preserving...
-
June 10th, 2011, 07:44 AM
Do you use any third party dll in your code? Same problem happened to me once with a third party dll. Had to recreate manually a .lib file for my compiler (the one provided causes me this).
-
This way.
ON_REGISTERED_THREAD_MESSAGE(WM_STDIO_COMMAND, &CQuickWinApp::OnStdioCommand)
-
dunno, its up to you. It returns a non-const TCHAR string winch in UNICODE version is wchar_t.
-
one or more of there variables is/are still a std::string and not a std::wstring.
m_pLanguageInformation->m_wLanguage
m_pLanguageInformation->m_wCodePage
refcstrKey
-
strsTemp << _T("\\StringFileInfo\\")
<< std::setw(4) << std::setfill(_T('0'))
<< std::hex
<< m_pLanguageInformation->m_wLanguage
<<...
-
use std::wstringstream and u're OK.
http://msdn.microsoft.com/en-us/library/3e8f34fb%28v=vs.71%29.aspx
Also use the wide version of string literals
L"\\StringFileInfo\\"
or
-
what is strsTemp? Is it a stringstream beacause std::string does not have a member functions called str().
-
what's wrong with remove_if?
http://www.cplusplus.com/reference/algorithm/remove_if/
Can't you just use that?
-
Same problem here, but it comes with a solution
http://www.codeguru.com/forum/showthread.php?t=368630
-
April 28th, 2011, 05:16 PM
Another option if you have a C++0x compiler is using string::pop_back
http://www.cppreference.com/wiki/string/basic_string/pop_back
-
April 28th, 2011, 09:32 AM
In windows you can implement something like this:
http://www.flounder.com/console_threads.htm
No polling involved.
-
April 28th, 2011, 06:50 AM
so buffer holds up to 256 chars?
Quick test:
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
char buffer[1024] = {0};
-
April 28th, 2011, 04:28 AM
What happens if PostMessage fails? You have a memory leak.
Place this correction:
CString* pStr = new CString;
pStr->Format(_T("Some message"));
if(!::PostMessage(hWndMainThread,...
-
April 28th, 2011, 04:01 AM
This page says another thing:
http://support.microsoft.com/kb/830473/en-us?fr=1
On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the...
-
April 23rd, 2011, 05:53 PM
Oops sorry, didn't know that was a homework, i'm deleting the code.
|
Click Here to Expand Forum to Full Width
|