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
J

janaswamy uday

@janaswamy uday
About
Posts
58
Topics
31
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • extract value from json Object in Node JS
    J janaswamy uday

    Hello, I am having a JSON Object as below in Node JS editor: {"replyType":"queryDataRqst","requestId":169,"errCode":0,"options":0,"ccuSec":1657531129,"ccuNanosec":257000000,"replyData":[["IncidentStatusLine","\"machineId\":1111,\"incidentTidx\":101016,\"helpTidx\":101017,\"componentTidx\":100100,\"type\":2,\"state\":2,\"priority\":10,\"args\":{\"userData\":[{\"_d\":858993459,\"stringTidxValue\":0,\"longValue\":-634515298,\"realValue\":0.0,\"nullValue\":0},\"_d\":286331153,\"stringTidxValue\":0,\"longValue\":0,\"realValue\":0.0,\"nullValue\":0},\"_d\":286331153,\"stringTidxValue\":0,\"longValue\":0,\"realValue\":0.0,\"nullValue\":0},\"_d\":286331153,\"stringTidxValue\":0,\"longValue\":0,\"realValue\":0.0,\"nullValue\":0},\"_d\":286331153,\"stringTidxValue\":0,\"longValue\":0,\"realValue\":0.0,\"nullValue\":0},\"_d\":286331153,\"stringTidxValue\":0,\"longValue\":0,\"realValue\":0.0,\"nullValue\":0}]},\"text\":\"\",\"sequencenum\":287,\"timestamp\":1657522757472000000,\"wintimestamp\":133019963574720000,\"hashval\":-492839581,\"hideable\":false}"]]} Now I need extract the value from the above JSON String as below: {"userData":[{"_d":858993459,"stringTidxValue":0,"longValue":-634515298,"realValue":0.0,"nullValue":0},"_d":286331153,"stringTidxValue":0,"longValue":0,"realValue":0.0,"nullValue":0},"_d":286331153,"stringTidxValue":0,"longValue":0,"realValue":0.0,"nullValue":0},"_d":286331153,"stringTidxValue":0,"longValue":0,"realValue":0.0,"nullValue":0},"_d":286331153,"stringTidxValue":0,"longValue":0,"realValue":0.0,"nullValue":0},"_d":286331153,"stringTidxValue":0,"longValue":0,"realValue":0.0,"nullValue":0}]} How to get this value using Node JS. Thanks, Uday

    JavaScript javascript json tutorial

  • MFC DDX_Radio causes debug assertion failure when DoDataExchange is called
    J janaswamy uday

    Hi Jochen Arndt, Thank you very much for your support. I got it now and I am not getting any assertion after "you must first ensure that it is not checked (usually by checking another button of the group)." Thank you very much once again.

    C / C++ / MFC help c++ debugging

  • MFC DDX_Radio causes debug assertion failure when DoDataExchange is called
    J janaswamy uday

    Hi Victor, Could you please let me know the possible solution. This is very Urgent requirement to me. Help me out please. Thanks

    C / C++ / MFC help c++ debugging

  • MFC DDX_Radio causes debug assertion failure when DoDataExchange is called
    J janaswamy uday

    Hi I have worked but this is not working. My Requirement is to Disable the Group Radio button but still I am getting Assertion even after doing with //{{AFX_DATA_MAP(CMyDialog) DDX_MyRadio(pDX, IDC_RADIO1, m_iRadio); //}}AFX_DATA_MAP and the below Function // DDX_MyRadio(), which is a modified DDX_Radio(). // void AFXAPI DDX_MyRadio(CDataExchange* pDX, int nIDC, int& value) // must be first in a group of auto radio buttons { HWND hWndCtrl = pDX->PrepareCtrl(nIDC); ASSERT(::GetWindowLong(hWndCtrl, GWL_STYLE) & WS_GROUP); ASSERT(::SendMessage(hWndCtrl, WM_GETDLGCODE, 0, 0L) & DLGC_RADIOBUTTON); if( pDX->m_bSaveAndValidate ) value = -1; // value if none found // walk all children in group int iButton = 0; do { if( ::SendMessage(hWndCtrl, WM_GETDLGCODE, 0, 0L) & DLGC_RADIOBUTTON ) { // control in group is a radio button if( pDX->m_bSaveAndValidate ) { if( ::SendMessage(hWndCtrl, BM_GETCHECK, 0, 0L) != 0 ) { ASSERT(value == -1); // only set once value = iButton; } } else { // select button ::SendMessage( hWndCtrl, BM_SETCHECK, (iButton == value), 0L ); } iButton++; } else { TRACE( "Warning: skipping non-radio button in group.\n" ); } hWndCtrl = ::GetWindow( hWndCtrl, GW_HWNDNEXT ); } while(hWndCtrl!=NULL && !(GetWindowLong(hWndCtrl,GWL_STYLE)&WS_GROUP)); } Thanks

    C / C++ / MFC help c++ debugging

  • MFC DDX_Radio causes debug assertion failure when DoDataExchange is called
    J janaswamy uday

    Hi All, I am having Three Radio Buttons in a Dialog Based Application. The Name of the Radio Buttons are IDC_RADIO1,IDC_RADIO2 and IDC_RADIO3. I have Grouped the First Radio Button IDC_RADIO1. I have Disabled the First Radio Button which is Grouped. Now When I change the selection of First Radio Button to Second Radio Button I am getting Assertion. I have google and found that this a Microsoft Issue which is mentioned as same in this link. [Q114980: FIX: Disabled DDX Radio Button Causes Infinite Loop | KnowledgeBase Archive] https://jeffpar.github.io/kbarchive/kb/114/Q114980/ Let me know if any solutions regarding this. Thanks in Advance

    C / C++ / MFC help c++ debugging

  • C++ Service Crash in Windows Server 2008 R2 Machine
    J janaswamy uday

    Hi All, While running a C++ Service in Wice indows 2008 Server i got below dump for service crash. Crash Dump ------------ 00 ntdll!ZwWaitForMultipleObjects+0xa 01 ntdll!RtlReportException+0x55e 02 ntdll!RtlReportException+0xbc 03 ntdll!RtlpNtMakeTemporaryKey+0x216 04 ntdll!_C_specific_handler+0x96 05 ntdll!wcstok_s+0x34be 06 ntdll!_chkstk+0x9d 07 ntdll!RtlRaiseException+0xf67 08 ntdll!RtlRaiseException+0x18d 09 ntdll!RtlpNtMakeTemporaryKey+0x1c0 0a ntdll!RtlpNtMakeTemporaryKey+0x3402 0b ntdll!RtlpNtMakeTemporaryKey+0x4000 0c ntdll!memset+0x160da 0d msvcr110!free+0x1c 0e wincli32!ConnectDlg+0x392 0f wincli32!OsGetCOPCLIVersion+0x7fed 10 ntdll!RtlActivateActivationContextUnsafeFast+0x114 11 ntdll!LdrShutdownThread+0x116 12 ntdll!RtlExitUserThread+0x3e 13 kernel32!BaseThreadInitThunk+0x15 14 ntdll!RtlUserThreadStart+0x34 please help me out. Thanks, Uday

    C / C++ / MFC c++ sysadmin help

  • Array Problem.
    J janaswamy uday

    Thank you Richard for giving me the Idea. Thank You Very Much.

    C / C++ / MFC help database data-structures tutorial question

  • Array Problem.
    J janaswamy uday

    Hi all I am having two Arrays with different Length. I have some elements in both Array's In Ascending Order. Also Note that this Elements are always in Ascending Order. Example ------- char array1[200]; char array2[100]; Now both arrays have some elements array1[0]= "1"; array1[1]= "1.1"; array1[2]= "2"; array1[3]= "2.1"; array2[0]= "1"; array2[1]= "1.1"; array2[2]= "1.2"; array2[3]= "2"; array2[4]= "3"; array2[5]= "3.1"; array2[6]= "3.2"; Now i have to Arrange this Two Arrays such that. Array1 Elements should be ------------------------- array1[0]= "1"; array1[1]= "1.1"; array1[2]= ""; //Empty as element array2 contain element array1[3]= "2" array1[4]= "2.1" array1[5]= "" //Empty as element array2 contain element array1[6]= "" array1[7]= "" Array2 Elements should be ------------------------- array2[0]= "1" array2[1]= "1.1" array2[2]= "1.2" array2[3]= "2" array2[4]= "" //Empty as element array1 contain element array2[5]= "3" array2[6]= "3.1" array2[7]= "3.2" ------------------------- How can i replace a Blank if any one Array Element have no Element at that Index. Help me out. Thanks, Uday.

    C / C++ / MFC help database data-structures tutorial question

  • LoadInstanceString failed in Windows7 Operating System.
    J janaswamy uday

    _TCHAR buffer[2048]; LoadString(h, nResId, buffer, 2048); strMsg.Format(_T("%s"),buffer); While i was running the application in WindowXP the Api is Working. But when it is Window7 O.S the buffer is Empty. There is no error. Thanks uday

    C / C++ / MFC json help

  • LoadInstanceString failed in Windows7 Operating System.
    J janaswamy uday

    Hi, I am Sorry ::LoadString(HINSTANCE hInst,UINT uid,LPWSTR,int len) Api is been Failed. Code ---- _TCHAR buffer[2048]; LoadString(h, nResId, buffer, 2048); ---> Here the Code is been Failed for Windows7 O.S. strMsg.Format(_T("%s"),buffer); help me out. Thanks & Regards, uday.

    modified on Tuesday, June 7, 2011 6:48 AM

    C / C++ / MFC json help

  • LoadInstanceString failed in Windows7 Operating System.
    J janaswamy uday

    Hi All, The Api LoadInstanceString(..) is Failed it is giving an Empty String in Windows7 Operating system. code. ----- CString strTemp; ::LoadInstanceString(IDS_MSG_NODBQLPLANS, strTemp); AfxMessageBox(strTemp); Help me out. Thanks & Regards, uday

    C / C++ / MFC json help

  • some special charaters like while reading XML.
    J janaswamy uday

    Hi all, some special extra charaters like " " are displayed while reading the xml file using CFile. i dont want that extra charaters. Code: ---- int iSz = 0; DWORD dwFileRead; int len = (int)file.GetLength(); DWORD dwOffset=0; char* ReadAsciiBuf = new char[len+1]; _TCHAR* Readbuf = new _TCHAR[len+1]; file.SeekToBegin(); dwFileRead = file.Read(ReadAsciiBuf+dwOffset,len); memset(Readbuf, 0, (file.GetLength() + 1) * sizeof(TCHAR)); iSz = Mymbstowcs(Readbuf,ReadAsciiBuf,len); strTempResult = Readbuf; file.Close(); help me out.

    C / C++ / MFC xml help

  • How to Use ODBC API for SQLFetchScroll.
    J janaswamy uday

    Hi All, I want to Use the SQLFetchScroll to Move the Record to First Position. There is no Article which gives clear clarity of this Usage. Pls help me out. Thanks & Regards, Uday

    C / C++ / MFC json help tutorial

  • Not able to Read Contents for File while Reading Huge Amount of data.
    J janaswamy uday

    Thank you very much Bruck. I will try with that.

    C / C++ / MFC xml

  • CToolBar Flickers
    J janaswamy uday

    Hi Roger, Thank You Very Much for giving me a solution. Thanks & Regards, Uday.

    C / C++ / MFC

  • Expanding items in CTreeCtrl
    J janaswamy uday

    Hi, Refer for BOOL Expand( HTREEITEM hItem, UINT nCode ); Method in MSDN. You can achieve that. Thanks, Uday.

    C / C++ / MFC data-structures tutorial

  • Not able to Read Contents for File while Reading Huge Amount of data.
    J janaswamy uday

    Hi All, I am not able to Contents of File when it exceeds length of 1024. CFile file; if(file.open("C:\\users\\rakesh\\Desktop\\myText.xml",CFile::modeRead)) { return false; } TCHAR buffer[100000];//say content is very Big file.read(buffer,100000); file.close(); I am not able to get the Contents into Buffer. But i am able to get the Length of the File with int len = file.GetLength(). I am getting Junk into Buffer. What may be the reason i am not able to get it into buffer. Uday.

    C / C++ / MFC xml

  • CFormView as ModelDialog Behavour.
    J janaswamy uday

    Hi Steve, Thank you very much for giving Idea. Regards, Uday.

    C / C++ / MFC question

  • CFormView as ModelDialog Behavour.
    J janaswamy uday

    Hi All, I am having a FormView and i have shown the form View in Menu Click Event. Previously there was a Model Dialog for that Event. The same event is modified to CFormView. My Doubt is. Code ---- CMyDialog dlg; if( dlg.DoModel()== IDOK) { //Some Conditions ...... } The Code will wait untill the CDialog Box is been Closed. The Same behaviour must be applied to CFormView. What is the Process to do. Regards, Uday.

    C / C++ / MFC question

  • CToolBar Flickers
    J janaswamy uday

    Hi All, I am getting Flicker for Toolbar which is Owner Drawn. I am creating a SplitterWnd which has a Form View in Right Side Pane and TreeView in Leftside Pane. There is no flicer in FormView but when i am trying to Disable the Icons in CToolbar for some Condition it is some times Continuosly Flickers i could not understand why this happens. Code ---- void CMainFrame::OnUpdateFileDeleteplans(CCmdUI* pCmdUI) { bool bExecuteSQLWin = false; if(bExecuteSQLWin) pCmdUI->Enable(FALSE); else pCmdUI->Enable(); pCmdUI->Enable(CheckOpenPlans()); --> Here i added with a Function CheckOpenPlans().......>==========// } bool CMainFrame::CheckOpenPlans() { CMDIChildWnd* MyWnd = NULL; MyWnd = MDIGetActive(); CView* pView = NULL; if(MyWnd != NULL) { pView = (CView*) MyWnd->GetActiveView(); if((pView->IsKindOf(RUNTIME_CLASS(CSelectQueryView)) || pView->IsKindOf(RUNTIME_CLASS(OpenPlansTreeView)))) return false; else return true; } return true; }

    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