i want to create functions what get the folder size. I write small function:
private: unsigned long long GetDirectorySize(String^ path) {
unsigned long long size = 0;
DirectoryInfo^ diBase = gcnew DirectoryInfo(path);
if (!diBase->Exists) return 0;
array <FileInfo^>^ files;
array <FileSystemInfo^>^ files2;
try {
...
Hi all
i want to know how to build ssleay32 and libeay32 from vc++, were to get the source code,and how to build it.
...
I'm working on an designer-heavy application (using Visual C++ 2.0, but a C# solution should still be relevant). My setup is this:
I have a UserControl named "Host"
I'm attempting a UserControl named "Child"
Child contains a property to a class whose type is defined in a different dll entirely, named "mytools.dll"
Child works just fi...
In Visual Studio 2008, I can specify a message to be printed when a breakpoint is hit (by right-clicking the breakpoint and choosing 'When Hit...'). When the program is run, these messages appear in the Output Window. I would like to know, is there any way to redirect them to a file?
Specifying >file.txt as a command argument to the pro...
Hey guys,
I am trying to learn Visual C++ 2008 and C++ at the same time to get involved with sourcemod, a server side modding tool for valve games. However I have never touched Visual C++ or C++ in general, and doing some preliminary research I am quite confused on these different versions of C++ (mfc, cli, win32), and why a lot of peop...
Hi All,
Normally most of the MFC (window based classes) are derived from CObject.
What does CObject do?
Why some MFC classes are not required to be derived from CObject?
...
Hi,
I am implementing IQueryCancelAutoPlay COM interface and registering it with the Running Objects Table from a Windows Service*.
My problem is that it never gets called when I insert a mass storage device (or any device really). Here's some more information:
My code for registering with the ROT:
Text::string clsIdString = Text::to...
Hi
there are some vs2005 c++ files in PJNSMTPCONNECTION Classes, but my application is in vc6,
now can any one tell whether CSTRINGA, CSTRINGW are available in vc6..
if not how overcome this problem
...
How to save an avi file from camera to any disk in vc++ using opencv
...
How to play the flash movie always from the beginning ?
Any way to rewind movie ?
I have use rewind() method for that but it didn't work.
Any help is welcomed....
...
Using VC71 compiler and get compiler errors, that i don't understand.
Here comes the example
class A
{
public:
virtual int& myMethod() = 0;
virtual const int& myMethod()const = 0;
};
class B: public A
{
public:
// generates: error C3241: 'const int &B::myMethod(void)' : this method was not introduced by 'A'
virtual int& A::myM...
Each version of Visual Studio comes with a specific version of the MFC framework, but I believe MFC SDK can be downloaded separately. Since MFC is just C++, is there any reason you couldn't use the latest version with an older version of VC++... I don't mean trying to get the ribbon working in MSVC++ 6, But we're on VS2005 and some of th...
Hello all, let me say first that I'm writing this question after months of trying to find out the root of a crash happening in our application. I'll try to detail as much as possible what I've already found out about it.
About the application
It runs on Windows XP Professional SP2.
It's built with Microsoft Visual C++ 6.0 with Service...
Does anyone know of any really good C++ Libraries for implementing a web services api over top of existing legacy code?
I've got two portions that are in need of it:
An old-school client/server api (No, not web based, that's the problem)
An old cgi application that it integrates with the client and server.
Let me know if you've ha...
I am trying to use FIX::Application along with SessionSettings.
The Fix server I am trying to connect to does not see any incoming connection. From my side I see a Logon Message being formulated in toAdmin() callback(which I print out and add certain fields to.
The Question is
1. Do I need to call some form of sendTarget in toAdmin?(I...
As I found out that I can use only numerical values in C++'s switch statements, I thought that there then must be some deeper difference between it and a bunch of if-else's.
Therefore I asked myself:
(How) does switch differ from if-elseif-elseif in terms of runtime speed, compile time optimization and general compilation? I'm mainly ...
Hi, experts,
I tried to reuse the .pch to speed the build using the following way:
use /Yc on stdafx.cpp to create the .pch files to a folder
exclude stdafx.cpp in the project, and modify the link option
It success in my machine, but failed in another, got the error message: error C2011: '*' : 'struct' type redefinition
So first I ...
Normally people say MFC is little clumsy. It makes UI development slightly difficult to maintain since it has lot of auto generated code. It has good architecture (doc/view) but is not transparent like Win32 programming to understand how window program works in the background.
So with this situation, is it good to extend the exposure on ...
The following code is generating warning C6284 when compiled with /analyze on MSVC 2008 : object passed as parameter '%s' when string is required in call to function.
CString strTmp, str;
str = L"aaa.txt"
strTmp.Format (L"File: %s", str);
I'm looking for a nice solution for this that would not require static_cast
...
Hi everybody!
i m a new programmer in .Net Profiler and Visual C++,
i read many forums and weblogs for .Net Profiling and i have this question.
my Profiler application must be a unmanaged code or i can use some class in .Net in my application? and what type of project i must create ATL with MFC Or ..?
another question is how can i re...