How do I access math constants (eg. M_PI) in Visual C++ 2008?
I want to use the math constants, such as M_PI and M_E, in Visual C++ 2008. I assumed they were defined in the cmath header. ...
I want to use the math constants, such as M_PI and M_E, in Visual C++ 2008. I assumed they were defined in the cmath header. ...
Hi I want to pop up my own dialog on save button of File Download Dilaog of IExplorer. Can antbody suugest me how it is possible. I am working for local application not for the web application. ...
Hello, i was wondering how to trace a certain object in VC++6. It can be done by tracing the unique object ID with "Trace Points", in more recent versions of visual studio. I still haven't figured out how to do this in VC++ 6. Maybe you guys can point me in the right direction. Thanks in advance! Best regards, zhengtonic ...
I am a C# developer who has decided to pursue a C++ project. I have had C++ experience but not MSVC. What I am trying to do is incorporate a .dll from an open source project into my project. The code is available and I have built it. I have the .dll as well as the .lib which as I understand it is required for C++ projects. Now unfortun...
Why is the Visual C++ compiler calling the wrong overload here? I am have a subclass of ostream that I use to define a buffer for formatting. Sometimes I want to create a temporary and immediately insert a string into it with the usual << operator like this: M2Stream() << "the string"; Unfortunately, the program calls the operator<<(...
Hi I want to pop up my own dialog on save button of File Download Dilaog in Mozilla. Can you suugest me how it is possible. I am working for local application not for the web application. ...
In C# i have the following class and it compiles just fine: class CustomItem { } class CustomList : IList<CustomItem> { public CustomItem this[int index] { get { return null; } set { throw new NotImplementedException(); } } public void CopyTo(CustomItem[] array, int arrayIndex) { } ...
I want to implement some action when CTRL-A is pressed . How can I do this in C++ on Windows Platform . I am using VS 2005 . Any pointers will help. ...
Stored procedure that executes fine with a development database but fails to execute in production database? Error returned is :"PLS-00306: wrong number or types of arguments in call to <procedure naeme>" VC++ database oracle Closed:The error occurred due to wrong synonym. ...
I am looking for an API on WinXP to switch between installed IME's. The scenario is, to be able to plug in a langauge keyboard (say Spanish) and change the IME by clicking on a UI button (say button named Spanish) e.g. I plug in a Spanish keyboard and click on the UI button named Spanish. This should internally change the IME to Spanis...
Hi, I want to change the input language in WinXP to Spanish, programatically. Is there an API to suport that? Thanks ...
I'm using fixed-size CList and I was wondering what the implementation does when the list is full and I make a call to add another element. Does it fail to add? Does it replace the oldest element? ...
I have a windows DLL that currently only supports ASCII and I need to update it to work with Unicode strings. This DLL currently uses char* strings in a number of places, along with making a number of ASCII Windows API calls (like GetWindowTextA, RegQueryValueExA, CreateFileA, etc). I want to switch to using the unicode/ascii macros de...
how the global members can be created in vc++ 6.0 mfc project. if i select globals option in WizardBar(WizardBar C++ class). then (WizardBar C++ members),it display (No members - Create New Class...). How to create the members for this globals class please give the steps to create. ...
Hi all, I wrote some code recently (ISO/ANSI C), and was surprised at the poor performance it achieved. Long story short, it turned out that the culprit was the floor() function. Not only it was slow, but it did not vectorize (with Intel compiler, aka ICL). Here are some benchmarks for performing floor for all cells in a 2D matrix: VC...
hi, i have created a simple "public ref class" in the vc++ project, which is configured to generate a dynamik library. In the c# Project (simple console application) i added the vc++ project as to the References and doing a "using myVC++library". But when i try to create an object from the vc++ dll i always get: System.BadImageFormatExce...
Hello am new to c++ from php. Although i am not an absolute newbie, meaning i have programmed large db driven apps using oop php and sql, i would like to know what the general process of creating stand alone windows applications using c++ is as far as patters, APIs compilations etc... EDITED: As far as GUI how would you the visual inte...
I'm attempting to compile a screensaver using Visual C++ 2008 Express Edition SP1 on Windows XP. I get a runtime error: "The procedure entry point ChangeWindowMessageFilter() could not be located in the dynamic link library USER32.dll." As far as I can tell, this is because Microsoft botched the scrnsave.lib library included in VS 2008 t...
At work we have a legacy process written in Visual C++ that basically consists of a single 5000 line function. In essence the program is just one big case statement with similar cut-and-pasted code handling a fair amount of the logic for case. Obviously we would like to refactor this code to extract these cases out into separate function...
Hi, I have a class like this: class MyClass{ public: MyClass(int Mode); private: std::map < int, std::string, CompFunc > data; }; The data member must use different comparison function according to Mode argument. if Mode == 1, then use CompFunc1. if Mode == 2, then use CompFunc2. etc. but the CompFunc template argument is f...