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
S

shiv nand

@shiv nand
About
Posts
71
Topics
33
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CStatusbar and Menubar Background color change
    S shiv nand

    Thank You

    C / C++ / MFC c++ tutorial

  • CStatusbar and Menubar Background color change
    S shiv nand

    hi can you give the example.

    C / C++ / MFC c++ tutorial

  • CStatusbar and Menubar Background color change
    S shiv nand

    Hi In VC++ 2005 i am working in SDI applications 1) How to change the whole background color of CStatusbar including all panes.also 2)How to change background color of a Menubar.

    C / C++ / MFC c++ tutorial

  • How to parse xml (read/write xml file) in vc++
    S shiv nand

    Hi i want to read and write a xml file in MFC dialog based application. can i get some examples. Thanks in advance.

    C / C++ / MFC c++ xml tutorial

  • Application Error
    S shiv nand

    i have created parent thread, AfxBeginThread(parent,this,THREAD_PRIORITY_NORMAL,0,0,NULL); declaration : class CTestApp : public CWinApp { public: static UINT parent(LPVOID lpParam); static UINT child(LPVOID lpParam); ///////////////////////////////////////////////////////////////////////////// definition: UINT CTestApp::parent(LPVOID lpParam) //multiple client request the parent { //..... //listening socket and create new thread if(!csBuffer.IsEmpty())//data is not empty { CWinThread *Thread = NULL; Thread = AfxBeginThread(child,(LPVOID)&someValue,THREAD_PRIORITY_NORMAL,0,0,NULL); //Here only i am getting the apllication error (Not Creating Multiple thead) } return 1; } UINT CTestApp::child(LPVOID lpParam) //mulitple times its has to created { //do stuff return 1; } i hope this time i have given clearly my problem. I am tryng to create a multiple threads -- Modified Monday, January 24, 2011 11:08 AM

    C / C++ / MFC help c++ sysadmin debugging performance

  • Application Error
    S shiv nand

    it breaks in afxBeginthread creation only?

    C / C++ / MFC help c++ sysadmin debugging performance

  • Application Error
    S shiv nand

    this error because i am creating multiple thread using AfxBeginThread() see below my code : WSADATA wsaData; WSAStartup(0x0101, &wsaData ); struct sockaddr_in stSockaddr_in; struct sockaddr stSockaddr; SOCKET sock; fd_set readfds1; FD_ZERO( &readfds1); //create listening socket sock = socket(AF_INET,SOCK_STREAM,0);//create socket //sets the family,port and the addrees stSockaddr_in.sin_family = AF_INET; stSockaddr_in.sin_addr.s_addr = INADDR_ANY; stSockaddr_in.sin_port = htons(9000) //Use bind to establish the local association of the socket by assigning a local name to an unnamed socket int nRet = bind(sock, (LPSOCKADDR)&stSockaddr_in, sizeof(struct sockaddr));//bind //listen function places a socket a state where it is listening for an incoming connection if(listen( sock, MAX_CONNECTS ) < 0)//listen { //listen error return 0; } SOCKET ret_sock; //accept the connection ret_sock = accept(sock,&stSockaddr,NULL); if(INVALID_SOCKET != ret_sock) { char szBuffer[MAX_BUF_LEN]; //to receive the configuration data int iLength = recv( ret_sock,(char*) szBuffer, MAX_BUF_LEN, 0 ); szBuffer[iLength] = 0; CString csBuffer; int iLen = strlen(szBuffer); WCHAR wcStr[MAX_DATA_SIZE]; memset(wcStr,'\0',sizeof(WCHAR)*MAX_DATA_SIZE); mbstowcs( wcStr,szBuffer,iLen); csBuffer.Format(L"%s",wcStr); //////////////////////////////////////////////////////////////////////// if(!csBuffer.IsEmpty())//data is not empty { CWinThread *Thread = NULL; Thread = AfxBeginThread(func,(LPVOID)&someValue,THREAD_PRIORITY_NORMAL,0,0,NULL); //Here only i am getting the apllication error (Not Creating Multiple thead) } } How to resolve this problem ?

    C / C++ / MFC help c++ sysadmin debugging performance

  • Application Error
    S shiv nand

    i am using vc++ 6.0 i am not able to get this option Debug>Windows>Call Stack

    C / C++ / MFC help c++ sysadmin debugging performance

  • Application Error
    S shiv nand

    how to check the call stack.

    C / C++ / MFC help c++ sysadmin debugging performance

  • Application Error
    S shiv nand

    Hi all i have developed a MFC Dialoag based application (server application TCP/IP communication a socket programming) on windows xp sp2. I am getting application error message on one of the machine. but some other machine it is working fine. I am not able to fix this bug please help me . The Error message is: The instruction at "0x7c911948" referenced memory at "0x00000000".The memory could not be "read", click on OK to terminate the program click on CANCEL to debug the program What error it is and how to fix it ? Thanks in advance

    C / C++ / MFC help c++ sysadmin debugging performance

  • Read Serial Port data [modified]
    S shiv nand

    Hi i am using vc++ 6.0 MSCOMM for serial communication i have to read data(4 bytes) and display from serial port. ex: data format is 88 84 10 02 (4 bytes data from port) C6 1E 10 02 (Received Data) but i have to display 88 84 but i am getting C6 and 1E. my code is: VARIANT data; BSTR k; static char dbuff[4]; int dcount=0; CString data; if(m_mscom.GetCommEvent()==2) // Receiving data from port { data=m_mscom.GetInput(); k=data.bstrVal; dbuff[dcount] = char (k[0]); dcount++; if(dcount == 4) { dcount=0; data.Format ("%02X%02X%02X%02X",(unsigned char)dbuff[0],(unsigned char)dbuff[1],(unsigned char)dbuff[2],(unsigned char)dbuff[3]); } } please help what is the wrong in my code, thanks in advance,please give me one example how use BYTE to read the data -- Modified Sunday, January 9, 2011 11:06 PM

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    sorry .bin is the file extension.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    i have image.bmp it is saved in image.bin file format, bin is the file format.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    what actually i want,i have a device it scans finger(finger print information)and it stores as a file(in binary format).I have to convert this file to finger print image.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    Actullay it is converted as binary file in linux, i have to convert binary file back to image in windows, i dont know how to convert.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    i have binary image data i have to convert back to image file. ex : image.bmp converted to binary file image.bin. Now i have to convert "image.bin" binary file back to image.( imgage.bin to image.bmp).

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    i have already a image binary data, how to convert back to image file.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    i have image binary data(file) how do i convert back to image.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    yes image is already a binary file.

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

  • convert binary file to image/bmp file in vc++
    S shiv nand

    Hi how to convert binary file to bmp/jpg image. I have to convert image(BMP/JPG) to binary file and binary file to image(BMP/JPG). Please help. Thanks in advance.

    C / C++ / MFC c++ help tutorial
  • Login

  • Don't have an account? Register

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