Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popularity Of C among developer Pin
Richard MacCutchan17-Apr-19 6:35
mveRichard MacCutchan17-Apr-19 6:35 
QuestionRe: Popularity Of C among developer Pin
David Crow17-Apr-19 7:00
David Crow17-Apr-19 7:00 
AnswerRe: Popularity Of C among developer Pin
Richard MacCutchan17-Apr-19 21:30
mveRichard MacCutchan17-Apr-19 21:30 
AnswerRe: Popularity Of C among developer Pin
John R. Shaw19-Apr-19 8:47
John R. Shaw19-Apr-19 8:47 
GeneralRe: Popularity Of C among developer Pin
jschell21-Apr-19 7:46
jschell21-Apr-19 7:46 
AnswerRe: Popularity Of C among developer Pin
jschell21-Apr-19 7:35
jschell21-Apr-19 7:35 
QuestionGet menu color in MFC feature pack Pin
_Flaviu13-Apr-19 23:26
_Flaviu13-Apr-19 23:26 
Question"Debug Assertion Failed at line: 252 in viewcore.CPP" Pin
manoharbalu10-Apr-19 18:21
manoharbalu10-Apr-19 18: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 20:58
Victor Nijegorodov10-Apr-19 20:58 
QuestionRe: "Debug Assertion Failed at line: 252 in viewcore.CPP" Pin
David Crow11-Apr-19 10:33
David Crow11-Apr-19 10:33 
QuestionProblem when I run the application using cntrl+F5. Wintech OPC DLL Pin
D.Manivelan8-Apr-19 4:02
D.Manivelan8-Apr-19 4:02 
AnswerRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
11917640 Member 9-Apr-19 22:57
11917640 Member 9-Apr-19 22:57 
GeneralRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
D.Manivelan10-Apr-19 19:04
D.Manivelan10-Apr-19 19:04 
GeneralRe: Problem when I run the application using cntrl+F5. Wintech OPC DLL Pin
Victor Nijegorodov10-Apr-19 20:55
Victor Nijegorodov10-Apr-19 20:55 
QuestionClass as memebrs of other classes : Create a constructor that takes all data Pin
desanti6-Apr-19 7:09
desanti6-Apr-19 7:09 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
k50546-Apr-19 9:40
mvek50546-Apr-19 9:40 
GeneralRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
Stefan_Lang8-Apr-19 21:51
Stefan_Lang8-Apr-19 21:51 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
Gerry Schmitz6-Apr-19 10:36
mveGerry Schmitz6-Apr-19 10:36 
AnswerRe: Class as memebrs of other classes : Create a constructor that takes all data Pin
jschell7-Apr-19 8:53
jschell7-Apr-19 8:53 
QuestionNew [[nodiscard]] attribute usage. Pin
Maximilien4-Apr-19 5:57
Maximilien4-Apr-19 5:57 
AnswerRe: New [[nodiscard]] attribute usage. Pin
John R. Shaw4-Apr-19 7:56
John R. Shaw4-Apr-19 7:56 
SuggestionRe: New [[nodiscard]] attribute usage. Pin
Maximilien4-Apr-19 16:17
Maximilien4-Apr-19 16:17 
GeneralRe: New [[nodiscard]] attribute usage. Pin
Randor 4-Apr-19 18:53
professional Randor 4-Apr-19 18:53 
GeneralRe: New [[nodiscard]] attribute usage. Pin
leon de boer5-Apr-19 3:24
leon de boer5-Apr-19 3:24 
GeneralRe: New [[nodiscard]] attribute usage. Pin
John R. Shaw5-Apr-19 11:00
John R. Shaw5-Apr-19 11: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.