Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Source Code?

0 views
Skip to first unread message

Ed McCreary

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to
Dennis Jarvis wrote:
>
> 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?
>
> I need to build a new application and this simple WP would be a great place to
> start without re-inventing the wheel.

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

Chris Marriott

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to
In article <31404C...@twisto.compaq.com>, Ed McCreary
<e...@twisto.compaq.com> writes

>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.

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)
--------------------------------------------------------------------------


Chris Marriott

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to
In article <4ho68l$q...@ruby.digisys.net>, Dennis Jarvis
<xf...@netrix.net> writes

>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 "Write" file format is documented in the standard Windows 3.1 API
help file, cunningly hidden under the "File Formats" topic...

Jens Balchen Jr.

unread,
Mar 8, 1996, 3:00:00 AM3/8/96
to
xf...@netrix.net (Dennis Jarvis)'s cats typed:

>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/


charles stoyer

unread,
Mar 9, 1996, 3:00:00 AM3/9/96
to
Don't know about Write, but the VC++ 4.0 disk contains the
source code for wordpad, which I am pretty sure can deal with
WRI format.

--

"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/


Jon Machtynger

unread,
Mar 9, 1996, 3:00:00 AM3/9/96
to
Chris Marriott <ch...@chrism.demon.co.uk> wrote:
>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!

Was this using a beta version of SourceSafe?


Mike Blaszczak

unread,
Mar 9, 1996, 3:00:00 AM3/9/96
to
In article <4ho68l$q...@ruby.digisys.net>, xf...@netrix.net says...

>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.


Karl Strauss

unread,
Mar 11, 1996, 3:00:00 AM3/11/96
to
Though the source is available for WORDPAD, the write like app
that comes with 95

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

Helge Süß

unread,
Mar 12, 1996, 3:00:00 AM3/12/96
to
xf...@netrix.net (Dennis Jarvis) wrote:
>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?
>
>I need to build a new application and this simple WP would be a great
>place to start without re-inventing the wheel.
>

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
----------------------------------------------------------

Dale Hollon

unread,
Mar 15, 1996, 3:00:00 AM3/15/96
to
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.

Thanks in advance,

Dale Hollon

hol...@gate.net

Tommi Ylikulju

unread,
Mar 15, 1996, 3:00:00 AM3/15/96
to
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.

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 |
-------------------------------------------------

John Grant

unread,
Mar 16, 1996, 3:00:00 AM3/16/96
to
In article <3149D3...@gate.net> Dale Hollon <hol...@gate.net> writes:
>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.
You posted to the following groups:

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

Bill Mageors

unread,
Mar 18, 1996, 3:00:00 AM3/18/96
to
In article <3149D3...@gate.net>, hol...@gate.net says...

>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

unread,
Mar 19, 1996, 3:00:00 AM3/19/96
to
Do a `man' on dirent or opendir or readdir or closedir. I don't know
their DOS
equivalents. MS-Windows has the equivalents but I don't remember them.

--
Swaminathan.N

Ian Musgrave

unread,
Mar 19, 1996, 3:00:00 AM3/19/96
to
G'Day All
Dale Hollon <hol...@gate.net> writes:
>From: Dale Hollon <hol...@gate.net>
>Subject: Help finding contents of current directory.
>Date: Fri, 15 Mar 1996 15:32:12 -0500

>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.

Jens Balchen Jr.

unread,
Mar 19, 1996, 3:00:00 AM3/19/96
to
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

>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?

David Timmins

unread,
Mar 20, 1996, 3:00:00 AM3/20/96
to
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
>
>>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.

Simon Hosie

unread,
Mar 20, 1996, 3:00:00 AM3/20/96
to
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?

Peter Azzopardi

unread,
Mar 21, 1996, 3:00:00 AM3/21/96
to
I can't remember exactly what you do, but under Borland C++
you use the dir.h header file and the findfirst() and findnext()
functions to read the selected entries in a directory.

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
>>

Jens Balchen Jr.

unread,
Mar 21, 1996, 3:00:00 AM3/21/96
to
tim...@jagunet.com (David Timmins)'s cats typed:

>>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.

Tom Wheeley

unread,
Mar 22, 1996, 3:00:00 AM3/22/96
to
In article <4in24g$o...@airdmhor.gen.nz>
gum...@airdmhor.gen.nz "Simon Hosie" writes:

> 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

Eric Fletcher

unread,
Mar 24, 1996, 3:00:00 AM3/24/96
to
I have a WordBasic macro that prepares a Word table listing all the
files in a given pathe with a dialog to define a filter. Email me if
you are interested. /Eric

Keith Burton

unread,
Apr 6, 1996, 3:00:00 AM4/6/96
to
Greetings,

I've been using the Win32 "FindFirstFile" and "FindNextFile" functions
without any problems.

Keith Burton

Chris Marriott

unread,
Apr 7, 1996, 4:00:00 AM4/7/96
to
In article <DpFJ8...@iglou.com>, Keith Burton <k...@iglou.com> writes

>I've been using the Win32 "FindFirstFile" and "FindNextFile" functions
>without any problems.

I hope you've also been using "FindClose"! You'll have memory leaks
otherwise.

0 new messages