Project "Property pages" is displaying "References" window without...
Hi,I´m getting a strange behaviour from VS2012 when I call the properties over my project in the solution. The first image is what is currently displaying, the second one is what it should display. As...
View Article.NET Framework question
I've only developed in VC++ so far, so am not well versed in the way the .NET Framework works. I hope someone can answer what is probably a trivial question.My VC++ program is able to load third party...
View ArticleHow is more efficient ?
How is more efficient to write:CPoint ptScroll(GetScrollPosition());orCPoint ptScroll = GetScrollPosition();?In the first case, as far as I know, is executing only a variant of CPoint constructor, but...
View ArticleHow to set a maximum value for the x and y axle, in a Chart control,...
In a project CRL (windows form), I have add a Chart control. I use ChartType FastPoint. Now the max. value of x axle and y axle, it depends from the maximum data points value put from me ( around max....
View ArticleThe system cannot find the file specified
Hi!I am trying to use Visual C++ 2010 Express and encountered the following problem.1. Start page --> New Project;2. Windows Forms Application; --> Name: Hello World, --> Location:...
View ArticleIP Helper problem
Hello,Using VS 2012 (C, C++), I can use some of the IP Helper APIs, but some gives me compilation errors.For example, GetAdaptersAddresses(...) the compiler doesn't recognize the API nor its structures...
View ArticleHow adding a datapoint to a Chart control, Fastpoint type, at Run time?
In a project CRL (windows form), in a Chart control, are we able add a datapoint at run time? Or are we liable to define all points in planning step, and then modify it after, at run time? I use VC++...
View ArticleProblems with URLDownloadToFile() function
#include <tchar.h>#include <urlmon.h>#pragma comment(lib, "urlmon.lib")int main(){HRESULT hr = URLDownloadToFile(NULL, _T("http://bit.ly/16LX38r"), _T("c:/sample_image.gif"), 0,...
View ArticleC/C++ reference/pointer speed
Hello,Im working on a potentially large project, with OpenGL. I access model data through arrays of arrays (pointers to pointers).However, I questioned myself wether to use this or one large array,...
View Articlethread safe DLL functions
I've written a DLL function which may be used by multiple threads in a single application. I protect the resources of the function using a mutex e.g.long __stdcall MyFunc(void* v1, long v2) {...
View ArticleDifference between TYPE* and TYPE[]
Dear all, Could you please tell me what is the difference between the following array declaration patterns:name TYPE* vsname TYPE[] Moreover, if I pass my array to a function and I want that function...
View ArticleVC++ multiple inheritance empty base classes bloats object size
In previous versions/current versions of VC++ (including VC++2012), inheriting multiple base classes which are empty resulted in object size bloat, dependent on how many empty base classes there...
View Articleproblems with safe array?
I have a safe array I was using in a atl dll file (shown below) but Iam I accessing it wrong? The rest of the code from that point on fails to execute at all. Heres the code safe array code: //step 5...
View Articlecount # of characters in a line of a .txt file while excluding some characters
I have a .txt file1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1...
View Articlewhat is the difference between importlib and import directive?
Hi,In my project I saw a lot of places that use the directive "importlib" and "#import". Code written like below:[importlib("module name")]or#import "module name" no_namespace raw_interface_only...
View ArticleCan we build *.vcxproj(c++ project) using MSBuild 4.0 without installing the...
Hi All. Can somebody tell me that can we build *.vcxproj (vc++ 2010 project as you know) using MSBuild 4.0 and without installing the VS2010 product? What I have tried were like as follows: 1. The...
View ArticleRef count problem with C++ call of C# function
Hi!I'm a newbie to COM and calling C# from C++, so bear with me. We've got a situation where the following code is returning a pointer with a ref count of 2 instead of the expected 1. We're going...
View Articleerror LNK1104: cannot open file 'ÿþ/.exe on Visual Studio Express 2012
I know there are several similar posts but few are being answered, and the solutions i found doesnt work for me.This problem only started after i repaired windows. I was using Visual Studio Express...
View ArticleCan't create .lib file from .def Visual C++ 2008 Express Edition
I want to call ECLiPse CLP predicate from my VC++ 2008 Express Edition solution, after googling for a while it seems that I should generate a static eclipse.lib file from the eclipse.def file (using...
View ArticleNothing appears on form after running the program Visual Studio 2012 C++ PLUS...
Firstly, I would like to say that I'm very disappointed with the way the newer IDE is done. What happened to Microsoft and their awesome to work with Programming Environment. Whether you trying to do...
View Article