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
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…
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,…
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]
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
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
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…
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,…
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…
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
Hi Lee, I will double check my results on hInstance. Thanx for the info. jackie
Hi Steve, Thanx, this helps alot !!! Jackie
Win32s Prog Ref Manual
Message #51263
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
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
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…
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
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…
All I can say is, OH!, Well… *W forms? James.
The problem was solved after reading an article in the August MSJ by Scot Gellock "Porting your 16bit application to WindowsNT…..". Thanks James
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…
That would be _findfirst() under WinNT. Thanks for your help Lee. James
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 -…
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…
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…
>>>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…
>>>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…
>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
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…
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.
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,…
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.
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…
#Redirect Console 2 File?
Message #51138
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…
>>>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
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.
#Serial comms under 32s
Message #51048
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