Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

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 Article


Debug 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 Article


Write 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 Article

c++ 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 Article


Project 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 Article

Panel 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 Article

Epilog o.O

The classpublic ref class Solution { String ^ Name; String ^ File; String ^ Folder; public: DateTime DateCreated; public: DateTime DateModified; public: String ^ Description; static...

View Article


tuple-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 Article


Treat 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 Article

How 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 Article

console 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 Article

Complete 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 Article


Closing 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 Article

How 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 Article


VS2010 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 Article

C# 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 Article


Sometimes 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 Article

FolderBrowser 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 Article

Passing 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
Browsing all 15302 articles
Browse latest View live