CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (137 messages)

GetVolInfo problem? Message #79238
From: Syndesis Microsoft Win32 SDK Forum · API-Win32s September 17, 1994 12:26 PM
I've got a case of "it works under the debugger, but not under WinNT". Under WinNT and VC 1.1, the following code works when run under the debugger. When I run as a Program Manager icon, or via Project / Execute, I get a "No disk" stop-sign dialog, warning "there…
#67049- Win32/s Memory? Message #67364
John, > Yes, this is true on Windows NT, but not on Win32s. The memory is shared on Win32s. > Under Win32s, GlobalAlloc() thunks down to the Windows GlobalAlloc(), so all is as it was on Windows. Under Windows NT and Win32s, malloc() maps most closely to HeapAlloc().
#51367- Sharing Memory Message #51818
John, > I'm porting an application that relies on a large, in-memory data > structure. It shared this between several processes within the same > computer. Only one application touched it at a time. Each could allocate > or free memory, adding or subtracting from the data structure. > Is…
#51303 DLL Memory Access Message #51359
From: Chris Doner Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 7:48 PM
Ted: I just realized (rather belatedly) that we are conversing in the Win32s section, which means that in all likelihood you are working with Win32s, not with straight Win32. Unfortunately, Win32s DLL rules differ significantly from Win32 DLL rules, and I am not an expert on the differences. I believe,…
#51319 Win32s Serial Coms Message #51337
Robert, The Win32 Comm API's are not supported under Win32s. In order to access the Windows 3.1 Comm API's you will need to create a Universal Thunk and a 16-bit DLL that does the work. Thanks, Michael Markley [Microsoft Developer Support]
#51303 DLL Memory Access Message #51330
From: Chris Doner Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 4:59 PM
Ted: DLLs can be used to share data, but your reasoning is sound all the same. The memory situation has changed, and what worked before doesn't work the same way now. By default, a DLL's data is *not* shared among processes. You can, however, change the storage attributes of your…
Sleep Message #51325
From: Jackie Luppi Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 4:25 PM
Hi, I noticed that the Sleep API is not available in win32s. Is there a comparable way of doing this under Win32s with GetMessage, WaitMessage or PeekMessage or some other API. I certainly do not want to stall the entire system just one process. Thanx, Jackie
#Win32s Serial Coms Message #51319
From: Robert Burling Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 4:05 PM
I have a requirement to port an existing Windows communications product to Win32 and then use it on Windows 3.1 (i.e. 32 bit code on Windows 3.1 using Win32s). Microsoft have implemented a new API for serial communications under Win32. It would seem that this new Win32 comms API is…
#51241 Win32s and 3270 Message #51315
From: Dave Kolb Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 3:41 PM
They don't use interrupts. Each vendor uses a differently names DLL with the entry point "hllapi" defined. We got this working recently by using msft's thunking routines to call this entry point with thunked arguments. Dave Kolb SAS Institute
#DLL Memory Access Message #51303
Under WIN16 (Windows 3.x) it's legal for two applications to dynamically link to a common DLL and, effectively, share data through that DLL's data segment by calling DLL API's that accessed that data. Our question is … Is this capability legal under WIN32 or WIN32s ? Let's assume, for example,…
#51100 _fstat broken? Message #51302
From: C.W.Chung Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 2:20 PM
I believe that I have tried using crtdll.dll before. The underlying mechanism to _fstat seems to be broken. We can't switch to crtdll because C++ stream are not suppported… What I would like is for you to tell me if there is a work around for the _fstat problem or…
Serial API Message #51294
WIN32 and WIN16 seem to provide very different serial communications APIs. Is there some portable way to interface our serial device to our Windows app ? Are we realy doomed to writing two very different pieces of code to accommodate these differences ? Does WIN32s provide any solution to this…
#51241 Win32s and 3270 Message #51271
From: Carl W. Brown Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 12:03 PM
Gerry, NT will use its own SNA stack, but each ISV will provide the 3270 emulation and HLLAPI. It will be up to these vendors how they handle WIN32s. I have access to their private forum and will post the message there. Carl
#50506 hinstance Message #51267
From: Jackie Luppi Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 11:55 AM
Hi Lee, I will double check my results on hInstance. Thanx for the info. jackie
#50458 DialogBoxIndirect Message #51265
From: Jackie Luppi Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 11:50 AM
Hi Steve, Thanx, this helps alot !!! Jackie
From: Patrick Parks Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 11:49 AM
I don't use the printed manuals much… still, it's nice when they match the online material. I just received my Final NT/Win32s 1.1 system. The online looks great. But my printed programmers reference has chapter 1, 2, 2-pages from chapter 4, chapter 5, chapter 1, 2, … i.e., it's a…
GWL_USERDATA Bug? Message #51262
From: Patrick Parks Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 11:49 AM
Does Get/SetWindowLong officially support GWL_USERDATA under Win32s? If so there's a bug in SetWindowLong. It always returns 1 regardless of value that was previously stored in this slot. It's clear that GWL_USERDATA uses some kind of special handling since it's value is -21 (not exactly a multiple of 4). Once…
#Win32s and 3270 Message #51241
From: Gerry Morgan Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 9:47 AM
I am writing a Windows application that needs access to the high-level 3270 API (EHLLAPI). I need to be able to use two 3270 packages (ie, offer two alternatives): Attachmate and Rumba. I know that under Win 3.1, these comms packages can give Windows applications access to the API (Attachmate…
From: Brian Corcoran Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 9:41 AM
Ok, excuse my ignorance, but I'm fumbling around with this 16 process creation and exit notification. I have the 16 bit example that uses the toolhelp API's. Now, is your suggestion that I use a thunked NotifyRegister to set up a callback ? Should the callback be a 16 bit…
Win32s IPC Message #51237
From: Gerry Morgan Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 9:39 AM
I am porting an OS/2 application to Win32s. Under OS/2, I have two separate processes communicating via named pipes (they can be on the same machine, or on two different machines). What would be the best means of communicating between processes? I need to support the following configurations: OS/2 client…
#50480 fseek() rets -1 Message #51231
From: james lopes Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 8:28 AM
All I can say is, OH!, Well… *W forms? James.
#50477 fseek() rets -1 Message #51230
From: james lopes Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 8:24 AM
The problem was solved after reading an article in the August MSJ by Scot Gellock "Porting your 16bit application to WindowsNT…..". Thanks James
#51220 GetEnvString() prob. Message #51229
From: Arun Rele Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 8:21 AM
I use GetEnvironmentString() to be able to show the user what special options for the program are set, since there are 50+ different variables that may or may not be set. It would be nice to be able to display all currently set variables without having to use brute force…
#50377 resub findfirst() ? Message #51226
From: james lopes Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 8:14 AM
That would be _findfirst() under WinNT. Thanks for your help Lee. James
From: james lopes Microsoft Win32 SDK Forum · API-Win32s August 9, 1993 8:09 AM
David, I'm sorry I did some research but got side tracked by a few things. I'll have to go back and look up those things again. I'll need to because my app crunches a lot of data, its a project management tool. What happens is during the retrieval of a…
>>>I have a Win32 application that displays the current environment in a list box using GetEnvironmentString() and then filling the list box. Under NT it works fine, but under Win32s, all of the environment variables set in DOS are shown, but only a few of the environment variables set by…
>>>Is there a way of directing console output to a file for processes created as detached processes? Essentially what I'd like to do is run a "batch" job and have a log file showing what happened. Alternatively, are there any plans to add a true batch processing facility to NT?…
>>>I must appologise. I meant to say that the program is getting executed when I do WinExec(); however, the return code is 0. This is supposed to indicate a failure, but the program specified in WinExec() ran just fine. After looking further into the problem, it sounds like you don't…
>>>Mike, I guess I'll forgive this transgression this time >>>I have an example of doing this in the current (August 1993) issue of WinTech Journal. It shows how to call 32 bit Dll's from a VB application, but is really just from the Win16 side. I read that article -…
#51071 Resource Manager Message #51213
I think you misaddressed your message – I don't believe you are asking a Win32s problem – perhaps you meant to send it via email or in another section? Lee
>>>As the final SDK REALLY is shipping (mine came today). Everybody should get Win32s 1.1 now. – Jan It's good to hear that you've received the final update. Please let us know what you like/dislike about it. (After nearly 2 years spent on this it's great to finally have it…
#50890 shared mem (again) Message #51211
Something I want to make clear here: You are measuring the number of task switched in Win32s (which depends on the rate at which each application empties its message queue in turn) and when you are running memory copies it slows this down – this makes sense to me. Am…
#50858 fseek() rets -1 Message #51210
>>>So the fault is really my own, since I have 8 gigapiles of manuals, books & cheat sheets open at any given time. I often use the Win16 SDK texts since they are in separate books (yes, this has caused me some grief (time to stock up on Grief Release…
#50678 IPC and Win32s Message #51208
>>>I'm wondering about Microsoft's plans are for making the various IPC mechanisms in Win32 available in Win32s, specifically the RPC and Windows Sockets functionality. I'm involved in the beginning of a project, which might be client-server in structure, and we'd like to have this information in order to choose which…
#50617 win32s & dlls Message #51207
>1) Do the PRELOAD and etc. flags work under NT or are they ignored in either a load-time or run-time linking scenario, or both? If ignored in a load-time linking scenario, does the DLL get loaded into memory at the same time the application is being loaded? From what I…
Exit Win32s… Message #51195
From: ALEX RAMON Microsoft Win32 SDK Forum · API-Win32s August 8, 1993 12:41 PM
Are there any known bug related to the function ExitWindows and ExitWindowEx in Win32s 1.1 ? All the time my program calls this function I get the folowing DOS message: (I have tried it on DOS 5.0 and 6.0) No free file handles Cannot load Command, system halted And is…
#50750 Win32s/Stacker Message #51189
From: bill potvin Microsoft Win32 SDK Forum · API-Win32s August 7, 1993 8:26 PM
Mike, been there; done that. i've also had an extended, frustrating "dialog" with Compaq. again, no luck. i just thought i'd try a stab in the dark, thanks anyway. regards, bill.
#51130 Startup doesn't work Message #51182
Michael, The WINEXIT program is availabble on WINNT. I tried moving things around in my startup group, and now everything seems to work fine. I am not quite sure what is going on, but I do know that my win32s program was NOT being started before. I will investigate further,…
From: John Zempel Microsoft Win32 SDK Forum · API-Win32s August 7, 1993 8:42 AM
Mike, I have an example of doing this in the current (August 1993) issue of WinTech Journal. It shows how to call 32 bit Dll's from a VB application, but is really just from the Win16 side. There is 1 Reply.
From: Jan Bottorff Microsoft Win32 SDK Forum · API-Win32s August 7, 1993 12:27 AM
As the final SDK REALLY is shipping (mine came today). Everybody should get Win32s 1.1 now. – Jan There is 1 Reply.
>>>I must appologise. I meant to say that the program is getting executed when I do WinExec(); however, the return code is 0. This is supposed to indicate a failure, but the program specified in WinExec() ran just fine. Nice find – you are right. Of course the workaround is…
From: Roy Kayahara Microsoft Win32 SDK Forum · API-Win32s August 6, 1993 7:03 PM
Is there a way of directing console output to a file for processes created as detached processes? Essentially what I'd like to do is run a "batch" job and have a log file showing what happened. Alternatively, are there any plans to add a true batch processing facility to NT?…
Issie, I am not familiar with WINEXIT. What does it do? I looked around and could not find it in the MSWIN32 forum. Also Win32s should be ready to run once Windows comes up. All of the files are loaded on an as needed basis. I can have Win32s apps…
#50569 #_fstat broken? Message #51100
>>>I am not using crtdll.lib; I am using libc.lib Is there are reason that you can't switch to crtdll? >>>Also, no I am not using the debugging version of win32s. I think you would find it useful and productive to use this, at least for a while. Lee There is…
Well, I tried a few things. The problem seems to occur with WINEXIT that is available on the forum. I found that If I put it first in the startup list, it does not start. If I place it third, it does not start. If I place it fourth. (last)…
Stephen, Place your DOS/Windows Comm access functions in a DLL and the use the Universal Thunks to load and access this DLL from your Win32s application. You can then use these functions for your comm calls. For Windows NT have a different DLL that uses the Win32 Comm API's to…
#Resource Manager Message #51071
From: Siew Chuah Microsoft Win32 SDK Forum · API-Win32s August 6, 1993 1:00 PM
As far as I know, the "Resource Manager" (RM) is running every hour "cleaning up resources". Does RM affect the semaphores or mutex objects? And if so, how? I am using a piece of shared memory which I do not free until the end of my program. I protect it…
Issie, I have not been able to reproduce this problem. I have tried FreeCell and several other applications and they all start without any problems. Have you tried putting FreeCell into your Startup Group to see if it will run? Thanks, Michael Markley [Microsoft Developer Support] There is 1 Reply.
Jan, Thanks, I re-read my post and noticed that I said ftp.rhino.com when I meant rhino.microsoft.com. Unfortunately I don't type as fast as I think so I tend to lose characters sometimes :^). Thanks, Michael Markley [Microsoft Developer Support] There is 1 Reply.
From: Stephen Pelc Microsoft Win32 SDK Forum · API-Win32s August 6, 1993 11:27 AM
I read in the Win32s manual with the March Beta, that MS do not intend supporting serial comms with win32s. If this is still the case, how can I best write a serial comms app under win32s? If it will help, I have LOTS of code for direct serial access…

Page 1 of 3