Results 1 to 16 of 16
  1. Collapse Details
    dp, clay and elezzzark, you are coders 
    #1
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    i'm learning c++ and want to know if there is a way to target all systems in one method when i want to write directly to the console

    i wrote a windows program where I'm using

    PHP Code:
    int main()
    {
        
    // Create Screen Buffer
        
    wchar_t *screen = new wchar_t[nScreenWidth*nScreenHeight];
        
    HANDLE hConsole CreateConsoleScreenBuffer(GENERIC_READ GENERIC_WRITE0NULLCONSOLE_TEXTMODE_BUFFERNULL);
        
    SetConsoleActiveScreenBuffer(hConsole);
        
    DWORD dwBytesWritten 0;

    ...
        
    screen[nScreenWidth nScreenHeight 1] = '\0';
        
    SetConsoleTextAttribute(hConsole0xaa);
        
    WriteConsoleOutputCharacter(hConsolescreennScreenWidth nScreenHeight, { 0,}, &dwBytesWritten);
        } 
    it works fine. i have 2 questions, what do i do to do that in a way which will work on any system? is that even possible?

    Reply With Quote
     

  2. Collapse Details
     
    #2
    king steveyos clay's Avatar
    Join Date
    Dec 2011
    Posts
    4,587
    but he dead
    Reply With Quote
     

  3. Collapse Details
     
    #3
    Muscle Furry 12 inch Dick juji's Avatar
    Join Date
    Dec 2011
    Posts
    18,000
    I dont speak C++


    Quote Originally Posted by Steffies Yelle View Post
    I'll kill myself live on cam as soon as there's proof I literlaly promise, I will sincerely kill myself as soon as I see elz's computer playing arma 3 maxed with all nvidia exclusive graphics
    Reply With Quote
     

  4. Collapse Details
     
    #4
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    Quote Originally Posted by clay View Post
    but he dead
    clay, stop

    Reply With Quote
     

  5. Collapse Details
     
    #5
    king steveyos clay's Avatar
    Join Date
    Dec 2011
    Posts
    4,587
    Reply With Quote
     

  6. Collapse Details
     
    #6
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    Quote Originally Posted by m0nde View Post
    clay, stop

    Reply With Quote
     

  7. Collapse Details
     
    #7
    ส็็็็็็็็็็็็ส็็็็็็ ็็็็็ Autistic Spectrum's Avatar
    Join Date
    Dec 1969
    Location
    ส็็็็็็็็็็็็ส&#
    Posts
    50,843
    I am the owner of http://www.ezmangaforum.com
    Reply With Quote
     

  8. Collapse Details
     
    #8
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    o don't need help compiling. I want to know specifically about targeting wstrings and wchar_t* (Unicode) for sure that writes to tty

    Reply With Quote
     

  9. Collapse Details
     
    #9
    Muscle Furry 12 inch Dick juji's Avatar
    Join Date
    Dec 2011
    Posts
    18,000
    Why? You’re reinventing the wheel


    Quote Originally Posted by Steffies Yelle View Post
    I'll kill myself live on cam as soon as there's proof I literlaly promise, I will sincerely kill myself as soon as I see elz's computer playing arma 3 maxed with all nvidia exclusive graphics
    Reply With Quote
     

  10. Collapse Details
     
    #10
    Muscle Furry 12 inch Dick juji's Avatar
    Join Date
    Dec 2011
    Posts
    18,000
    I believe you should try with mono develop where you can write C# in any system without worrying at specificying the data type


    Quote Originally Posted by Steffies Yelle View Post
    I'll kill myself live on cam as soon as there's proof I literlaly promise, I will sincerely kill myself as soon as I see elz's computer playing arma 3 maxed with all nvidia exclusive graphics
    Reply With Quote
     

  11. Collapse Details
     
    #11
    my weapons turn me into a m0nde's Avatar
    Join Date
    Dec 2011
    Location
    every once in a while
    Posts
    30,078
    I think I'm just going to port my code to JavaScript and html5 and forget this shit. it'll be much easier

    Reply With Quote
     

  12. Collapse Details
     
    #12
    ส็็็็็็็็็็็็ส็็็็็็ ็็็็็ Autistic Spectrum's Avatar
    Join Date
    Dec 1969
    Location
    ส็็็็็็็็็็็็ส&#
    Posts
    50,843
    no go deeper and port it to assembly
    I am the owner of http://www.ezmangaforum.com
    Reply With Quote
     

  13. Collapse Details
     
    #13
    Muscle Furry 12 inch Dick juji's Avatar
    Join Date
    Dec 2011
    Posts
    18,000
    Quote Originally Posted by m0nde View Post
    I think I'm just going to port my code to JavaScript and html5 and forget this shit. it'll be much easier
    You can use this lib for node.js https://github.com/dtinth/screen-buffer and wrap it with electron including GUI then export to any system


    Quote Originally Posted by Steffies Yelle View Post
    I'll kill myself live on cam as soon as there's proof I literlaly promise, I will sincerely kill myself as soon as I see elz's computer playing arma 3 maxed with all nvidia exclusive graphics
    Reply With Quote
     

  14. Collapse Details
     
    #14
    Breathe 🌊 Desolation's Avatar
    Join Date
    Dec 2011
    Posts
    10,085
    101010101011101001010101001000010111
    Reply With Quote
     

  15. Collapse Details
     
    #15
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    I think you should use a for loop
    Reply With Quote
     

  16. Collapse Details
     
    #16
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,312
    my programs use a lot of for loops because everything I write is based on the threadlong framework
    Reply With Quote
     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

monde is a whiney fuck