Win32 API Version 1.0

Hi,
I have just downloaded the "Win32 API Version 1.0 " and I am trying to compile it under the
Solaris 2.6 and Forte 6.1/C++5.2/. I am facing some strange problems like
socklen_t in Files.h not defined and so on. I don't know which version of Solaris
and C++ compiler is supported.
Thanks you for your help
Dimitar

The Solaris(TM) OE Implementation for Win32 API Version 1.0 has been compiled by the WorkShop Compilers 5.0 98/12/15 C 5.0 at SUN.
All the source files have ".c" extension which mean you can not use the "CC"/C++ compiler to compile it. You must use the C compiler "Sun WorkShop 6 update 1 C 5.2" instead of C++ compiler "Sun WorkShop 6 update 1 C++ 5.2" to compile this package.
Hope this will help.
Thanks!
Amjad

Similar Messages

  • Where is Solaris OE Implementation for Win32 API Version 1.0.2.?

    the link on page http://soldc.sun.com/ntmigration/tools/jscoretool.html is broken.
    I search and found with no results.
    can anyone help ? or send a copy to my email box: [email protected]
    thanks a lot.

    >
    Try again for olaris[tm] OE Analyzer for C/C++ Source
    Code at
    http://soldc.sun.com/ntmigration/tools/jscoretool.html
    It has a new version now as 1.1.
    Also the Solaris OE Implementation for Win32 APIs
    also has a new version at
    http://soldc.sun.com/ntmigration/nttech/win32emulation
    .html
    Enjoy!The above link is broken. Can anyone please mail me the valid working link at [email protected]
    Would really appreciate your help,
    Thanks and Regards,
    Sanjay

  • Win32 API 1.1.1 compilation problems

    We don't (alas) use Sun's compilers here, so I've
    tried to compile the Win32 emulation library, version
    1.1.1, using gcc 3.3.2. It yields the warnings and
    outright errors listed below. I think it's a little
    appalling that Sun didn't at least try this
    themselves; it would give them some clues as to what
    kinds of problems their own compilers aren't catching,
    beyond the effect of getting them to notice and fix
    these particular problems.
    Glenn
    gcc -I../include -D__EXTENSIONS__ -c Files.c -o release/Files.o
    Files.c: In function `GetFileAttributesEx':
    Files.c:745: warning: right shift count >= width of type
    gcc -I../include -D__EXTENSIONS__ -c NamedPipe.c -o release/NamedPipe.o
    NamedPipe.c: In function `NamedPipeBroadcast':
    NamedPipe.c:185: warning: passing arg 3 of `pthread_create' from incompatible pointer type
    gcc -I../include -D__EXTENSIONS__ -c ThreadFuncs.c -o release/ThreadFuncs.o
    ThreadFuncs.c: In function `GetCurrentThread':
    ThreadFuncs.c:134: error: incompatible type for argument 1 of `memset'
    ThreadFuncs.c:135: error: incompatible type for argument 1 of `memset'
    *** Error code 1 (ignored)
    gcc -I../include -D__EXTENSIONS__ -c WSASockets.c -o release/WSASockets.o
    WSASockets.c: In function `WSASendTo':
    WSASockets.c:158: warning: passing arg 3 of `pthread_create' from incompatible pointer type
    WSASockets.c: In function `WSARecvFrom':
    WSASockets.c:216: warning: passing arg 3 of `pthread_create' from incompatible pointer type
    WSASockets.c: In function `WSAEventSelect':
    WSASockets.c:247: warning: passing arg 3 of `pthread_create' from incompatible pointer type
    gcc -I../include -D__EXTENSIONS__ -c mutex.c -o release/mutex.o
    mutex.c: In function `CreateMutex':
    mutex.c:47: error: incompatible types in assignment
    *** Error code 1 (ignored)
    gcc -I../include -D__EXTENSIONS__ -c time.c -o release/time.o
    time.c: In function `LocalFileTimeToFileTime':
    time.c:369: warning: integer constant is too large for "long" type
    time.c:375: warning: integer constant is too large for "long" type
    time.c:376: warning: integer constant is too large for "long" type
    time.c: In function `SetTimeZoneInformation':
    time.c:752: warning: comparison between pointer and integer
    time.c:780: warning: comparison between pointer and integer
    time.c: In function `UnixTimeToFileTime':
    time.c:993: warning: integer constant is too large for "long" type
    time.c: In function `FileTimeToUnixTime':
    time.c:1019: warning: integer constant is too large for "long" type
    time.c:1023: warning: integer constant is too large for "long" type
    time.c: In function `bValidateFileTimeRange':
    time.c:1051: warning: integer constant is too large for "long" type
    time.c:1054: warning: integer constant is too large for "long" type
    time.c:1055: warning: integer constant is too large for "long" type
    gcc -I../include -D__EXTENSIONS__ -c virtual.c -o release/virtual.o
    virtual.c: In function `VirtualFree':
    virtual.c:511: warning: comparison between pointer and integer
    virtual.c: In function `VirtualAlloc':
    virtual.c:746: warning: comparison between pointer and integer
    virtual.c:746: warning: comparison between pointer and integer
    virtual.c: In function `VirtualProtect':
    virtual.c:873: warning: comparison between pointer and integer
    virtual.c:873: warning: comparison between pointer and integer
    gcc -I../include -D__EXTENSIONS__ -c sysinfo.c -o release/sysinfo.o
    sysinfo.c:548:28: warning: unknown escape sequence '\-'

    The Solaris(TM) OE Implementation for Win32 API Version 1.0 has been compiled by the WorkShop Compilers 5.0 98/12/15 C 5.0 at SUN.
    All the source files have ".c" extension which mean you can not use the "CC"/C++ compiler to compile it. You must use the C compiler "Sun WorkShop 6 update 1 C 5.2" instead of C++ compiler "Sun WorkShop 6 update 1 C++ 5.2" to compile this package.
    Hope this will help.
    Thanks!
    Amjad

  • Error compling Solaris(TM) OE Implementation Win32 API

    Hi,
    I have downloaded above API from sun web site. I am not able to compile it. Do I have to use forte to complie it ? I am using gnu gcc /g++ 2.95.3 on sparc solaris 8.
    I am able to compile without any flags. Means no CFLAGS, no OPTIONS and no LIB64_FLAGS. with this flags it is giving me error for each .c file :
    gcc : language CC not recognised.
    gcc : xxxxx.c linker input file unused since linking is no done.
    And if I use 'release/libwin32.so' that is supplied with download and includes that into my program, it gives me error :
    /Win32_Library/include/wintypes.h:134 declaration does not declare anyhing
    /Win32_Library/include/wintypes.h:169 parse error before 'char'
    /Win32_Library/include/wintypes.h:240 declaration does not declare anyhing
    /Win32_Library/include/wintypes.h:241 declaration does not declare anyhing
    And wintypes.h :
    134: typedef unsigned long DWORD;
    135: typedef unsigned long long DWORD64;
    168: typedef unsigned int SID;
    169: typedef SID *PSID;
    239:typedef BOOL *LPBOOL;
    240: typedef CHAR TCHAR;
    240: typedef CHAR _TCHAR;
    And it is also giving me too many warnings for widec.h, wchar_iso.h and getwc.
    thaks in advanced.

    Hi,
    Yes, you need to use the Forte C/C++ compiler (Formerly known as Sun's Workshop compiler) to compile the library. The Solaris(TM) OE Implementation of Win32 API library has never been tested with gcc compiler.
    It is also mentioned in the README file under the root level folder for this library that this version of library has been compiled by the Sun WorkShop 5.0 98/12/15 C on SunOS Solaris 8. One should use the cc compiler "Sun WorkShop 5.0 98/12/15 C 5.0" or higher version to compile this library.
    Thanks!

  • 3.3 Bug: Win32 API Error 2 - Please help

    Wondering if anyone may be able to help with the following error message:
    "An internal error has occured: Win32 API error 2 ("The system cannot find the file specified") When calling ShellExecuteExW from AgWorkspace.shellExecute".
    The wonderfully unhelpful persons at the helpline said they could not help me but indicated If I reload the version 3.3 in a different location the problem would go away since some plug-in from v1.4 had infected the new install.
    I have no custom add-ins/plug-ins, everything is default.
    I followed these instructions, however still have the same error. I removed then re-installed 3.3 on another drive away from C:\Progfiles......
    Any suggestions?

    Sorry F. McLion, I could have provided the following additional information:
    v1.4 lightroom owned, operating without issue, installed in default location
    C:\... drive
    v3.3 trial downloaded, installed default location, export operating without
    issue
    v1.4 launched to compare, export working fine
    v3.3 launched, export results in error message; determined that export actually
    worked, just resulted in the error message
    un-installed v3.3 per phone support (manager)
    re-installed v3.3 on F:\ drive from copy downloaded on F:\... drive. No change.
    Odly after I removed then re-installed v3.3, the pictures I was working
    on appeared in the re-installed instance with the most current changes - I would
    suspect a clean un-install would have removed any semblence of work done prior
    to removing (at least pointers to modified files). Since not, this means the
    un-install did not truely un-install, it simply removed some files but also left
    some remnents.
    Microsoft XP Home edition V 2002 Service Pack 3
    Dell Dimension 8400 P4 3.00 Ghz 3.00GB ram
    Hope this helps.
    John

  • Error message win32 API error2 when calling ShellExecuteErW from AgWorkspace.shellExecute

    after the command Exporting I get the message: Internal failure: win32 API error2 calling ShellExecuteErW from AgWorkspace.shellExecute. System is only exporting Thumnails.
    System is windows8, 64bit Lightroom 5.2 (newest version)

    At the bottom of the import dialog is a popup marked Post-processing.  It's probably currently empty.  Set it to Do Nothing and try the export again.

  • An error occurred during the installation of assembly 'policy e0.Microsoft.VC80.CRT.type="win32-policy" version "8.0.50727.4053", publicKeyToken="1fc8b3b9a1e18e3b" ,processorArchitecture="amd64"'.  Please refer to Help and Support for more information.  H

    An error occurred during the installation of assembly 'policy 80.Microsoft.VC80.CRT.type="win32-policy" version+"8.0.50727.4053", publicKeyToken="1fc8b3b9a1e18e3b" ,processorArchitecture="amd64"'.  Please refer to Help and Support for more information.  HRESULT: x...
    Encountered during reinstall of iTunes.  Any ideas?

    It is a big issue for many users.  There is no clear fix yet, but some users have had success with some of the solution on this thread.
    https://discussions.apple.com/message/16751339#16751339

  • My pc (vista) display the following: An error ocurred during assembly policy 8.0 microsoft VC80,CRT,type = win32 policy version. What can I do?

    I have Windows Vista, when I tried to install iTunes, the following error pops up:
    "An error ocurred during the installation of assembly policy 8.0 microsoft VC80.CRT. Win32 policy version"
    What can I do to complete the installation?
    Thanks in advance!

    "An error ocurred during the installation of assembly policy 8.0 microsoft VC80.CRT. Win32 policy version"
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitct

    When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitecture = "x86" Please refer to help and support.
    Ok I cant find a way to fix this so I basically cant use my Verizon Iphone 4 because it wont connect on an old version...

    OK.  You may have to reinstall everything from scratch but follow following steps:
    1. Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
    2. You should remove all instances of iTunes and the rest of the components listed below:
    it may be necessary to remove all traces of iTunes, QuickTime, and related software components from your computer before reinstalling iTunes.
    Use the Control Panel to uninstall iTunes and related software components in the following order:
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Follow the instructions from Apple article listed here: http://support.apple.com/kb/HT1923 to remove all components
    3. Reboot your computer. Next, download iTunes from here:http://www.apple.com/itunes/download/ and install from scratch

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • Win32 API to get cluster List from domain

    Hi ,
      we are using NetServerEnum API to retrive the list of cluster from domain. But it failed with error 2127 on windows 2008 server and the cluster /list command also failed with same error.
    But if we pass domain name to cluster .exe then it works.
    So is there any win32 API other than NetserverEnum which will give the list of clusters in a domain.

    Hi,
    can you also use powershell here?
    Get-Cluster -domain yourdomainFQDN.com
    This will give you all failover cluster in the specified DNS domain.
    Hope that helps.
    Regards
    Ramazan
    Ramazan Can [MVP Cluster] http://ramazancan.wordpress.com/

  • Win32 API & DLL calls

    Is possible to call in java directly the Win32 API or using a DLL?

    I dont believe you can do it directly but I think you can call a VBSCRIPT that can call WIN32 API directly

  • Win32 API calling by Code Interface Node

    Hi all,
    I wish to call a Win32 API function by using the code interface node.
    However, I don't know the data types in LabVIEW corresponding to the "HANDLE
    *" in Visual C++.
    Here's the function I wish to call:
    BOOL bOpenDriver (HANDLE * phDeviceHandle, PCHAR devname) {
    *phDeviceHandle = CreateFile(devname,
    GENERIC_WRITE,
    FILE_SHARE_WRITE,
    NULL,
    OPEN_EXISTING,
    0,
    NULL);
    if (*phDeviceHandle == INVALID_HANDLE_VALUE) {
    return (FALSE);
    } else {
    return (TRUE);
    Thank you in advance.
    JJ

    If this is really a Windows API function, then the handle can most likely be treated as an I32.
    Note that you can't actually do anything with the handle other than passing it to other functions.
    If you search this site for "LabVIEW" and "DLL" you should find some resources about working with DLLs and Win32 API DLLs.
    Try to take over the world!

  • Win32 api interface

    Does anyone have any information on the win32 api i would like to write a java application that woudl allow me to list all of the task names in the taskmanger
    Something like Win32::Setupsup for perl

    Hello,
    Please,
    is there any body who knows how I can search for the availability of Windows resources through Java. I am trying to write an application that can simulate a situation like this:
    "Imagine that I am using Skype with a video on my webcam. On the other hand I am writing to another friend using MSN. Then my friend wants to add video. My application should notify that the video resource is already in use. Actually this is already done on windows. "
    But I would like to move on the software layer in Java. Any suggestion would be highly appreciated.
    MoiseMbaya

  • Win32 API

    is there ne way i can use win32 API in JAVA, is there ne compatibility possible ?

    http://java.sun.com/docs/books/tutorial/native1.1/
    Read this link.
    ***Annie***

Maybe you are looking for