CMFCShellListCtrl plays sound on click and doubleclick
Im using a CMFCShellListCtrl Control in a MFC Dialog based Application.The control is just used to start applications or open documents on doubleclick.On each click or doubleclick on a item in the...
View ArticleHow to get function address from current process?
My test process:test.exe which depends on test.dll and test2.dll. And test.dll exports a function test_fun.As we known, we can use the following in the test2.dll to get the test_fun address at...
View Articlemfc42d.lib
Hi guys. Please helpIn brief, I am upgrading a project of 30+ projects and 10+ libraries from VC++ 6.0 to VC++ 2010.In one of the DLLs, during debuging, I got link error as cannot open...
View Article*.exe is not a valid win32 application after upgrading to VS 2012.
I have an MFC C++ Project. I upgraded to Visual Studio 2012 and the build .exe output runs fine in windows 7. But on XP or windows Server 2003 I ALWAYS get *.exe is not a valid win32 application. The...
View ArticleButton1 click event label1->Text change, how?
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { label1->Text = "Hello World!"; }Error 1 error LNK1123: failure during...
View ArticleMigrating C++ COM project from visual Studio 2008 to Visual studio express 2012.
Hi, I want to migrate the COM project which is developed in visual studio C++ 2008 to visual studio express 2012 (windows 7). When I compiled the project in vs express 2012, i got a lot a of errors...
View Articlequestion oc CAsynSocket::OnAccept()
quite easy this time is there any way to know thee caller's address BEFORE calling CAsyncSocket::Accept()??claudio cannella
View Articlegetting C2143 error when trying to use a pointer to another object
hello i am writing a program to do some engineering calculations and what not however i have run into a problem. I would like to use the class view windows as an object view (so it still follows the...
View ArticleProblems with memory leaks!
Hello! I am practising for a test in a few days by trying to write code where I just test stuff. At the moment I am working with an vector of objects. I have the object Toywhich has the subclass Doll...
View ArticleMeta data of a file in MFC
is it possible to get metadata(like image, is audio or video etc ) of a file in MFCthanks , sarath sPlease remember to mark the replies as answers if they help and unmark them if they provide no help...
View Articlecannot execute any program
when i press F5 or click execute button it bring cmd but immediately it breaks out , it happening about any program i try to run
View ArticleVisual C++ 2010 IntelliSense and browsing information is not available
Hello, I've just intalled visual studio 2010 and faced the issue with C++ projects: when I create a new console application or win32 project I see the message:"An error occurred while creating or...
View ArticleHow to reuse control resources in C++ application in VS 2010
Hi,I am trying to reuse the controls and dialogs present in my resource script (.rc) file my C++ project in VS 2010 solution. I have learnt from...
View ArticleNegative error code in connect ()
friends when i attempt to connect a socket using connect function i got an negative error code.i.e, connect() returns -1. the code isiResult = connect( ConnectSocket, ptr->ai_addr,...
View ArticleUpdateWindow(hwnd) not call WM_PAINT, but DestroyWindow(hwnd) call WM_PAINT
i had develop code with hwnd on UpdateWindow parameter and hButton on DestroyWindow parameter,i bulit menu WM_COMMAND for disable/enable this hButton with DestroyWindow on WM_PAINT and UpdateWindow on...
View ArticleCommand line: sometimes .lib file created, sometimes not
I'm compiling an astronomy software library from a reliable source who compiled it for unix; I want to make a dll for C (not C++). I made appropriate modifications to the include file.I did a test case...
View ArticleWin32 Application
Hi. I have some problem. I want to create two child windows. But when I create second one, it overlapped first child window.BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst =...
View Articlethe output of Visual C++ doesn't show
hi everyonewhen I debug the project everything is good and I don't have any problem , but after the implementation of the project will be finished, the EXE file doesn't show, only the EXE file placed...
View Articlecolored line
Hi. How can I draw a red (or other colored) line in dialog based app? ( I know drawing a standard one. )Thanks a lot. RegardsMircalal
View ArticleHow to get dll name from the functions within the dll?
I'm creating a dll.I want to check the dll name when it being called.I don't want let user rename the dll.Is this possible?George
View Article