Click here to Skip to main content
15,923,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC 7.0 migration Pin
Nish Nishant19-Jul-02 22:43
sitebuilderNish Nishant19-Jul-02 22:43 
GeneralRe: VC 7.0 migration Pin
unknown soldier19-Jul-02 23:00
unknown soldier19-Jul-02 23:00 
GeneralRe: VC 7.0 migration Pin
Anonymous20-Jul-02 2:50
Anonymous20-Jul-02 2:50 
Generalaccessing control in view1 from view2 - error says control not a member of CView* Pin
ns19-Jul-02 20:10
ns19-Jul-02 20:10 
GeneralI'm working around by doing a sendmessage Pin
ns19-Jul-02 20:18
ns19-Jul-02 20:18 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
l a u r e n19-Jul-02 22:33
l a u r e n19-Jul-02 22:33 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
Ravi Bhavnani20-Jul-02 6:29
professionalRavi Bhavnani20-Jul-02 6:29 
GeneralCritialSection Initialization Pin
Anonymous19-Jul-02 19:59
Anonymous19-Jul-02 19:59 
In a DLL, I have a class CPacketBase, which composed of a class CPacketBaseInitializer, like:

<br />
class CPacketBaseInitializer<br />
{<br />
public<br />
  CPacketBaseInitializer();<br />
  ~CPacketBaseInitializer();<br />
<br />
public:<br />
  static m_seqnum;<br />
  static m_cs;<br />
<br />
  static uint32 getNewSeqNum();<br />
};<br />
<br />
class CPacketBase<br />
{<br />
protected:<br />
  static CPacketBaseInitializer m_static_initializer;<br />
}<br />
<br />
CPacketBaseInitializer::CPacketBaseInitializer()<br />
{<br />
  InitializeCriticalSection(&m_cs);<br />
}<br />
<br />
CPacketBaseInitializer::~CPacketBaseInitializer()<br />
{<br />
  DeleteCriticalSection(&m_cs);<br />
}<br />
<br />
uint32 CPacketBaseInitializer::getNewSeqNum()<br />
{<br />
  uint32 ret = 0;<br />
  EnterCriticalSection(&m_cs);<br />
  ret = m_seqnum++;<br />
  LeaveCriticalSection(&m_cs);<br />
<br />
  return ret;<br />
}<br />
<br />


It seems that m_cs has never been initialized !!! It died in EnterCriticalSection(). It worked fine when I was using VS6 SP5, but after upgrading to VS.NET, it doesn't work.
GeneralCSocket Pin
Ken Mazaika19-Jul-02 19:34
Ken Mazaika19-Jul-02 19:34 
General.OCX file, activeX control question Pin
a3gupta19-Jul-02 19:29
a3gupta19-Jul-02 19:29 
GeneralRe: .OCX file, activeX control question Pin
Carlos Antollini19-Jul-02 20:16
Carlos Antollini19-Jul-02 20:16 
GeneralRe: .OCX file, activeX control question Pin
l a u r e n19-Jul-02 22:35
l a u r e n19-Jul-02 22:35 
GeneralRe: .OCX file, activeX control question Pin
super20-Jul-02 1:16
professionalsuper20-Jul-02 1:16 
GeneralRe: .OCX file, activeX .. Thanks .. one more question Pin
a3gupta20-Jul-02 12:12
a3gupta20-Jul-02 12:12 
QuestionMainFrames OnDestroy or OnClose? Pin
ns19-Jul-02 19:06
ns19-Jul-02 19:06 
AnswerRe: MainFrames OnDestroy or OnClose? Pin
l a u r e n19-Jul-02 22:37
l a u r e n19-Jul-02 22:37 
AnswerRe: MainFrames OnDestroy or OnClose? Pin
Ravi Bhavnani20-Jul-02 7:05
professionalRavi Bhavnani20-Jul-02 7:05 
GeneralI want VirtualDub!!! Pin
RichardWdy19-Jul-02 18:48
RichardWdy19-Jul-02 18:48 
GeneralRe: I want VirtualDub!!! Pin
Christian Graus19-Jul-02 21:57
protectorChristian Graus19-Jul-02 21:57 
GeneralRe: I want VirtualDub!!! Pin
Jason Hooper20-Jul-02 2:07
Jason Hooper20-Jul-02 2:07 
QuestionMFC To ATL problems ?????? Pin
Leesen19-Jul-02 18:04
Leesen19-Jul-02 18:04 
AnswerRe: MFC To ATL problems ?????? Pin
Christian Graus19-Jul-02 21:59
protectorChristian Graus19-Jul-02 21:59 
GeneralRe: MFC To ATL problems ?????? Pin
Leesen20-Jul-02 0:00
Leesen20-Jul-02 0:00 
GeneralRe: MFC To ATL problems ?????? Pin
Christian Graus20-Jul-02 0:17
protectorChristian Graus20-Jul-02 0:17 
GeneralRe: MFC To ATL problems ?????? Pin
Leesen20-Jul-02 4:11
Leesen20-Jul-02 4:11 

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.