Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PODS typedef conflicts

2 posts in General Discussion Last posting was on 2005-07-09 13:01:28.0Z
Dave Wilson Posted on 2005-07-07 15:45:48.0Z
From: Dave Wilson <murrgon@hotmail.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.mbusinessanywhere.general
Subject: PODS typedef conflicts
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: i216-58-90-224.igs.net
Message-ID: <42cd4e29$1@forums-2-dub>
X-Original-Trace: 7 Jul 2005 08:45:45 -0700, i216-58-90-224.igs.net
Lines: 24
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Jul 2005 08:45:46 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Jul 2005 08:45:48 -0700
X-Trace: forums-1-dub 1120751148 10.22.108.75 (7 Jul 2005 08:45:48 -0700)
X-Original-Trace: 7 Jul 2005 08:45:48 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:452
Article PK: 17688

Greetings,
I am working on a POD that needs to access some ActiveX functionality
using ATL and I have run into some naming conflicts between the PODS
header files and the Microsoft's ATL includes.

PODS:
#include "pods.h"
#include "astro.h"
#include "adom.h"
Line 53: typedef struct ADOMHTMLDocument HTMLDocument;
(many more conflicts occur, but this is where it starts)

ATL
#include "atlwin.h"
#include "atlhost.h"
#include "MsHtml.h"
Line 2449: typedef class HTMLDocument HTMLDocument;

I am using VC7.1 and I downloaded the PODS api stuff on Tuesday so
it should be the most recent. Any suggestions how I might get around
this? I do absolutely need the ATL stuff.

Thank you
Dave


Enrico Pallazzo Posted on 2005-07-09 13:01:28.0Z
From: "Enrico Pallazzo" <enricopallazzo@myway.com>
Newsgroups: ianywhere.public.mbusinessanywhere.general
References: <42cd4e29$1@forums-2-dub>
Subject: Re: PODS typedef conflicts
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Original-NNTP-Posting-Host: vpn-dub-043.sybase.com
Message-ID: <42cfcaa4$1@forums-2-dub>
X-Original-Trace: 9 Jul 2005 06:01:24 -0700, vpn-dub-043.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 9 Jul 2005 06:01:27 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 9 Jul 2005 06:01:28 -0700
X-Trace: forums-1-dub 1120914088 10.22.108.75 (9 Jul 2005 06:01:28 -0700)
X-Original-Trace: 9 Jul 2005 06:01:28 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.mbusinessanywhere.general:453
Article PK: 17690

Its rather a hideous hack, but I would try commenting out the typedef in
adom.h and replacing all instances of "HTMLDocument" in the avantgo header
files with "struct ADOMHTMLDocument". Now, linking may or may not be an
issue. since the ATL version of HTMLDocument is a C++ class the compilier
and linker may do name mangling to link the C functions and C++ classes. Or
it may not, if it doesn't work you are pretty much done.

"Dave Wilson" <murrgon@hotmail.com> wrote in message
news:42cd4e29$1@forums-2-dub...
> Greetings,
> I am working on a POD that needs to access some ActiveX functionality
> using ATL and I have run into some naming conflicts between the PODS
> header files and the Microsoft's ATL includes.
>
> PODS:
> #include "pods.h"
> #include "astro.h"
> #include "adom.h"
> Line 53: typedef struct ADOMHTMLDocument HTMLDocument;
> (many more conflicts occur, but this is where it starts)
>
> ATL
> #include "atlwin.h"
> #include "atlhost.h"
> #include "MsHtml.h"
> Line 2449: typedef class HTMLDocument HTMLDocument;
>
> I am using VC7.1 and I downloaded the PODS api stuff on Tuesday so
> it should be the most recent. Any suggestions how I might get around
> this? I do absolutely need the ATL stuff.
>
> Thank you
> Dave