Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Open Associated file
Fujitsu Power Cobol V7.0

I try with this code:

call "ShellExecuteA" with stdcall linkage
using
by value 0      *> window handle
by reference
open-command *> operation to perform
file-to-open *> document to open
by value 0       *> parameters (none here)
by reference
default-directory, *> directory (could also be null)
by value 0       *> SW-SHOWNORMAL show the file when open
returning
se-hInstance     *> not 'really' a handle,
*> more an error return
end-call



I open all files less the MS office.
Some reason?

Thanks
Joe



Report this thread to moderator Post Follow-up to this message
Old Post
Euro
03-19-08 12:55 PM


Re: Open Associated file
On Mar 19, 4:54=A0am, "Euro" <e...@euromercante.pt> wrote:
> Fujitsu Power Cobol V7.0
>
> I try with this code:
>
> =A0 =A0 =A0 call "ShellExecuteA" with stdcall linkage
> =A0 =A0 =A0 =A0 =A0 using
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 by value 0 =A0 =A0 =A0*> window handle
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 by reference
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 open-command *> operation to perform
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 file-to-open *> document to open
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 by value 0 =A0 =A0 =A0 *> parameters (none her=[/color
]
e)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 by reference
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 default-directory, *> directory (could=[/color
]
also be null)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 by value 0 =A0 =A0 =A0 *> SW-SHOWNORMAL show t=[/color
]
he file when open
> =A0 =A0 =A0 =A0 =A0 returning
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 se-hInstance =A0 =A0 *> not 'really' a handle,=[/color
]

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0*> more an =[/color
]
error return
> =A0 =A0 =A0 end-call
>
> I open all files less the MS office.
> Some reason?
>
> Thanks
> Joe


Hi,

You can use the following APIs to retrieve the name and handle of the
executable file associated with a specified filename (doc, xls, pps):

FindExecutable()

CreateProcess()

WaitForSingleObject()

CloseHandle()

http://msdn2.microsoft.com/en-us/library/ms647374.aspx

http://msdn2.microsoft.com/en-us/library/ms682425.aspx

http://msdn2.microsoft.com/en-us/library/ms687032.aspx

http://msdn2.microsoft.com/en-us/library/ms724211.aspx

Kellie.


Report this thread to moderator Post Follow-up to this message
Old Post
Kellie Fitton
03-19-08 11:55 PM


Re: Open Associated file
Thanks Kellie,

I open all, less the XLS.
Gives a message already within Excel:
"There was an error of DDE and it is not possible to show a description
because it is too long..."

Joe



"Kellie Fitton" <KELLIEFITTON@yahoo.com> escreveu na mensagem
news:dc783353-fcd8-4834-860c-4716e1b2845a@i7g2000prf.googlegroups.com...
> On Mar 19, 4:54 am, "Euro" <e...@euromercante.pt> wrote: 
>
>
> Hi,
>
> You can use the following APIs to retrieve the name and handle of the
> executable file associated with a specified filename (doc, xls, pps):
>
> FindExecutable()
>
> CreateProcess()
>
> WaitForSingleObject()
>
> CloseHandle()
>
> http://msdn2.microsoft.com/en-us/library/ms647374.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms682425.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms687032.aspx
>
> http://msdn2.microsoft.com/en-us/library/ms724211.aspx
>
> Kellie.
>

Report this thread to moderator Post Follow-up to this message
Old Post
Euro
03-20-08 12:55 PM


Re: Open Associated file
On Mar 20, 4:01=A0am, "Euro" <e...@euromercante.pt> wrote:
> Thanks Kellie,
>
> I open all, less the XLS.
> Gives a message already within Excel:
> "There was an error of DDE and it is not possible to show a description
> because it is too long..."
>
> Joe
>


Hi,

The following weblinks should give you some pointers:

http://en.wikipedia.org/wiki/Dynamic_Data_Exchange

http://whitepapers.techrepublic.com...?docid=3D297657

http://msdn2.microsoft.com/en-us/library/ms648774(VS.85).aspx

Kellie.


Report this thread to moderator Post Follow-up to this message
Old Post
Kellie Fitton
03-20-08 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:19 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.