Answer Questions
helen b Writing MMC Snapin in Visual C++ 2005
Hello, I'm trying to write a MMC Snap-in extension using Visual C++ 2005 Beta 1. But different from Visual C++ 6.0, I couldn't find ATL object of MMC Snapin. It's not supported any more Where is the MMC Snap-in wizard then Any suggestions how shall I do that Thanks! But anyway are there any ATL wizards for vc 2005 so that I'm able to use them to write a snapin in C++ not in any language so I can feel unlimited. ...Show All
Instalectual Compiling C Project with /clr in VS2005
Hello, I have been using VS2003 to comple C projects with /clr and generate CIL binary, which I use to generate code for an embedded processor. In VS2005, compiling C projects to CIL is no longer supported. It seems the only possible way is setting the compiler options to compile everything as C++. Now, my problem is whenever I compile even the simplest C files (e.g. int main(){retrun 1;} ) in this way, after all optimizaitons, the output ...Show All
Lovenish Rolawan PurifyPlus reports FMM in STL of VC++ 7.1
Hi all, I run my VC++ 7.1 generated dll under PurifyPlus' control. I get a whole slew of FMM (free memory mismatch) errors for memory chunks allocated by the Microsoft STL. Unfortunately I haven't got the stack trace available right now but I could regenerate it if it's necessary. One example code snippet looks like this (details omitted): class ComponentFactoryBox { ...Show All
Jim Blackler cli::array memory structure
As http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/datastructures_guide.asp says we have: "The contents of an array are stored in contiguous memory" Does it mean that if I declare byte [] buffer // in c# or I declare array < unsigned char >^ aBuffer = gcnew array < unsigned char >(size); //in C++/CLI both have same memory layout and structure ...Show All
iulmer winsock tutorial.. has anyone seen one?
Hi, I am trying to learn winsock, but I have problems with compiling sample programs (so as to check if that works), i tried Dev-C++ but it didn't work, now I am downloadinv Microsoft Visual C++ Express 2005, to try this, I think I include correct headers and libraries, however has anyone seen a winsock tutorial including not only theory and sample codes but what is most important now - how to set compilator Thanks for your help a lot. ...Show All
ilsandor VCMAME: compiles with VC2003, fails with VC2005
I'm trying to build the MAME source using Visual C++ 2005. I'm using the VCMAME project files from http://www.vcmame.net/ . I first built the project in Visual Studio 2003, then opened the project in VC++ 2005 and rebuilt. I only had to make a few modifications to the project, like adding _CRT_SECURE_NO_DEPRECATE to silence a bunch of warnings. However, one of the source files (winalloc.c) implements their own memory handling functions so ...Show All
Leon Bouquiet Impossible to implement interface class in different dll
I have the following type of scenario (a .net style interface class with a pointer to a native class in one of the function signatures) //native #ifdef MYDLLEXPORTS #define NATIVE_API __declspec ( dllexport ) #else #define NATIVE_API __declspec(dllimport) #endif #ifdef __cplusplus_cli public #endif class NATIVE_API INative { }; //managed public interface class IManged ...Show All
Mike95 C++ /CLI ASP .NET Web Project Template
Is there a web project template for developing an ASP .NET web application using C++ /CLI as the code behind I have begun using C++ /CLI for my windows forms applications and web services, but I would like to be able to start a web project the same way I do in C#. If this does not exist, are there plans to put one together in the future Thanks. No. (well not one produced by microsoft). If you need to ac ...Show All
Charles Nicholson a vector of pointers in a for loop
I'm currently getting a illegal direction error when using the following code. The error is coming up when I set up the for loop Code: int saveBook(vector<Address*> a, ofstream& out) { //For loop that writes to the temporary file in the correct //format in order for it to be read in to the progam again //cout << (*a).size(); for(int i = 0; i < (*a).size(); i++) { out << "/" < ...Show All
Sriram Subramanian - MSFT Would like to have a button open a new window or program
What i would like to have when im finished is a program that will have a main screen and that will open a another screen that will have several programs that will be all in one program instead of having to install all of them is this possible and how do i go about it James, No one will answer because all your questions are too general. These are steps you need to take before asking a question: 1. Try and solve it yourself 2. Look up MSDN ...Show All
Kevin Beck Importing Derived Classes from DLLs
Im trying to export a derived class from a DLL, so the dll code looks like following: class __declspec(dllexport) DerivedClass: BaseClass { public: int classmember; } Im trying to import this class from a Test winapplication, but it seems to be that I need to include a header file where this class is described. I have included one writing just the same code as I wrote before, but I get an error saying that it does not recogniz ...Show All
Steven Haggerty Migrating project from VC++ 6.0 to 8.0
Hi, I have trouble with migration project created under VC++ 6.0; it uses some old static libraries (.lib) which can't be recompiled with new version. Problem is that when I build this project under VC++ 8.0 linker complains that it can't find libc.lib. AFAIK there's no libc.lib in 8.0, only libcmd.lib (multithread c library). I got only header files and those old libs. One idea was to create DLL under VC++ 6.0 which will be linked to li ...Show All
tharkaway CG and Visual Studio 2005
When I try to build simple CG OpenGL application with rotating textured cube as a console application in Visual Studio 2005, I get the following linking error: ... 1>Finished searching libraries 1>Finished pass 1 1>Generating non-SAFESEH image. 1>Invoking CVTRES.EXE: 1> /machine:x86 1> /verbose 1> /out:"C:\DOCUME~1\jstacher\LOCALS~1\Temp\lnk21.tmp" 1> /readonly 1> ".\Debug\TestTextures_VS0 ...Show All
Nookie Compile multiple projects from the command line
How do I compile multiple projects from the command line If I don't use the "/project" option, the entire solution is being compiled. If I use "/project" option, it allows to type only one project. Thanks, Noam. In the Configuration Manager window, you can create a new solution configuration and you can filter for that particular configuration the projects that you don't wan ...Show All
klahking builds failing due to proxy file not regenerating for different platforms
I have a project that has both win32 and x64 platform targets. The project creates the proxy file from the idl file. However, when I do a batch build, some of the targets fail to build because the proxy file is not being generated when each target is built. Since the proxy file contains platform specific include guards, and it is not being regenerated for each target, builds are failing due to undefined symbols. I have changed the top-leve ...Show All
