I make a structure just like
struct abc {
//any function or variable
} obje[20];
now I want that the each object of abc store in array. means that arr[0] contain obj[0] only; can it is possible. if it is possible then some one help me in this matter.
...
So it is easy to create a win 32 project and use boost. I did not tried it yet but I plan to. I wonder If I can use boost in CLR mode. Is it possible? Has any one tried?
...
why does thread procedure should be static or member function?
any valid reason?
...
VERSION 1
class Doh {
private:
static std::map<const std::string, const Doh*> someMap;
std::string stringValue_;
public:
Doh(std::string str) : stringValue_(str) {
Doh::someMap.insert(
std::make_pair<const std::string,const Doh*>
(this->stringValue_,this)
);
}
}
The above wa...
Hello,
I would like to know why when I try to create a handle to a USB flash drive, I receive a path not found error.
HANDLE aFile = CreateFile(_T("\\\\.\\F:\\"), GENERIC_READ, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (aFile == INVALID_HANDLE_VALUE)
{
printf("\n");
printf("Bad handle val...
im learning to make things to other windows like resize the ie or any type of window. the only problem i don't know how i can get or give messages to other windows.
so like i pressed a key in ie i would like to get that message to my program too!
any idea
...
I have an exe get crashed in release mode.i want to debug where the crashing has occurred ?.how will use in vc++ to analyse this crashing using release mode exe
...
I have an VC++ exe in Remote (customer end).They are repoterd that crashing has occurred.How to identify the problem cause without using the source code and i want to use only .pdb file to analyse .Please tell me how to use .pdb file for debugging.
...
C++ allows overloading operator new - both global and per-class - usual operator new, operator new[] used with new[] statement and placement operator new separately.
The former two of those three are usually overloaded for using customized allocators and adding tracing. But placement operator new seems pretty straightforward - it actual...
I've been bitten by this problem a couple of times and so have my colleagues. When compiling
#include <deque>
#include <boost/algorithm/string/find.hpp>
#include <boost/operators.hpp>
template< class Rng, class T >
typename boost::range_iterator<Rng>::type find( Rng& rng, T const& t ) {
return std::find( boost::begin(rng), bo...
Our C# application needs to launch a thirdpart (from our customer) executable (VC++) to do something. it worked fine in XP and windows 7 but it crashed in Window Embedded Standard 7. Following is the log from System event log.
Activation context generation failed for "C:\Ande\thirdParty\cogs2.exe". Dependent Assembly Microsoft.VC90.CRT,...
I have found that on Windows 7 64 bit, on a machine with a domain name, GetUserNameEx( 3, .... ) which should get the extended name format DisplayName (==3), into a buffer, works fine.
However, it does not work on Windows 7 32 bit, vm that is on a workgroup, rather than on a domain, it returns ERROR_NONE_MAPPED.
How do you read the per...
Using Visual Studio 2008 C++, how can I create a folder using code. For some reason, a simple CreateDirectory isn't working.
...
Hello,
I hope some one can help me, i'm trying to create an int[400000000] (400 millions) array on my application using visual c++ 2010 but it generates an overflow error
The same code runs on linux with g++.
I need this because i'm working with large matrices.
Thank you in advance.
...
We're developing a project that uses OpenCV library to track hand gestures and motion sensing. I'm confused whether to go for native c++ program or to use C++/CLI provided in .NET (VC++).
Performance is of utmost importance and heavy image processing is required. since we're planning to use the OpenCV extensive methods and the project r...
When I try to capture video from webcam using OpenCV, it opens a new window and the video is shown there. Instead of showing in a separate window, I want the video to be shown in a windows form element like picturebox. I am using visual c++ 2008 for developing windows forms. Plz help me.
...
I have to compile a Visual C++ solution from command line. I can't do it with devenv.exe but can install .Net Framework SDK. Can I use the solution and project files to compile from the command line? If so how?
...
I've just been beaten (rather hardly) on the head by some non-trivial warning from Visual Studio 2010 (C++).
The compilation gave the following output:
1 Debug\is.obj : warning LNK4042: object specified more than once; extras ignored
1 Debug\make.obj : warning LNK4042: object specified more than once; extras ignored
1 Debug\view...
I process some event, signaled by WFMO, and at this time it's signaled more N times. Would WFMO return once or N times?
...
Hello,
i'm currently trying to build an add-in which is similar to VSNewFile. So it's just a simple extension which provides a faster way to create new files. The problem with VSNewFile is that it doesn't work for C++ projects and i need it for that.
Here is my problem:
I'm unable to retrieve the absolute path of a selected directo...