This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (300 messages)
From:
Nancy Cluts – Microsoft
Microsoft Win32 SDK Forum
· Porting-OS/2 & UNIX
August 3, 1993 11:56 AM
Hi and welcome to Windows NT! We have some porting tools to assist you in porting from OS/2 1.3 to Windows NT that have been uploaded into LIB 11. I am including a list below. Aside from that, there is an excellent book "Inside NT" by Helen Custer that gives…
From:
Nancy Cluts – Microsoft
Microsoft Win32 SDK Forum
· Porting-OS/2 & UNIX
August 3, 1993 11:56 AM
Hi Wayne. Sorry for the confusion. I've checked on what is still out there (some of the files have been updated/removed/etc.) and here's a listing of what you should be able to find in LIB 11 that covers OS/2 porting. Please let me know if you don't find items on…
#List named shared objs
Message #50512
We need a tool that displays all known named shared objects (pipes, memory, semaphores…). At a minimum we would need to know what objects exist. Preferably, we would like to associate these objects with processes (who is the creator, who has it open). Is there a tool about that can…
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…
#WINNT RELEASE
Message #50509
And I hear the rumor that I would get a 3rd CD for VC++, is that true 🙂 There is 1 Reply.
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…
#win16 app to win32 dll
Message #50502
I am trying to create a DLL under Windows NT so that it can be used by an application created under Visual C++ and run under windows 3.1 using win32s. After reading the WIN32S manual and an article I found on the Network developer CD I understand that it can…
#WIN16 APP TO WIN32 DLL
Message #50501
I am trying to create a DLL under Windows NT so that it can be used by an application created under Visual C++ and run under windows 3.1 using win32s. After reading the WIN32S manual and an article I found on the Network developer CD I understand that it can…
Sure, I will (RTFM, no ?). When all else fails… But seriously, thanx for the reply, I will. Dave There is 1 Reply.
Although it remains undocumented, the IsWinOldAp method should be more reliable. Lee There is 1 Reply.
#LINK32 problem
Message #50498
I have a problem with the linker. When I try to link a program containing more then 100 modules the linker gives the following message: LINK32() : error 104: Can't open file TEMPFILE Extended Error: No such file or directory A number of files are created on the D:\TEMP directory…
Lee, I used the correct format for the named pipes ("\\\\. blah blah) I just used this format for implicity sake. I did put this question on the Base\console about a week ago, with no reply. I really need this functionally!!! and need to know what is the problem with…
>>>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…
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…
memory limits WIN32/NT
Message #50484
>>>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…
memory limits WIN32/NT
Message #50483
>>>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…
memory limits WIN32/NT
Message #50482
>>>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…
>>>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…
>>>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.
>>>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…
>>>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…
Nancy, I have just gone through every upload by 70750,2341 and have not found the following files: annote.zip apicnt.zip imagec.zip os2port.zip resconv.zip updt01.zip Am I going mad? Please check on this, and re-upload them if I am right. Regards Wayne There is 1 Reply.
Nancy, Thanks for the info. Is annote.zip important. Where can I get a more appropriate version? Wayne
>>>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…
> Memory allocations under Win32s are always above the 2Gb point. It is not > possible to get memory below this address. The recommended solution is to use > the low bit as a mark bit. You can use the GetSystemInfo() API to determine > the upper and lower limits…
Hi Jackie, 1. If you use DS_SETFONT in your dialog template, that point size and face name will be turned into a LOGFONT specification when the dialog is created. When it comes time to draw text of any sort for that dialog, the font mapper will try to match that…
#MFC 2.0
Message #50452
Julie Hi, My application makes use of MFC 2.0 (Visual C++). Is it possible for me to port it to WindowsNT? Does the compiler which comes with Win32s support MFC 2.0? Is there a version of Visual C++ for WindowsNT? JP. There is 1 Reply.
From:
Julie Solon [Microsoft]
Microsoft Win32 SDK Forum
· Tools-Compiler/Link
August 2, 1993 8:08 PM
Theo, All that the "failed to initialize" tells us is that one of the components needed for initialization causes a problem. Since the compiler normally does run successfully, I suspect that one of the .exe or .dll files is corrupt. Julie
From:
Julie Solon [Microsoft]
Microsoft Win32 SDK Forum
· Tools-Compiler/Link
August 2, 1993 8:08 PM
Ronald, > Do you mean by this that even the non-GUI code in MFC won't be multi-thread safe? Things like the collection classes? I mean that we have taken no extra steps to ensure that certain areas are safe. Someone has probably sat down and figured it out, but I…
#OS/2 to WIN NT Port
Message #50441
From:
Forefront Software Svces
Microsoft Win32 SDK Forum
· Porting-OS/2 & UNIX
August 2, 1993 7:42 PM
We have developed a major application in OS/2. It consists of server based software which is responsible for managing the system resources and for communication with special hardware via device drivers and purpose built adapter cards; workstation based software which handles routing of traffic to attached peripherals and which also…
From:
Nancy Cluts – Microsoft
Microsoft Win32 SDK Forum
· Porting-OS/2 & UNIX
August 2, 1993 6:50 PM
Hi Wayne. Here is the current list of porting tools that are available in Lib 11: " annote.zip Out of date, don't bother. apicnt.zip It is there, upload date 7/22/92 helpc.zip help.zip 11/9/92 imagec.zip Uploaded 7/22/92 os2port.zip Get all of the 4/15/93 uploads instead resconv.zip resc.zip, 11/9/92 updt01.zip Dated. "…
Thanks, Arie, I've working with Windbg development to get this reproduced & resolved. I'll post any pertinant info. Thanks, Colin There is 1 Reply.
Hi Ron. > To remove the NT from my drive (partitioned 1gig as C: as FAT,D: at FAT >,E:as FAT and NT is on the next drive as NTFS) do I type in "delnode" when >in NT or when in DOS? How will the partition be converted to FAT from…
#linker question
Message #50403
Regarding my linker question: I'm not talking about a linker switch. I'm talking about a special rule that the linker uses when assigning the order that segments appear in the .exe file. My question should be obvious to any of your developers that work on either the linker or the…
I can't remember exactly what I wrote to you before. However, fstat always seems to return -1 and the stuff in the struct is garbage. I have noticed that Windows specific API calls seem to work with a lot more reliability, robustness and so forth… KQ
Julie, Do you mean by this that even the non-GUI code in MFC won't be multi-thread safe. Things like the collection classes? If we have to serialise access to the collections ourself we either have to alter the source code or live with strongly reduced parallellism in the collections. -Ronald-…
#cl failing (0xc0000005)
Message #50400
I didn't get any errors during the install, so I'd rather not just go through the (time-consuming) task of comparing all the files on the hard disk with those on the CD-ROM. I'd prefer to track it down from the analytical approach: What exactly causes an application to fail with…
#Win32s/Stacker
Message #50396
Mike, just to let you know, i've been using Win32s on a Compaq LTE Lite/25 for several weeks now with no problems. moreover, i'm using phar laps QuickStart and am doing Win32s development on the same machine. All with stacker 3.0 installed. i've experienced no problems that i would even…
#NTDLL entry not found
Message #50389
Mike: >> I am looking into this to try and determine under what circumstances an application would call this internal API. Can you give me additional information about what your app does? This will help me determine workarounds.
Compiler blow up
Message #50386
From:
Julie Solon [Microsoft]
Microsoft Win32 SDK Forum
· Tools-Compiler/Link
August 2, 1993 12:21 PM
Jim, The compiler included in the final release (which you will receive shortly) does not have this problem. The ccommon macro is used in the cflags macro. This leads me to believe that this macro was not intended to be used in your makefiles, but I could be wrong :-)…
From:
Julie Solon [Microsoft]
Microsoft Win32 SDK Forum
· Tools-Compiler/Link
August 2, 1993 12:21 PM
Francis, I'm not aware that this was an SDK fix. Try the libraries in the WINNT forum. For directions on accessing the libraries, please see the Release Notes. Sincerely, Julie Solon Microsoft Developer Support
Named Pipes APIs
Message #50379
Dag, Under Windows NT the file system contains support for named pipes which vastly simplifies the task of implementation. To the best of my knowledge the named pipes under DOS were supplied by LAN Manager. The Win32 named pipe API's are calls into the underlying file system. Since they rely…
Page 5 of 6