Microsoft Visual Studio 2008 is giving me the following warning:
warning C4150: deletion of pointer to incomplete type 'GLCM::Component'; no destructor called
This is probably because I have defined Handles to forward declared types in several places, so now the Handle class is claiming it won't call the destructor on the given object....
Is it good to define a new macro that craters my need of showing failed assertion to user and with just enough information for developers to debug the issue.
Message for user, what the
user should do with this message at last information for the developer
#define ASSERT(f) \
do \
{ \
if (!(f) && AfxAssertFailedLine(T...
Hi ,
I am writing amazon webservice but i am getting error S3StatusConnectionFailed when i use s3_put_object , I am able to create a bucket but when i want to upload file on bucket then i am getting error S3StatusConnectionFailed , what is this error i am not able to find solution pls help.
my code
const char filename[] = "c:\url_20...
I have a 'release with debug info' unmanaged c++ .exe (built with VS2005) deployed onto another PC, the .exe and .pdb are in the same folder.
When I try to attach to the process from VS2005, either locally or remotely from my dev PC, all my breakpoints become disabled. I don't get any warning/error popups which makes me think the PDB fi...
I have the following c# code
static void Main(string[] args)
{
List<Results> votes = new List<Results>();
}
public struct Results
{
public int Vote1;
public int Vote2;
public int Vote3;
public Candidate precinctCandidate;
};
public class Candidate
{
public Candidate()
...
I am working on the Sphere Online Judge problems (OK I am only on my 2nd lol) and using VC++ 2008 express and have just noticed the "code definition window". What exactly does this thing do? Is it any use to a beginner like me?
...
I am using the Win32 API and MS Visual C++ 6 to build a tree view of a directory structure, with check boxes associated with each tree view item. My goal is to be able to check a parent folder, and have that automatically check all of its associated children.
However, after digging through MSDN, I have not been able to find a control...
Hi,
How can I get Current user selection or current cursor location in HTML document? I am useg MSHTML interfaces in MFC.
Thanks. :)
...
When I'm trying to install "microsoft visual c++ 2003 redistributable package" getting an error "The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing,....." error message.
How can I solve it?
...
I've developed an application in VS 2003 (C++). But while running in a fresh windows xp machine, getting error:
Microsoft Visual C++ Runtime Library
Runtime Error!
Program:
This application has requested the Runtime to terminate it in an unusual way....
What will be the reason for getting this error and how can I solve it? Please h...
I am new to C++ and I have some confusion regarding this program. I am running this in Visual Studio 2008 as win32 console application.
#include <iomanip>
#include <cmath>
#include <string>
using namespace std;
#define PI 3.14
int l=1;
int x;
void main()
{
do
{
cout << "cho...
Hi!
I have a Visual Studio C++ project that relies on an external dll file. How can I make Visual Studio copy this dll automatically into the output directory (debug/release) when i build the project?
Thanks!
...
WHen compiling in visual studio the compiler outputs this at what seems to be its own discretion:
1>Generating Code...
what is it doing here exactly?
...
I have a COM class CMyCOMServer implementing IMyInterface in one application, both with correct GUIDs. CMyCOMServer::QueryInterface will return S_OK (and cast itself to the right type) if IUnknown or IMyInterface is requested, otherwise it returns E_NOINTERFACE.
In another app on the same PC, I call:
HRESULT hr = ::CoCreateInstance(__u...
This MSDN article says that if my application loads VC++ runtime multiple times because either it or some DLLs it depends on are statically linked against VC++ runtime then the application will have multiple CRT states and this can lead to undefined behaviour.
How exactly do I decide if this is a problem for me? For example in this MSDN...
Hi,
I have been trying to build the sample code in platform SDK (directshow - AMCap) on visual studio 2008. i tried doing almost evrything but everytime i keep getting new errors. it is either a ' cannot find abc.h ' or a syntax error ! but the compiler is working fine. can someone tell me what i should do from scratch after installing p...
Hi ,
i got to do a task that is to find out process /exe/application running in the background.
ie:the process is running but do not have any UI/ Window visible although its an windows GUI application . i thot of reading EXEheader. The header contains a field called 'Subsystem'and application is to run under and the type of interface it...
Hello everyone,
I'm trying to learn how create new threads and run them. I need to pass a few variables into the function that is run on the new thread but I can't find out how to actually pass anything to that new function/thread.
I'm following http://www.devarticles.com/c/a/Cplusplus/Multithreading-in-C/1/ but it only goes through h...
I was struggling with the issue described in this question (declaring a template function as a friend of a template class), and I believe the 2nd answer is what I want to do (forward declare the template function, then name a specialization as a friend). I have a question about whether a slightly different solution is actually correct o...