Thank You
shiv nand
Posts
-
CStatusbar and Menubar Background color change -
CStatusbar and Menubar Background color changehi can you give the example.
-
CStatusbar and Menubar Background color changeHi 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.
-
How to parse xml (read/write xml file) in vc++Hi i want to read and write a xml file in MFC dialog based application. can i get some examples. Thanks in advance.
-
Application Errori 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
-
Application Errorit breaks in afxBeginthread creation only?
-
Application Errorthis 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 ?
-
Application Errori am using vc++ 6.0 i am not able to get this option Debug>Windows>Call Stack
-
Application Errorhow to check the call stack.
-
Application ErrorHi 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
-
Read Serial Port data [modified]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
-
convert binary file to image/bmp file in vc++sorry .bin is the file extension.
-
convert binary file to image/bmp file in vc++i have image.bmp it is saved in image.bin file format, bin is the file format.
-
convert binary file to image/bmp file in vc++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.
-
convert binary file to image/bmp file in vc++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.
-
convert binary file to image/bmp file in vc++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).
-
convert binary file to image/bmp file in vc++i have already a image binary data, how to convert back to image file.
-
convert binary file to image/bmp file in vc++i have image binary data(file) how do i convert back to image.
-
convert binary file to image/bmp file in vc++yes image is already a binary file.
-
convert binary file to image/bmp file in vc++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.