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

Search:

Type: Posts; User: prako2

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Replies
    14
    Views
    16,381

    Re: How to detect a text in output?

    Thank you 2kaud, very useful.
  2. Re: [RESOLVED] How to turn backslash to forward slash in windows environmental variab

    Actually, this didn't help me. I spent a lot of time to understand that API I used does not recognize non-latin letters.
  3. Replies
    14
    Views
    16,381

    Re: How to detect a text in output?

    Thanks, but I want to do it directly from output text.
  4. Replies
    14
    Views
    16,381

    Re: How to detect a text in output?

    This:
  5. Replies
    14
    Views
    16,381

    Re: How to detect a text in output?

    This is not exactly what I want. I want to find a file with the biggest number, increment it by 1 and then output.
  6. Replies
    14
    Views
    16,381

    Re: How to detect a text in output?

    No, because I don't know how to achieve this. But I probably could if I know how to find a file with the biggest number.
  7. Replies
    14
    Views
    16,381

    How to detect a text in output?

    For example: I get output like this (2nd below) and I want to output
    cout << new8.xml <<endl; after. Is it possible?

    <file>new0.xml</file>
    <file>new1.xml</file>
    <file>new2.xml</file>...
  8. Replies
    5
    Views
    9,092

    Re: How to use exception handling?

    2kaud, thank you, I will keep that in mind.
  9. Replies
    5
    Views
    9,092

    How to use exception handling?

    I have a code which gets public IP address and one segment of code causes crash if not connected to internet. So I'm trying to apply exception handling, but I don't really understand how it works in...
  10. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    Error Authenticating Resp1. It seems like Resp1 is failing.
  11. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    #include "pch.h"
    // g++ -lstdc++ -Wno-write-strings fetch.cpp -o fetch
    #ifdef _WIN32 // Windows
    #include <winsock2.h>
    #include <ws2tcpip.h>
    #define MSG_NOSIGNAL 0
    #else ...
  12. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    VictorN, sorry, I mean: WSAGetLastError() returned 0, there are no such code in the list, my application exited with code -1.
  13. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    Do you mean this? std::cout << " Error Authenticating " << WSAGetLastError() << std::endl;? It's Error Authenticating 0, it exited with code -1.
  14. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    salem_c I tried Port Listener and now I'm getting an error:

    C++ Tor
    Connecting
    Error Authenticating
    Port Listener showed that I was connected and then disconnected. I also tried Privoxy...
  15. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    It's currently turned off. I don't have any antiviruses. I have VPN which is currently turned off. I'm using Windows 10. Windows Defender real time protection is also turned off.
  16. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    VictorN WSAGetLastError(). 2kaud Is this problem has a solution?
  17. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    Return value is -1. I use console application. I get 10057 from console application.
  18. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    I did this: https://imgur.com/a/pQpa6pr from https://gist.github.com/anhldbk/f62fbe5e5a0e48740c6959e3e0907c81 and now I'm getting 10057
  19. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    I'm getting https://imgur.com/a/2ftdaGy Do you know how to enable sdl warnings? Mine is enabled in C++/General/SDL checks. But it overrides anyway. As I remember I did something with command line to...
  20. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    I see some problems in the code: https://imgur.com/a/t1L5B72
  21. Replies
    27
    Views
    28,324

    Re: How to make TOR configured application?

    I know that issue is here, but how to fix it?
  22. Replies
    27
    Views
    28,324

    How to make TOR configured application?

    I found a code which should work, but it doesn't for me on Visual Studio 2017. It returns me "Error" (return(-1);) and some weird symbol after. Maybe for somebody else this code worked?...
  23. Re: How to turn backslash to forward slash in windows environmental variable?

    Solved:
    typedef std::basic_string<TCHAR> tstring;
    tstring pathbasic = tstring(programdata) + _T("\\myfile.txt");
    std::replace(pathbasic.begin(), pathbasic.end(), _T('\\'), _T('/'));
  24. Re: How to turn backslash to forward slash in windows environmental variable?

    No, it's not a solution because programdata is not always the system drive subfolder:(
  25. Re: How to turn backslash to forward slash in windows environmental variable?

    I found a way. Not very comfortable though.

    Solved:

    TCHAR path[_MAX_PATH];
    _tcscpy(path, systemdrive);
    _tcscat(path, _T("/programdata"));
Results 1 to 25 of 58
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured