⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpw_wapi_ipc_95.html

📁 VC programing
💻 HTML
字号:
<HTML>

<HR><A NAME=WINAPI_IPC_DLL_WORD60>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: DLL for reading Word6.0 files.</H4><PRE>
In article <3s6bas$o28@harbinger.cc.monash.edu.au> zuf@daneel.rdt.monash.edu.au (Jon Zufi) writes:
>
>Thanks for listening.
>
>Can anyone direct me to a DLL that will let me read/view/whatever Word
>6.0 files?
        Microsoft has a free viewer wordvu.exe (???) from ftp.microsoft.com
        in softlib/mslfiles.

        Word 6 files use OLE2 so I think they are complex to read without
        getting right into OLE2.

-- 
John A. Grant                                           jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
</PRE>


<HR><A NAME=WINAPI_IPC_WordBasic>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Access Word basic via VC++.</H4><PRE>
>Does anyone have experience or knows how to access Word Basic methods
>from within Visual C++.  

>I know this is simple to do in Visual Basic  (I have done it) but sort
>of tricky in Visual C++ since Microsoft Word does not come with an
>OLB file which can be read in by the Class Wizard & thus simplifies
>the access process in the C++ code.

>Please directly email your reply.  Thanks and appreciate your help.

>Gus Tran
>gtran@ix.netcom.com

 The better way, IMHO, is to use WLLs. You may also "trigger" your
 macro using DDE.

 David


----- Standards are great. Everyone should have one ! (Charles Moore) -----
David Brabant,             | E-mail: David.Brabant@csl.sni.be
Siemens Nixdorf,           | X-400:  C=BE;A=RTT;P=SCN;O=SNI;OU1=LGG1;OU2=S1
Centre Software de Lihge,  |         S=BRABANT;G=DAVID
2, rue des Fories,         | URLs:   www.sni.de       www.csl.sni.be/~david
4020 Lihge (BELGIUM)       | Phone:  +32 41 201 609     FAX: +32 41 201 642

</PRE>

<HR><A NAME=WINAPI_IPC_REsize_notepad>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: How to resize the notepad from my app?</H4><PRE>
In article <3uf57s$52t@nic.wat.hookup.net>,
   aquinn@hookup.net (Liam Quinn) wrote:
>I am trying, using Delphi, to run a Windows application (Notepad) from
>a button.  I can run the program using WinExec or ShellExecute, but
>cannot find a way to *automatically* RESIZE and reposition Notepad so
>that I can control where it appears on the screen.
>
>Any help?  Please e-mail replies, if possible.
>
>Liam Quinn
>aquinn@hookup.net
>http://www.hookup.net/~aquinn/liam.html

If you have only one instance of notepad, use FindWindow to retrieve
the notepad's main window handle, then use MoveWindow to resize it.

David


----- Standards are great. Everyone should have one ! (Charles Moore) -----
David Brabant,             | E-mail: David.Brabant@csl.sni.be
Siemens Nixdorf,           | X-400:  C=BE;A=RTT;P=SCN;O=SNI;OU1=LGG1;OU2=S1
Centre Software de Lihge,  |         S=BRABANT;G=DAVID
2, rue des Fories,         | URLs:   www.sni.de       www.csl.sni.be/~david
4020 Lihge (BELGIUM)       | Phone:  +32 41 201 609     FAX: +32 41 201 642
</PRE>

<HR><A NAME=WINAPI_IPC_Kill_App>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: How to kill another app?</H4><PRE>
In article <3uc74j$mkk@joppa.citr.uq.oz.au> rgupta@quokka "Ram Gupta" writes:

>i) In windows, is there any function call that does the functionality of
>getopt() as in unix ( getopt() mainly parses command line arguments ). I
>saw GetCommandLine() in windows, but that returns  a single char string 
>consisting  of commandline arguments. I was wondering whether is there any
>call that returns me arguments in the form of argc ( count ) and argv ( array
>of character pointers)  and later can be passed to getopt() equivalent 
>function  for further parsing.

All compilers make the standard "argc" and "argv" arguments available to
an application. However, since Windows programs do not normally take
command-line arguments this is a little-used facility. Windows apps normally
read configuration info from an INI file rather than being passed it on
the command line.

>ii) In my application, I have EXIT item in menu. Upon selecting EXIT, I wish
>to kill all the domain specific applications ( At any given point of time,
>it is expected that there will be more than one same or different domain
>specific applications running in the system. User would launch these 
>applications INDEPENDENTLY). How do I findout windows handles for currently 
>active application.

Take a look at the "FindWindow" API.

>What I need to do from my application ( send 
>WM_DESTROY ?? ) inorder to kill them gracefully. 

Post each of your applications a "WM_CLOSE" message with the
"PostMessage" API.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott, Warrington, UK      | Author of SkyMap v2 shareware    |
| chris@chrism.demon.co.uk            | astronomy program for Windows.   |
|      For more info, see http://www.winternet.com/~jasc/skymap.html     |
|      Author member of Association of Shareware Professionals (ASP)     |
--------------------------------------------------------------------------
 
</PRE> 

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -