From: firewind Newsgroups: comp.os.msdos.djgpp Subject: Re: Malloc,Dpmi,Go32 ?? Date: 12 Nov 1997 08:51:12 GMT Organization: Netcom Lines: 62 Message-ID: <64bqm0$4pj@dfw-ixnews9.ix.netcom.com> References: <01bcef90$cd92a480$63206ccb AT ashod> NNTP-Posting-Host: elp-tx2-09.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ashod wrote: > Im a borlandC3,1/Tasm programmer ( yeah okay real-mode, but doing > flat stuff using Voodoo memory). > Ive got Rhide and DJGPP and it looks good. > some questions: > char [512000]; // is this legal, and is it allocated dos or 32bit memory > ??? It is syntactically legal, and is semantically legal if you increase the default stack size, or declare it global and static. Where the memory comes from, you do not know and do not need to know. > char*q=malloc(512000); // allocating dos or 32 bit memory ??? Again, it doesn't matter. > >> do I have to free it, or will it auto-free when the app shuts down All memory is, of course, returned to the operating system on application exit, but free()'ing memory as soon as it isn't needed is a good thing. > do I need to use the dpmi functions to allocate memory. No. > How do I get the pure linear address is something i,e char[512000]; > and how to a write say an 'x' to byte 0 of it... ( in inline asm )?? I'm not sure what you're asking. > How can I make dlls.. Without add-ons, you can't. However, there are at least two packages that add dynamic-linking functionality to DJGPP. (this discounts the DXE interface, but that is so limited, I doubt it is what you have in mind.) > How does one 32bit app send messages to another 32bit app, in > the same v86 or another v86 ( is there a dif). Uh... the same ways 16-bit apps can talk to each other? DJGPP doesn't support anything like IPC internally... > Can I send messages to win32 apps and vice-versa?? Some discussion of this as gone on recently; somebody figured out how to effectively use the windows clipboard, I belive... you might want to search the list archives for more information. > Are win32 the same as DJGPP apps ( less then win32 api i mean ).. Certainly not! -- [- firewind -] [- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -] [- "You're just jealous because the voices talk to -me-." -] [- Have a good day, and enjoy your C. -] [- (on a crusade of grumpiness where grumpiness is due) -]