Search:

Type: Posts; User: cerion

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Dialog Boxes

    by cerion
    Replies
    4
    Views
    1,669

    Dialog Boxes

    Okay I created a dialog box in my windows program and everytime I close the dialog it closes my entire program. I checked it and for some reason I am recieving the WM_DESTROY message after I close...
  2. Replies
    16
    Views
    57,362

    Lol, sorry not laughing at you but your...

    Lol, sorry not laughing at you but your statement. Over the years when I was in school I had been forced to do tones of menu based programs. TONES. Both large and small, the largest being the final...
  3. Replies
    1
    Views
    2,283

    Okay what I would check for are the following......

    Okay what I would check for are the following... There can only be one @ in the entire email address. And yes @. or .@ is invalid. An address must also end with a .com, .org, .net, etc. all those...
  4. Replies
    16
    Views
    57,362

    Personally spagetti code is the worst code of all...

    Personally spagetti code is the worst code of all to read! That is to say, code that bounces up and down and all over the place (by using the goto statement). Here are some examples to prove my...
  5. Replies
    43
    Views
    3,940

    Okay I'm running a 466Mhz, Windows ME, TNT 2...

    Okay I'm running a 466Mhz, Windows ME, TNT 2 (32MB of RAM), 128MB of RAM machine and I also had this problem with it crashing in ME. However, for me it was after I chose Single Game, it seemed to...
  6. Replies
    21
    Views
    3,272

    The following code: case WM_CTLCOLORSTATIC: ...

    The following code:

    case WM_CTLCOLORSTATIC:
    if( GetDlgCtrlID((HWND)lParam) == EDIT_FILES ) {
    return((LRESULT)GetStockObject(WHITE_BRUSH));
    }
    return(TRUE);

    works for me. You have be...
  7. Replies
    11
    Views
    5,026

    Well they are just stupid to even use. Well they...

    Well they are just stupid to even use. Well they can be good programs to do in order to get some good basics into windows/DirectX(or assembly if your doing it that way). But if your doing it for a...
  8. Thread: CSocketFile

    by cerion
    Replies
    1
    Views
    1,826

    I have no idea what CSocketFile or CArchive is......

    I have no idea what CSocketFile or CArchive is... but to do it using C (not C++) you would simply do the following...



    int main()
    {
    int i=100;
    char StringtoSend[100];

    // Initialize Winsock
  9. Replies
    11
    Views
    5,026

    Okay I'm assuming this is for some stupid little...

    Okay I'm assuming this is for some stupid little trojan program you are trying to make that will "mimic" all the other lame trojans out there. Despite this little fact I will give you an idea of how...
  10. Replies
    21
    Views
    3,272

    As a programmer once said on this board a while...

    As a programmer once said on this board a while back, don't ask his name cause I don't remember it hehe, "You shouldn't simply just try to find a work around. You should be trying to figure out why...
  11. Replies
    21
    Views
    3,272

    Hmmm. Well the following code doesn't work still:...

    Hmmm. Well the following code doesn't work still:

    case WM_CTLCOLORSTATIC:
    if( GetDlgCtrlID((HWND)lParam) == EDIT_FILES ) {
    SetBkColor(GetWindowDC(GetDlgItem(hwnd, EDIT_FILES)),...
  12. I am not sure exactly how to stop ALT+F4, most of...

    I am not sure exactly how to stop ALT+F4, most of the time you wont get a response to this question anyways because it's unnatural. It's not supposed to be like that for a Win32 app and so most...
  13. Thread: Delete Item

    by cerion
    Replies
    10
    Views
    2,018

    novacain, By what he explained the SendMessage...

    novacain,

    By what he explained the SendMessage is always returning the (SelectedItemNum - 1) so if the first is clicked it would most likely return 0, thus adding 1 will get you the first element....
  14. Replies
    21
    Views
    3,272

    Well thats the problem. My editbox is on a dialog...

    Well thats the problem. My editbox is on a dialog box (which is the main window of my program) and I used the MSVC++ 6.0 Resource Editor to create the entire dialog box. It doesn't have an HWND...
  15. Replies
    4
    Views
    3,106

    Okay the first four errors don't seem to be a...

    Okay the first four errors don't seem to be a bracket problem. I don't know C++ so I'm not even going to try and debug the code for ya ;)

    With the four first errors what it sounds like is that you...
  16. Replies
    21
    Views
    3,272

    Okay can you show me an example of this? I used...

    Okay can you show me an example of this? I used the following code but it didn't work out:

    case WM_CTLCOLORSTATIC:
    if( GetDlgCtrlID((HWND)lParam) == EDIT_FILES ) {...
  17. Thread: Break Character

    by cerion
    Replies
    4
    Views
    1,343

    What do you mean by 'break' exactly? Perhaps if...

    What do you mean by 'break' exactly? Perhaps if you clarify this in more detail then maybe we can help.
  18. Replies
    6
    Views
    1,756

    Check out this link! Best tutorial I have ever...

    Check out this link! Best tutorial I have ever found along the lines of WinSock. It's for C++ but I have been easily able to change the few small things that are pure C++ into C code so then I can...
  19. Thread: Break Character

    by cerion
    Replies
    4
    Views
    1,343

    Usually when making a socket connection between...

    Usually when making a socket connection between two computers (assuming between two programs you, yourself have made?) you have simply have to connect to the computer and varify that the connection...
  20. Thread: Gaming........

    by cerion
    Replies
    12
    Views
    2,088

    For Xterria... Matrix math is part of Finite...

    For Xterria... Matrix math is part of Finite Mathematics. I'm not sure what grade you can take such a course where you are, but it's an OAC (grade 13) course where I live... which soon will become...
  21. Thread: Delete Item

    by cerion
    Replies
    10
    Views
    2,018

    Then do this... m_Orders.DeleteString(1 +...

    Then do this...

    m_Orders.DeleteString(1 + SendMessage(m_Orders.GetCurSel()));

    That should fix the problem ;) Hehe. An easy solution. If it always deletes the item above the selection then add...
  22. Replies
    21
    Views
    3,272

    I tried to catch the WM_CTLCOLOR message but I...

    I tried to catch the WM_CTLCOLOR message but I got the following errors:

    error C2065: 'WM_CTLCOLOR' : undeclared identifier
    error C2051: case expression not constant

    Both of these errors are...
  23. Thread: server/client

    by cerion
    Replies
    2
    Views
    1,399

    http://www.hal-pc.org/~johnnie2/winsock.html ...

    http://www.hal-pc.org/~johnnie2/winsock.html

    Check it out. It's been the best tutorial I could ever find! Helped me out a lot when I began programming sockets, so I hope it'll be as helpful to you...
  24. Replies
    3
    Views
    1,397

    Well okay. That was all I could suggest for now....

    Well okay. That was all I could suggest for now. I will look into it further and if I find anything I will give ya a PM or reply to this topic.
  25. Replies
    3
    Views
    1,397

    Okay now this solution may not work, it's just a...

    Okay now this solution may not work, it's just a suggestion. What I believe you have to do is determine the new size of the window (the mid area between side to side (left boundary of window to right...
Results 1 to 25 of 30
Page 1 of 2 1 2