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

Search:

Type: Posts; User: Fides Facit Fortis

Search: Search took 0.05 seconds.

  1. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    not sure how to check if it's "bug-free", but I've never had any problems with it.
    Here's more info:
    gcc (tdm-1) 4.7.1 (year 2012)
  2. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    GNU GCC compiler
  3. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    Well, I did it. I debugged the nickname part too because sometimes it takes away the first 1 or 2 characters from the nickname as well. Here's what I've got:

    The nickname part:

    ...
  4. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    Sorry for not responding but I was away from home yesterday.
    Following your advice I changed this part of code:

    DWORD WINAPI ReceiverThread(LPVOID ClientSocketDeskryptor) //Thread used for...
  5. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    if you mean the only buffer I'm using


    ...
    DWORD WINAPI ReceiverThread(LPVOID ClientSocketDeskryptor) //Thread used for handling server response
    {
    char message[220]; //the only buffer in...
  6. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    Actually I am not even using char arrays, I'm using strings which I then pass to the send() function using string::c_str() which returns the C string version(which is a null-terminated char array)
    ...
  7. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    Pretty much. I placed a breakpoint in every single line and added every variable to the watch list. At the end shortly after sending the 1st message(nickname) the client crashes but only in debug...
  8. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    Heh, thank you but I already know what a Segmentation fault is. In fact I've been using this exact site before. The question is how do I fix it. I see no buffer overflows, null-ptr dereferences or...
  9. Replies
    20
    Views
    12,866

    Re: SIGSEGVs, missing parts of input

    In case you wanted the entire source code:

    #include <winsock2.h>
    #include <cstdio>
    #include <iostream>
    #include <windef.h>
    #include <windows.h>
    #include <cstring>

    using namespace std;
  10. Replies
    20
    Views
    12,866

    SIGSEGVs, missing parts of input

    Hello wise people!

    Got a problem with my winsock client program. It looses parts of input. Here's the important (IMO) part of the code:


    ...
    string nickname;
    ...
  11. Replies
    2
    Views
    1,140

    Re: User Control

    Uhm sorry for the trouble, I've managed to find the solution myself.
  12. Replies
    2
    Views
    1,140

    Re: User Control

    Here are some screenshots

    In the form's designer
    32551

    In the control's designer
    32553
  13. Replies
    2
    Views
    1,140

    User Control

    Hello.
    The project I'm currently working on REQUIRES me to create a UserControl. I won't explain why I have to use it, but believe me, I have a good reason to do so.
    Anyway, I created one and...
  14. Replies
    6
    Views
    1,882

    Re: Making form constantly maximized

    THX!

    whoa thx a lot.Wondering why my book doesn't contain this information.It's so simple and usefull!
  15. Replies
    6
    Views
    1,882

    Re: Making form constantly maximized

    I made controls in my form scale with the form's size upon load( so for example a button has 10% in form's width and 5% in form's height etc) so it should always fit into the form no matter what the...
  16. Replies
    6
    Views
    1,882

    Re: Making form constantly maximized

    Well, I'm not very experienced in C++/CLI programming and I have no idea how to make scrollbars, so I tought that the easiest way to deal with the problem of resizing my form would be to make it...
  17. Replies
    6
    Views
    1,882

    Making form constantly maximized

    So,as the title says, I need my form to be either constantly maximized or constantly having it's maximized size, but the first option is prefered. What I've been trying to do is:
    1. I've set form...
  18. Replies
    3
    Views
    1,895

    Re: Could not find type int

    OK so I've moved my code from InitializeComponent to form's constructor,but that didn't change anything.
  19. Replies
    3
    Views
    1,895

    Could not find type int

    Hello.
    I'm new to C++/CLI programming and i recently encountered a problem.It's propably so basic that I've failed to find it on the web...


    int ScreenX,ScreenY;

    void...
  20. Replies
    11
    Views
    5,077

    Re: problem with arrays in WinApi

    Thx,you are my Guru :thumb:
  21. Replies
    11
    Views
    5,077

    Re: problem with arrays in WinApi

    You see, the problem is that the bar I'm trying to implement needs to have custom properties.I want it to have similiar functionality to overlap buttons in browsers. Each one is responsible for one...
  22. Replies
    11
    Views
    5,077

    Re: problem with arrays in WinApi

    Wow,thx for a quick response.


    Yeah, this is propably due to the fact that my book describes both .NET and WinApi programming so I sometimes get lost.



    I'll check this out,thanks.
  23. Replies
    11
    Views
    5,077

    problem with arrays in WinApi

    Hello.
    I'm new to winapi but I've read a book about it already. The problem is that my Visual Studio 2012 considers some of the stuff mentioned in my book as an error. For example:

    Array^ arr =...
Results 1 to 23 of 23





Click Here to Expand Forum to Full Width

Featured