Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3543
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.albasani.net!www.openwatcom.org!not-for-mail |
|---|---|
| From | Lynn McGuire <lynnmcguire5@gmail.com> |
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: is _bstr_t not defined in Watcom ? |
| Date | Fri, 3 Aug 2018 14:05:32 -0500 |
| Organization | OpenWatcom |
| Lines | 80 |
| Message-ID | <pk28tc$e7o$1@www.openwatcom.org> (permalink) |
| References | <pjvsuv$4dd$1@www.openwatcom.org> <ntv8mdt3rr0bshskeur9k580vscb0fo8ti@4ax.com> |
| NNTP-Posting-Host | 108-237-228-37.lightspeed.hstntx.sbcglobal.net |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | www.openwatcom.org 1533322988 14584 108.237.228.37 (3 Aug 2018 19:03:08 GMT) |
| X-Complaints-To | news@www.openwatcom.org |
| NNTP-Posting-Date | Fri, 3 Aug 2018 19:03:08 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
| In-Reply-To | <ntv8mdt3rr0bshskeur9k580vscb0fo8ti@4ax.com> |
| Content-Language | en-US |
| Xref | csiph.com openwatcom.users.c_cpp:3543 |
Show key headers only | View raw
On 8/3/2018 11:18 AM, Paul S. Person wrote: > On Thu, 2 Aug 2018 16:29:18 -0500, Lynn McGuire > <lynnmcguire5@gmail.com> wrote: > >> I am trying to compile some of my Visual Studio code in OW 1.9. My COM >> code references the function _bstr_t. I cannot seem to find this >> function in OW. >> https://msdn.microsoft.com/en-us/library/zthfhkd6.aspx > > I have /no/ relevent experience with "COM, Automation, and Interop > functions", but _bstr_t appears to be a /class/, not a function. > > Perhaps this is also relevant: > > Header: comutil.h > > Lib: comsuppw.lib or comsuppwd.lib Yes, _bstr_t is in a class but there is code in a library also. I munged up Microsoft's comutil.h and got it to compile with much effort. But then I got a bunch of com_* undefines in the link. The UTF8 undefines are ours. C:\dii_15>linkdiid Could Not Find C:\dii_15\designii.dll Open Watcom Linker Version 1.9 Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. loading object files searching libraries Error! E2028: int near UTF8toWide( char const near *, std::basic_string<wchar_t near,std::char_traits<wchar_t near > near,std::allocator<wchar_t near > near > near & ) is an undefined reference Error! E2028: int near fopen_s_UTF8( __iobuf near * near *, char const near *, char const near *, int ) is an undefined reference Error! E2028: void near _com_issue_error( long ) is an undefined reference Error! E2028: char near * near _com_util::ConvertBSTRToString( wchar_t near * ) is an undefined reference Error! E2028: wchar_t near * near _com_util::ConvertStringToBSTR( char const near * ) is an undefined reference Error! E2028: std::basic_string<char near,std::char_traits<char near > near,std::allocator<char near > near > near SetUnitsCase( std::basic_string<char near,std::char_traits<char near > near,std::allocator<char near > near > ) is an undefined reference creating map file creating a Windows NT dynamic link library file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol int near UTF8toWide( char const near *, std::basic_string<wchar_t near,std::char_traits<wchar_t near > near,std::allocator<wchar_t near > near > near & ) file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol int near fopen_s_UTF8( __iobuf near * near *, char const near *, char const near *, int ) file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol void near _com_issue_error( long ) file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol char near * near _com_util::ConvertBSTRToString( wchar_t near * ) file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol wchar_t near * near _com_util::ConvertStringToBSTR( char const near * ) file fm2nbook\fm2n_old.obj(C:\dii_15\fm2nbook\fm2n_old.cpp): undefined symbol std::basic_string<char near,std::char_traits<char near > near,std::allocator<char near > near > near SetUnitsCase( std::basic_string<char near,std::char_traits<char near > near,std::allocator<char near > near > ) Could Not Find C:\dii_15\designii.lib Open Watcom Library Manager Version 1.9 Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details. Warning! Cannot open 'designii.lib' - library will be created Error! Cannot find file 'designii.dll' Thanks, Lynn
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Next in thread | Find similar
is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-02 16:29 -0500
Re: is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-03 11:15 -0500
Re: is _bstr_t not defined in Watcom ? Paul S. Person <psperson@ix.netscom.com.invalid> - 2018-08-03 09:18 -0700
Re: is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-03 14:05 -0500
Re: is _bstr_t not defined in Watcom ? Paul S. Person <psperson@ix.netscom.com.invalid> - 2018-08-04 09:31 -0700
Re: is _bstr_t not defined in Watcom ? Johann Klammer <klammerj@NOSPAM.a1.net> - 2018-08-03 20:39 +0200
Re: is _bstr_t not defined in Watcom ? Paul S. Person <psperson@ix.netscom.com.invalid> - 2018-08-04 09:33 -0700
Re: is _bstr_t not defined in Watcom ? "Steven Levine" <steve53@nomail.earthlink.net> - 2018-08-05 01:34 +0000
Re: is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-06 14:12 -0500
Re: is _bstr_t not defined in Watcom ? Paul S. Person <psperson@ix.netscom.com.invalid> - 2018-08-07 09:32 -0700
Re: is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-07 12:41 -0500
Re: is _bstr_t not defined in Watcom ? Lynn McGuire <lynnmcguire5@gmail.com> - 2018-08-07 12:43 -0500
csiph-web