> > What do you rename Powerview to, to not get the error code when you
> > run it?
> pviewigl.p
LW4, and I don't get any error codes. I must be missing something here.
- steve
This problem isn't unique to PowerView. A lot of Windows LW plug-ins
are going to be calling the Windows function GetModuleHandle() to get
access to the Windows resources (e.g. dialog box templates) stored in
the binary. GetModuleHandle() takes the name of the plug-in file as an
argument, and if this doesn't match the actual filename, the call fails
because the requested file doesn't exist. The plug-in then can't tell
Windows where to look for its resources.
It's just occurred to me, though, that Fori may be in a unique position
to avoid the problem with the OpenGL version of PowerView. NT DLLs can
have an entry point that Windows calls when the DLL is first loaded, and
one of the things passed to this entry function is the instance handle
normally obtained by calling GetModuleHandle(). This isn't part of the
Win32s subset, so you sacrifice compatibility with Win 3.x, but that's
okay in this case, since OpenGL won't run under Win 3.x either.
I haven't tried it, so it's possible this approach isn't compatible with
the way LW attaches to plug-ins.
- Ernie
Just thinking out loud again...
Uhm, I use GetModuleFileName( NULL, buffer, sizeof(buffer) );Quote:>This problem isn't unique to PowerView. A lot of Windows LW plug-ins
>are going to be calling the Windows function GetModuleHandle() to get
In a DLL, just make nearly the same call in your DLL_PROCESS_ATTACH,
using the HANDLE hDLL passed in your DllMain() instead of NULL.
- John
> > > What do you rename Powerview to, to not get the error code when you
> > > run it?
> > pviewigl.p
> Huh? I didn't have to rename powerview to anything after installing
> LW4, and I don't get any error codes. I must be missing something here.
mbc
--
| http://inswww.ins.cwru.edu/php/comet/
| LW FAQ, 3D Graphics & Animation and more!
NT only.Quote:> In a DLL, just make nearly the same call in your DLL_PROCESS_ATTACH,
> using the HANDLE hDLL passed in your DllMain() instead of NULL.
- Ernie
This is driving me crazy! I keep getting a message every time I try to
view an object in Powerview! It says something like 'Cannot find
handle'. Does anyone know how to make this go away?
4. For you - Stuart Aitkens Sasquatch tutorial on PDF :-)
9. Where's the Powerview plugin?
10. Where can I get Powerview?
12. Powerview Tests
13. Powerview