CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: borko1980

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    738

    Re: Multiple inheritance problem

    Thanks, that worked.

    I just start practice with variadic template, i am not familiar with "tuple". What is a difference?
  2. Replies
    4
    Views
    738

    Multiple inheritance problem

    Is it possible to resolve this ambiguity:



    struct foo1
    {
    float x, y, z;
    };

    struct foo2
  3. COM objects and move enabled wrapper class

    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...
  4. Replies
    7
    Views
    893

    Re: STL container & algo requirements

    Ok. Thanks.

    I will use this thread to ask some other question.
    I have some problem:


    enum EMaterialTypes
    {
    EMaterial0 = 0,
    EMaterial1 = 1,
  5. Replies
    7
    Views
    893

    Re: STL container & algo requirements

    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>...
  6. Replies
    7
    Views
    893

    STL container & algo requirements

    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...
  7. Replies
    0
    Views
    591

    Perfect forwarding problem

    // base class
    class resource
    {
    protected:
    std::string name;
    public:
    template< typename TStr >
    resource(TStr&& n) : name(std::forward<TStr>(n)) {}

    resource(resource&& o) :...
  8. Replies
    0
    Views
    567

    Regular expression

    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...
  9. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    Thanks. I used this function WideCharToMultiByte and it works now.
  10. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    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...
  11. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    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.
  12. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    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>...
  13. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    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] <<...
  14. Replies
    13
    Views
    2,447

    Re: ShellExecute problem

    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...
  15. Replies
    13
    Views
    2,447

    ShellExecute problem

    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:


    ...
  16. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    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.
  17. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    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,...
  18. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    Thanks.
  19. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    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:...
  20. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    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...
  21. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    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...
  22. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    @Paul McKenzie
    1.
    code:


    std::wstring str1 = someFileName;
    ...
    std::transform(str1.begin(), str1.end(), str1.begin(), std::toupper< std::wstring::value_type >);

    error:
  23. Replies
    18
    Views
    2,683

    Re: Locale for windows file/dir names

    It can't work that way i got compile time error with:



    std::transform(str1.begin(), str1.end(), str1.begin(), std::toupper);


    or
  24. Replies
    18
    Views
    2,683

    Locale for windows file/dir names

    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 = ???
    ......
  25. Thread: locale names

    by borko1980
    Replies
    4
    Views
    2,148

    Re: locale names

    Thanks again on your effort and help.
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)