|
To use SendInput () function, set the version of _WIN32_WINNT to 0x0500 in the project settings( Project Settings->c++ tab->Preprocessor definitions. add _WIN32_WINNT=0x0500 in that edit box ).
|
|
|
|
|
|
I think "top" is not good and if using the profiler, it seems no free download, any ideas?
|
|
|
|
|
If, as you say, you're using Unix, valgrind[^] could be useful - it's an open source profiling tool suite.
If you are using a compatible Unix system, dtrace[^] could be useful.
If you're using OS X, then Shark[^] could be used.
|
|
|
|
|
|
During work in visual C++ project some time Project corrupts and when reopen it then Classes information is lost in workspace bar even when Double click on Dialog then Class against Dialog doesnt open but shows Dialog "MFC Class Wizard" . classes Phisically reside in Project folder and only viewable from Fileview( option available in work space bar).
Plz if anyone have any solution to sortout it then plz help...........
|
|
|
|
|
Close the solution.
Delete all temporary files like Debug/Release folder, .ncb, .user, .suo, .aps.
Now reopen the solution.
This is assuming you are using VS 2002 or later.
If you're using VC 6.0, delete the .clw file.
«_Superman_»
|
|
|
|
|
<< Superman >> is almost right. In VC6, I delete the ncb file to get the class information back on the left.
The thread that processes code does tend to fall over. But to be fair - it's a darn tough job it's doing!
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi all,
I want to write a char buffer, actually binary stream, into a database. Can someone give some hint from where I've to start this. If someone know any article/tutorial about that please send it here.
I've already done that database connection and writing them some values in C++. But I've no idea about the binary stream writing. Someone says that I've write it as image (BLOB). I'm confusing with that.
Thanks a lot
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Check this link[^]. It talks about working with large data items. As usual it's poorly documented.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Actually what I want to do is, write a BYTE* buffer in varbinary(MAX) type in a database. Do you know how to do it.
Since the image type use separate data page internally I cannot use it for my application.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
In my understanding BLOB can be saved as varbinary
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Is that VARIANT data type is same as binary or BLOB? I'm not clear that.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi All,
I ported an application from VC++ 6.0 to VC++ 9.0.
When i move the exe and run on a different machine it says
"The application failed to start because the applcation config is incorrect. Reinstalling the application might fix the problem."
The configuration settings are
1. No Clr.
When i tried to change the CodeGeneration ->Runtime Libs to Multi threaded/MT It failed and prompted to keep it to MD
Any suggestions guys?
Thanks.
modified on Wednesday, January 21, 2009 7:35 PM
|
|
|
|
|
|
Hi,
Thanks for your information.
Installing .Net framework 3.5 should work usually.
If i am distributing my application for N systems, is it that i need to distribute vc++ 2008 redistributable insted of distributing only the .Net 3.5 framework.
Thanks.
|
|
|
|
|
Does anyone out there have any pointers or clues to help someone determine why the EXE can get oversized?
Does the MAP have enough information to do this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
I think there are 3 ways in which size of exe can be large.
1. Linking to static libraries.
2. Embedded resources.
3. Having large constant arrays/string in the code.
Of course size of exe is also determined by number of function and classes in code. I don't think there is an automated way to determine the cause of large exe size.
-Saurabh
|
|
|
|
|
Thanks for the list, I am pretty aware of all that.
It would be super handy if the debugger could tell you all that!
I wonder if the size of the OBJ's might render a clue?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Does dumpbin helps? I just tried it and it does show the content of each section in an EXE or OBJ file. It also show the summary of different sections. I am not sure if it is easy to find the source of data in each section.
-Saurabh
|
|
|
|
|
In addition to above, confirm you have not selected the "Link incrementally" option.
|
|
|
|
|
On a sidenote, the debug EXE -since it is stuffed with debug information and other "surprises"- will be much bigger than the release one. Can it be that you simply forgot to switch your configuration from DEBUG to RELEASE?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
if it only were that simple...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
I created a binary predicate
// binary predicate for searching by exp date
bool exp_LT(curvePoint<double> lhs, curvePoint<double> rhs) { return (lhs.getExp() < rhs.getExp()); }
so I could search a vector by _expDate rather than _mDate on the curvePoint class:
template<class _Ty> class curvePoint : public subscriber
{
friend fwdCurve;
friend bktCurve;
public:
void setValue(_Ty p) { _mValue = p; }
_Ty getValue() { return _mValue; }
void setDate(Date d) { _mDate = d; }
inline void setDate(long d) { _mDate = d; }
Date getDate() { return _mDate; }
void setExp(Date d) { _expDate = d; }
void setExp(long d) { _expDate = d; }
Date getExp() { return _expDate; }
void update() {}
// allow self comparison
bool operator<(const curvePoint<_Ty>& rhs) const { return _mDate < rhs._mDate; }
bool operator>(const curvePoint<_Ty>& rhs) const { return _mDate > rhs._mDate; }
bool operator==(const curvePoint<_Ty>& rhs) const { return _mDate == rhs._mDate; }
bool operator!=(const curvePoint<_Ty>& rhs) const { return _mDate != rhs._mDate; }
protected:
_Ty _mValue;
Date _mDate;
Date _expDate;
};
When I call
curvePoint<double> c;
c.setExp(myDate("01/01/2009"));
i = lower_bound(vector.begin(), vector.end(), &c, exp_LT); <---- Crashes here
The compiler throws an error (C2664). The message is
1>c:\program files\microsoft visual studio 8\vc\include\xutility(312) : error C2664: 'bool (RAIV::curvePoint<_Ty>,RAIV::curvePoint<_Ty>)' : cannot convert parameter 2 from 'RAIV::curvePoint<_Ty> ' to 'RAIV::curvePoint<_Ty>'
1> with
1> [
1> _Ty=double
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous
I'm guessing the compiler cannot resolve something about the templated curvePoint<double> parameter but am at a loss as to how to proceed.
|
|
|
|
|
mjackson11 wrote: bool exp_LT(curvePoint<double> lhs, curvePoint<double> rhs) { return (lhs.getExp() < rhs.getExp()); }
Don't you want those to be references?
led mike
|
|
|
|