Home > Software engineering >  Strives for the great god grant instruction, dynamically create CMSFlexGrid statements control, crea
Strives for the great god grant instruction, dynamically create CMSFlexGrid statements control, crea

Time:10-07

Using VC6 development environment,

CRect rc2;
Rc2. Left=50;
Rc2. Top=50;
Rc2. Right=1000;
Rc2. Bottom=500;
If (m_Flexgrid. Create (_T (" test "), the WS_CHILD | WS_VISIBLE, rc2, this, 11071)==FALSE)
{
Int the nf=GetLastError ();//return the value of 0 win10
AfxMessageBox (" create failure!" );
return;
}


On win10 system, m_Flexgrid. Create the dynamic creation error, if is the static Create run normally,
On Windows 7/xp system dynamic and static are normal,

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL
  • Related