Answer Questions
zombie ambiguous symbol
Trying to compile a C++ WinForms Winsock related project with /clr option I get a few errors after adding #include <winsock2.h> statement. The reference is to a different header file: servprov.h . There is no direct reference in any of my files to this header. I verified it with quick find command. There is no reference to it in winsock2.h either. I do not know where the reference is coming from. Thus my first question is this: how come ...Show All
Ademaure ReadEncryptedFileRaw Problem
I currently want to read the encrypted file on NTFS file system through ReadEncryptedFileRaw and then write it on another location. whien i call openEncryptedFileRaw it returns successfully but while reading data from the file in ReadEncryptedFileRaw , after calling the call back it creshes i.e. give accesss voilation while reading a memory location. can anyone help me sample code is written here but i can give complete code as well if anyone ca ...Show All
Evangelos Source code to __ValidateEH3RN
For various reasons, I wrote my own DLL loader for my project. I load my modified DLL format by using VirtualAlloc and such, and handle all the sections and relocations. (Yes, Data Execution Prevention is handled correctly, flagging executable pages as executable with VirtualProtect.) However, I have a problem: exception handling doesn't work. Microsoft added code to the C runtime library that causes exception handlers to be verified as bein ...Show All
Nato72 What is COM and how do I use it?
I'm writing a logging/profile service in C# that is to be used by applications written in C++ and C#. I can't find any good info on what COM is or how to use it. Is it a language A protocol Part of the OS Also, it there an easier method to doing this other than using COM COM is a technology. I am sure you will find more information about it in msdn or just searching the web. e.g.: http://msdn2.microsof ...Show All
Gotham Need help with a funtion to take a name entered by a user
I want this function to take the name of the user and then display it. However it will only display a number when I run the program. I am new to C++ and programming for that matter so any help would be appreciated. char GetNameOfInvestor( char name) { numberOfYourFunctionsCalled++; Console::Write(S"Please enter your name: "); String __gc * input = Console::ReadLine(); return name; Hi. You seem to be starting out with m ...Show All
Merrill Groat Unverifiable Assembly Error
My application is a vb,net 2003 web service application. About 1.5 years ago, I got some help from MS support for adding autoproxy detection to my application. This consisted of 2 c++ projects called autproxy and GetIEProxy. These rountines helped my application to determine any proxy servers that needed to be addressed in my web calls from a client computer. This worked fine for a while but now I am starting to have problems such as "u ...Show All
Patrick Cournoyer template arguments issue
The MS C++ compiler version 12 does not accept a class name with a template argument as an actual template argument of another class. e.g. template<class in> class x1 { ... in var1; ... }; template<class in1> class x2 { .... in1 var1; .... }; int main() { x2<x1<float>> obj1; ..... }; ...Show All
evaleah 2005 Resource Editor no longer labels language of each dialog
Back in Studio 6 and Studio2003, when you would edit a dialog resource that had multiple language versions, the window title (Studio 6) or the tab title (Studio 2003) would tell you something like "IDD_DIALOG1 - Italian". This was very helpful if you had several language versions of the same dialog open at the same time. Studio 2005 now labels the tabs as "MyApp.rc - IDD_DIALOG1". This makes it much harder to be sure yo ...Show All
Ardayon MFC project with WinXP style menus and toolbars?
Hi. I asked this in a previous reply already, but the subject changed, and I wanted more people to see it. In VS2005, is it possible to create an MFC application that uses the WinXP sytle menus and toolbars What I would like is the steps to create a new MFC project that when I build and run it, it displays with the same "look" as a VS2005 forms application. I've been directed to use the manifest through which I can make other MFC ...Show All
Pete E. Why isn't this call working properly?
I'm building a project for myself really; however, this problem is sticking me in the side. Can anyone tell me why this particular problem isn't working #include "pl_en_stats.h" // in *.cpp file for icPlayerInformation_Data struct usage. // in *.h file for Class definition. class LoadGameData { private: char PlayerInformation; icPlayerInformation_Data* pl_statistics; public: LoadGameData(); bool load_SaveData_Open(); ...Show All
Zabi standard libraries
How do I compile a cross-platform code using standard libraries such as iostream, fstream, etc Cannot open include file: 'iostream.h': No such file or directory No this is not correct! You can create programs that are compatible with other compilers. Even this is not easy! You have to take a lot of things into account. I recommend to read a book about C++! #include <iostream> int main(int , ...Show All
KSLCam windows.h still not found even after everything
I have a program developed on an other editor/compiler that compiles and runs perfectly. As it is long and still need major additions, I wanted to use Visual C++, if nothing more than the fine editing features. I downloaded Visual 2005 Express, downloaded the Platform SDK, made the changes in the directories, made the changes to the vsprops file - and it still doesn't work. I can see the file in the folder, but how can I get the program to ...Show All
Soeren D. VS C++ MFC Application Exit Code
What is the best way to set the exit code value when exiting a C++ MFC Windows application (such as from the main menu) Is it appropriate to call the ExitProcess() function If so, where (in general) is the correct place to call the function so that the MFC application exits correctly (.i.e all windows are propertly destroyed and all class object destructors are properly called, etc.) On a side note, what is the best way to access the app ...Show All
Kitek OK, What is with the statements enclosed inside [] operator regarding threading?
I keep looking around to try and figure this out. I keep seeing code with something like [STAThread] on a line by itself. Now, I have figured out that it sets the type of apartmenting you can do. And you seem to use it like the using namespace statements to define if you are going to hae a sta or a mta, but where in the world does the syntax for this statement come from Is this strictly a COM feature in which it overloaded the [ ...Show All
totem_pty Dll problem
Hi all, not sure if this is the right forum, but here goes. I have created a Win32 dll in VS2005 C++ express. I actual call this dll from VB.net. On my machine (XP) that I develop the VB app and compile the unmanaged dll, I can call functions using PInvoke no problem. I have just tried running the app on a Win 98 machine and I am told that it cannot find the dll, but the dll is right there in the same directory as my exe, just ...Show All
