Hi,
I have a dynamic library that works fine, and I would like to use a QObject in it. After including the "qobject.h" header, I compile adn evrything is fine. But when I try declaring a QObject, the compiler always gives me a "identifier not found" error. I tried foward eclaration of the QObject class, it did not help. It's weird becaus...
I'm learning C++, and know a little bit of Visual Basic and an Delphi.
But I want to know, is there some program like Delphi, but for C++. Something where you can drag a button to a form, double click it, the like in Delphi and VB: opens a code editor and you edit the code of the button, but with a similar code of C++?
I'm using Windo...
I'm trying to make a pop up message box with "Hello World" written on it.
I started off with File>New Project>Visual C++>CLR>Windows Form Application
Then I dragged a button from the toolbox onto the form, double clicked it
entered
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
MessageBox("Hello Wo...
I opened hello.cpp. Why isn't there File -> Compile -> hello.cpp? What is an other easy way, if any?
...
I'm trying to build a simple .Net wrapper around some basic C++ code.
The C++ code does not rely on anything in the vcredist dlls, so I'm wondering if I can setup my project, so it doesn't require those dlls to work ?
I'd hate to have my users download and run vcredist, just for a simple DLL to work.
...
hello, what C++ functions should i use to output text to the "Output" window in Visual Studio?
i tried printf() but it doesnt show up.
thanks!
...
I want to learn C++ for windows but have no idea where to start; there seem to be so many different technologies that have utterly confused me: Win32, MFC, ATL, STL etc. I know a good deal of C# and Java, no C and a small amount of ANSI C++ (datatypes, loops, classes and OOP), but when I look at other people's code or try to mess around ...
I found MSVCR90D.dll not found in debug mode with Visual C++ 2008 question but none of given answers really gives answer to the question. Most of them point to turning off incremental linking but don't explain the true cause of the error and how it can be fixed without turning off incremental linking.
I'd like to mention that my situati...
Okay, so I have a legacy Codebase and an old Visual C++ 6.0 Standard Installation CD. I want to install that on my Windows XP SP3 System.
Is there anything I would need to avoid or to download besides SP6?
Are executables created with VC6 compatible on Vista and Windows 7? (I know that there is no 64-Bit compiler, and that's fine)
(I ...
I know this sounds bad but how can I disable/suppress a specific warning for all the projects in a solution. All of my projects are VC++ projects. Is it possible? If yes, how can this be done?
Environment is Visual Studio 2005
...
Compiling...
StdAfx.cpp
Compiling...
MotleyFool.cpp
StockBar.cpp
EditQuote.cpp
MFToolbar.cpp
ReflectionWnd.cpp
Generating Code...
Linking...
LINK : fatal error LNK1104: cannot open file "odbccp32.libcomctl32.lib"
Error executing link.exe.
MotleyFool.dll - 1 error(s), 0 warning(s)
am trying to develope a IE toolbar. wit the help of.
...
I'm new to MFC and is a bit confused with the new features of "MFC feature pack." Through the wizard I now have an application that looks like an IDE - has a dockable file explorer on the left side and a dockable properties window on the right side. I'm able to get the selected items on the file explorer window through ON_WM_LBUTTONDBLCL...
I am developing for a SH4 based device that can run either CE 4.2 or CE 5.0. As per my previous question, I can target these devices using the Standard SDKs under embedded visual C++ 4.0, but I cannot debug over ActiveSync.
I have also loaded Visual Studio 2008 (SP1), but cannot load these SDKs up, and hence cannot target my device. I...
I am using SQL Server 2000. I have a database with n number of tables in it. I have configured a maintenance plan. If I enable integrity check and run the plan, I am not able to enter any data through VC++/ODBC.
Is there anything I have to check?
...
Hi All,
Iam trying to compile rtmpd using VS2008 Iam getting this error.
Error 63 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int \variant.h 87 lib
Iam a newbie to VC++, looking for help.
code is here
#ifndef _VARIANT_H
#define _VARIANT_H
#include "utils/core.h"
#ifdef LOG_VARIANT_MEMO...
In a Win32 API C++ project, I have a dialog with a tab control (3 tabs) and 3 dialogs that are children of the tab control. I load the main dialog with tab control using DialogBoxParam, and the child dialogs from resources with CreateDialogParam. The main dialog appears with the child dialogs. Clicking the tabs shows/hides the correct...
Trying to port java code to C++ I've stumbled over some weird behaviour. I can't get double addition to work (even though compiler option /fp:strict which means "correct" floating point math is set in Visual Studio 2008).
double a = 0.4;
/* a: 0.40000000000000002, correct */
double b = 0.0 + 0.4;
/* b: 0.40000000596046448, incorrect
(0...
Hi,
I'm tring to migrate my code from VCpp 6 to VCpp 2008 express but when I build the solution I receive this error message:
icl: warning: problem with
Microsoft compilation of
'c:\Desenvolvimento\DFF\Base\\version.cpp'
1>C:\Arquivos de programas\Microsoft
Visual Studio
9.0\VC\include\string.h(69): error: expected a ";" 1>
__DEFINE...
Hello. Coming from c#, where classes instances are passed by reference(this is, a copy of the reference is passed when you call a function, instead of the integral value), I'd like to know how this works in c++. In the following case, _poly = poly; is copying the value of poly to _poly, or what? Thanks
#include <iostream>
#include <stdi...
I have a Visual Studio 2005 C++ project, it is a console application.
I want to start getting bits of the code under a test harness but I've run into some issues that I don't know how to best handle.
I don't want most of my testing code to end up in the normal .exe in production so I thought would be best to create a separate project f...