Click here to Skip to main content
15,921,660 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 19:31
Janma22-Apr-07 19:31 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 22:03
Janma22-Apr-07 22:03 
GeneralAdding ATL Dialog to WTL application from VS2005 Pin
Ernest Laurentin19-Apr-07 7:33
Ernest Laurentin19-Apr-07 7:33 
Questionusing map Pin
NorGUI18-Apr-07 10:54
NorGUI18-Apr-07 10:54 
AnswerRe: using map Pin
Roger Stoltz18-Apr-07 11:33
Roger Stoltz18-Apr-07 11:33 
Questiontemplate class c2995 operator<< overloading [modified] Pin
ky_rerun17-Apr-07 11:11
ky_rerun17-Apr-07 11:11 
AnswerRe: template class c2995 operator<< overloading Pin
ky_rerun17-Apr-07 19:10
ky_rerun17-Apr-07 19:10 
Questionlinker error in VC6 while linking to VC8 MSXML exports [modified] Pin
chervu17-Apr-07 7:24
chervu17-Apr-07 7:24 
I have native C++ XMLTranslator (dll) built using VC8 compiler in VS2005 IDE.

This dll basically imports msxml4.dll as shown below:

#import "msxml4.dll" named_guids implementation_only



When native clients using VC6 compiler link to my XMLTranslator.lib I found below linker errors in imports:



XmltxtorTest.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _com_ptr_t<class _com_iiid<struct="" msxml2::ixmldomdocument2,&struct="" __s_guid="" _guid_2933bf95_7b36_11d2_b20e_00c04f983e60=""> > __thiscall altova::CDoc::Load
FromString(class std::basic_string<unsigned short,struct="" std::char_traits<unsigned="" short="">,class std::allocator<unsigned short=""> > const &)" Debug/XmltxtorTest.exe : fatal error LNK1120: 2 unresolved externals



The export signature of VC8 dll:



class _com_ptr_t<class _com_iiid<struct="" msxml2::ixmldomdocument2,&struct="" __s_guid="" const="" _guid_2933bf95_7b36_11d2_b20e_00c04f983e60=""> > altova::CDoc::LoadFromString(class std::basic_string<unsigned short,struct="" std::char_traits<unsigned="" short="">,class std::allocator<unsigned short=""> > const &)



Basically the difference I found is the word "const" between imports and exports.
VC8 compiler exports additional const key word in whereas VC6 compiler doesn't expect const key word during imports. Frown | :-(


How to make msxml exports/imports compatible across VC6 and VC8 compilers??



Thank you so much for any help in this aspect. I have been trying to get around this problem over a week.




Thanks again & Regards,





-- modified at 13:29 Tuesday 17th April, 2007
AnswerRe: linker error in VC6 while linking to VC8 MSXML exports Pin
Michael Dunn17-Apr-07 18:00
sitebuilderMichael Dunn17-Apr-07 18:00 
QuestionCombine multiple text files into one ! Pin
snailflying16-Apr-07 14:46
snailflying16-Apr-07 14:46 
QuestionHow to customise IE toolbar Addon [modified] Pin
shivditya16-Apr-07 0:53
shivditya16-Apr-07 0:53 
QuestionIs possible to allocate strictly physical mem. (RAM) instead of page file (virtual mem) Pin
marcelse12-Apr-07 4:49
marcelse12-Apr-07 4:49 
QuestionAdvising to the embedded flash object events Pin
Tomek.Sergey10-Apr-07 13:14
Tomek.Sergey10-Apr-07 13:14 
QuestionTELECOMMUNICATION Pin
ILHEM5-Apr-07 5:42
ILHEM5-Apr-07 5:42 
Questionhow to add check Box in MMC(through ATL) in Result pan Pin
mo_nica8811-Apr-07 23:54
mo_nica8811-Apr-07 23:54 
Questionargv does not equal string (char*) Pin
XTAL25630-Mar-07 19:45
XTAL25630-Mar-07 19:45 
AnswerRe: argv does not equal string (char*) Pin
Michael Dunn31-Mar-07 19:20
sitebuilderMichael Dunn31-Mar-07 19:20 
GeneralRe: argv does not equal string (char*) Pin
XTAL25631-Mar-07 20:09
XTAL25631-Mar-07 20:09 
Questionatl8.0 backward compatibility issue Pin
Shiva Prasad30-Mar-07 1:08
Shiva Prasad30-Mar-07 1:08 
AnswerRe: atl8.0 backward compatibility issue Pin
George L. Jackson10-Apr-07 16:24
George L. Jackson10-Apr-07 16:24 
QuestionConverting to/from UTF8 Pin
Rob Caldecott29-Mar-07 0:08
Rob Caldecott29-Mar-07 0:08 
AnswerRe: Converting to/from UTF8 Pin
Stuart Dootson29-Mar-07 2:45
professionalStuart Dootson29-Mar-07 2:45 
AnswerRe: Converting to/from UTF8 Pin
Nemanja Trifunovic2-Apr-07 5:26
Nemanja Trifunovic2-Apr-07 5:26 
QuestionHelp causing button click to an ATL contained button... Pin
markjmalin28-Mar-07 4:16
markjmalin28-Mar-07 4:16 
QuestionCreating MPEG-1 from series of JPEG Pin
yudhisthira27-Mar-07 1:05
yudhisthira27-Mar-07 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.