|
ops. I didn't notice
|
|
|
|
|
If i need to draw 10 images by considering the height of the CDialogBar window and it should exactly fit to the window even after changing the size..
|
|
|
|
|
Dynamically drawing 10 images to an area depends on the no of pixels.. Do you checked the minimum pixel area required to fit 10 image in the dialog bar
|
|
|
|
|
Which part of that is giving you trouble?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I read this article by Dr. Luigi: http://www.codeproject.com/KB/webservices/CurrencyConvertor.aspx[^] I used my own wsdl file to produce the headers and cpp files I may need. After following the instructions and applying it to my project i got this error at build:
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_7::XMLPlatformUtils::Initialize(char const * const,char const * const,class xercesc_2_7::PanicHandler * const,class xercesc_2_7::MemoryManager * const,bool)" (__imp_?Initialize@XMLPlatformUtils@xercesc_2_7@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@_N@Z) referenced in function "public: long __thiscall redmap::CUpdateServiceModule::PreMessageLoop(int)" (?PreMessageLoop@CUpdateServiceModule@redmap@@QAEJH@Z)
1>UpdateServiceModule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * const xercesc_2_7::XMLUni::fgXercescDefaultLocale" (__imp_?fgXercescDefaultLocale@XMLUni@xercesc_2_7@@2QBDB)
1>UpdateServiceModule.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_7::XMLPlatformUtils::Terminate(void)" (__imp_?Terminate@XMLPlatformUtils@xercesc_2_7@@SAXXZ) referenced in function "public: long __thiscall redmap::CUpdateServiceModule::PostMessageLoop(void)" (?PostMessageLoop@CUpdateServiceModule@redmap@@QAEJXZ)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall xercesc_2_7::XercesDOMParser::XercesDOMParser(class xercesc_2_7::XMLValidator * const,class xercesc_2_7::MemoryManager * const,class xercesc_2_7::XMLGrammarPool * const)" (__imp_??0XercesDOMParser@xercesc_2_7@@QAE@QAVXMLValidator@1@QAVMemoryManager@1@QAVXMLGrammarPool@1@@Z) referenced in function "public: __thiscall redmap::xml::XmlFile::XmlFile(void)" (??0XmlFile@xml@redmap@@QAE@XZ)
1>xmldata.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class xercesc_2_7::MemoryManager * xercesc_2_7::XMLPlatformUtils::fgMemoryManager" (__imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_7@@2PAVMemoryManager@2@A)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_7::XercesDOMParser::~XercesDOMParser(void)" (__imp_??1XercesDOMParser@xercesc_2_7@@UAE@XZ) referenced in function "public: __thiscall redmap::xml::XmlFile::~XmlFile(void)" (??1XmlFile@xml@redmap@@QAE@XZ)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class xercesc_2_7::DOMDocument * __thiscall xercesc_2_7::AbstractDOMParser::getDocument(void)" (__imp_?getDocument@AbstractDOMParser@xercesc_2_7@@QAEPAVDOMDocument@2@XZ) referenced in function "public: bool __thiscall redmap::xml::XmlFile::Open(wchar_t const *,wchar_t const *)" (?Open@XmlFile@xml@redmap@@QAE_NPB_W0@Z)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall xercesc_2_7::AbstractDOMParser::parse(wchar_t const * const)" (__imp_?parse@AbstractDOMParser@xercesc_2_7@@QAEXQB_W@Z) referenced in function "public: bool __thiscall redmap::xml::XmlFile::Open(wchar_t const *,wchar_t const *)" (?Open@XmlFile@xml@redmap@@QAE_NPB_W0@Z)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class xercesc_2_7::DOMImplementation * __cdecl xercesc_2_7::DOMImplementationRegistry::getDOMImplementation(wchar_t const *)" (__imp_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_7@@SAPAVDOMImplementation@2@PB_W@Z) referenced in function "public: bool __thiscall redmap::xml::XmlFile::Create(wchar_t const *)" (?Create@XmlFile@xml@redmap@@QAE_NPB_W@Z)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall xercesc_2_7::LocalFileFormatTarget::~LocalFileFormatTarget(void)" (__imp_??1LocalFileFormatTarget@xercesc_2_7@@UAE@XZ) referenced in function "public: bool __thiscall redmap::xml::XmlFile::Save(wchar_t const *)" (?Save@XmlFile@xml@redmap@@QAE_NPB_W@Z)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall xercesc_2_7::LocalFileFormatTarget::LocalFileFormatTarget(wchar_t const * const,class xercesc_2_7::MemoryManager * const)" (__imp_??0LocalFileFormatTarget@xercesc_2_7@@QAE@QB_WQAVMemoryManager@1@@Z) referenced in function "public: bool __thiscall redmap::xml::XmlFile::Save(wchar_t const *)" (?Save@XmlFile@xml@redmap@@QAE_NPB_W@Z)
1>xmldata.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall xercesc_2_7::XercesDOMParser::resetDocumentPool(void)" (__imp_?resetDocumentPool@XercesDOMParser@xercesc_2_7@@QAEXXZ) referenced in function "public: void __thiscall redmap::xml::XmlFile::Close(void)" (?Close@XmlFile@xml@redmap@@QAEXXZ)
1>D:\SVN\Licensin System\Work Package\UpdateManager\Debug\UpdateService.exe : fatal error LNK1120: 12 unresolved externals
Can anyone please help me understand this?
thanks,
Jayjay
|
|
|
|
|
Did you link with the xerces library ? It seems that you need it.
|
|
|
|
|
Hi Cedric,
where should I link it?
|
|
|
|
|
It looks like Xerces [^] library is missing in your project.
BTW: Why don't you ask directly the author (using the article's own thread)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to draw dynamically buttons on a Control dialog bar on LEft side of the MainFrame.
Ex if i want to draw 10 buttons with respect to the Size of the CDialogBar in a mainframe.
Then it should exactly fit to the screen.
|
|
|
|
|
Don't "draw" them yourself. Simply create them dynamically using CreateWindow.
|
|
|
|
|
Hi all,
Say I have a byte stream, and I want to know it contains a standard string or a wstring. Is it possible in C++?
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
CodingLover wrote: and I want to know it contains a standard string or a wstring
I hope you mean wide characters(UNICODE) and multi byte characters. Try the IsTextUnicode() function.
|
|
|
|
|
Naveen wrote: I hope you mean wide characters(UNICODE) and multi byte characters
Yes, that's what I'm looking for.
Naveen wrote: Try the IsTextUnicode() function.
Ok, I'll try it and let you know.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Thanks Rajesh, for the link and tip.
How ever I doubt if we test only IS_TEXT_UNICODE_ASCII16 or IS_TEXT_UNICODE_REVERSE_ASCII16 using this function, it will work fine. isn't it?
|
|
|
|
|
Naveen wrote: How ever I doubt if we test only IS_TEXT_UNICODE_ASCII16 or IS_TEXT_UNICODE_REVERSE_ASCII16 using this function, it will work fine. isn't it?
It should, but I do not know it for sure. As Kaplan says, we cannot expect something that was built ages ago to work flawlessly with a dynamic standard.
|
|
|
|
|
So what is your suggestion pal. At the time IsTextUnicode is working fine.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I don't have an alternative suggestion at the moment, my post was merely a hint to make you aware of the downsides of it. I am not sure if any substantial amount of efforts were put in lately to make the discussed API more reliable. I'm glad it worked fine for you.
|
|
|
|
|
Hi,
We are making changes in our application. Instead of writing in ini we writing in a local file. So we wrote a wrapper for GetProfileInt and GetProfileString.
But this piece of code is giving error.
bAllowDeleteSystemVars =
WWGetProfileInt("test",
"test123"
NULL);
where bAllowDeleteSystemVars is a BOOL variable. I am getting the following error
error C2120: 'void' illegal with all types
Regards
|
|
|
|
|
subramanyeswari wrote: error C2120: 'void' illegal with all types
Does WWGetProfileInt() returns a value???
|
|
|
|
|
yes, the prototype is this
UINT wwGetProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, INT nDefault)
|
|
|
|
|
Yet your previous code showed WWGetProfileInt() . Which is it?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Because you are missing a comma after "test123"?
|
|
|
|
|
it's a typo. comma is there
|
|
|
|
|
If you remove the bAllowDeleteSystemVars = , does the error persist?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|