visual-c++

Has anyone gotten Xalan to build (against Xerces) with VisualStudio .NET?

I have spent hours trying to get the subversion trunk or 1.10 building with both VS.NET 2008 and 2010, to no avail. I'm currently stuck with many link errors. I've read dozens of threads on this and am quite surprised that two major libraries from Apache would essentially be so fraught with problems when it comes to building. I am using ...

Open New Form. error c3767 candidate function(s) not accessible

Hi, I want to open one form from another. I'm having no troubles doing this with blank project. Start new, make 2 forms, put button on first, use this code Form2 ^ form = gcnew Form2; form->ShowDialog(); Also adding the include file at the top... I'm getting this error error c3767 candidate function(s) not accessible I've gone th...

How To Shift Array Elements to right and replace the shifted index with string in Visual C++

VISUAL C++ Question Hi, I have array of 3 elements and I want to shift its elements to the right and replace the shifted index cell with "SHIFTED" string and this should loop until all the cells has "SHIFTED" string. For example: int a[x]={0,1,2}; Initial index and elements Order: [0]=0 [1]=1 [2]=2 should become in the: 1st l...

how to encrypt a vc++ project?

i have been programing in vc++ for sometime and i want to make some free software for people to use but i really don't want people to have a unprotected copy of my work. i just use what ever vc++ 2008 has when i build in right now so i don't know if it is encrypted or now. i don't need something that is top of the line i was just hopeing...

How to add an existing VC6 project in to a workspace from add-in or VBS macro.

I want to add an existing VC6 project in to a workspace from add-in or VBS macro. There is no function to insert an existing project in Developer Studio's Application object. So I tried to add a new project (with the same name of existing project) using Application's AddProject method and then overwrite the project file created with my e...

problem in mousewheel getting triggered

Hi, I m overriding a mousewheel event in vc++ class and try to trigger mousewheel event, but tat event is not getting triggered. Then, I tried to handle with WndProc function like this, void CascadeControl::WndProc( Message% m ) { switch(m.Msg) { case WM_MOUSEWHEEL: ...............//my code// break; } control::WndProc(m); } but sti...

MFC : How to add tooltip in Cmenu items?

How do you add tooltips for CMenu Items? I couldn't find any straightforward and helpful resource. Please help. Thanks... ...

Is it worth using std::tr1 in production?

I'm using MS VC 2008 and for some projects Intel C++ compiler 11.0. Is it worth using tr1 features in production? Will they stay in new standard? For example, now I use stdext::hash_map. TR1 defines std::tr1::unordered_map. But in MS implementation unordered_map is just theirs stdext::hash_map, templatized in another way. ...

C++ and Visual Studio 2008, how to develop the following web extracting application? Follow-up of last general question

The purpose is to use C++ in a useful way. I have just started programming and have made a few small applications in C and C#. My understanding is that programming for web and thing related to web is nowadays a very easy task. Please note this is for personnel learning, not for rent a coder or any money making. An application which ca...

C++ Access violation when calling dll function

I have a function definition in my VC++ Win32 DLL DEMO2_API void ProcessData(char* i_buff, unsigned short i_len, char* o_buf, unsigned *o_len, unsigned short *errorCode) { __describe (i_buff,&i_len,o_buf,o_len,errorCode); } This dll function is called by a c# application. When called, it generate access violation exception. Afte...

VC++ project: MSXML vs any other XML libraries

We are aware of MSXML, based on COM technologies. We want to use it for a VC++ project starting soon. Are there any other XML libraries do good compared to MSXML? ...

MFC (C++) CDialog DoModal() not working as expected

Hi, I have a plugin that is loaded by this application.. This plugin calls some dialog boxes with DoModal(). I'm expecting these dialog boxes to function like this: If I click on the application window behind the dialog box, the dialog box flashes and does not allow the application to be in focus. However, in one of the other dialog b...

Linking problems using libcurl with Visual C++ 2005: "unresolved external symbol __imp__curl_easy_setopt"

Hi, I am planning to use libcurl in my project. I had downloaded the library source,built and integrated it in a small POC application. I am able to build and run the application without any issues with the generated libcurl.dll and libcurl_imp.lib files. Now when I integrate the same library in my project I am getting linker errors. ...

unrar c++ does not compile

i want to work with freeware unrar i download unrarsrc, when i open unrar vc c++ project it compiles. but when i create my project and #include "rar.hpp" i cant work with classes which described in modules compiler return lnk2019. can somebody read the manual how use that modules in my project ...

video capture from window display

Hi ! Pbm: I have a device that shows a microscope capture through usb port device interface. I would like to capture the video flow to process the images for research purposes. I've tried several available codes with directshow that works for webcams and similar devices but they don't work because the interface device is not known. Is ...

Quickly determine if code is Visual C++ or not

Is there a quick way to determine whether a Visual Studio C++ project is written in plain C++ or Visual C++? ...

C++ vs. C++/CLI: Const qualification of virtual function parameters

[All of the following was tested using Visual Studio 2008 SP1] In C++, const qualification of parameter types does not affect the type of a function (8.3.5/3: "Any cv-qualifier modifying a parameter type is deleted") So, for example, in the following class hierarchy, Derived::Foo overrides Base::Foo: struct Base { virtual void Fo...

How can I statically link my MFC extension DLL?

Hi. I have an MFC extension DLL that I've written. It contains derived classes of MFC controls (e.g. replacements for CButton etc) and also contains bitmap resources. I wanted to create a static library - mainly because I do not want the code seperated into a DLL. However, I found that even though it is possible to add resources to a st...

How do you add bitmaps to a .RC2 file?

I would like to include common resources into two of my applications. Rather than using a DLL, I figured I could include common resources at compile/link time by making use of a .RC2 file. I've added a load of BITMAP entries as follows to my .RC2 file IDB_CHECK BITMAP DISCARDABLE "\NewGUILib\res\bmpCheck.bmp" My .EX...

What is the current modern term for "Multi-byte Character Set"

I used to be confusing quite a while : http://stackoverflow.com/questions/2384160/confusion-on-unicode-and-multibyte-articles After reading up the comments by all contributors, plus : Looking at an old article (Year 2001) : http://www.hastingsresearch.com/net/04-unicode-limitations.shtml, which talk about unicode : being a 16-bit ...