|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - Using new to allocate memory in Win32
Does DM implement the new operator when compiling Win32 apps? And
if so, how does it work. Returning a pointer to an object is useless
under Windows, especially when memory gets moved around. So, if new
returns a pointer to the object, how could you possibly use it with
Windows?
I had Borland C++ 4.5, and the documentation said that it contained
a heap manager, but it did not say how the pointers could be resolved.
Any help would be appreciated.
--
Dan Rushe
thecourtjesture advnet.net
ICQ#: 119626702
Aug 06 2001
Dan Rushe wrote: Aug 06 2001
The memory moving around was a problem in real mode windows, which was dumped by Microsoft by Windows version 3.1 (as I recall). This is not an issue in protected mode Windows, available from Windows 3.0 on. Dan Rushe wrote in message <3B6F1488.DF237A17 advnet.net>... Aug 06 2001
Walter wrote:The memory moving around was a problem in real mode windows, which was dumped by Microsoft by Windows version 3.1 (as I recall). This is not an issue in protected mode Windows, available from Windows 3.0 on. Aug 07 2001
The handles in Win32 are actually pointers... Dan Rushe wrote:Walter wrote:The memory moving around was a problem in real mode windows, which was dumped by Microsoft by Windows version 3.1 (as I recall). This is not an issue in protected mode Windows, available from Windows 3.0 on. Aug 07 2001
Dan Rushe wrote in message <3B70034E.15A4BD8E advnet.net>...Walter wrote:The memory moving around was a problem in real mode windows, which was dumped by Microsoft by Windows version 3.1 (as I recall). This is not an issue in protected mode Windows, available from Windows 3.0 on. Aug 07 2001
They're just pointers now. A lot of documentation was written about real mode windows programming that never got updated to protected mode reality, so it's easy to get the impression you still need to worry about real mode issues. Aug 07 2001
This kind of fiddling is why D has typechecking for typedef'd names. Jan Knepper wrote in message <3B700A93.F41EFC25 smartsoft.cc>...They're just pointers now. A lot of documentation was written about real mode windows programming that never got updated to protected mode Aug 07 2001
Have you done anything on 'D' lately? To prepare I could begin creating a newsgroup 'd' <g> Jan Walter wrote:This kind of fiddling is why D has typechecking for typedef'd names. Aug 07 2001
I'm working on it again... Jan Knepper wrote in message <3B701B60.ACED67DE smartsoft.cc>...Have you done anything on 'D' lately? To prepare I could begin creating a newsgroup 'd' <g> Jan Walter wrote:This kind of fiddling is why D has typechecking for typedef'd names. Aug 08 2001
Wow! You've missed some day yesterday! http://www.digitalmars.com/D/ news://news.digitalmars.com/D I guess we could say we were slashdotted yesterday... Jan Aug 17 2001
All the technical discussion simply means: - go ahead with your linked list without any worries about memory moving. Your pointers will NOT change on you without you doing so!! As far as the programmers are concerned, the same linked list code should work for DOS, Unix or current versions of Windows. -- Rajiv Bhagwat Dan Rushe <thecourtjesture advnet.net> wrote in message news:3B70034E.15A4BD8E advnet.net...Walter wrote:The memory moving around was a problem in real mode windows, which was dumped by Microsoft by Windows version 3.1 (as I recall). This is not an issue in protected mode Windows, available from Windows 3.0 on. Aug 07 2001
Rajiv Bhagwat wrote:All the technical discussion simply means: - go ahead with your linked list without any worries about memory moving. Your pointers will NOT change on you without you doing so!! As far as the programmers are concerned, the same linked list code should work for DOS, Unix or current versions of Windows. Aug 07 2001
Thanks to everybody who wrote back, I really appreciate it. I guess it
is now time to retire my Windows API Bible from 7 years back and get an
updated version!
--
Dan Rushe
thecourtjesture advnet.net
ICQ#: 119626702
Aug 08 2001
Dan Rushe wrote: Aug 08 2001
Jan Knepper wrote:Dan Rushe wrote: Aug 09 2001
Well, It's called MSDN I guess, you can buy it from M$... Dan Rushe wrote:Jan Knepper wrote:Dan Rushe wrote: Aug 09 2001
Jan Knepper wrote:Well, It's called MSDN I guess, you can buy it from M$... Aug 09 2001
Dan Rushe wrote:Jan Knepper wrote:Well, It's called MSDN I guess, you can buy it from M$... Aug 09 2001
I hope you subscribe to DDJ, CUJ, MSDN (MSJ), Window Developer atleast? These mags contain some good articals on the practical aspects and are my substitue to the MSDN subscription. -- Rajiv Bhagwat Jan Knepper <jan smartsoft.cc> wrote in message news:3B7329C4.A6496892 smartsoft.cc...Dan Rushe wrote:Jan Knepper wrote:Well, It's called MSDN I guess, you can buy it from M$... Aug 11 2001
|