|
Did you installed any 3ed party visual studio addons? Just try disabling or removing it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
No i dont use any third party visual studio addons and i work simultaneously in different environment of visual studio and its an licenenced version provided by microsoft .
Is it possible that if different version of visual studio is used than this problem occur ????
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Did you get this problem with all projects ot with this project?
|
|
|
|
|
All Projects
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi all!
I was Trying to Open a Presentation Of PowerPoint. For That I have Used "Open" Method on a Pointer Of Presentations. But it Gives result as Exception Occured unles and untill an Instance Of PowerPoint is Not Running.
So in this case I have To manually run an instance Of PowerPoint Before Opening any Presentation.
Thank You In Advace.
|
|
|
|
|
Yes you need to create instance before you open any presentation.
|
|
|
|
|
|
|
Thanks For Your Reply
I have Solved The Problem. Actually I was Needed To Set The Optional Parameter WithWindow Of "Open" Method as "msoFalse".
Thanks
|
|
|
|
|
|
How to add rows dynamically in MSFlexgrid control?
|
|
|
|
|
There is some member functon
Dotn remember the name
|
|
|
|
|
The member function is "SetRows(nNewValue)".
nNewValue is the new number of rows.
|
|
|
|
|
|
What is the difference between CPaintDC and CClientDC??
|
|
|
|
|
1)[^]
2 )[^]
Please use google search.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
I have to move from VC6 to VC2005.
here is some error code:
//--------------------------- i_Random is int
i_Random%=10;
CString cs24;
cs24.Format("%d",i_Random);
//---------------------------
VC 2005 compiler says that last line above has error:
error C2664: 'void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char [3]' to 'const wchar_t *'
with
[
BaseType=wchar_t,
StringTraits=StrTraitMFC_DLL<wchar_t>
Do you know what the stupid VC2005 want to do?
|
|
|
|
|
Your VS2005 defaults to unicode. "%d" is of type char but CString.Format needs a unicode format string. you can modify your code as following :
cs24.format(L"%d",i_Random);
or
cs24.format(TEXT("%d"),i_Random);
however please pay attention that this may not be the only place in your code you have to check against unicode (wchar_t) compatibility.
cheers.
Mohammad
|
|
|
|
|
Remove _UNICODE from project settings.
|
|
|
|
|
To complete the previous answers: here[^] is a complete article about the subject. I suggest you take a look at it, you will learn a lot of usefull things.
|
|
|
|
|
Well, VC2005 is not stupid, hence...
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
|
|
|
|
|
Why do you use the term stupid when you risk to be the one who is stupid ?
And there are many people here like me who will not accept such langage and the least they can do, they will let you with you problem without helping you.
OK now, use the following macro without the need to change the charSet property of your project :
_T
==>
cs24.Format(_T("%d"),i_Random);
always take the habit of using it, even when you have a nonUnicode charSet.
|
|
|
|
|
includeh10 wrote: What is wrong with the stupid VC 2005?
before saying so, you'd better:
1) searched the forum; it's been said tons of times already that VC6 defaults to ANSI when VS2005 defaults to UNICODE builds.
2) asked "what's wrong with the stupid VC6 ?". because, yes, VC6 is far less standard compliant that VS2005, hence it accepts mistakes without complaining, when VS2005 now will tell you YOU made an error.
3) understood you development environment before incriminiate a tools which only does what you tell it to do.
|
|
|
|
|
Hi all,
I tried to get information from sensors by WMI functions but it doesn't work.
(I used such functions: VoltageProbe, TemperatureProbe).
I want to know how to get information about temperature, voltage and fan's speed.
And how to create universal programm that can detect such information on the most computers??
Thanks!!
|
|
|
|