Answer Questions
Balascandent building hello world as dll with Microsoft Visual C++ Toolkit 2003 command line
Hi, I am not an expert building application on windows. I am trying to build a simple dll using Microsoft Visual C++ ToolKit 2003 on the command line. My environemnt is setup correctly. I am able to compile C program but not C++ Here is what am I doing: The source code is the following: #include <iostream> using namespace std; int hello() { std::cout << "Hello" << std::endl; return 0; } and I run the following ...Show All
Umachandar Jayachandran - MS Unmanaged C++ code in VS 2005 changes?
Hi all - Our company has an application that is written in unmanaged C++ code that was built using Visual Studio 2003. The app must remain using unmanaged code for now. Are there any advantages for us to switch to Visual Studio 2005 for unmanaged C++ Disadvantages Any new features that 2005 can do for us Remember, all we care about it unmanaged C++. Thanks, Ethan Yes, there benefits which include b ...Show All
Lalitg14 Refering API Dlls
Hi, I have a very basic doubt. I'm having a static api dll and a header file for its function prototypes. how can i call it from a vc++ project. (I need very basic information like where to change the configuration to include that dll to project)... Advance thanks... Muthu R. Krishnan Hi! Basically you must #include library header file into your source to be able to call library functions. Plus you must add .lib file to the l ...Show All
Chen Hao unable to find ximage.h file
hello frnz, i have downloaded 1 project from net. when i run its exe, it runs fine and when i open the code in studio and try to run it from studio, it gives an error "Unable to find ximage.h header file" when i included the file after downloading it from net then it gives error unable to open it gave me error that " cannot open cxImaged.lib ". i am not able to find this file. please tell me where i am doing w ...Show All
StevenBerr Mixed c++ TypeLoadException Internal limitation: too many fields.":"<Module>
When I load my mixed c++ dll using Assembly.LoadFile from a C# application I get a TypeLoadException with message "Internal limitation: too many fields.:"<Module>"" How can I possibly know which type it is and what could be the problem Hi, I also belive that 've also run up against this limitiation. My situation is a little different. I have an .exe I'm building with /CLR. It links against many static libs.&nb ...Show All
Steve Jensen Can you use the Base Class Library from unmanaged code?
Can you use the .NET Framework Base Class Library from unmanaged C++ I would like to know because then I can do Windows Forms in asm to have a laugh about. It will be very ugly, like COM in asm (urgh), but I don't care: it is just a bit of fun for me. Thanks Well yes you can and doing this does enable you access to the .NET FX from native C++ but by far and away the easiest way to implement a Windows Form is to ...Show All
Steve Stirrup edit & continue
Hello, I converted all my projects from VC7.0, but in VC8.0 edit & continue don't work anymore. Allways when I try to change code while debugging, independent of my changes, I get the following dialobgox Edit and Continue Edits were made which cannot be compiled Click Edit to fix the code Click Stop to stop debugging Click ignore to continue without applying the edits Any Ideas Greetings Markus ...Show All
Brian Trexler byte array to char array
this is probably to many steps to accomplish this and if there is a better way then i am all ears. anyway its not working as expected. I am reading 120 bytes starting from posistion x to x+120 to a Byte array. Then i am copying that Byte array to a Char array, at this step i am losing some of that data. I am then converting that Char array to a String*. What am i doing wrong here BinaryReader* FileReader = "new File to open" ...Show All
Asifkhan75025 error LNK2019
I am migrating a program from Microsoft Visual C++ 6.0/Compaq Visual Fortran 6.6 to Microsoft Visual C++.NET/Intel Visual Fortran 9.1. When I try to debug the program I get: Linking... Runsim.obj : error LNK2019: unresolved external symbol _IFSM referenced in function "protected: void __thiscall CRunSim::OnStartSim(void)" ( OnStartSim@CRunSim@@IAEXXZ) Runsim.obj : error LNK2019: unresolved external symbol _PRTREPORT referenced in function "pro ...Show All
Jae Suggestion/Functionality - Office Workbook/Worksheet to have similar operations as other components.
Geoff Darst of the VSTO team suggested that I post this suggestion here: When clearing is required on other controls such as textboxes, one can simply call clear to clear the whole box. There is a similiarity found on other controls or even class components where the ability to clear the whole item is acheivable without defining specifics of what to clear . That similiarity ends with the classes that handle the operations found with dealing with ...Show All
Michael Iacoviello Accessing C# Application Configuration from a C++ Class Library
I'm using the VS2005 Release candidate and I need to access the configuration settings in the .Net main application (C#) from a .Net class library written in C++. I can't see any simple way of doing this - I tried moving the configuration to a C# class library so that I could reference and therefore access it from the C++ class library but that didn't work. Any ideas Thanks Mark Take a look at this post: http ...Show All
straylight Does the Visual C++ 2005 compiler support Multi-Processor-Systems?
Hi, does the VC++ 2005 compiler support a multi-processor system I mean uses the compiler both processors in a dual-processor machine to improve compile time Thanks. yes, just try using /MP on the command line of the compiler - works in VC2005 (undocumented), and is officially supported in VC2008. No: the Visual C++ 2005 compiler itself does not take advantage of multiple pro ...Show All
HonzaHornik Question About Headers
I want to use VSC++ for programming C. I know C isn't fully support cause the lack of MS deciding not to add the c99 which i believe is stupid. But I was wondering is there a way I can use my own C headers and libraries to build that are c99 and use it with VSC++. I have the Visual Studios Professional version. And change the compiler cause i don't wanna think i spent so much money for this and I can't use it. Cause of this problem. ...Show All
Patrick Covert Atlthunk.lib
I'm triying since this morning, to compile a GPL app written in C++ with VC6. But I'm using VC++2005 Express. I've download and installed with succes the PSDK. I've fixed some problems in SDK headers . And I've commented in atlbase.h the line //#pragma comment(lib, "atlthunk.lib") . But, when I try to compile, I've linker errors. And I've seen in a post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=322284&SiteID=1 ) that ...Show All
thawzin How to receive CListCtrl header notifications
Visual Studio .NET 2003 & MFC. I want to receive HDN_ENDTRACK header notifications in my CListCtrl-derived object. So far, I have not had any luck. I've read some threads on the Internet that suggest that it's not so straight-forward. Note, the other header notification that I am catching (HDN_ENDDRAG and HDN_DIVIDERDBLCLICK) seem to work. Any suggestions would be appreciated. I should probably expand on my previous post that I've use ...Show All
