I will be more cautious next time. I posted the question from coworkers computer and continue replying from mine.
Rostfrei
I will be more cautious next time. I posted the question from coworkers computer and continue replying from mine.
Rostfrei
I have no idea how did you find it. I was searching for it from the page 1 to page 10 and I guess I missed it. I apologize for wrong accusation. Regards, Marko Kukovec
Rostfrei
I guess one of the admins deleted my question about advanced debugging and I have no idea why? Can the admin that deleted the question explain to me why he/she did it? Regards, Marko Kukovec
Rostfrei
This code is not mine and I inherited it. I have no clue where the problem is. All I know is I can repeat the problem and that the place debugger reports (code line where it breaks the code is not always the same) does not have any sense. So only real data is a memory location where the problem occurred. The problem is that this location is not the same when I restart the program and I cannot set the break point on that same memory location to see all the places that access or modify this memory location. Marko
Rostfrei
I really don't know if this is the right place to put this question, but I'm sure here are many professionals that will know what I'm interested in. Can somebody direct me to the BT mouse programming? I mean where I can get some good resources how the whole thing works? If I buy BT mouse and connect it to the PC do I have to do pairing, etc.? Actually what I want to do....I want to connect BT mouse to Symbian based smart phone and use it as an external device that controls mouse pointer in the Safari web browser. I'm not familiar with the technologies involved. I know that I need bluetooth stack which is already in the phone, but I don't really know how this is conceived on Windows. Who does the preliminary connection? PC or mouse? Do I need some kind of driver that will do the message translation from the mouse to the coordinates or at least directional movement? And yes, IS THIS INTERFACE STANDARDIZED? I mean, I'm sure all BT mouses work on Windows with basic functions. If you need additional buttons, then you install manufacturers mouse driver. Best regards,
Rostfrei
I have a little application called updater.exe. This updater gets called by the other application called someapp.exe. Updater receives three arguments 1. calling application (full path of someapp.exe) 2. location of the installer file 3. installing destination folder So when someapp.exe calls updater.exe it immediately exits (it will get overwritten). Because this exiting process isn't instant, updater should check if it's still "alive". How can I do this? Can I get some handle from 1st argument and check if application is still running? Best regards,
Rostfrei
Hello! I checked the web an found many free solutions to the application updater problem (close app, download new version, install new package, start the app). I really don't need all the advanced possibilities those solutions offer (web access, versioning, ...). My application already knows how to get new package from various sources (FTP, Web, Local file) and store it somewhere. It is really zip packed file with many directories and files. All I would need now is to run some external application example: updater.exe --source=package.zip --dest-path=my-program-folder Steps: 1. Call updater.exe and close application 2. Updater.exe would wait until calling application exits and would just extract the source archive file to the destination and this way overwrite all existing application files and folders. 3. Updater.exe would restart my application. So no need for versioning , web access and so on. Best regards,
Rostfrei
Hello! I'm sure you guys with tons of experience had same dilemma some time in your carrier. I got in my mind almost impossible task to implement from my project manager. I have to implement click and double click on the same button control. The idea is that single-click would do some action A and double click would do action B that is totally unrelated to action A. At first look it seems ok, but windows manifest double-click like single-click followed by double-click event. So how would I know that single-click will be followed by double-click event and not do anything on the first event but just the second one and execute just action B? In my mind there is no solution to this problem except delaying the single-click event for the time in which double-click may happen. This can result that clients would complain that single-click is slow responsive. Please help me or direct me to some resources so I can convince myself or my project manager that there is or is not the solution for the given problem. Best regards,
Rostfrei
That is exactly what I needed. For anybody else: for Dumpbin to work you need to put "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin" to the PATH and also "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" because Dumpbin needs mspdb71.dll to work. Thank you Stephen! Regards, Marko Kukovec
Thank you for response waldermort and benjymous. I tried both tools and it looks like it's the same tool. One comes with .NET installation and another can be downloaded from net. Both were unsuccessful in my case. They work when I open some DLL but when I open LIB file, I get "Error: At least one file was not a 32-bit or 64-bit Windows module." Is there some other tool I can use? Regards,
Rostfrei
Hello! Which tool can I use under win32 to see which symbols are linked in the to the libray someLib.lib. I can use "nm" utility under Linux (example: someLib.a). Is there some simmilar tool for MSVC constructed libraries? I use MSVC++ .NET 2003. Regards,
Rostfrei
I made sure that all files are compiled with "Use MFC in a Shared DLL" option and they all have "Multi-threaded Debug DLL (/MDd)" runtime library selected and I still have linker errors. If I comment includes #include <afxstr.h> #include <atlimage.h>
there is no link errors anymore. Any idea? Regards, Rostfrei
Hello! I have a simple application done with VC++ (2003 .NET). I made simple dialog based application with some buttons (with resource editor). Now I want to do something with images and want to try cool code with CImage class. By MSDN documentation I have to to include #include "afxstr.h" (I replaced <> with " so it can be seen in this post) #include "atlimage.h"
in that exact order. Project setting is "Use MFC in shared DLL". When I do this I get many linker errors like LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(dosmap.obj) : error LNK2005: __errno already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(fflush.obj) : error LNK2005: _fflush already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(isctype.obj) : error LNK2005: __isctype already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0.obj) : error LNK2005: __amsg_exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj) LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj) LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj) LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj) LIBCMTD.lib(strftime.obj) : error LNK2005: _strftime already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(getenv.obj) : error LNK2005: _getenv already defined in msvcrtd.lib(MSVCR71D.dll) zlib.lib(minigzip.obj) : error LNK2005: _error already defined in webServer.lib(uemf.obj) msvcrtd.lib(MSVCR71D.dll) : e
Thank you! Works without a problem. Regards, Rostfrei
Hello! I came accross the article http://www.codeproject.com/tips/dirclean.asp[^] which is about some handy utility. Shell extension DLL is provided. Can somebody please tell me how to register this shell extension trough console maybe? I really don't want to learn about shell extensions right now. All I want, is to use this utility. P.S. I'm reposting this question in this message board. I made a mistake and post it to the C++ board. Best regards, Rostfrei
Hello! I came accross the article http://www.codeproject.com/tips/dirclean.asp[^] which is about some handy utility. Shell extension DLL is provided. Can somebody please tell me how to register this shell extension trough console maybe? I really don't want to learn about shell extensions right now. All I want, is to use this utility. Best regards, Rostfrei
It works!!! I can't thank you enough!!! To resolve linkage problem I had to Ignore specific library: libcmtd.lib The problem is described on http://discuss.microsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind9710a&L=atl&P=5867[^] in project settings. Now it works just as I wanted. Ah yes, for anyone else reading this you have to include #include before #include like: #include "afxstr.h" #include "atlimage.h"
Thank you! Regards, Rostfrei
When I include atlImage.h I get many errors like: LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in msvcrtd.lib(MSVCR71D.dll) LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj) and so on... What shoild I do? Rostfrei
Hello! I make simple dialog based programs. I make them with resource editor VS.NET 2003. When I create dialog it is grey. After I put some other controls on it. What is the easiest way to make Dialog based application with some background of some predefined background (picture)? Instead of grey there would be some picture. Best regards, Rostfrei
I'm sorry I just don't get it. What is different? Rostfrei