CompuServe Archive

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

Search Results (41 messages)

>>>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…
>>>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…
#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…
I believe this is a duplicate of message 50502 which I responded to in message 50559. Lets keep the discussion in that thread. Thanks. Lee
>>>Sure, I will (RTFM, no ?). When all else fails… I know it's somewhat of a joke, but when you work on this side of support, it hits close to the bone. Granted, few people have read all of the Win32 & Windows NT documentation, but an amazing amount of…
Printing Appl. Help Message #50777
BTW, these questions belongs in Section 13, Windows NT DDK. >>>1)Is there documentation available describing how one would write a print application (what are required components)? I have a list of APIs but no description or understanding on the steps required to support a printer. Not really. There is a…
>>>The article I read, "Calling a Win32 DLL from a Windows 3.x Application" showed in the diagram three modules that I would have to create in addition to my Win 3.x application and my Win32 DLL; a 16-bit DLL (UT), a Win32 EXE (stub), and a Win32 DLL (UT). What…
>>>WinExec() always seems to return 0 under win32s. This is supposed to be an error. If it is successfull, it is supposed to return a value greater than 32. Is there something wrong with win32s? Is it returning 0 even when the requested program has been spawned, or are the…
#50250 #spawn Message #50556
>>>Spawn does not seem to be able to execute other programs under win32s. It is documented as being win32s compatible. What is wrong? I need the same questions answered – which C Runtime, and are you getting anything indicitive of whiy it's failing from the debugging information? Lee
#50249 fstat() returns -1 Message #50555
>>>fstat() returns -1 all the time under win32s. However, under identical conditions it returns 0 under NT. What gives? Several questions: (1) Which version of the C Runtime are you using? (libc, libcmt, crtdll)? (2) If you've set up the debugging Windows 3.1 and Win32s system files, are you getting…
timeout work? Message #50510
>>>Question on WaitForDebugEvent in Win32s; will passing in a positive timeout value actually do anything in this call? Yes. Instead of checking and returning immediately it will wait for the next message to come in. When that message comes in, if there's not a debug event waiting, it will return…
loading DLLs? Message #50507
>>>Someone here at work said that you take a performance hit dynamically loading DLLs (via LoadLibrary) compared to preloading DLLs with the executable. Under Win32s, is this performance hit significant? And, where does it occur — just at load time or throughout all interactions with the DLL? Once you have…
#hinstance Message #50506
>>>Under Win32s are the hInstances still unique for each application ?? Under NT the hinstances appear to be the same, but I cannot tell for sure what is going on. I was under the impression that hinstance were unique but my test programs are coming up with different results. Under…
Although it remains undocumented, the IsWinOldAp method should be more reliable. Lee There is 1 Reply.
#50277 Win32s, again Message #50490
>>>Ahh…. OK. I just looked it up in the Win32s programmers reference, and it does say that paging has to be enabled under Win 3.1. The message you receive under these circumstances (trying to run win32 when paging is not enabled) is somewhat misleading. It indicates that the problem lies…
#50210 Win32s Help Message #50489
Thanks for the comments – I've passed them on to the Win32s team. Lee
The Win32 API Helpfile states that the pipename must be of the form (in C syntax) "\\\\.\\pipe\\name" and not just ""name". You should probably change your code to conform to that. Also, creating named pipes is not supported in Win32s, so you should probablytake this question to Section 6, API-Base/Console.…
>>>I have a Windows 3.1 application that scans through the list of top-level application windows and needs to know whether a window belongs to a Win16 or Win32s application. I am looking into this to see if we can document/support any method to do this. Any assumptions you make about…
>>>Thanx for checking, James. It's trickier than it looks, isn't it ? I mean, if a Win32s app calls GlobalAlloc(), where does the block come from ? Either it comes from the Win 3.1 global heap, or it's mapped to somewhere else. But which ? But where ? Stay tuned…
>>>Dave, very good question. I'll have to back track some of my MSJ's and mail messages. I read the April issue of MSJ and the article by Andrew Schulman " At last-write Bona Fide 32-bit Programs that Run on Windows 3.1 Using Win32s" suggest there some limits of 3.1 that…
>>>James, I have further questions along these lines. Does memory allocated by a Win32s app count against the 8K selector limit in win 3.1 ? Since memory allocated by Win32s via any Win32 API other than GlobalAlloc is not allocated via Windows 3.1, and therefore does not have any related…
>>>Thanks for the reply Lee. My app was developed on the Vax and ported to Windows. So 32bit is nothing new, as most of our programmers will thank the god of bit_bytes for Win32 and NT. I read an article from the April MSJ that talks about Universal thunks and…
#50313 fseek() rets -1 Message #50481
>>>You know, we haave our code working to a point under NT. That point being it works well enough for out sales force to take the code out to a customer with the idea of showing them we are working on an NT port and this is what we have…
#50309 #fseek() rets -1 Message #50480
>>>Lets keep in touch on this. We are porting a Unicode build are you also?. You are converting your Win32 app to Unicode? If so, the *W forms of the Win32 APIs are not supported by Win32s, and you will have lots of API failures. Lee There is 1 Reply.
#50293 #fseek() rets -1 Message #50479
>>>James, I had a similar problem with lseek. After I RTFM I found the SetFilePointer function. This works on file handles, not file pointers. Once I switched to SetFilePointer, everything worked fine on NT. Haven't test yet on Win32s on 3.1. If you can use the NT file functions, give…
#50248 fseek() rets -1 Message #50478
>>>I am having a similar problem with fstat. It always seems to return -1. Under identical conditions under NT it returns zero. I wonder what they did to the win32s stuff. I need the same information – which C Runtimes, and is anything useful (like unsupported API calls) being reported…
#fseek() rets -1 Message #50477
>>>I'm getting a return value of -1 from the fseek(). I'm giving what appears to be a valide file pointer. Well the call is FILE *fp; fseek(fp, 0L, SEEK_SET); >>>What or why is it returning a -1. The api error codes suggest -1 indicates an invalide function. ????????? I assume…
UTSelectorToLinear Message #50476
>>>I think there is a bug in the to UTSelectorOffsetToLinear and vice versa functions: >>>I use the from the kernel exported selector to access the physikal RAM addresses at segment 0xD000 as parameter to UTSelectorOffsetToLinear and receive a linear address, ok. But when I access this memory via this linear…
#_fstat broken? Message #50475
>>>_fstat is returned -1 under win32s. Under NT it is returning 0 (which is expected). Is the _fstat broken under win32s? Several questions: (1) Are you linking against crtdll.lib, libc.lib or libcmt.lib? (2) Are you running a debugging version of Win32s and Windows 3.1? If so, is anything useful being…
>>>Well, first I have to find somebody with the toohelp docs. Any more specific suggestions on what API's to use, or where in the knowledgebase to look for more information. This is just a little vague to me right now. /EXIT The ToolHelp APIs are documented in the Windows 3.1…
Win32s IPCs Message #50466
>>>Well, I tried out a shared memory scheme on WIn32s and while it works I'm getting killed by task swap overhead. Whether I use DDE or shared-memory makes no real diference in performance. So, I'm going to a scheme that runs everything inside a single process and fake the messaging…
#resub findfirst() ? Message #50377
>>>I'm confused as to the meaning of "32-bit" in the document Q99456.INF. My confusion is directed toward the "_findfirst()" function that is common to both 16-bit and 32-bit compilers. According to the C Runtime docs as shipped with the Win32 SDK for Windows NT, this function is only available with…