I'm looking for a method to get corresponding local path for a given UNC path. Microsoft provides a small library CheckLCL for this purpose. This library is not supported on all Windows versions. Does anybody know any open source method for this?
There is also MAPI function ScLocalPathFromUNC, but am not sure if it works on all platfor...
I get this error when trying to link a win32 exe project. I have linked in the lib that contains the code for this method. But still gets an unresolved symbol error.
error LNK2001: unresolved external symbol "public: bool __thiscall SharedJobQueue::AddJobA(class boost::shared_ptr<class domain::Job>)" (?AddJobA@SharedJobQueue@@QAE_NV?$sh...
I have implemented a named pipe server that communicates with multiple named pipe clients. Generally it works, but in some instances, the Client would not be able to get a valid result from TransactNamedPipe. The GetLastError code returned is 998 (Invalid memory access). Which is weird, because the handle I used for TransactNamedPipe was...
Hi everyone,
I have a Windows executable (native, not .Net) project that I'm trying to pass along to a new team member. It's a graphics modeling tool that uses the Qt widget library and OpenGL.
The project runs fine on my box but when we buld and link it on this new member's machine and he tries deubugging it, here's what he sees (not...
I have several maps containing a multitude of classes in my VC++ project, some of them default constructable, others not. When trying to build, I get a "no appropriate default constructor available" error. The problem is that the error is listed to occur in line 173 of map.cpp, which is the code for operator[]. It would seem that I'm acc...
I'm missing something fundamental, and probably both simple and obvious.
My issue:
I have a view (CPlaybackView, derived from CView).
The view displays a bunch of objects derived from CRectTracker (CMpRectTracker).
These objects each contain a floating point member.
I want to display that floating point member when the ...
I am in the habit of removing all warning reported in my code. I just like a clean build if possible. I used
#pragma comment(lib,"some.lib");
I get this warning:
warning c4081: expected 'newline'; found ';'
I am uncertain why that would create a warning. Could I get help on removing it?
...
hello
we everyday use toolbars on browser such as google's, microsoft students',...
i was wondering how to create one using vc++ ?
...
Hello together.
I have some trouble figuring out why the following crashes (MSVC9):
//// the following compiles to A.dll with release runtime linked dynamically
//A.h
class A {
__declspec(dllexport) std::string getString();
};
//A.cpp
#include "A.h"
std::string A::getString() {
return "I am a string.";
}
//// the following compil...
In Visual Studio 2008 (C++) I have a class destructor (Let's call this class 'A') which deletes a pointer to a different class (Let's call this class 'B').
it looks like this:
A::~A()
{
delete B;
B = NULL;
}
My B class has a pointer to the instance of A that created it. In B's destructor, I delete everything in B, except for ...
I need to build VC++ project (made in VS2008) from command line using MSBuild with additional .cpp file which isn't part of this project (doesn't listed in section of .vcproj file.
Is there are any way to do this? (e.g. just by passing filename to command line input).
Editing .vcproj file by my script is also is a option but I save it ...
I'm trying to build a very complex open-source project with VC++. The project consists of dozens of libraries and one executable depending on those libraries.
For some reasons VC++ linker doesn't want to see about 40 functions implemented in one of those libraries and reports "unresolved external reference" on each, so I can't link. I d...
I'm trying to compile a set of .c files from an open source project into a static library. I've created a VC++9 project file, set everything up as usual. I add two .c files into the project. They don't have any special compilation settings - all the settings are set at the project level and are set to default except that I turned off the...
Tried compiling and running this
http://msdn.microsoft.com/en-us/library/dd940324(VS.85).aspx
When the app runs two cursors are displayed on the screen, standard small Windows cursor and the magnified cursor as created by the parameter MS_SHOWMAGNIFIEDCURSOR in the CreateWindowEx call in the SetupMagnifier function.
The question is, h...
if I define my constant varibles in my header like this...
extern const double PI = 3.1415926535;
extern const double PI_under_180 = 180.0f / PI;
extern const double PI_over_180 = PI/180.0f;
I get the following error
1>MyDirectX.obj : error LNK2005: "double const PI" (?PI@@3NB) already defined in main.obj
1>MyDirectX.obj : error LNK2...
In the MSDN documentation for CComSafeArray::MultiDimSetAt, alIndex is documented as follows:
Pointer to a vector of indexes for each dimension in the array. The rightmost (least significant) dimension is alIndex[0].
In the documentation for CComSafeArray::MultiDimGetAt, alIndex is documented differently:
Pointer to a vector of...
The CComSafeArray::SetAt method provides a parameter to control whether the referenced variable is copied:
HRESULT SetAt(
LONG lIndex,
const T& t,
BOOL bCopy = TRUE
);
... but the CComSafeArray::MultiDimSetAt method does not offer the same parameter:
HRESULT MultiDimSetAt(
const LONG * alIndex,
const T& t
);
Two questions:
1.) Is...
Hi,
I am working on an application which is in 32 bit. This app is working fine in 32 bit machine .
But when I install it in 64 bit machine it does not work properly. So we planned to compile it in 64 bit configuration. We could compile it and tried to run, It works properly.
But problem is; we have a 3ed party library which is in 32 ...
I am new to open cascade,
I already displayed the 3d object and have Handle_AISInteractiveContext object.
Again i want to change the color by some external parameter.
How to do it?
...
I was wondering any of you has successfully done that before?
If yes, is anything I need to pay attention to?
...