Home All Groups Group Topic Archive Search About
Author
12 May 2005 3:51 PM
jim
I want to create a desktop shortcut in VB6.  I have found code referencing
the STKIT432 dll that came with VB4 (and one for VB5) that uses
"fCreateShellLink()".  When I register the dll I get the following message:

.... STKIT432.dll was loaded, but the DllRegisterServer entry point was not
found
....does not appear to be a dll or .OCX file.

Although the code works I have concerns about installation problems (as yet
unknown) when I install that dll on other computers.

Can anyone say that is is safe to ignore this message?

Or does anyone have recommendations for a more current method of creating
shortcuts?

thanks

Author
12 May 2005 4:06 PM
Bob Butler
"jim" <edasich@nooo.spam.yahoo.com> wrote in message
news:OsttGqwVFHA.4056@TK2MSFTNGP15.phx.gbl
> I want to create a desktop shortcut in VB6.  I have found code
> referencing the STKIT432 dll that came with VB4 (and one for VB5)
> that uses "fCreateShellLink()".  When I register the dll I get the
> following message:
>
> ... STKIT432.dll was loaded, but the DllRegisterServer entry point
> was not found

That's fine; it just does not need to be registered

> ...does not appear to be a dll or .OCX file.

What said that?

> Although the code works I have concerns about installation problems
> (as yet unknown) when I install that dll on other computers.
>
> Can anyone say that is is safe to ignore this message?

Yes

> Or does anyone have recommendations for a more current method of
> creating shortcuts?

The DLL is part of the VB4 setup packager and I personally wouldn't use it
as part of a production application.  If you look on your VB cd you should
find an 'unsupported' directory (not sure what the exact name is) with
sample code including a way to manipulate shortcuts.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
12 May 2005 4:16 PM
jim
I used regsvr32.  I did not know some dlls did not need to be registered.
Yes the I got the call from the setup example on VB4 and then just searched
the disk for the dll.

Show quote
>That's fine; it just does not need to be registered
>
>> ...does not appear to be a dll or .OCX file.
>
>What said that?
Author
12 May 2005 4:21 PM
Bob Butler
"jim" <edasich@nooo.spam.yahoo.com> wrote in message
news:OIsdr3wVFHA.3620@TK2MSFTNGP09.phx.gbl
> I used regsvr32.  I did not know some dlls did not need to be
> registered. Yes the I got the call from the setup example on VB4 and
> then just searched the disk for the dll.
>
>> That's fine; it just does not need to be registered
>>
>>> ...does not appear to be a dll or .OCX file.
>>
>> What said that?

On reflection, I'm not sure if VB4 had the shortcut sample code or not.  I
never used VB4 for anything more than playing with some of the new features
since it was such a pig.  If you can't find the better code then what you
have will work.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
13 May 2005 2:00 AM
Randy Birch
:I used regsvr32.  I did not know some dlls did not need to be registered.

Only COM-based DLLs (ActiveX DLLs) need to be registered as they expose
methods through an object model. "Normal" DLLs don't (and can't be) as they
have no dll register entry point and expose methods through APIs.
--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------



Show quote
"jim" <edasich@nooo.spam.yahoo.com> wrote in message
news:OIsdr3wVFHA.3620@TK2MSFTNGP09.phx.gbl...

: Yes the I got the call from the setup example on VB4 and then just
searched
: the disk for the dll.
:
: >That's fine; it just does not need to be registered
: >
: >> ...does not appear to be a dll or .OCX file.
: >
: >What said that?
:
:
:

AddThis Social Bookmark Button