Answer Questions
Ralph Rivas bool checking problem
I created this fucntion to guard against invalid input for a bool value. In the program I created for. When I moved it to another program, it isn't working as well. Here it is, as well as a sample calling. void f_collect_answer( bool *question); int main() { bool ex; //do stuff cout << "Will you exit, Yes(1) or No(0) " ; f_collect_answer(&v_ex); //do stuff } void f_collect_answer( bo ...Show All
jerry1 C++/CLI language design questions
I'm doing another C++/CLI project that involves porting some of my native C++ classes so that I can mix both native and managed code. And I'm hitting the same issues often enough to wonder about a few things about the C++/CLI language design. One of the major changes from the old C++/CLI syntax to the new one is that you cannot have an unmanaged class member of a ref class. e.g. class U { ... }; ref class M { U u; ...Show All
Ray_in_NYC Linker error 2005, libcmtd.lib and msvcrtd.lib(MSVCR80D.dll)
I'm trying to port a project to VS2005 beta2 and I get lots of errors like this. libcmtd.lib(sprintf.obj) : error LNK2005: _sprintf already defined in msvcrtd.lib(MSVCR80D.dll) libcmtd.lib(swprintf.obj) : error LNK2005: __swprintf already defined in msvcrtd.lib(MSVCR80D.dll) libcmtd.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCR80D.dll) libcmtd.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.li ...Show All
Tony Wu Adding tooltip controls in unicode fails
Hi guys! I'm having problems making tooltips work with unicode. At first, I used them in infotip feature of the listview controls in WTL. What happens is, it works when I set the project to use Multi-byte libraries and fails when I set it to unicode(no infotip appears). In both cases, LVN_GETINFOTIP is called. Assuming that it's probably a bug in WTL or in the listview infotip implementation, I tried manually using tooltips in WinAPI.... Here's ...Show All
k000der Application configuration is incorrect?
I have a very, very simple program that uses the Microsoft Platform SDK and SDL, basically just native executable (not .NET). It compiles and runs fine on my Windows XP Home Edition system that I'm using it develop it on. It also ran fine when I moved it over to a Windows 2000 Pro system that had no development tools of any kind installed. However, while it runs fine on every random Windows 2000 Pro system I've tried it on, it fails on the Windo ...Show All
Yara PRJ0050
Hello, I am building a DLL with ATL8.0 in VS2005. I am getting this error when I build the DLL. error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to modify the registry. Very next time I build, it goes away and the comes back next time. Sometimes i can build 4 - 5 times without error and then it comes back. Any help will be appreciated. I have full permissions on registry. I never had ...Show All
Filip Orsag Floating-point models in VS2005 vs VS2003
We have found out that a new floating point model has been introduced in VS2005 where the programmer has the option to choose any of the modes Precise, Strict or Fast. According to the document http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/floapoint.asp : "Microsoft has selected fp:precise as the default floating-point mode because it creates both fast and accurate programs." In VS2003 we were us ...Show All
ch36891 .NET 2.0 and Visual Studio .net 2003
I have visual studio .net 2003 installed, and I recently upgraded to .net 2.0 I can no longer compile applications without an error durring linking from alink.dll. Any help is greatly appreciated. B_a_s_i_c wrote: I had to uninstally .net 1.1 in order to get 2.0 working properly... I wasn't aware the two could co-exist Is there an upgrade I can use so I don't get the error with .net 2.0 ...Show All
esky Function or algorithum for finding a value
Hi, im currently trying to make s simple program that calculates a formula that the searching paramether cannot be calculated directly, its something like : 1/x = z.log10(x+y) where we know the value of Y and Z and need to find a fitting one for X. So my question is: Is there a function that can do the things easier or I got to find myself the value that works, and what algorithum to use Thx a lot ok. . . first - what does z.L ...Show All
Quoyle Print Preview Issue
Hey, Heres the problem. I use the OnFilePrintPreview and OnEndPrintPreview methods of the various views. I have overridden these methods just for some appilication specific calls, but at the end of that i still call the base class for these methods. That all works well but when I preview a document and then open another document it fails, basically i want to be able to call the OnEndPrintPreview method when i op ...Show All
Norbert.Bender Conversion of projects from Visual C/C++ version 2.0
Hi In the msdn library there is an article describing serial communications in Win32. This article includes the complete source code of a sample program called MTTTY . I use Visual C++ 2005 (beta 2) and would like to compile the source. When I run the convertion wizzard on the sample makefile I get the following message: Conversion Issues - MTTTY: Unable to open file. This appears to be a project file from a version of ...Show All
kajaGugu Problem with templates
I am trying to write a template class for a simple double linked list. Posted below are the definitions. In the .cpp file I have the implementation. I know for certain that I am including the .h and .cpp files in the project, but I get an error when I try to build: error LNK2019: unresolved external symbol "public: __thiscall wcLinkedList<int>::~wcLinkedList<int>(void)" ( 1 $wcLinkedList@H@@QAE@XZ) referenced ...Show All
Piotr Smolanski problem reading uuid generated by VS 6 (C++)
We are porting our project from VS6 to VS 2005. Here are issues we are facing. Our software creates objects. These objects contain unique identifiers (UIDs)_ generated by VS 6. We write those objects to a binary File using Microsoft's serialization in VS6. When loading those files in VS 6, everything worked fine. Running our project with V S 2005: -When ...Show All
hashcomp VC++ 6.0 or .NET for DirectX Programming??
<Drunkalot@discussions.microsoft.com> wrote in message news:6b708d7a-91ad-447e-a652-4487fb2ce1d1@discussions.microsoft.com > I'll start programming with directX and need to know what's best... > > Is using Visual C++ 6.0 or the VC++.NET For DirectX programming specifically, I don't think you'll notice much difference. I would prefer VC.NET if only because VC6 is a 7 year old product an ...Show All
JTK htonl source code
Hi All, My first ever posting. I am lookling for the sourec code for htonl, htons, ntohl etc function calls. I need to generate my own implmentation of these calls and hence need the source code for the same. All Suggestions are welcome!!! Thanks in advance -Sachin Thanks for the prompt message. So does that mean i cannot have my own implementation of these system calls. There must be some information as to what kind of by ...Show All
