Hello,
I hope that I can explain my problem well enough for someone to help.
Basically, I have a horizontal scrollbar (ranged 0 to 1000) and an edit control that represents the position of the scrollbar divided by 1000, so that the user can use either the scrollbar to select a range of numbers between 0 and 1 up to a 3 decimal precisio...
I am working on a c++ project that links to a static library. However, I want to use intel's TBB, which is only available as a dynamic library. I tried to set this up in visual studio but I can't get it to work. Does anyone have detailed directions to do this if it is possible?
...
I'm consistently running into an internal compiler error while attempting to switch from MSVC6 to MSVC 2008. After much work commenting out different parts of the program, I've traced the error to two lines of code in two different CPP files. Both of these CPP files compile successfully, yet somehow have an effect on whether or not the...
Hi Everyone,
I am currently a C# programmer and have been interested in learning more about C++ and data structures. I found the CS106B class offered free online through the Stanford Engineering Everywhere program which seems like it would be a good fit.
I've tried to install the library files they use for the class and keep gettin...
Hi all, I am trying to send data to a specific MergeField. The data are sent correctly. Each line of the data has for specific characters. For example the data to the field may be:
12345 FIRST\nABCDE.F SECOND
(it cannot get the newline so i just so it through character \n)
Now in the printed document each character h...
Is there any free tool that improves Intellisense and provides code snippet in vc++ 2008?
Please don't post commercial tools
...
I need a tool which analyzes C++ sources and says what code isn't used. Size of sources is ~500mb
...
I was reading another question pertaining the efficiency of two lines of code, and the (asker?, questioner?, querier?) said that he looked at the assembly behind the code and both lines were identical in assembly. Digression aside, how could I view the assembly code created when a program is compiled.
I'm using Microsoft's Visual C++, ...
It's pretty easy to use a library in VC++ 2008 if you create a project for it and build it alongside the other projects in your solution, but what if the library has too complex of a build process and must be compiled separately via makefile?
My library is like that, and while I've had no problem compiling it on the command line, I have...
When to use _TCHAR char types? _T(_TEXT) and L macros? What is the difference between them?
...
Hi all,
I'm creating a dialog with the resource editor of Visual C++.
When I run the test button of the editor, components of the dialog are displayed with a modern look, while when running the application that creates and shows the dialog, it's displayed with an old look...I'm just using WINAPI calls to display the dialog, not MFC.
Her...
Hello
Can you please tell me your way or give me a reference to best dialog and property sheet validation best practices in MFC application?
I have my own way to do it but I'm interested in any other opinion.
I heard that MFC DDX_xxx and DDV_xxx macros (and UpdateData() function) are not the best solution?
What about property sheet v...
Commence V 2.0 of this question.
My VC++ MFC application compiles and runs just fine. That is, until I switch to another window. As soon as my program loses focus, it freezes; I cannot switch back to it and if I move a window that is in front of it, my app window displays white in the space that the other window was covering.
Since I f...
I know how to perform this for C++/CLI and .NET in general but, C++ doesn't have Attributes. The scenario is this:
We want to provide some methods in the binary but we don't want all of our customers to use them. If a customer needs it, we can either tell him what the signature is or, send him another non-binary file.
...
I bring up a GetOpenFileName dialog, enter a URL to a SharePoint sever, and it lets me browse that server using the Web Client Service (WebDAV mini-redirector). I am trying to get the initial directory to come up as that URL, but it seems to ignore it (using OPENFILENAME struct's lpstrInitialDir. Local paths work fine.
EDIT: Paul re...
I just reorganized the code for a project and now I'm getting errors I can't resolve. This header is included by a .cpp file trying to compile.
#include "WinMain.h"
#include "numDefs.h"
#include <bitset>
class Entity
{
public:
Entity();
virtual ~Entity();
virtual bitset<MAX_SPRITE_PIXELS> getBitMask();
virtual void ge...
I have a C++ project (VC++ 2008) that only uses the std namespace in many of the source files, but I can't find the "right" place to put "using namespace std;".
If I put it in main.cpp, it doesn't seem to spread to my other source files. I had it working when I put this in a header file, but I've since been told that's bad. If I put it...
I hav created a com componet for some Display method in C# it returns a String List
as shown below. In v++ i hav used std::lst to catch the return value from Disp() but it
gives compiler error that Disp is not a member of class. I i make return type a s void then
it works fine. what i can modify so that Disp return a List and in mai...
Hi
Can any body help me in converting Interface Pointer to list variable in vc++ since i am getting the error while typeconversion
error 2440 "type cast" :cannot convert from '_bstr_t' to 'std::list<_Ty>'
so any one plz help me....
Thanks in advance.
Reply:
i Hav done liki this
in C# com i have done like
List Disp()
{
List...
I have just a few days to see if I can figure out how integrate with a third-party C++ API. While I've coded C++ once before, it was on linux using vim. This third-party API is windows-specific, and the minimal documentation available assumes the use of Visual C++.
I installed Visual Studio 2005 and created a new project, but I'm gett...