I have a couple of isolated applications that I am writing that all rely on dlls that are also written by myself and team. Things were fine when we only had a few dlls but not the build output directory is getting rather cluttered and hard to navigate. I would ultimately like to have the output build directory contain the following str...
Hello all. I am a beginner with C++. I have a new project at work where I have to learn it, so I'm trying some things just to test my understanding. For this problem, I'm trying to read a file and then print it on screen. Super simple, just trying to get good at it and understand the functions that I'm using. I copied some text from ...
I have libraries which are build using VC++. I want to use the same libraries in a program and build in cygwin gcc compiler. Is this scenario will work?
...
Hello,
I am trying to upgrade a Visual C++ 2008 project to a Visual C++ 2010 project. However, when I attempt to do so, I receive the following error:
The following error has occurred during XML parsing: File: C:\Documents and Settings\t-aruns\Documents\Visual Studio 2008\Projects\test\test\test.vcproj Line: 9 Column: 2 Error Message: ...
Possible Duplicate:
Why isnt sizeof for a struct equal to the sum of sizeof of each member?
I guess similar (duplicate) questions must have been asked on SO before. But I'm unable to find them. Basically I don't know what to search for. So asking it here.
Why doesn't size of struct is equals to sum of sizes of its individual...
I am getting an error in Xcode when using templates in C++. Can someone tell me what is wrong?
The first version reports an error in Xcode, but not in Visual Studio.
// Version 1: Error in Xcode, but not Visual Studio
template<typename LengthT, typename VertexT>
int MyGraphAlgorithm(...arguments omitted...)
{
using namespace boost;
...
In one Solution, I have two VC++ projects. Project A has linker inputs that are .obj files compiled by project B.
Visual Studio (2008) always tells me that project A is "out of date," and prompts me to ask if I want to rebuild it, every time I want to run/debug/build/etc. Even immediately after building the entire Solution: I do a suc...
I have the following problem in a Visual C++ 9 program. There's a huge object that logically contains several subobjects. I can either store the subobjects inside the object or store pointers to subobjects allocated separately.
The key point here is that there's always one instance of suboject of each type in one outer object - it is al...
I have some code that is crashing in a large system.
However, the code essentially boils down to the following pseudo-code.
I've removed much of the detail, as I have tried to boil this down to the bare bones;
I don't think this misses anything crucial though.
// in a DLL:
#ifdef _DLL
#define DLLEXP __declspec(dllexport)
#else
#define ...
I have a library which is compiled in VS 2005 and I am trying to link it with one of the old VC 6 workspace, while linking I am getting following errors.
error LNK2001: unresolved external symbol _sprintf_s
error LNK2001: unresolved external symbol _strncpy_s
error LNK2001: unresolved external symbol _strcpy_s
error LNK2001: unresol...
First of, is making a Windows Form Application from the CLR section in the new project window called .NET or something else? I just want to know so I can search things on it better.
How do I distinguish between the individual buttons if I gave them both the same click function?
this->button1->Click += gcnew System::EventHandler(this, &...
Sorry for posting such a lowly beginner's question, but I just still don't know my way around Visual Studios yet. I'm trying to compile a code in C++ Visual Studios:
#include "Banana.h"
int main(int argc, char* argv[])
{
fruit::Banana banana;
banana.dance();
return 0;
}
and I'm getting an error
fatal error C1083: Can...
i have windows form app
2 text box1,2
2 button1,2
i have class person {have get, set (string ,int)}
and i want to declare
person p;
to see it in both two push button1,2
my problem is i declare
person p; inside buttons when buttons end
p.~person();is called
so i cant save value
and when i call p.get i get initial value
code
private: S...
I am new to .NET, and I want to create a simple application in .NET using VC++. I have to run this application in other systems. Do I need to install .NET framework on the other systems to run this application?
If I need to install, is there any other way to create and run the application without .NET framework?
...
In my project I have turned on treat warnings as errors and compiling using the -pedantic and -ansi tags. I am using GCC compiler. In this project I have to use a third party source code which has got lot of warnings. Since I treat warnings as errors, I am having a tough time in fixing their code.
Most of the warnings are about invalid...
i have following code in visual c++
#include<Windows.h>
LPCTSTR Caption=L"Application programming INTERFACE";
INT WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPPREVInstance,
LPSTR lpCmdLINE,int nCmdShow)
{
MessageBox(NULL,L" Welcome to win32 Application Develepment\n",Caption,MB_YESNOCANCEL| MB_ICONQUESTIO...
I'm working with a Visual Studio C++ project that contains a number of HTML resources. They are loaded by a method that looks like this:
LPCTSTR loadHTML(HMODULE hModule, LPCTSTR sResourceName)
{
HRSRC hResource = FindResource(hModule, sResourceName, RT_HTML);
if(!hResource)
return 0;
HGLOBAL hResourceData = LoadRes...
I need to build an application outside of my normal comfort zone (web/PHP/JavaScript). Should I use C++/C# or Visual Basic to create my application? I think that the syntax of C# is more like PHP, so that is why I'm thinking to go with C. But also, I have heard that VB is much more straightforward for building a semi-simple applicatio...
Ok so I might be totally barking up the wrong tree here as I'm not that up to date on Windows programming but here goes.
I'm trying to initiate a simulated keypress in a C++ project in Visual Studio 2010.
Essentially when the program receives a specific code string from another application (which is all being worked via many if stateme...
when using either the '.', '->' or '->*' operators is there any way of getting the name of the function invoked (or the name of the variable in the case of '->*' and everything goes.
EDIT:
Just to clarify I'm not talking about reflection but more something in the line of 'function' basically I want to create an overload of an operator (...