15,906,708 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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'.