Hi,
When I've built a project in release mode in VS2008. The execution time of running the project from the IDE(project > debug > start new instance) is much faster than running the exe(In my case, 80 seconds and 200 seconds). What could be the reason for this? Can I speeden up the direct execution somehow?
p.s. I had asked this here b...
I have the following code
int main()
{
cout << "Please enter your name..." << endl;
cin >> name;
cout << "Data type = " << typeid(name).name() << endl;
cin.get();
return 0;
}
According to the various textbooks and pieces of documentation I've read about the typeid operator, I should expect to read
"Data type = str...
Please tell me the best html editor with active x controls other than nbit and XStandard because there are problem with both of them. nbit does't work properly when copy/paste whole html web page in it. it missed body tag and all code before body tag and other doesn't support any type of formating.
...
I'm wondering whether this bit of code is exhibiting the correct C++ behaviour?
class Foo
{
public:
Foo(std::string name) : m_name(name) {}
Foo(const Foo& other) {
std::cout << "in copy constructor:" << other.GetName() << std::endl;
m_name = other.GetName();
}
std::string GetName() const { return m_nam...
really why it doesn't. it can help alot of programmers.
...
I've a peculiar issue here, which is happening both with VS2005 and 2010. I have a for loop in which an inline function is called, in essence something like this (C++, for illustrative purposes only):
inline double f(int a)
{
if (a > 100)
{
// This is an error condition that shouldn't happen..
}
// Do something with a and r...
I used to see Sleep(0) in some part of my code where some infinite/long while loops are available. I was informed that it would make the time-slice available for other waiting processes. Is this true? Is there any significance for Sleep(0)?
Thanks.
...
I am using the MFC Feature pack in Visual Studio 2008. I have an edit box (CMFCRibbonEdit) in a ribbon that I would like only to contain uppercase letters. I know that I can pass ES_UPPERCASE to the "Create" method, however "Create" is called from the Ribbon itself, and not explicitly by my code.
To add the edit box to my ribbon, I call...
I'm working on a Visual C++ 8 project on WinXP but
unfortunately I have only Visual C++ 6.0 available.
When compiling it,an error is raised:
"error C2065: 'RegOpenCurrentUser' : undeclared identifier".
Since RegOpenCurrentUser has been introduced as late as Windows 2000,it's not included in VC6 header files.I try to declare it myself an...
I have some projects tethered to MS VC6 [I understand it's a 10+ yr old compiler. I understand it's got some issues. It's what I have to work with, for now.]
In an attempt to automate some builds, I'm trying to get the msdev command-line compile to work. Everything looks to be working UNTIL the end, when it errors on the file 'afxres....
My C# method needs to be invoked from C++
Originally my C# method takes a parameter of type double[], but when calling from C++ it becomes a SAFEARRAY
In C++ I need to take data from an array of doubles, and populate a SAFEARRAY. I have not found any sample code to do this.
Any help is appreciated
...
If I use CreateEvent to open an event:
responseWaitEvent = CreateEvent(NULL, // no security
TRUE, // manual-reset event
FALSE, // not signaled
(LPTSTR)eventName); // event name
And this event already exists and has been signaled. Will this call reset the signal (because of setting initial state to FALSE).
Or ...
Does anyone have a custom visualisers (autoexp.dat) for a standard (not STLPort one) version of a STL for VS2005 would like to share.
The ones which are being shipped with a VS2005 quite useless - does not show a number of stored item, require a lot of expandings to get the container values, list goes on.
If you have a custom version o...
Hello,
i have timer implemented with boost (144 -> newest lib).
This timer is started within a boos thread. The timer also starts a thread
in which an io_service hosts deadline timer until thread is terminated.
so a continuous timer.
The boost thread which needs the timer is create from within DLL.
The DLL ExitInstance function is call...
Hello;
Basically, i want to write a windows form program like any other webcam's control program in c++ for a custom camera. this camera has some API like grab pictures and etc.
i have never done a camera application before, so i am a bit confused.
for the "preview" function like other webcam softwares, is it like just polling the...
I've just recently started working with Visual Studio this summer, primarily on CUDA and OpenCV related projects. Prior to this, I had been doing my development on Linux for CUDA using Makefiles and the common.mk makefile from NVIDIA.
So my question is as follows: I've not been able to figure out for the life of me what the difference...
I'm working on a large, inherited C++ (really, mostly C) project developed and maintained under Visual Studio 2008. Technically, in Visual Studio terms, it is a "solution" consisting of eight "projects", and therein appears to be the rub.
As I'm sure most of you know, Visual Studio grays out the code that it believes to be #ifdef'd out....
We have an active-x control developed using ATL with MFC support. Our active-x control shall be used in something called frame application. The frame application create its own active-x control and embed our active-x control inside it at runtime.
There are 20+ frame applications in the industry. Now the issue is that each frame applicat...
I am using Visual Studio 2008. I don't need to debug some DLLs in my project, so can I disable symbol loading when debugging a Visual C++ program? Does it help to make startup time faster when debugging?
The symbols are all local, so I don't have those slow loading problem, just want to make debugging faster and faster.
For example I a...
How is std::map implemented in Visual C++?
I know that some tree data structures just flag nodes as deleted when they are removed, instead of removing them right away. I need to make sure that my elements are never compared to elements which are no longer in the map.
EDIT:
I know that the implementation is probably correct wrt. the co...