visual-c++

Looking for Win32 precompiled PCRECPP

I am having trouble finding a precompiled Win32 distribution of PCRE that also includes PCRECPP. The two archives I could find only include "pcre.h". http://gnuwin32.sourceforge.net/packages/pcre.htm http://www.psyon.org/projects/pcre-win32/ ...

fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory

I am getting the following error when i build my code using regex.hpp I am using VS2010 VC++ fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory boost\boost_regex-vc71-mt-1_33_1.lib file is here.. is this correct? ...

Custom Control making DoModal Fail

I am creating a Dialog in MFC and Adding Custom Control and When I try to do a DoModal the Dialog is not launching. but when I remove it Dialog is launching . I dont know what the reason is . Has anyone encountered this situation . How can this be solved. I am using vs2008.Also I have xtremetoolkit. ...

System.TypeLoadException when using a vector as argument in a method

Hi, I have a class Param.cpp which is a set of parameters for the main class Model.cpp. I create an instance of Param.cpp in a C# file using a graphic interface. It works great, I can see in debug that the param has a PropList containing one element - in my example. My Model class has a function BuildModel(Param param) which set the m...

strtok problem in visual c++

I am trying the strtok in visual c++, but it seems not working. This not my first time using strtok, but i just counldnt figure out what is wrong with it. the code is quite simple. in main cout<<getLevels("/'Group'/'Channel1'")<<endl; in getLevels() int getLevels(char * fullPath){ int level=0; char *nextToken; char * pch=strtok_...

boost::asio fails to close TCP connection cleanly.

I am trying to implement a simple HTTP server. I am able to send the HTTP response to clients but the issue is that on Firefox I get "Connection Reset" error. IE too fails, while Chrome works perfectly and displays the HTML I sent in the response. If I telnet to my server then I get "Connection Lost" message, just after the response. So...

Can COM Component be used in platforms other than windows ?

I wanted to know whether is it possible to make use of COM component in other platforms like linux,etc.., My question is that COM component is supposed to be registered with OS & For that OS need something like registry so that client can use COM components. Can anyone shed light on my question ? ...

visual c++ mfc mdi Access violation reading location 0x000fc2f0

hello i am doing a mdi project in visual c++ using mfc i am using a CArray to save and load data to documents. CArray contains members of a custom class of mine. Saving and loading works fine I get access violation when closing a document that i have opened, and debugger points me to carray. the weird thing is that i can close withou...

Auxiliary power Control in ARM -Wince 4.2 - VC++

Guide me please with any suggestions/articles to look for controlling the auxiliary power in wince 4.2 device using vc++.The api provided by vendor is currently not working[It worked previously].The port is not responding to any api calls, I wish to fix it as web searches / contacting the vendor has become fruitless.Its a Samsung Process...

Is there a bundled library for regular expressions in MSVC?

If I'm compiling a C program with gcc, I can safely assume that the functions in regex.h are available. Is there a regex library I can assume is there if someone is compiling with microsoft's C compiler? ...

Inplace Win32 listview editing is always canceled

I have a listview in small icon mode on a modeless Win32 dialog with LVS_EDITLABELS set. Regardless of whether editing was begun by a mouse click or programmatically by calling ListView_LabelEdit() and regardless of whether ESC or RETURN was hit upon finishing editing, when LVN_ENDLABELEDIT notification is received pszText of NMLVDISPINF...

Listing devices / Drivers using vc++

I have a issue with my win ce4.2 ARM processor. The vendor provided c++ api for controlling power on the auxiliary port is not currently working (previously it worked fine) but for other ports it's working fine (4 pair of I/O, LEDS.) I wish to solve this and make the port active again. I wish to get the devices or drivers attached to ...

Overflow in Constant Arithmetic When Using FLT_MAX

I have a warning in my C++ code, regarding the use of FLT_MAX. The code is (very simply): const float a_lot = FLT_MAX; The generated warning is: warning C4756: overflow in constant arithmetic And it doesn't help if I change the code to: const float a_lot = std::numeric_limits<float>::max(); I'm using Microsoft Visual Studio 2...

Deploying Web service to : Mono 500 - Internal Server Error

I developed a webservices using Visual Studio 2008 with C# and C++. I deploy it to mod_mono, the services is loaded, but when I try to run a method using Invoke button I get the error below, I have tested with MoMA without any error: 500 - Internal Server Error System.TypeInitializationException: An exception was thrown by the type in...

Strange Results with ChangeDisplaySettings and Intel graphics card

I've been getting weird results with ChangeDisplaySettings and my Intel Graphics card. I find that when I try to go fullscreen, it won't do it in the same way as other programs. My Intel control panel lets me handle different resolutions in 3 ways: Stretching the image, using the original resolution but centering the image, or Maintain...

What is the best free/paid C++ Video Training resource out there?

Hello, I'm a .NET Developer, primarily using c#, asp.net mvc, entity framework and programming for the Web. I want to know what you guys recommend to get a quick startup in learning c++. My biggest worries are pointers, memory management and other languages differences between managed and native languages. I want to know if there is some...

C/C++: How to figure out the chain of header files for a given definition?

In Visual C++, one can find the header file where any name (variable or type) is defined by pressing F12 on it or choosing Go to Definition. This feature is very useful, but it only shows the final location (header file) where the name is defined. Is there a way to figure out the chain of header files that lead from my source file to the...

what do i need to do to get windows debugger to load my vc++ symbol files and source

I have a program compiled with vc++ 2003 which i am attempting to debug in windbg on XP. I am compiling in debug. In the project properties I have set the linker to 'generate program database file' and in c++ properties i have set 'Program Database for Edit & Continue' in windbg i have used 'browse' to set the file that i believe is my...

PreCompile header in Vistual studio 2005 problem

I have 2 projects. Both have the setting for Create/Use Precompiled Header set to "Use Precompiled Header (/Yu)" I deleted a file in both projects. One compiles successfully but the other generates an error Error 2 fatal error C1083: Cannot open precompiled header file: 'file.pch': No such file or directory ...

Able to take controls in parent window even after launch of another dialog using DoModal

I have an application which is created using MFC and I have created a MFC dll on click of a button the exe will call the dll which in turn will launch a dll using dialogClass.DoModal(). My Problem is even after this dialog I am able to access my parent application. which I should not be able to access. Is there any setting for this . Ca...