Click here to Skip to main content
15,906,708 members

Comments by kuttiylajai (Top 5 by date)

kuttiylajai 12-Aug-18 13:36pm View    
I am using this system in high load data transmission network in a car. So when i am using sockets, i am getting packets drops. This is why i am planning to switch to WinPCAP. I tested this and frequency of drops have drastically reduced.In this case i was trying to create a network stack of my one. It would be great if you can give me some suggestions on what pattern to use to design a network stack. I thought of decorator because i need to know the basic pay load initially to to create a checksum in the case of TCP packet and IP Packet.
kuttiylajai 13-Sep-17 15:59pm View    
I read the documentation CDocument::UpdateAllViews (MFC)[^] and it was mentioning that "You typically call this function from your view class after the user has changed the document through a view."
I changed the code as per that to
void CSampleView1::OnViewCreate()
{
CRuntimeClass* second_view = RUNTIME_CLASS( CSampleView2 );
CMainWnd* pMainWnd = (CMainWnd*)AfxGetApp()->GetMainWnd();
pMainWnd->CreateNewView( second_view, pMainWnd->GetMainWnd(), 1 );
}

void CSampleView1::UpdateViewsToReflectChanges()
{
CSampleDocument* pDoc = (CSampleDocument*)((CFrameWnd*)(AfxGetApp()->GetMainWnd()))->GetActiveDocument();
pDoc->SetModifiedFlag();
pDoc->UpdateAllViews( NULL );
}
But the answer is same. I am not getting control in my OnDraw of the secondView class
kuttiylajai 13-Sep-17 15:59pm View    
Deleted
I read the documentation CDocument::UpdateAllViews (MFC)[^] and it was mentioning that "You typically call this function from your view class after the user has changed the document through a view."
I changed the code as per that to
void CSampleView1::OnViewCreate()
{
CRuntimeClass* second_view = RUNTIME_CLASS( CSampleView2 );
CMainWnd* pMainWnd = (CMainWnd*)AfxGetApp()->GetMainWnd();
pMainWnd->CreateNewView( second_view, pMainWnd->GetMainWnd(), 1 );
}

void CSampleView1::UpdateViewsToReflectChanges()
{
CSampleDocument* pDoc = (CSampleDocument*)((CFrameWnd*)(AfxGetApp()->GetMainWnd()))->GetActiveDocument();
pDoc->SetModifiedFlag();
pDoc->UpdateAllViews( NULL );
}
But the answer is same. I am not getting control in my OnDraw of the secondView class
kuttiylajai 22-May-17 6:58am View    
One interesting observation is i have a code base and i an getting this above mentioned error and there i am not able to open and navigate the different resources where as i have another code base even though while building i am getting the same error, I am able to navigate the different resources.
kuttiylajai 22-May-17 6:42am View    
Hi,
As you suggested I tried the echo rc command line argument to Properties -> Resources -> Command Line I am getting the following results.

1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>fatal error RC1107: invalid usage; use RC /? for Help
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'.