Hi,
I wanted to do a simple GUI application in VC++ but can't find any good tutorial for same.
I till now just worked in C,linux so dont know how to actually do that. If anyone can point me to some simple "Hello world" GUI application, it will be of great help.
With this, I wanted to know is there any special things I need to do if I a...
While trying to resolve process hanging on CoUninitialize() I came upon a piece of code shared by many of our projects. When a program is going to quit it first calls CoFreeUnusedLibraries(), then immediately OleUninitialize().
While the effect of OleUninitialize() is quite clear I can't find why one would want to call CoFreeUnusedLibra...
I really would like to use 2010 if only since they appear to have fixed intellisense, but everyone else on the project don't have it (nor do I, yet). Is there any particular difficulty upgrading a C++ solution? Any other issues apart from having to remember to update both 2k8 and 2k10 project files with new source files?
...
HI,
I have two clases A and B,
Here A is inheriting B and now i want to access a variable in B from A, I included A header in B and tried to access but showing some error in QObject.
Is it possible to acces like this.. Please help
...
Hi,
I am loading background image at runtime in my MFC Application.
Like this :
m_objMainScrnDC.CreateCompatibleDC(NULL);
m_objMainScrnBgBitmap.LoadBitmap(IDB_MAIN_SCRN_BG);
And i have tabcontrol on my page at design time , now i want to place a background image for tab control at runtime but i am not able to get that image...
Hi,
I am having a service which calls a C++ COM dll. The C++ COM dll causes some problem and the service crashes.
I couldn't figure it at what point the service crash. I used debugdiag. But it is not putting any crash dump.
Kindly let me know how I can debug a application crash. Or direct me to some good tutorials and tools.
Many tha...
Dear all, I would like to do a convolution using a 35 x 35 kernel. Any suggestion? or any method already in opencv i can use? Because now the cvfilter2d can only support until 10 x 10 kernel.
...
Hi community,
I have recently started a new C++ project and I intend to make it cross-platform in time. I haven't had much experience with C++ projects before so the first thing that bothers me is that default Visual Studio file layout setup. I tried reading-up the Net on this subject but the info just seems rare and conflicting, so I s...
I have a webbrowser and I use DocumentComplete to read the current document from the WebBrowser (as IHTMLDocument2).
What's the easiest way to run xpath queries in that html doc? I am looking for something easy to use and lightweight.
I am using Visual Studio C++ 2010.
...
I am using Visual Studio 2010 (c++), and Intellisense has stopped working. I've read that an error in the code can cause this, but my code compiles fine, I only have some warnings about a deprecated function, can this cause intellisense to stop working?
I tried deleting the .ncb file, but is not being regenerated. Also I read here that ...
I found a sample on the Ogre forums of using Qt and Ogre together. I setup Qt, installed the MSVC plugin and created a new Qt project. I added all of the files, everything ran great.
I double clicked the .ui file in MSVC and it brought up Qt Designer, where I changed the window title and saved. For some reason, no matter what changes I ...
What is the equivalent to __builtin_popcount as found in GCC and Clang, for MSVC-10?
...
I just started trying out MSVC-2010 seriously, and discovered 2 critical toolbar buttons I always used are missing: The back and forward navigation buttons, which were present in MSVC 2003 through 2008. These jump back (or forward) through the sequence of locations observed in the code recently. Can anyone tell me how to get these button...
I have a project that contains 235+ source and header files. In my standard development cycle, I develop a little, test that development, create a release version, test that and deliver that release to my customer. I then copy the project directory and change its name. I then start all over again to address new customer requirements.
...
Hi all, I am learning C++ and i currently have some questions that i don't know the answers. I create this header file Object1.h and can compile this file but when i run the Test.cpp, Visual Studio throw an error because of access violation by *sibling. The strange thing is I can run it using Dev C+ and it return only value 2.Therefore I...
What calls best emulate pread/pwrite in MSVC 10?
...
bool checkSockaddr(sockaddr_in a, sockaddr_in b)
check if they two have the same address information.
...
I m trying to draw hower item of CCheckList control.In DrawItem(LPDRAWITEMSTRUCT), LPDRAWITEMSTRUCT struct has details to draw. I want info that which item has mouse hover, so that I can highlight that item.
One more thing, checkbox in CCheckListCtrl not are drawn before DrawItem..I dont know why..
And..checkbox click not giving any even...
I am working with a webbrowser host on c++, I managed to sink event and I am running this void on DISPID_DOCUMENTCOMPLETE:
void DocumentComplete(LPDISPATCH pDisp, VARIANT *url)
{
READYSTATE rState;
iBrowser->get_ReadyState(&rState);
if(rState == READYSTATE_COMPLETE)
{
HRESULT hr;
IDispatch *pHtmlDoc = N...
I would like to know if including atlbase.h in my c++ project will make the compiled application to have a dll dependency or something like that.
...