winnt.h file

Steven Edwards steven_ed4153 at yahoo.com
Mon Oct 13 15:54:23 CDT 2003


Hello Geoff,
Comments are inline

--- Geoff Peters <Geoff at logic.bm> wrote:
> Steven - Thanks for the reply. I have 2 C files I am trying to port
> to Solaris, one is done (compiles OK), the other one I am working on
> has a dependency on wininet.h, along with it comes a huge raft of
> other dependencies. I obtained most of these libraries from
>
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/include/?cvsroot=src

The w32api package is only for developing Windows application using
Mingw on Windows or cross-compiling Windows apps from a GNUtool chain.
Winelib is a better solution for your problem.

> There is one block of code that is dependent on this wininet.h
> library - I am not a C developer (java!), so I'm kinda stumped as to
> whether I should attempt to re write the offending piece of code
> using a similar Solaris C API (I am assuming the wininet.h contains
> most of the HTTP functions for windows), or simply try to match up
> the correct libraries - again coming from Java I am having a hard
> time understanding different libraries for different platforms to
> perform the same functions. The winnt.h header file I am using is the
> latest release you had posted on the above link - I just recently
> tried to incorporate pieces of
>
http://cvs.winehq.com/cvsweb/~checkout~/wine/include/winnt.h?rev=1.172&content-type=text/plain
> which have a context defined for SPARC - which seems to be whats
> missing from the redhat winnt.h

Yes the structures and defines in winnt.h are Windows and WINE only. It
will be nearly impossible to use them in a 100% native application.

> In case you can offer any suggestions, I have attached a copy of the
> C code I am attempting to port, the last function listed (int
> call_cc_gateway) is the one that contains the references to wininet.h
> 
> Haven't really looked at WINE, do you think it would help me out??

I think it could help alot. The first thing you may want to try and do
is run your win32 application under WINE on a x86 linux box. If it
works there then it should recompile as a Winelib application. The
issue then becomes does Wine and Winelib work on Sparc. ATM I think the
port is incompleate although we did have some people at Sun who were
working on it and Wine does run under Solaris for x86. You can try and
port your Win32 application if you can get a WINE to build for Solaris
on Sparc.

Another option would be to look at what functions Wines wininet.dll
imports and see if you can develop a native implementation of wininet
that sits on top of the Unix TCP/IP implementation rather than on Wine
Winsock.

We will try to help you as much as possible if you want to go the
Winelib route on the Sparc as we really want to see the Solaris on
Sparc port working.

Thanks
Steven

> Geoff Peters, SCJP            Phone  : (441) 296-9640
> Applications Developer        Fax    : (441) 292-1509
> Logic Communications          E-mail : geoff at logic.bm
> 12 Par-La-Ville Road          WWW    : http://www.logic.bm
> Hamilton, Bermuda  HM JX
> 
> 
> -----Original Message-----
> From: Steven Edwards [mailto:steven_ed4153 at yahoo.com]
> Sent: Monday, October 13, 2003 11:37 AM
> To: Geoff Peters; Steven_Ed4153 at yahoo.com
> Subject: Re: winnt.h file
> 
> 
> Hello,
> Are you trying to use Winelib to port your project to solaris? I can
> try and help if you are taking this method. If you are using parts of
> the w32api package to try and create a native application without
> WINE
> it may be a little harder. Can you send me your winnt.h header?
> 
> Thanks
> Steven
> 
> 
> --- Geoff Peters <Geoff at logic.bm> wrote:
> > Hi - Got your email from the cvs.sourceforge.net version info for
> the
> > winnt.h file. I have a question - wondering if you could help me or
> > point me to someone that could - I am porting a win32 app to
> Solaris,
> > seem to be doing OK with the API's in the repository, however I am
> > getting the following error on compilation using gcc on Solaris 8
> > (SPARC):
> > 
> > In file included from /opt/portal/6.2/include/windef.h:246,
> >                  from /opt/portal/6.2/include/windows.h:49,
> >                  from call_tellan_cc_gateway.c:5:
> > /opt/portal/6.2/include/winnt.h:1950: #error "undefined processor
> > type"
> > 
> > Obviously doesn't recognize the SPARC processor - any idea how I
> > could work around this?? 
> > 
> > Thanks for your time, Geoff
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 

> ATTACHMENT part 2 application/octet-stream
name=call_tellan_cc_gateway.c



__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



More information about the wine-devel mailing list