Re: Win32 Constants and IShellLink

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi,

I have two solutions to this problem:

One: Buy an API book. I really like Dan Appleman's "Visual Basic Programmers
Guide to the Win32 API" and have found that it is a great resource. It has a
lot of the constants in there for you.

Two: Email me privately the constant names that you need and I'll see what I
can find for you. It might take me a couple of days to get back to you.
Email is blackdog at cdc.net

Thanks,

Greg Harris
HHS

P.S. My EuC Homepage (I know a really dead site) is gone. My ISP had a HD
failure and lost all the frontpage server websites. I had planned to rewrite
it anyway and upload a better version of it. It will be out-of-service for a
while.


-----Original Message-----
From: John Z. Cannon <jzcndd at EARTHLINK.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Saturday, September 19, 1998 12:20 PM
Subject: Win32 Constants and IShellLink


>Greetings Euphorians!
>     I have been "lurking" about this mailing list for awhile, reading the
>previous months' logs and current mail before blurting out something
>stupid.  Well, now it's time!
>     I am trying to write a simple software installation program using
>Euphoria for Win32 which will allow the user to select his destination
>folder, optionally place shortcuts in his Start Menu and on the Desktop,
>read from and write to the registry, and perhaps even create an uninstall
>routine.  At first I was just going to model my program after Euphoria's
>Install.ex, but I need to give the user the ability to choose his
>destination folder and still create shortcuts, and I need to be able to set
>up file associations in the registry.
>     I quickly decided that I was going to need EXW and Win32lib.ew for dll
>access, message boxes, etc.  As I proceeded, however, I became increasingly
>convinced that my system ("start...") and system ("copy...") calls were
>just not going to pan out.  Not only is the up-and-down black DOS box
>annoying and unprofessional looking, on my computer (Pentium 233MHz,
>Windows95b, 48MB RAM), the system() procedure hangs up half of the time
>when running a EXW program using Win32lib.ew.  Sometimes it carries out the
>command asked for and then fails to return to my program until I manually
>click anywhere in the black box.  Calls like system ("start
>c:\\windows\\temp\\help.htm", 2) hang before starting the web browser and
>actually require CTRL-ALT-DEL to exit.  Starting files this way using other
>applications seem to work most of the time -- most of the time -- if they
>do not involve DDE (I think).
>     So... I decided I'd have to wrap Win32 CopyFile, MoveFile, DeleteFile
>and ShellExecute as well as some of the Registry functions.  No problem...
> Oh, wait, problem.   All I have to go by, besides David Cuny's Win32lib.ew
>(my inspiration!) is the Win32 Programmer's Reference.hlp from Borland's
>FTP site.    (I went back there yesterday and found a "new" version 23.6MB
>vs my old one of 10.7MB).   One would think that in all that, the values of
>constants such as MOVE_COPY_ALLOWED would be given, but Noooo...  The other
>problem I seem to be up against involves Shortcuts.  How does one access
>the IShellLink interface and its associated methods from Euphoria?  Can it
>even be done?
>     I spent over three hours going round-about at Megasoft looking for
>answers to these questions without success.  If anyone knows where to find
>the global constants for Win32 and/or how to access IShellLink, please let
>me know.
>     Thanks in advance, and sorry to be so windy...
>     John Cannon
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu