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
Y

yaminisridaran

@yaminisridaran
About
Posts
176
Topics
56
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Does any one have an idea about streaming RTP
    Y yaminisridaran

    Yes I am tryiing to develop a rtp player

    C / C++ / MFC c++

  • Does any one have an idea about streaming RTP
    Y yaminisridaran

    I am trying to develop a RTP Player in vc++.I downloaded vlc open source but compiled in cygwin and able to get exe but I too convert that code to vc++6.0. Can any one suggest me regrading the rtp player

    C / C++ / MFC c++

  • Has any one compiled VLC in vc++6.0
    Y yaminisridaran

    I answered ur question I have to compile it in vc++

    C / C++ / MFC c++

  • Has any one compiled VLC in vc++6.0
    Y yaminisridaran

    Yes But I Have to develop in vc++

    C / C++ / MFC c++

  • Has any one compiled VLC in vc++6.0
    Y yaminisridaran

    I downloaded the source code from website and in that folder I found activex folder and main.cpp open the main.cpp in vc++ and build it. i got missing source filename

    C / C++ / MFC c++

  • Has any one compiled VLC in vc++6.0
    Y yaminisridaran

    I am trying to compile VLC open source code from videolan.org.But when i compile it in vc++ I am getting too many errors.Need to Build it

    C / C++ / MFC c++

  • Has any one compiled VLC in vc++6.0
    Y yaminisridaran

    I am trying to compile VLC Open source code in vc++6.0. But not able to get it done

    C / C++ / MFC c++

  • Need solution for WSAEWOULDBLOCK
    Y yaminisridaran

    I am trying to receive asynchronous sockets via udp but I am mostly getting WSAEWOULDBLOCK error . I anyone help me solving this problem WSADATA wsaData; int error = WSAStartup(0x202,&wsaData); if(error) return FALSE; if(wsaData.wVersion != 0x202) { WSACleanup(); return FALSE; } m_UdpSock=(SOCKET)WSASocket(AF_INET,SOCK_DGRAM,0,NULL,NULL,0); if(m_UdpSock==INVALID_SOCKET) return FALSE; sockaddr_in sockAddrServer; sockAddrServer.sin_family=AF_INET; sockAddrServer.sin_port=htons(port_data); sockAddrServer.sin_addr.s_addr=INADDR_ANY; // Bind socket to listener address if(bind(m_UdpSock,(SOCKADDR*)&sockAddrServer,sizeof(sockaddr_in))==SOCKET_ERROR) { int y=WSAGetLastError(); printf("Unable to bind socket\n"); return FALSE; } // Create WinSock Event object WSAEVENT eventWinsock=(WSAEVENT)WSACreateEvent(); if(eventWinsock==WSA_INVALID_EVENT) { printf("Unable to create winsock event\n"); return FALSE; } // Signal WinSock Event on receive packet if(WSAEventSelect(m_UdpSock,eventWinsock,FD_READ)!=NOERROR) { printf("Unable to connect event to socket\n"); return FALSE; } //long length=50000; // m_Thread=new CManager((LPVOID)this); // m_Thread->CreateThread(); bool occurance=true; while(m_abort) { Recvbuf=new char[BUFFER_SIZE]; TRACE("Before Receive Data\n"); //if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) { sockaddr_in sockAddrRecv; int nSockAddrSize=sizeof(sockaddr_in); // Packet received EnterCriticalSection(&m_cs); int nErr=recvfrom(m_UdpSock,Recvbuf,BUFFER_SIZE,0,(sockaddr*)&sockAddrRecv,&nSockAddrSize); LeaveCriticalSection(&m_cs); TRACE("Receive data\n"); if(nErr==SOCKET_ERROR) { TRACE("nErr %d\n",nErr); nErr=WSAGetLastError(); if(nErr==WSAEWOULDBLOCK) { WSAEventSelect(m_UdpSock,eventWinsock,FD_READ); WSANETWORKEVENTS wsevents; WSAEnumNetworkEvents(m_UdpSock,eventWinsock,&wsevents); DWORD dwEventId = WaitForSingleObject(eventWinsock,3000); if(dwEventId == WAIT_TIMEOUT) continue; continue; } else { WSAEventSelect(m_UdpSock,eventWinsock,FD_READ); WSANETWORKEVENTS wsevents; WSAEnumNetworkEvents(m_UdpSock,

    C / C++ / MFC help debugging

  • Always receiving WSAEWOULDBLOCK error
    Y yaminisridaran

    How to reset please explain

    C / C++ / MFC help database debugging

  • Always receiving WSAEWOULDBLOCK error
    Y yaminisridaran

    I am trying to receive udp packets which contains video data. I am receiving WSAEWOULDBLOCK error always.Can any one help me The code is WSADATA wsaData; int error = WSAStartup(0x202,&wsaData); if(error) return FALSE; if(wsaData.wVersion != 0x202) { WSACleanup(); return FALSE; } m_UdpSock=(SOCKET)WSASocket(AF_INET,SOCK_DGRAM,0,NULL,NULL,0); if(m_UdpSock==INVALID_SOCKET) return FALSE; sockaddr_in sockAddrServer; sockAddrServer.sin_family=AF_INET; sockAddrServer.sin_port=htons(port_data); sockAddrServer.sin_addr.s_addr=INADDR_ANY; // Bind socket to listener address if(bind(m_UdpSock,(SOCKADDR*)&sockAddrServer,sizeof(sockaddr_in))==SOCKET_ERROR) { int y=WSAGetLastError(); printf("Unable to bind socket\n"); return FALSE; } // Create WinSock Event object WSAEVENT eventWinsock=(WSAEVENT)WSACreateEvent(); if(eventWinsock==WSA_INVALID_EVENT) { printf("Unable to create winsock event\n"); return FALSE; } // Signal WinSock Event on receive packet if(WSAEventSelect(m_UdpSock,eventWinsock,FD_READ)!=NOERROR) { printf("Unable to connect event to socket\n"); return FALSE; } while(m_abort) { Recvbuf=new char[BUFFER_SIZE]; if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0) { sockaddr_in sockAddrRecv; int nSockAddrSize=sizeof(sockaddr_in); // Packet received EnterCriticalSection(&m_cs); int nErr=recvfrom(m_UdpSock,Recvbuf,BUFFER_SIZE,0,(sockaddr*)&sockAddrRecv,&nSockAddrSize); LeaveCriticalSection(&m_cs); if(nErr==SOCKET_ERROR) { nErr=WSAGetLastError(); if(nErr==WSAEWOULDBLOCK) { WSANETWORKEVENTS wsevents; WSAEnumNetworkEventsm_UdpSock,eventWinsock,&wsevents); DWORD dwEventId = WaitForSingleObject(eventWinsock,3000); if(dwEventId == WAIT_TIMEOUT) continue; continue; } } else { TRACE("Receive Data Size %d\n",nErr); BYTE init=Recvbuf[0]; TRACE("Packet Size for Init %d =%d and index=%d \n",init, nErr,index); }

    C / C++ / MFC help database debugging

  • Need to convert DWORD to Date Time
    Y yaminisridaran

    Indicates in 100-nanosecond intervals the stop time of this sample. The above mention is the sdk document we have regarding the DWORD

    C / C++ / MFC

  • Need to convert DWORD to Date Time
    Y yaminisridaran

    Yes I using a dll the DWORD is return from that dll and the Datetime is coded in that value.I want to check that date and time in vc++

    C / C++ / MFC

  • Need to convert DWORD to Date Time
    Y yaminisridaran

    I have a DWORD value 524642425 I need to see this value in Date Time Can i know how to use to get the value using COleDateTime.

    C / C++ / MFC

  • Need to convert DWORD to Date Time
    Y yaminisridaran

    I need to convert DWORD to Date time. Can any one suggest me

    C / C++ / MFC

  • CHttpFile::EndRequest Fails
    Y yaminisridaran

    I am trying to use POST url to the server using CInternetSession ,CHttpConnection,CHttpFile But I am getting exception when excuting EndRequest The format i have to post is: POST /axis-cgi/audio/transmit.cgi HTTP/1.0\r\n Content-Type: audio/basic\r\n Content-Length: 9999999\r\n Connection: Keep-Alive\r\n Cache-Control: no-cache\r\n \r\n <Audio data> <Audio data> <Audio data> My Code is : CInternetSession session; CHttpConnection *m_pConnection; CHttpFile* pHTTP; CString strPreFileData; strPreFileData = "Content-Type: audio/basic\r\n"; strPreFileData += "Content-Length: 9999999\r\n"; strPreFileData += "Connection: Keep-Alive\r\n"; strPreFileData += "Cache-Control: no-cache\r\n"; strPreFileData += "\r\n"; CFile fTrack; if (FALSE == fTrack.Open(strFullPath, CFile::modeRead )) { AfxMessageBox(_T("Unable to open the file.")); return FALSE; } dwReadLength = fTrack.Read(pBuffer, 200); m_pConnection=session.GetHttpConnection("10.200.11.63", (INTERNET_PORT)80, "root", "root"); pHTTP = m_pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, "axis-cgi/audio/transmit.cgi"); pHTTP->AddRequestHeaders(strPreFileData); pHTTP->SendRequestEx(240,HSR_INITIATE,0); pHTTP->Write(pBuffer, 240); pHTTP->EndRequest(); Please Help me regarding this S.Yamini

    C / C++ / MFC sysadmin help

  • Need help regrading making a control transparent when rendering video
    Y yaminisridaran

    I am using a picture box and a static control. I am trying to render the video on the picture box so whenever the video is render the picture box gets painted . I have placed a static control on top of the picture box and I have painted the frame of the static control. My problem is whenever the picture box is painted during render the video my static control also gets painted and the painted frame is washed out. I want the painted frame to remain the same even the picture box is painted.I getting flickers if i repaint the static control.

    C / C++ / MFC help

  • WM_DRAWITEM does not process for tab control
    Y yaminisridaran

    Thanks for ur support

    C / C++ / MFC

  • WM_DRAWITEM does not process for tab control
    Y yaminisridaran

    It works now when i call insert item Thanks

    C / C++ / MFC

  • WM_DRAWITEM does not process for tab control
    Y yaminisridaran

    I am waiting for ur reply

    C / C++ / MFC

  • WM_DRAWITEM does not process for tab control
    Y yaminisridaran

    Am I doing anything wrong in setting the properties of the tab control. Shall I send the sample code.

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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