Answer Questions
JoyK implementaion of unwinding
I have troubles finding information on this subject, so I'll try to ask here: What kind of unwinding mechanism implementation is used by VC8.0 Is it the same old and slow 'update structure on the stack while we go' (like it was up to VC7.1) Or MS finally decides to go after GCC & others by separating successfull execution path on compile stage (which is significantly more efficient) Bye. Sincerely yours, Michael. ...Show All
lgmcben Introspection in C++
Is there a way you can get meta information about C++ class files. The meta information I'm really looking is , varibles, methods, classname and includes. If it is not supported in C++, are there any 3rd party tools that I could use to do the above Rgds Balu Hi, this is not possible in C++. With RTTI (Run Time Type Information) you can have a bit of information about class' types but other then that you ha ...Show All
Jeffrey std::map<String*, int>
I want to initialize a map: std::map<String*, int> myMap; But this does not works. I tried many other versions, but they do not works too: std::map< gcroot< String*>, int > mapLetters; This does not work too. How can I initialize a map of String and Int (VC++.NET 2005) As of now you cannot create a map containing managed types. We plan on releasing STL/CLR, which will provide this functionality and you can refer ...Show All
WayneSpangler compiler error while converting vs c++6 project to vs c++ 2005 ... error C2065: 'DWORD_PTR' : undeclared identifier
After converting my c++6 solution into c++8, i got these errors from visual studio header files... Somebody knows how i could fix it Here's a list of what's been done : Output Window Compiling... StdAfx.cpp c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2065: 'DWORD_PTR' : undeclared identifier c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\ ...Show All
rusi Pointer in C# to C++ unsigned char array
Hi, I have a C++ class for accessing images from a DirectShow-compatible camera. For this I get a pixelbuffer that is actually a one-dimensional array of characters. I need access to this from C#, and I would like to avoid copying memory, since I need to update the camera image live, and this should be performed very fast. This is my C++ method in my Managed C++ application: ----------------------------------------------------------- ...Show All
Jaswant Singh Rana changing default project properties params
Hello, Like one cud change new files in the directory $(ProgramFiles)\Microsoft Visual Studio 8\VC\vcprojectitems\ is there is file where i cud change the defaults of project properties.. for ex. I want to make the default working directory for every project created as $(TargetDir) rather than the default blank similarly other parameters as well. thank you. Yes, it's possible but it's not as easy :) Wizards UI is all HTML and wizard ac ...Show All
Amarendra Debug Assertion Failed
Hello, I caught debugg assertion failed at run the exe file. Program:C:\\program files\\companyname\\drawing\\drawing.exe file:daocore.cpp Line no:4279 The exe file created using VC++ 6.0(dialog based appliction with database mdb file(CDaoRecordset)). the database file stored following location, C:\\programfiles\\companyname ...Show All
Deluxdecals Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK The esiest way to acomplish this with the Win-32 API is to switch from using blocking I/O to using asynchronus I/O with notification via Win-32 events, then block waiting for the event rather than inside the I/O routine. So, in your I/O thread crea ...Show All
RON C How to debug input method editor (IME) DLLs?
Hi, I'm trying to debug an input method editor (IME) application. In order to run this input method, I must move the generated DLL file to windows\system32 directory, so I cannot debug this DLL at all. Who can tell me the correct way to debug this kind of project Thanks. Check out this link for debugging dlls: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsdebug/html/_core_debuggi ...Show All
yhanwong Using resources in a static library
Is it OK to use a dialog resource in a static library I've never had the need to do this and now when I try to add a CDialog class from the dialog context menu (Add Class...) I get the following error. Failed to return new Code Element. Possibly syntax error. New Element Name: <afxwin.h> I figured this might have something to do with the fact that my project is a static library. I'm using VS 2005. The ...Show All
DelaCombo OnTimer() not being fired up.
hey guys, i have timer set like follows: UINT TimerVal; TimerVal = SetTimer(406, 50, NULL); and i added in header file: afx_msg void OnTimer(UINT nIDEvent); and in cpp file i have: void CEditorDlg::OnTimer(UINT nIDEvent) { char finalFps[100]; strcpy(finalFps, NConvert::IntToChar( _entityEngine->getFPS() )); m_lblFPS.SetWindowText( _T( finalFps ) ); CDialog::OnTimer(nIDEvent); } and : ON_WM_TIMER(). so when i put a break point int he ...Show All
CHUNGVOKY STDMETHODIMP
I am trying to compile some VC++ 6.0 code on VC++2005, and I get the following error: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int The line of code is simple: STDMETHODIMP Func(WORD Index); Knowing that STDMETHODIMP boils down to " LONG __stdcall ", what's the problem here The same compiler error is generated for STDMETHOD. Any clue Thanks, Mo ...Show All
recruz Is PGO available in the standard edition of VS2005?
Aloha! A few years back I bought the standard edition of Visual Studio.NET and was disappointed to see that it didn't feature the optimizing C compiler - that was reserved for the professional edition, and made a speed difference of a factor of 2 or more. Now, I see that PGO will not be supported in the express products :-(. I realize that PGO is not going to make a huge difference, but an additional 20% aer always appreciated in board game prog ...Show All
The Villager LINK : fatal error LNK1181: cannot open input file 'Crypt32.lib'
Hi Saltynuts! Latest visual studio beta. When I try to compile my project it cannot find this file. I've searched my vc directories and it only comes up with 3 results in VC\PlatformSDK\Lib\AMD64 SmartDevices\SDK\PocketPC2003\Lib\armv4 SmartDevices\SDK\Smartphone2003\Lib\armv4 did someone forget to include this lib file in the beta With VS2005 Beta2 it is in "%ProgramFiles%\Microsoft Visual Studio 8\V ...Show All
Dave Codding aspell compilation problems
Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All
