|
I've been tasked with upgrading our existing code base to visual studio .NET... lucky me.. 20 projects down... 70 to go.. Anyway, I'm having some troble linking with the new templeted CString and I'm hoping someone has seen this before because I'm running low on ideas..
DataFolder error LNK2005: "public: __thiscall ATL::CStringT<char,class strtraitmfc<char,class="" atl::chtraitscrt<char=""> > >::~CStringT<char,class strtraitmfc<char,class="" atl::chtraitscrt<char=""> > >(void)" (??1?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@QAE@XZ) already defined in DataFolder.obj
It seems to be related to a header file in my project that #include's multiple .h files from different projects that use CString.. Any ideas how to fix this link error?
Thanks in advance.
|
|
|
|
|
I can't remember exactly if this was a fix for this problem but try remove that file (you can remove all of them) in the Debug/Release folder and then build the project again.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I found the solution.
http://support.microsoft.com/default.aspx?scid=kb;en-us;309801
|
|
|
|
|
I'm trying to translate ADO code in VB to C++, but I don't know what properties is in C++.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
I'm trying to translate ADO code in VB to C++, but I don't know what properties is in C++.
Your question is a little unclear, what does the VB code look like?
Are you using the #import method with ADO? As properties is defined in msado15.tlh as a collection object.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
Michael P Butler wrote:
what does the VB code look like?
Something like:
commandObject.CommandText = "SELECT CodeProject FROM BestWebSite"
commandObject.CommandType = acCmdText
Michael P Butler wrote:
Are you using the #import method with ADO?
Yes.
Michael P Butler wrote:
As properties is defined in msado15.tlh as a collection object.
Huh?
I'll have a look at that file!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rough translation,
m_pCommand->put_CommandText(_bstr_t("SELECT CodeProject FROM BestWebSite"));<br />
m_pCommand->put_CommandType(adCmdText);
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I want to use CreateProcessWithLogonW to create process.This function needs password to pass to it.My problem is for blank passwords,I don't know what to pass to it for blank passwords because it return error(ERROR_ACCOUNT_RESTRICTION error) for it if I use "".Any idea?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Have you tried passing NULL?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
Have you tried passing NULL?
Yes.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Hi Nish
Nishant S wrote:
Did you try entering a random string?
What do you mean by that?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
You answer was the quickest reply in the world.
Well,I passed some wrong passwords and it caused another error(Unknown user or wrong password).The errors are not the same but why do you say that?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Nishant S wrote:
Sorry that I couldn't be of much help
Ni problem Nish.Thank you anyway.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I was trying to track down a bug (which one of the other developers was able to track down) and we noticed something strange in the debug output window (VC++ 6.0). After the app ends, the output window lists all the dlls that were loaded up, etc. I have the Trillian instant message interface installed and one of the dlls that is being loaded up is 'C:\Program Files\Trillian\events.dll'. Trillian has no relation to my app and is not being even remotely used, at least I think not. Does anyone know why this is happening? I am a junior developer, so there may be an obvious answer to this, but it seems very odd. Thanks!
|
|
|
|
|
the system is reporting events and the debug window is picking up on them. it's pretty much harmless.
-c
Please stand by
|
|
|
|
|
The reason the dll is being loaded in your process is because it probably installs some sort of global hook via SetWindowsHookEx. The dll will then be loaded into all running processes.
Chris Richardson
Programmers find all sorts of ingenious ways to screw ourselves over. - Tim Smith
|
|
|
|
|
Thanks Chris and Chris! Your responses were very helpful.
|
|
|
|
|
I have a CBitmap object and i would like to create a bmp file and save theis object to the file.
Can any one give me a tip?
Thanks.
avivhal
|
|
|
|
|
|
I want to make a program which can access site with the help of winsock.And I can not access the site directly,so I have to use proxy.Can I work it out with socket,how to do it?I neexd your help.Thanks previously.
Got it
|
|
|
|
|
If you can, use WININET[^] instead. It makes things
much easier. MFC[^] has good wrapper classes for it
too.
|
|
|
|
|
Hello could anyone help me to correctly handle flicker free redrawing in a Multiline Transparent Cedit...
During an insert line operation or a scroll, i would like fix flicking troubles
I'm using the technique of a Cbrush to redraw the bitmap background;
but when i scroll lines , bitmap scrool too
How fix this ...
|
|
|
|