[Oledb-dev] Visual C++ 2005 Express

Shachar Shemesh shachar at shemesh.biz
Tue Jul 24 07:44:07 UTC 2007


Helmar Spangenberg wrote:
>
> Then I tried to register libpq.dll manually. Even that did not work (module 
> not found). Do you have any ideas concerning that?
>   
libpq is not a registerable DLL. It just needs to be in the path. Only
(well, mostly) OLE DLLs need to be registered.

In other words, the fact that you couldn't register it is not a problem.
>   
>> You should not change any MS headers (like you did for atldb.h) to compile
>> the provider under VS2005.
>>     
>
> Actually, changing headers of an SDK would be the last thing I intend to do, 
> however in this case it seemed to be necessary - maybe MS has changed their 
> compiler philosophy or whatever...
> C++ has/had an ambiguous definition on the scope of variables defined in the 
> head of e.g. a for-loop. In atldb.h, you can find lots of constructs of the 
> type
> for(int i=0; i<xyz; ++i)
> {
>    ....
> }
> if(i > abc) {....}
>
> I know, this worked fine with former MS compilers,
That's only because they did not respect the C++ standard. The C++
standard dictates that variables defined in the header of a loop are
only scoped to that loop. VS2005 is right.

Shachar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/oledb-devel/attachments/20070724/b26dc5a3/attachment.html 


More information about the Oledb-devel mailing list