Search:
Type: Posts; User: borko1980
Search:
Search took 0.03 seconds.
-
March 1st, 2012, 03:35 PM
Thanks, that worked.
I just start practice with variadic template, i am not familiar with "tuple". What is a difference?
-
March 1st, 2012, 03:17 PM
Is it possible to resolve this ambiguity:
struct foo1
{
float x, y, z;
};
struct foo2
-
February 23rd, 2012, 03:03 PM
I need to wrap some resource, witch is somewhat a COM object model and it inherits from "reference counted" class IUnknown. How to properly setup my class to be "move capable" with this kind of...
-
February 21st, 2012, 06:43 PM
Ok. Thanks.
I will use this thread to ask some other question.
I have some problem:
enum EMaterialTypes
{
EMaterial0 = 0,
EMaterial1 = 1,
-
February 21st, 2012, 05:16 PM
Sorry for my english, i can't do any better then this.
Look at my first question, for example a vector container:
class foo
{
...// what operators should i explicitly add?
};
vector<foo>...
-
February 21st, 2012, 04:45 PM
How do you find, when you first introduced with say some of the STL container, function or algorithms, what are its requirements?
I mean,
1. what operators object should have for specific...
-
February 20th, 2012, 09:37 AM
// base class
class resource
{
protected:
std::string name;
public:
template< typename TStr >
resource(TStr&& n) : name(std::forward<TStr>(n)) {}
resource(resource&& o) :...
-
February 16th, 2012, 08:47 AM
I want to find how many times some word is occurring in a sentence (line).
I thought it was this, but not:
#include <iostream>
#include <string>
#include <regex>
#include <limits>
int...
-
February 11th, 2012, 03:36 PM
Thanks. I used this function WideCharToMultiByte and it works now.
-
February 11th, 2012, 01:40 PM
Is there any function that you could recommend me to convert those strings into coresponding ANSI/ASCII version with proper code page and what not that it depends on (Unicode is HORROR) to do the...
-
February 11th, 2012, 01:23 PM
But the problem is i must pass correct path/file names, witch other users might have on their computers with "funny" characters when they run my app.
Thanks for your time.
-
February 11th, 2012, 12:45 PM
Now i have another problem. Because i use tstring, and write "bat" file with:
#ifdef UNICODE
#define tfopen _wfopen
#else
#define tfopen fopen
#endif
...
typedef std::basic_string<TCHAR>...
-
February 11th, 2012, 10:22 AM
I don't have source for that console app, so i created my own to display params, and it works:
int main(int carg, char* args[])
{
for(int i = 0; i < carg; ++i)
{
std::cout << args[i] <<...
-
February 11th, 2012, 09:40 AM
Yes, i was doing that for the past couple of hours.
At first i was reading path/file names from list-box control and passing that, and it wasn't working. So i deicided to hard-code this strings to...
-
February 11th, 2012, 08:15 AM
I have some app that i need to call and pass some params to it. I tried this with cmd and it worked but somehow ShellExecute doesn't pass params to my app. I can't see where is my problem:
...
-
February 7th, 2012, 04:22 AM
Well, i tried that first as it seems logical but i got compile time error:
***?
Thanks.
EDIT: Never mind, resolved it by using const_iterator in "result" pair.
-
February 6th, 2012, 05:41 PM
Thanks Codeplug.
Paul i packed this all up in one function:
bool ci_compare(std::wstring& l, std::wstring& r)
{
std::locale loc("");
std::pair< std::wstring::iterator,...
-
February 5th, 2012, 04:54 PM
-
February 5th, 2012, 03:57 PM
Ok. I got your point.
I didn't meant for that code to be copied to another IDE, i just showed what i got in mine.
Sorry about this, i should have do it other (hard) way with escape seq..
EDIT:...
-
February 5th, 2012, 03:39 PM
Thanks for warning, but i read earlier that thread you mentioned, and this code is just for test.
It would took me long time to figure witch escape codes are for witch character.
Can you please...
-
February 5th, 2012, 02:51 PM
It works, as no compile time error but it doesnt convert correctly.
Example with my language characters:
http://www.dodaj.rs/f/w/9/n2Bk1fx/towupper.jpg
str1 is unchanged!
but LCMapString does...
-
February 5th, 2012, 02:22 PM
@Paul McKenzie
1.
code:
std::wstring str1 = someFileName;
...
std::transform(str1.begin(), str1.end(), str1.begin(), std::toupper< std::wstring::value_type >);
error:
-
February 5th, 2012, 01:38 PM
It can't work that way i got compile time error with:
std::transform(str1.begin(), str1.end(), str1.begin(), std::toupper);
or
-
February 5th, 2012, 12:09 PM
I need to compare some strings being case insensitive, witch contain file or folder names. So i thought i should get them all toupper, something like:
std::locale fileNames_locale = ???
......
-
February 2nd, 2012, 05:48 PM
Thanks again on your effort and help.
|
Click Here to Expand Forum to Full Width
|