Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MSFLXGRD.OCX installation problem

0 views
Skip to first unread message

Brad

unread,
Feb 9, 1999, 3:00:00 AM2/9/99
to
If anyone's got a minute to answer a question, I could sure use the help.

I've worked up a project in Visual C++ 5.0 that uses the MSFlexGrid control.
For some reason, it all works find on my machine, and every other development
machine in the place (i.e., all the machine w/ DevStudio installed).

However, when we try to install on any other machine, the control does not
appear on the screen. Thinking the installer failed, we copied the file by hand
and ran REGSVR32 on it - no luck there.

I'd heard that the FlexGrid depended on COMCAT.DLL, so we copied that and ran
REGSVR32. Again, no results. Also tried different versions of MSFLXGRD.OCX,
still nothing.

I've used dumpbin to examine the imports and dependencies, and the only files
MSFLXGRD.OCX seems to need are KERNEL32, GDI32, USER32, and various OLE dll's
which are already installed.

Anyone have any ideas?

Other details which may or may not matter:

- Development is done on NT machines, we're installing to Win95.
- The project is an ActiveX control that hosts other controls, including the
FlexGrid.
- The target machine has loads of RAM, and nothing else is running.
- No other versions of MSFLXGRD.OCX exist on the target machine.

Thanks in advance - this is taking way too many person-hours over here, and any
help is appreciated. (In fact, if you have the answer to my problem, and live
near San Jose, I'll be happy to buy you a beer. Or a wine spritzer, or
whatever.)

If you do answer, please either email or post to newsgroups with MSFLXGRD in the
subject line.

Thanks,
- Brad Heintz
Senior Software Engineer
Decibel Instruments, Inc.
bhe...@decibel.com
(510)353-9480

Terry Richards

unread,
Feb 9, 1999, 3:00:00 AM2/9/99
to bhe...@decibel.com
Brad wrote:
>
> I've worked up a project in Visual C++ 5.0 that uses the MSFlexGrid control.
> For some reason, it all works find on my machine, and every other development
> machine in the place (i.e., all the machine w/ DevStudio installed).
>
> However, when we try to install on any other machine, the control does not
> appear on the screen. Thinking the installer failed, we copied the file by hand
> and ran REGSVR32 on it - no luck there.
>
> [snip]

Brad,

I just went through this. Hell ain't it :)

Are you passing the licence string to the constructor?

There's a utility you can download that will extract the license string
from the control but the address is VERY well hidden on the MSDN CD but
that's not really a problem because it's wrong anyway. I had to call MS
to get it.

To save you wasting a support incident:

BOOL MyView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD
dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext*
pContext)
{

/* 72E67120-5959-11cf-91F6-C2863C385E30 */

WCHAR pwchLicenseKey[] =
{
0x0037, 0x0032, 0x0045, 0x0036, 0x0037, 0x0031,
0x0032, 0x0030, 0x002D, 0x0035, 0x0039, 0x0035,
0x0039, 0x002D, 0x0031, 0x0031, 0x0063, 0x0066,
0x002D, 0x0039, 0x0031, 0x0046, 0x0036, 0x002D,
0x0043, 0x0032, 0x0038, 0x0036, 0x0033, 0x0043,
0x0033, 0x0038, 0x0035, 0x0045, 0x0033, 0x0030
};

BSTR bstrLicense =
::SysAllocStringLen(pwchLicenseKey,sizeof(pwchLicenseKey)/sizeof(WCHAR));

if (!CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect,
pParentWnd, nID, pContext))
return FALSE;

if (!m_Grid.Create(_T(""),WS_CHILD |
WS_VISIBLE,CRect(0,0,0,0),this,100, NULL, FALSE, bstrLicense)){

AfxMessageBox(_T("Failed to create grid!"));
return FALSE;

}

return TRUE;

}

I can't find this documented anywhere even now I know it exists! You can
find it by doing a search on licreqst.exe (if I remember correctly) but
the page that turns up is useless.

I don't care what MS says, IE4 is NOT the best tool for every job & the
new format MSDN blows chunks. Mumble mumble.

--
Terry Richards
[cc: by mail]

0 new messages