the Size of struct in Visual Studio 2008 C++
#include "stdafx.h" struct SS{ int a; int b; char c[50]; }; int _tmain(int argc, _TCHAR* argv[]) { int sizeA = sizeof(SS); int sizeB = sizeof(int)*2+sizeof(char)*50; }//The sizeA = 60 Not 58?Thank u...
View ArticleDebug C++/CLI DLL loaded dynamically
I'm trying to debug a mixed C++ Solution. The startup project is a native EXE which load dynamically (LoadLibrary) a C++/CLI DLL (the other solution project). The Debug "working folder" for both...
View ArticleWrite data at beginning of new file?
I use the following code to create a new file and write data:ofstream outfile("out.txt") // line 1 outfile << "b" << endl; // line 2 outfile << "c" << endl; // line 3 // line 4...
View Article[UPDATED]missing ';' before identifier 'IDENTIFIER_NAME'
Hey!!!Wait, the code seems to be big but actually its not!!! ;)http://pastebin.com/mLQeckir - Complete Output Log - all errors are there hereusing namespace System; using namespace...
View Articlec++ project reference to source files in another project in the same solution?
I have a solution in VS 2010 that looks like this:Solution:-->ProjectA c++ winform generating an exe-->ProjectB c++ winform generating an exeProjectB inherits a Form from ProjectA. Hence, in...
View ArticleProject Migration from VC ++ 6.0 to VS 2008
Steps to migrate the code from VC ++ 6.0 to VS 2008? Please let me know. I need to migrate teh VC ++ 6.0 code to VS 2008 professional. I am getting lot of compilation errors. Where can I find the...
View ArticlePanel XY to Form XY - Move with Mouse
How do I make the parent form move when the user drags a panel inside the form??Can I do something like Form>Location>X attach to Panel>Location>X or something??Or use the panel mouse...
View ArticleEpilog o.O
The classpublic ref class Solution { String ^ Name; String ^ File; String ^ Folder; public: DateTime DateCreated; public: DateTime DateModified; public: String ^ Description; static...
View Articletuple-Argumente Anzahlbeschränkung
Irgendwie habe ich mich gefreut, als ich VS2012 installiert habe, dass jetzt endlich C++11-Unterstützung vorhanden sein soll (ok, über das UI habe ich mich weniger gefreut, was denkt man sich wenn man...
View ArticleTreat linker warnings as errors
I am using Visual Studio 2012, I want to catch all warnings as errors. Therefore, I turned on the /WX options to treat all warnings as errors. However, it appears that it is applicable only to warnings...
View ArticleHow can I change the directory for resource files?
Currently my application reads some ini files in run-time. These ini files are located in current project directory.Can I configure the project so that during debugging in VS the app searches for ini...
View Articleconsole app error - No such interface supported
I have a VS 2010 C++ application that is developed as a console app. When I build the application and run it on my developmetn PC, the application runs as expected. When I take the EXE and put it on...
View ArticleComplete Process Control & Info
What I am doing??Running a server application for debug purpose and app will display all the info.What I want??*Show all the variables with their values at run-time*Show current stack,etc*Collect...
View ArticleClosing MFC application with OnQueryEndSession
Hi,I'm currently working on a Windows application that automatically run at startup. It's a fullscreen application (MFC app developed in C++ with VS2005) and the only way to shut it down is to press...
View ArticleHow to save the text file in the Documents folder
In a CLR project, windows form,I use SaveFileDialog control and richTextBox->LoadFile to save a text file:private: System::Void viewlog_Load(System::Object^ sender, System::EventArgs^ e) {...
View ArticleVS2010 locks up after C++ project upgrade
I just upgraded an old Visual Studio 6.0 C++ project to VS 2010. I was able to get the solution to compile successfully. Obviously the code is unmanaged C++. However, I'm trying to make changes to...
View ArticleC# to VC++ - Toolstrip
This C# code is generated by a Toolstrip Customizer ToolI don't know C#, so I want someone who knows to convert the code to VC++.Just one exampleof one color and the rest I will do.class XPR_TS_RENDER...
View ArticleSometimes while exiting MFC MDI application gets crashed
Hi All,In one of our MFC MDI (Multiple Document Interface) application, while displaying a dialog box some times it gets crashed on Windows 7.This problem occurs some times not every times, from the...
View ArticleFolderBrowser Control like in Visual Studio 2010
The usual FolderBrowserDialog gives me a TreeView of files.I want to have a folder browser like the one in Visual Studio which is actually more user-friendly.Is there any special component for that or...
View ArticlePassing CList to COM (in IDL)
Hi,I have a CList in a MFC project, and want to pass it to an in-proc COM server to populate its contents. The COM server supports both MFC and ATL.How could this be done? I believe the IDL file will...
View Article