The file format is detailed in the online help that comes with your compiler.
Look under "File Formats".
The source code is not available, and from what I hear it's probably just
as well. It's supposed to be a programmer's worst nightmare.
But, the source to wordpad does ship with VC++ 4.0. You may want to look at
that.
--
__o ed mccreary "I drank what?"
\<,_ compaq computers Socrates
(_)/ (_) e...@twisto.compaq.com
The story goes that Microsoft have LOST the Write source code, and
that's why 16-bit Write ships with Windows NT still - it's just about
the only 16-bit program on the whole system!
Chris
--------------------------------------------------------------------------
Chris Marriott, Warrington, UK | Author of SkyMap v3 award-winning
ch...@chrism.demon.co.uk | shareware Win31/Win95 planetarium.
For full info, see http://www.execpc.com/~skymap
Author member of Association of Shareware Professionals (ASP)
--------------------------------------------------------------------------
The "Write" file format is documented in the standard Windows 3.1 API
help file, cunningly hidden under the "File Formats" topic...
>Does anyone know if the source code for the Windows Write program is available
>or the specs for the .WRI file structure? Is it public domain? Is there a
>phone, email or other where I could get this info from Microsoft?
The .WRI spesifications are in the Win SDK Help file that comes with VB.
Jens (bal...@sn.no)
--
Newbiehood is not a period of time, it's a way of life.
http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/
--
"He not busy being born is busy dying" (B. Dylan)
Charles Stoyer, Interpex Limited, Box 839, Golden CO 80401 USA
cst...@support.interpex.com, CompuServe: 75142.2356
www/interpex.com/interpex/
Was this using a beta version of SourceSafe?
>Does anyone know if the source code for the Windows Write program is available
>or the specs for the .WRI file structure?
It used to be documented in the Win16 SDK. I remember reading about it in the SDK
that supported Windows two-point-something.
>Is it public domain? Is there a
>phone, email or other where I could get this info from Microsoft?
Try the Developer Relations Group. Or, try searching MSDN: I found it there in
Chapter 8 of Volume 4 of the Win16 3.1 SDK. I occassionally see books advertised
that purport to document all file formats: maybe such a book would help you.
The WordPad program's source code ships in VC++ 4.0, and was in the 2.2 release of
the product, I think, if not also the 2.1 release. It reads WRI files, too.
>I need to build a new application and this simple WP would be a great place to
>start without re-inventing the wheel.
Why not use the rich text edit control? Or are you stuck in Win16?
>Thanks in advance for any help, email please.
Sorry, can't.
.B ekiM
--
The opinions expressed in this message are my own personal views
and do not reflect the official views of Microsoft Corporation.
Mike Chapin wrote:
>
> In article <4ho68l$q...@ruby.digisys.net>,
> xf...@netrix.net (Dennis Jarvis) wrote:
>>Does anyone know if the source code for the Windows Write
>>program is available-----------------------------------------------------
Karl Strauss UNBC Planning Student
stra...@ugrad.unbc.edu
http://res-041.res.unbc.edu
The Write File Format is documented in the Win31 API (SDK) help file
coming with most Windows development tools (nearly all but VB :-(
Helge ;-)=)
----------------------------------------------------------
(c) All Thoughts are Mine -- Genuine Genius
----------------------------------------------------------
he...@siemens.co.at ----- VIENNA -- AUSTRIA
----------------------------------------------------------
Thanks in advance,
Dale Hollon
I use _dos_findfirst and _dos_findnext functions to find out a listing of
files in a specific directory. Check C documention for more info about
those functions.
--
------------------------------------------------
| Tommi Ylikulju |
| The Raahe Institute Of Computer Engineering |
| E-mail: tyl...@ratol.ratol.fi |
-------------------------------------------------
comp.lang.basic.misc
comp.lang.basic.visual.misc
comp.lang.c
comp.lang.c++
comp.os.ms-windows.apps.comm
comp.os.ms-windows.apps.word-proc
comp.os.ms-windows.programmer.misc
comp.os.ms-windows.programmer.tools.mfc
comp.windows.misc
It looks to me like you're being incredibly lazy or naive or reckless.
I can't figure which. It would appear that you want a C, C++,
Visual Basic, simple Basic and MFC solution. It also appears that
you are also asking for a macro in an unspecified Windows word
processor. Since you also posted to the .apps.comm group, I guess
you also want a Procomm script, right?
I have trimmed all of these groups except
com.os.ms-windows.programmer.misc
The answer is to use findfirst/findnext or
_dos_findfirst/_dos_findnext. This is exactly the way you would
do it in a DOS app. I am assuming that you want to use C.
--
John A. Grant jag...@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
>I am trying to get a listing of the files in the current directory. I realize I
>will have to use
>stat to determin wether it is a file or a directory. But how do I find out what
Simply.. just drop to a dos prompt and use command cd\windows or what ever
the name of the directory is then the "dir" command to list files and sub
directorys or dir/p to pause every 24 lines.
--
Bill Mageors
76003...@compuserve.com
--
Swaminathan.N
>I am trying to get a listing of the files in the current directory. I realize I will have to use
>stat to determin wether it is a file or a directory. But how do I find out what's in the
>directory in the first place.
See my posting "Re:Req:How to get the current drive and directory" for a
method of finding subdirectories and files in a given directory (as well as
the current path).
Cheers! Ian
---------------------------------------------
Ian Musgrave Ph.D Ian.Mu...@med.monash.edu.au
Prince Henry's Institue of Medical Research
PO Box 5152, Clayton 3168, Australia.
>>I am trying to get a listing of the files in the current directory. I realize I
>>will have to use
>>stat to determin wether it is a file or a directory. But how do I find out what
>Simply.. just drop to a dos prompt and use command cd\windows or what ever
>the name of the directory is then the "dir" command to list files and sub
>directorys or dir/p to pause every 24 lines.
*ahem*
This is a programming group, remember?
*ahem*
Give it a rest "Jens". It's just a simple piece of advice taking up no more
bandwith than your reply.
We don't need a newsgroup police here.
Tommi Ylikulju:
> I use _dos_findfirst and _dos_findnext functions to find out a listing of
> files in a specific directory. Check C documention for more info about
> those functions.
Umm, they're very DOSish functions.. are there not UNIXish functions that
do the same thing but are also supported by DOS compilers?
tim...@jagunet.com (David Timmins) wrote:
>In article <4imv0g$s...@hasle.sn.no>, bal...@sn.no wrote:
>>76003...@compuserve.com (Bill Mageors)'s cats typed:
>>
>>>>I am trying to get a listing of the files in the current directory. I realize
>> I
>>>>will have to use
>>>>stat to determin wether it is a file or a directory. But how do I find out
>> what
>>
>>76003...@compuserve.com (Bill Mageors)'s cats typed:
First of all, I have to apologize to Bill, who obviously read this in
another newsgroup.
> Give it a rest "Jens"
Why the "", "David"?
>We don't need a newsgroup police here.
I'm not acting as one - it was a simple reminder that when you discuss
programming, you discuss programming. As I've noticed from the header, Bill
probably read this in another newsgroup, so I take it back.
> Dale Hollon (hol...@gate.net) wrote:
> > I am trying to get a listing of the files in the current directory. I realize
> I will have to use
> > stat to determin wether it is a file or a directory. But how do I find out
> what's in the
> > directory in the first place.
>
> Tommi Ylikulju:
> > I use _dos_findfirst and _dos_findnext functions to find out a listing of
> > files in a specific directory. Check C documention for more info about
> > those functions.
>
> Umm, they're very DOSish functions.. are there not UNIXish functions that
> do the same thing but are also supported by DOS compilers?
opendir, readdir and closedir
Similar to Findfirst and findnext under dos.
I doubt that you can use a construct directly accross unix/dos; you'll
probably need some #ifdefs :|
Maybe DJGPP supports the unix functions as is? I doubt it, seeing as it is
an OS call. We can't expect DOS to be POSIX now, can we :)
.splitbung
--
* TQ 1.0 * The 'Just So Quotes'.
Artificial Intelligence: the art of making computers that behave like the
ones in movies.
-- Bill Bulko
I've been using the Win32 "FindFirstFile" and "FindNextFile" functions
without any problems.
Keith Burton
I hope you've also been using "FindClose"! You'll have memory leaks
otherwise.