|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Trouble with shortcutsI 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 "jim" <edasich@nooo.spam.yahoo.com> wrote in message That's fine; it just does not need to be registerednews: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 > ...does not appear to be a dll or .OCX file. What said that?> Although the code works I have concerns about installation problems Yes> (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 The DLL is part of the VB4 setup packager and I personally wouldn't use it> creating shortcuts? 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..." 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 quoteHide 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? "jim" <edasich@nooo.spam.yahoo.com> wrote in message On reflection, I'm not sure if VB4 had the shortcut sample code or not. Inews: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? 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..." :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. -- Show quoteHide quoteRandy Birch MS MVP Visual Basic http://vbnet.mvps.org/ ---------------------------------------------------------------------------- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ ---------------------------------------------------------------------------- "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? : : : |
|||||||||||||||||||||||