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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

peter ho

@peter ho
About
Posts
15
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Running 16bit application on Windows NT server 4.0
    P peter ho

    Hi! I hope anyone can help me on this issue. I have a 16-bit application running on Windows NT server 4.0 . This application wil log the network traffic with the current time and date. However, the time that this application logged, is always 7 minutes ahead of the Windows NT Server time. And the applicaiton only update the time it logged every 7-minutes interval. I ran this application on Windows NT Sever 4.0 before, and never had this problem. Don't know what cause it this time. Thanks,

    System Admin help sysadmin announcement

  • detect data on a TCP socket
    P peter ho

    Hi! I am new to socket programming. When I open a socket to a TCP server, is there a way to detect data whenever it's coming back? Please help! Thanks

    C / C++ / MFC sysadmin help question

  • Worker Thread Question!
    P peter ho

    I tried to create a worker thread. However, I keep get the compile error "error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (__cdecl *)(void)'" Please help! many thanks! p. //I have a global Thread function: UINT connection(LPVOID pParam) { ... return 1; } //Start the worker thread AfxBeginThread(connection) { .... }

    C / C++ / MFC help question

  • Launch a thread in a dll
    P peter ho

    Hi! Can someone show me how to launch a thread in a dll? I kept get a message when I compile: "Error AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int'" thanks, peter.

    C / C++ / MFC help tutorial question

  • socket() programming question!
    P peter ho

    Hope that anyone can help me. I am new to socket() programming. I try to connect to a tcp server. However my program fails when its get to gethostbyaddr() function. It keeps returning "null". My questions are: 1) Is there a difference between AF_INET and PF_INET? 2) The gethostbyaddr() returns "null" because it can't not see the tcp server IP on the network for some reason ?(eventhough I can ping or telnet to tcp server) Many thanks! peter. unsigned int addr; struct hostent *hp; SOCKET conn; conn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); addr=inet_addr("10.23.50.133"); hp=gethostbyaddr((char*)&addr,sizeof(addr),AF_INET);

    C / C++ / MFC sysadmin question help

  • RS232 vs RS422
    P peter ho

    Can someone help me with the RS422 programing? I have a device that can be controlled via RS232 or RS422. I can write a program to control this device in RS232 mode. My question is, does this program still work if I switch the device to RS422 mode? What do I need to do to make this program work in RS422 mode? Do I need a RS232 - RS422 converter? thanks,peter.

    C / C++ / MFC question visual-studio help

  • Add grid control to a dialog
    P peter ho

    Can anyone provide me some more details of how to add the MFC grid control (wrote by Christ Maunder) to a dialog? I can't make it work using his instruction in the article. Many thanks, peter.

    C / C++ / MFC c++ css tutorial question

  • extract each byte from an integer varialbe
    P peter ho

    Hi! I hope someone can help me on this. Is there a way to extract each byte from an integer variable in C++ (4 bytes) ? thanks, peter.

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

  • ascii coded hex !
    P peter ho

    Can someone explain what does it mean by saying "ascii coded hex"? Does it mean treating 0x1000 as each single character '1' '0' '0' '0' thanks

    C / C++ / MFC question

  • mfc dll
    P peter ho

    Hi I wrote a dialog based program using mfc. When I run it from another computer, the program indicates "can not find mfc42.dll, mfc042.dll....." Does anyone know how to compile the program so that these dll files will be included? thanks

    C / C++ / MFC c++ tutorial question

  • serial comm.
    P peter ho

    I try to write a program to talk to a external device via com port1. I use WriteFile() to send the ascii command: I verified to see that the ASCII command that I send out does go out to the port. I checked the correct configuration for the port(baudrate,stopbit...). But the devide still does not respond. However, the device is responding when I use windows hyperterminal to send the exact ascii command. Does anyone know why? Does hyperterminal terminate the stream it sends out with a special ascii value that my program doesn't ? Please help! Thanks, peter.

    C / C++ / MFC com help question workspace

  • serial comm.
    P peter ho

    Is there any special trick to send a hex value through a serial port? Thanks, p. t.

    C / C++ / MFC question

  • MS Communication Control
    P peter ho

    Hi! I have a hard time finding the tutorial or documents of using the MSComm Control in VC++. Does anyone know where to find this info? Please help! Thanks p. h.

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

  • header file and library file
    P peter ho

    Please show me where to put a *.lib file so that it will work? Right now, I put the library file in the same folder as the header file is, but the vc++ compiler still does not see the library file. Thanks

    C / C++ / MFC c++ question

  • how to import a library into my MFC project?
    P peter ho

    Please show me how to import a *.lib file into my MCF project? Is it possible to view a *.lib file using VC++ ?

    C / C++ / MFC c++ 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