delorie.com/archives/browse.cgi | search |
From: | boulterj AT my-deja DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Writing to DOS Environment Space from C Application |
Date: | Wed, 01 Mar 2000 16:38:30 GMT |
Organization: | Deja.com - Before you buy. |
Lines: | 23 |
Message-ID: | <89jh25$rdq$1@nnrp1.deja.com> |
NNTP-Posting-Host: | 199.89.64.72 |
X-Article-Creation-Date: | Wed Mar 01 16:38:30 2000 GMT |
X-Http-User-Agent: | Mozilla/4.7 [en] (WinNT; U) |
X-Http-Proxy: | 1.0 x40.deja.com:80 (Squid/1.1.22) for client 199.89.64.72 |
X-MyDeja-Info: | XMYDJUIDboulterj |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Help! I am trying to compile some sample code to write back to the DOS system environment space using C. I am using MS Visual C++ Ver 1.52, but am having trouble compiling the following line: movedata(env_addr, 0, _DS, (unsigned)&env_blk[0], seglen); The problem is that the compiler knows nothing of _DS. I gather it refers to the daa segment register but how is this used? It does not appear in any .H files and furthermore I can find no help on the movedata function. Any assistance with this (or any code that will do the job!) will be appreciated. Julian Boulter Sent via Deja.com http://www.deja.com/ Before you buy.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |