Answer Questions
Glen Wardrop __event alternative
The following page : http://msdn2.microsoft.com/en-us/library/6f01ek09.aspx says that __event -based event handling is deprecated. In that case, what is the best way to do event handling I have a class HWClass, that talks to a hardware device. Several other classes need to read from this hardware device. However, the reading is asynchronous and HWClass needs to notify the calling object if the reading process is finished. (Bt the way, this ...Show All
Frederik_VL float to bool, bool to float conversion
Good day to you, Is it always guaranteed that when converting : float to bool 0.0f is false 1.0f is true bool to float false is 0.0f true is 1.0f negating the bool !false is 1.0f !true is 0.0f negating the float !1.0f is false !0.0f is true Thank you much, Dennis According to the C++ Standard, paragraph 4.12.1 An rvalue of arithmetic, enumeration, pointer, or pointer to member type can be converted to an ...Show All
Moon Mullins .exe
sorry for sounding stupid. but my program is compiling fine with no errors but how do i output a standalone .exe file now in visual studio 2005. c++ Set the project settings for the CRT to "Multithreaded" / "Multithreaded Debug". Than the no DLL further is needed. Also you can use the MFC linked statically. Hey Martin, New to VS2005 hmm... When you compile your program (or If you ...Show All
Attiks Is a .def File Required To Export Functions From DLL?...
...I know it is not required so long as the methods are tagged __declspec(dllexport). However, if the client code is a .Net C# app, I can only seem to recognize the methods' entry points if the DLL was built using a .def file. Can anyone confirm or refute the need for building a DLL with a .def file if the intended client will be unable to link to the import library Thanks in advance. --Doug Hett ...Show All
AspiringGeek project is always 'out of date'
I recently upgraded a vs 2003 project (standard C++ console application, reasonably complex, links to several libraries including Boost, Blitz++, and fftw). For some reason, since the upgrade, one of the projects in the solution (the startup project in case this is relevant), is always out of date when I do a compile, or run in the debugger. All files in this project are always recompiled, whether any of them have been changed or not. Any ...Show All
Rob23 HELP ... NEW TO c++
hey i am 16 years old, i am trying to learn a little about c++, not realy the visual part but just the simple c++ codes for some small applications. I am using a book as a guide and was wondering what the following are: these are not really explained by the book #include <iostream>, using namespace std; Please help---- thank you ! Also i was wondering if c++ is the best language to start with.. Try this tutorial to ...Show All
mel001212100121 2005 Resource Editor trashes non-English languages when you edit any dialog
I have an application that has resources in 11 languages, including Chinese (CHS), Hungarian and Polish. These three are especially challenging because they use a non-English code page - Chinese uses 936 and Hungarian and Polish use 1250 (English and western-European languages use 1252). I am not using Unicode but rather just single byte characters sets for all languages except Chinese which requires MBCS (two byte characters). MFC an ...Show All
Keith Boyd -MSFT Getting File Created Date and Time
I'm trying to get the date/time a file was created and display it in a AFX message. I've got the display part finished but need help with getting the file date/time info. I see there are lots of ways in which to do this but I can't figure out which is the simplest or how to code it. All help is greatfully accepted. Hello: Please see the answer I posted on your othe ...Show All
Evan Mulawski security and access_denied
Hi all I have a problem with access rights I don't know how to solve. Here is the description of the project : - a client application written in managed C++ / .NET2.0 and running on a windows XP machine; - a DCOM service written in C++/Win32 and running on Windows NT4.0. When the service is launched one of its inner objects creates a named pipe. The client application connects to the service trough a DCOM interface. The object instanciated by th ...Show All
minh bui msvc ++ 5.0 or 6.0
I don know if the is the corredct place to post this but I desperatley need some help. The 3D CAD motion analysis software we use requires MSVC++ 5.0 or 6.0. Our IT Dept purchased Visual C++ .NET Standard 2003 First of all I do not know what version of MSVC++ is included nor do I need all the other tools. Is it possible just to obtain just the C++ compiler and if so where Any help will be greatly appreciated. Richard Borders CAD Manager Komat ...Show All
nkoranda Replacement for #pragma comment( exestr, "xxx" )
The code base I work with is portable across several compilers (MSVC, Borland, VxWorks, Intel IPP, ...). We have been using static chars to add revision keywords to our executables so we can track module revisions in the field. Recently we changed from using static char to #pragma comment because the Intel IPP linker removed the static chars (not being used, so not needed) from the executable. We are now moving to Visual Studio 2005 and we ...Show All
faktujaa Platform SDK help files
I downloaded and install the latest Platform SDK, and compiled a sample, it works fine. (under Visual C++ 6) Now I'd like to visit the Help files to get more information about the APIs and other useful information. However I don't know have how to view / open these help files (Help 2). After a desperate huge search over the Internet, I rely on this forum to get some help. Thank you. Well, reading myself ...Show All
pdb Avoiding compiler complains about redefine variables???
Hi all: When I am writing C++ program, I need some global variables and structs to be visible from many files. But the compiler always complains that variable is already defined somewhere else. The problem seems to be caused by not #include file properly, but is there a good solution to avoid this irritating problem happen please Here is an example error message: Topology error LNK2005: "int COLUMN" ( COLUMN@@3HA ) already d ...Show All
Asanga Manage STD::equal verification
Hello I am using VS2005 pro. I read that the new VC++ compiler performs more checks on iterator use but I have pbs with these checks. If you try to run that code std::string parameterName = "DestinationHostName"; //std::string parameterName = "DestinationAETitle"; std::string ori = "DestinationAETitle"; if (std::equal(parameterName.begin(), parameterName.end(), ori.begin())) { std::cou ...Show All
Tom Straub How to Create an ActiveX control using MFC??
Hi everybody, How to Create an ActiveX control in MFC...... and I want it to run in Internet Explorer. Thanx All, Aarkay wrote: Thanx Jay U r welcome dude.. !! Check this: http://msdn2.microsoft.com/en-us/library/d0d6f721.aspx Thanx Jay, I got How to create an ActiveX using WTL. Now I want to run it in a webbrowser. And I want to pass a parameter to AcitveX, How can ...Show All
