Possible Duplicate:
Why can templates only be implemented in the header file??
Hi,
I have a c++ project which consists of several header and source files. In order to modify the class with a template, I found that all the method definitions must be included in the header file itself, else resulting in a link-time error. What ...
Hi..
I'm developing a dll in visual-c++ for client side application to connect my pc to my android phone via bluetooth. I use this function to find my bluetooth service on the phone(see commented code!):
bool BlueRayXVR::findPairedService(GUID* guid, _SOCKET_ADDRESS* ret){
this->checkStartup();
HBLUETOOTH_DEVICE_FIND found_dev...
I have been playing with this webbrowser control example
I got it working and added some timers using ON_WM_TIMER.
Now I would like to access the m_Browser (CWebBrowser class instance) defined inside the protected CMyBrowserView class into a different class. (for example CMyBrowserApp in the code sample) and use .Navigate and other f...
Well here's a rather stupid question. Is Visual C++ JUST an IDE?? Or is it a language on its own for win32? What exactly would be the difference between the two? This I ask because I was trying out some of my old C++ code on VC++ 2008 and it wouldn't compile.
...
the develop environment is vs2008, the language is c++, when I release the problem,at beginning it run with out problem but after several minutes it stop and show error like that : HEAP[guessModel.exe]: Invalid Address specified to RtlFreeHeap( 003E0000, 7D7C737B ).
who can tell me the reason of the error. thank you very much.
...
I have a IE 7 button toolbar project on Visual C++. My question is, can my button have 2 *.rc files. Means, by default it will use the 1st *.rc file, and when certain condition achieve inside my *.cpp, the button will be using the 2nd *.rc file.
Is this allowed in visual studio or IE7?
edit: Both rc files has different information for...
Hey guys. Check out this piece of sample code.
#include "stdafx.h"
#include<conio.h>
#include<string.h>
class person{
private char name[20];
private int age;
public void setValues(char n[],int a)
{
strcpy(this->name,n);
this->age=a;
}
public void display()
{
printf("\nName = %s",name);
printf("\nAge = %d",age);
}
};
...
hi
i am writing an application filter for ISA server . filter is registering and install in
ISA server but I can't debug filter and logs filter functions.
I wrote a function for log message in text file. any function from filter doesn't log in file . I think these functions do not call from ISA server.
how do i debug my dll and how...
I've been following two tutorials on some Visual C++ fundamentals but they all seem to lack the information on how I get the intellisense going in Visual Studio 2010.
The following code snippet is what I have
#using<mscorlib.dll>
#using<System.Windows.Forms.dll>
using namespace System::Windows::Forms;
int main()
{
MessageBox::Sho...
My native raw C++ program uses MAPI to traverse the tree in the Exchange Server.
Sometimes when I call HrGetOneProp() on a IMAPIFolder* pointer to retrieve PR_DISPLAY_NAME it fails with HRESULT 0x80040115. It only happens for one particular folder, all other folders names are retrieved allright.
Outlook 2003 running on the same machine...
Hi, I am using *open_memstream* in a library of mine, but I would like to port this library to MSVC. It seems there are no equivalent function available, but is there something similar enough?
What *open_memstream* does is it takes a char** destination and size and returns a FILE* which you many write to, the data is stored in a dynamic...
What does the SQL Profiler logs contain?
Suppose that I am using SQL Server 2000 and do some transaction using VC++/ODBC connection. If a CDBException is thrown, will the profiler log contain information about why it is thrown?
Thanks.
...
Hi,
I am creating a program which first checks whether a particular program has been installed or not, if it's installed it continues to execute other code, if it's not installed then it installs the application and then proceeds to execute the other code.
How do i check programatically in VC++ that the application has been installed ...
Hi,
I am using Visual C++, and I am trying to include a file that uses BYTE (as well as DOUBLE, LPCONTEXT...) , which by default is not a defined type.
If I include windows.h, it works fine, but windows.h also defines GetClassName wich I don't need. I am looking for an alternative to windows.h include, that would work with VC++ and wou...
Good afternoon,
WinUSB is working well on the development computer that I am using (Win XP SP3). I am able to download new firmware to the Cypress FX2, and then connect to the new USB device once it 'renumerates'. However, if I've tried the same code with the WinUSB driver on a few other computers (Win XP SP3, Win7 x64) and they both ...
I have a vector class that I want to be able to input/output from a QTextStream object. The forward declaration of my vector class is:
namespace util {
template <size_t dim, typename T>
class Vector;
}
I define the operator<< as:
namespace util {
template <size_t dim, typename T>
QTextStream& operator<<(QTextStream& out, const ut...
Hi,
Have a Day class that contains members to hold data.
I have a RedBlackTree class that contains an array of Day objects.
Day m_list[MAX_LIST];
This code above causes this error:
Error 3 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const Month' (or there is no acceptable conversion) ...
Hi,
Please help me on this puzzle
i have class D inherited fronm class B and class C, these class C and Class D again inherited from class A. In class D i have to access function in class A. is it possible
...
I want to have a few strings in my c++ app and I want to be able to edit them later in the deployed applications (the compiled exe), Is there a way to make the exe edit itself or it resources so I can update the strings value?
The app checks for updates on start, so I'm thinking about using that to algo send the command when I need to ...
I'm using Visual C++ 2008 and I'm trying to expose a multi-dimensional array in a property grid but I'm not getting the functionality I expect or want.
property array<int,2>^ TestFixArr2D
{
array<int,2>^ get()
{
return testFixArr2D;
}
void set(array<int,2>^ value)
{
testFixArr2D = value;
}
}
What I get is Int32[.] Ar...