|
Ah - that's because the CT2W object goes out of scope.
Try this:
CT2W pwcharMessageBody(data);>/pre>
A CT2W has a string conversion operator, it's just that now that the lifetime of pwcharMessageBody defines the conversion buffer lifetime.
<div class="ForumSig">Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p</div>
|
|
|
|
|
Actually it is a limit in MSMQ, so there is no problem in converting large char-arrays.
Sending MSMQ Messages larger than 4 Mb. causes exception
You either have to chop the message up in smaller pieces, or maybe perform compression before sending to MSMQ (Requires the opposite part is able to decompress the message again).
|
|
|
|
|
Hi there.
While using a component, I ma getting above mentioned error message.
Just FYI, I have included .lib file under Linker/Inputs/Additional Dep... section. Also, have copied .dll file amd have also added .h file under the project.
Any pointers/suggestions will be highly appretiated.
Thanks
Pankaj
|
|
|
|
|
I guess the error message in the subject line is not complete.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Here we go...
1>LoggingManager.obj : error LNK2019: unresolved external symbol "public: __thiscall CDataAccessManager::CDataAccessManager(class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >)" (??0CDataAccessManager@@QAE@V?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z) referenced in function "private: __thiscall CLogger::CLogger(class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >)" (??0CLogger@@AAE@V?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@@Z)
1>E:\PankajB\DATALAYER\Debug\DATALAYER.exe : fatal error LNK1120: 1 unresolved externals
|
|
|
|
|
Is it possible that the component you are using was compiled using non-Unicode strings and you are using Unicode strings in your project?
If the header files just mentions CString, that could happen.
Try removing the 'UNICODE:-UNICODE' part from the pre-processor macros section of your project properties and rebuilding.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You are creating an object of CDataAccessManager in the constructor of CLogger , but it cannot find the constructor that takes a CString as parameter.
Are you export CDataAccessManager as a class from a DLL?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes. I have exported this class.
|
|
|
|
|
Are you sure the exe is using the latest lib file?
You probably added the constructor later and forgot to copy the lib file!
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes, brother. I have just created one. Let me create a new one.
One more point - I am using all the DEBUG version files. I dont this that makes any differenece. Will be back to you aftar testing new lib.....
|
|
|
|
|
Same problem...
|
|
|
|
|
Can you try a different constructor?
A default constructor preferable.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I just tried that...
Default constructor is working...but not any overloaded ones.
|
|
|
|
|
I believe you're the lib file that is being used by the exe is not the latest.
Please check the location from where the lib is accessed and replace it with the latest lib.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I have crossed checked it...I am sorry to say, its the latest one.
|
|
|
|
|
Are using the required Namespaces ? I believe you are missing it.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Try using dumpbin[^] (comes with Visual Studio) to see what exports your lib file does have. Try looking for constructors of the class you want - I still suspect there's symbol mismatch somewhere...
You'll need to open up a command prompt in your lib file's diectory and enter a command like
"c:\Program Files\Microsoft Visual Studio 9.0\vc\bin\dumpbin.exe" /exports your-lib-file's-name
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Got an error message "This application has failed to start because mspdb80.dll was notfound. Re-installing the application may fix this problem".
Any suggestions.
|
|
|
|
|
Nope - are you using an Express edition of Visual Studio 2008?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I am on VS 2008 Professional Edition.
|
|
|
|
|
PankajB wrote: While using a component, I ma getting above mentioned error message.
Well, not quite - the error message also tells you which symbol it can't find. That tells you which lib file or object file you're missing. Go on, give us the complete error message.
PankajB wrote: Just FYI, I have included .lib file under Linker/Inputs/Additional Dep... section
In all configurations of the project?
PankajB wrote: Also, have copied .dll file amd have also added .h file under the project
Those can have no effect on the linker
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: PankajB wrote:
While using a component, I ma getting above mentioned error message.
Well, not quite - the error message also tells you which symbol it can't find. That tells you which lib file or object file you're missing. Go on, give us the complete error message.
That's a complete error message.
Stuart Dootson wrote: PankajB wrote:
Just FYI, I have included .lib file under Linker/Inputs/Additional Dep... section
In all configurations of the project?
Please provide more details. Am I supppose to add .lib info. anywhere esle apart from Linker/Inputs/Additional Dep... section
|
|
|
|
|
Why the below code doesn't make any child? What I see on the list is only "Software".
HTREEITEM hTree, hCompany;
hTree = m_cTree.InsertItem("Software", TVI_ROOT);
hCompany = m_cTree.InsertItem("Microsoft", hTree);
m_cTree.InsertItem("Office", hCompany);
m_cTree.InsertItem("Visual Studio", hCompany);
m_cTree.InsertItem("Servers", hCompany);
Should I enable any options with the tree?
|
|
|
|
|
Looks like you have done the right thing.
So its probably added but not shown.
Try by putting m_cTree.Expand(TVI_ROOT, TVE_EXPAND) at the end.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
You are right. The code was actually right. But it did not display any "expland-collapse-+" symbol at the corner. When I click on it it's actually expanding. But how do I show that "+" there?
|
|
|
|