Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Chipperm

@Chipperm
About
Posts
8
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • winsock connect problem
    C Chipperm

    Is your server/client system using SOCK_DGRAM or SOCK_STREAM. if you are using SOCK_STREAM then once the connection is accepted using the accept function there should be a socket variable that the client is connected to. SOCKET server; //assume already in listen state SOCKET client = accept(server, ...); use the client variable to send messages back to the client machine like the following: send(client, ...);

    Chipper Martin

    C / C++ / MFC question sysadmin help tutorial

  • pointer question
    C Chipperm

    If you want to use the pointer that way just declare the pointer as char* instead of void *. You could also just cast the pointer variable to char* if you really want to declare the pointer as void *.

    Chipper Martin

    C / C++ / MFC help question

  • still moving the mouse
    C Chipperm

    You want to use the function GetWindowRect to get the window coordinates. From that you can then call SetCursorPos and apply the correct offsets. x_coord+=x_offset; y_coord+=y_offset; Search for GetWindowRect on google and it should take you to the msdn page for that function.

    Chipper Martin

    C / C++ / MFC question help

  • LPSTR question
    C Chipperm

    You can do this: char test1[256]; char test2[256]; sprintf(test1, "hello"); sprintf(test2, "world"); int x = 9; char buffer[256]; sprintf(buffer, "%s %d %s", test1, x, test2); the buffer will contain 'hello 9 world'

    Chipper Martin

    C / C++ / MFC help tutorial question

  • Moving the mouse pointer
    C Chipperm

    Click on this link and it will lead you to the direct microsoft information for SendInput http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp

    Chipper Martin

    C / C++ / MFC c++ help question

  • Moving the mouse pointer
    C Chipperm

    You can use the SendInput function to move the mouse to any place on the screen. When using the function notice that the screen coordinates(resolution) have to be converted to mouse coordinates(0-65535) in both the horizontal and vertical directions.

    Chipper Martin

    C / C++ / MFC c++ help question

  • Leaving for Las Vegas
    C Chipperm

    I live in Las Vegas. If you are interested in going to the clubs then Pure(Caesars Palace), TAO (Venetian), and Light(Bellagio) are your best bets. Rain(Palms Casino) is also good. Have Fun!!

    Chipper Martin

    The Lounge question

  • how to ask a yes or no question
    C Chipperm

    If you search for MessageBox on the msdn.microsoft.com website you will see that it takes four input parameters like this: MessageBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType); HWND is the window handle lpText is the text that is going to ask the question lpCaption is the title of the message box uType is the type of box (for a yes/no box set it to MB_YESNO in visual studio) make sure you include the required header file Windows.h for the defines

    Chipper Martin

    C / C++ / MFC c++ delphi tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups