Click here to Skip to main content
14,772,662 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popularity Of C among developer Pin
Richard MacCutchan17-Apr-19 7:35
mveRichard MacCutchan17-Apr-19 7:35 
QuestionRe: Popularity Of C among developer Pin
David Crow17-Apr-19 8:00
MemberDavid Crow17-Apr-19 8:00 
AnswerRe: Popularity Of C among developer Pin
Richard MacCutchan17-Apr-19 22:30
mveRichard MacCutchan17-Apr-19 22:30 
AnswerRe: Popularity Of C among developer Pin
John R. Shaw19-Apr-19 9:47
MemberJohn R. Shaw19-Apr-19 9:47 
GeneralRe: Popularity Of C among developer Pin
jschell21-Apr-19 8:46
Memberjschell21-Apr-19 8:46 
AnswerRe: Popularity Of C among developer Pin
jschell21-Apr-19 8:35
Memberjschell21-Apr-19 8:35 
QuestionGet menu color in MFC feature pack Pin
_Flaviu14-Apr-19 0:26
Member_Flaviu14-Apr-19 0:26 
Question"Debug Assertion Failed at line: 252 in viewcore.CPP" Pin
manoharbalu10-Apr-19 19:21
Membermanoharbalu10-Apr-19 19:21 
I have used a tabcontrol which should show different views for each tabs. As a trial, I have created a CView class and tried to show it for the first tab. When I select the tab, the appropriate view ( white screen view) is showing.

The problem is when I click on the view, it throws an assertion "Debug Assertion Failed at line: 252 in viewcore.CPP".

I have added the below code for selection of tabs.
if (nTab == 0)
{
CRect clientRect;
m_cTabCtrl.GetClientRect(&clientRect);
clientRect.DeflateRect(5, 18);

CTrendview *m_pNewView = new CTrendview();

// Creation of the view window
if(! m_pNewView->Create(NULL, NULL, WS_VISIBLE | WS_CHILD, clientRect,
&m_cTabCtrl, 1))
{
TRACE( "Failed view creation\n" );
}

m_pNewView->ShowWindow(SW_SHOW);
}

Please help me to find a solution for this problem.
AnswerRe: "Debug Assertion Failed at line: 252 in viewcore.CPP" Pin
Victor Nijegorodov10-Apr-19 21:58
MemberVictor Nijegorodov10-Apr-19 21:58 
QuestionRe: "Debug Assertion Failed at line: 252 in viewcore.CPP" Pin
David Crow11-Apr-19 11:33
MemberDavid Crow11-Apr-19 11:33 
QuestionProblem when I run the application using cntrl+F5. Wintech OPC DLL Pin
D.Manivelan8-Apr-19 5:02
MemberD.Manivelan8-Apr-19 5:02 
AnswerRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
11917640 Member 9-Apr-19 23:57
Member11917640 Member 9-Apr-19 23:57 
GeneralRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
D.Manivelan10-Apr-19 20:04
MemberD.Manivelan10-Apr-19 20:04 
GeneralRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
Victor Nijegorodov10-Apr-19 21:55
MemberVictor Nijegorodov10-Apr-19 21:55 
QuestionClass as memebrs of other classes : Create a constructor that takes all data Pin
desanti6-Apr-19 8:09
Memberdesanti6-Apr-19 8:09 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
k50546-Apr-19 10:40
mvek50546-Apr-19 10:40 
GeneralRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
Stefan_Lang8-Apr-19 22:51
mveStefan_Lang8-Apr-19 22:51 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
Gerry Schmitz6-Apr-19 11:36
mveGerry Schmitz6-Apr-19 11:36 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
jschell7-Apr-19 9:53
Memberjschell7-Apr-19 9:53 
QuestionNew [[nodiscard]] attribute usage. Pin
Maximilien4-Apr-19 6:57
MemberMaximilien4-Apr-19 6:57 
AnswerRe: New [[nodiscard]] attribute usage. Pin
John R. Shaw4-Apr-19 8:56
MemberJohn R. Shaw4-Apr-19 8:56 
SuggestionRe: New [[nodiscard]] attribute usage. Pin
Maximilien4-Apr-19 17:17
MemberMaximilien4-Apr-19 17:17 
GeneralRe: New [[nodiscard]] attribute usage. Pin
Randor 4-Apr-19 19:53
professional Randor 4-Apr-19 19:53 
GeneralRe: New [[nodiscard]] attribute usage. Pin
leon de boer5-Apr-19 4:24
Memberleon de boer5-Apr-19 4:24 
GeneralRe: New [[nodiscard]] attribute usage. Pin
John R. Shaw5-Apr-19 12:00
MemberJohn R. Shaw5-Apr-19 12:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.