Answer Questions
Nick Cardullo Can we please get a New Forum
I think a lot of people have questions that involve the microsoft visual C++ .net product that you feel is off topic. We are programming in Microsoft C++ and need a central place to get help from others doing the same. C++ seems to be the red headed step child of microsoft... Hardly any documentation on how to do anything in c++ officially exists; where as tons of information exists for your other languages. We need a place we can pick the brains of others that is centrally located (and hopefully getting a bone or two from microsoft staff willing to give an answer). Telling people this is off topic 200 times a day must mean there is a place for that topic missing in your forums. Hello Re ...Show All
Brad Smith Newbie needs help on C++: string issue
Please help me if you know how to do it. I want to display an object in C++ (for testing purpose). My intention is like what we can do with Java by reimplementing "ToString()" method. Hence, can you give me some example(or link) on - convert int/float/double to string - "convert" object to string: display its fields - how about pointer Thank you very much. Fantonis Email: fantonis_nus@hotmail.com Sarath. wrote: 1. you can use atoi, atof for convertion to int, double or float repectively. Which is in my answer too but I encouraged use of the documentation. Sarath. wrote: 2. You can implement your own function (you can name it "ToString") which ...Show All
hotsauce How to include "Uninstall" ability when creating an installer project in .Net's "Setup Project"?
Hi guys, I'm creating an installer in .Net 2003's "Setup Project" and I need to know how to include the functionality that will allow the user to unistall the program. I need to set it up like most programs with a link to the uninstaller in the program menu. Is the best way to do this to create on uninstaller.exe and place a link to that exe that the user can access If so, how do you do that in .Net's "Setup Project" I've looked and I can't seem to figure out create an uninstaller in there. Any help would be greatly appreciated, thanks guys. This question is better suited for the Visual C++ General forum, or one of the newsgroups ( http://msdn.microsoft.com/newsgroups ). This forum i ...Show All
scubabbl Working with HashTable
Hello, I am working with VC++ 2003.I am having a problem HashTables.How do i get a value for a specifc key without enumerating through all the key value pair in the HashTable. Any help will be appreciated. Thanks Hello Re: Working with HashTable Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien -- PS: you probably want to look at Item http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystem ...Show All
Mallyx Compiling a VC++ 6.0 with VC++ 8.0
Hello, I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib that was created with VC++ 6.0. I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below. Note: the project compiles without errors or warnings when using VC++ 6.0. Can someone tell me what I need to do to get my project to compile/link successfully with VC++ 8.0 Thanks in advance! -Agustin ERRORS: Error 82 error LNK2001: unresolved external symbol __RTC_CheckEsp iconnect.lib Error 83 error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "class std::basic_string<char,struct std::char_traits<char>,class st ...Show All
drew_p Add property problem in ATL ActiveX
Hello, I am using Visual Studio 2005 Standard Edition. I follow the MSDN tutorial of creating activex with ATL, but unfortunately in the property add step I get nothing. I am adding the property to Activex from Class View. But nothing changes in IPolyCtl.h and IPolyCtl.cpp. Can you please help me Best regards, Karakaya Just find out " ATL Tutorial" in msdn library, follow up to step3, see whether the property is added or not. Thanks. Can you point to the article that you are following or put down the steps that you are following to Add Property. Please report this doc bug on http://connect.microsoft.co ...Show All
Filipe S. MFC Document / View Dilemma
I have a situation where it is not clear whether to use the document or the view. I think I must split the solution between the two, and MFC makes such things quite complicated. I am reading a file that has many record formats, and showing them in a CListView. I also need to show each record in a custom form when the record (row) is selected. I have about 50 record types and I am likely to have about 100 total. I have a base class and I derive a class for each type of record. Each class has a virtual function for reading each type. Those classes are in the document of course. MFC is designed such that the document does not call the view directly; we normally use UpdateAllViews instead. Each record type has a record type code th ...Show All
Kimmers Can't optimize my project
I want to optimize my project's size, so I selected the Minimize size (/01) option, but I can't compile it: cl : Command line error D8016 : '/O1' and '/RTC1' command-line options are incompatible What can I do The /RTC1 compiler option means "Enable run-time error check features". It seems that this option cannot be specified together with "Minimize size". Therefore you have to disable it. It can be found at Project Properties --> C/C++ --> Code Generation --> Basic Runtime Check . Change this value to "Default". I hope it helps. It seems that you are trying to optimize your program based on "Debug" compiler configuration. In my opinion it is better first to ...Show All
volleynerd Rounding to an integer
Hello, I tried compile the function below by rounding the double values of i. \2nd Mile\SampledFn.h(51): error C3861: 'round': identifier not found, even with argument-dependent lookup Any help It works with Dev C++ though. ================ public : // // evaluation operator - given x, return f(x); // _______________________________________________________________ virtual T_RANGE operator ()(T_DOMAIN x) const { if (x<x0 || x>xn) cout << "Value of of range!" << endl; //throw exception("Value of of range!"); double i = (x - x0)/del; // cout << "\ni = " << i << "\tdel = " << del << "\tx-x ...Show All
VTS How to get the local time in miliseconds
Dear All, using win32 C++, I just want to know what is the usual way to get the local time in the format "hr:min:sec.milisec" Your help is much appreciated regards Bassam What header files do I need to include Regards Bassam Someone else put the answer a bit earlier... You can use "GetLocalTime" function to get the local time. it will return the local time information in SYSTEMTIME structure passed to the funciton. please see the sample snippet SYSTEMTIME sysTime = {0}; GetLocalTime( &sysTime ); printf("%d:%d:%d:%d", sysTime.wHour,sysTime.wMinute,sysTime.wSecond,sysTime.wMilliseconds); Hi, ...Show All
Shazen Libraries linkage errors make me CRAYZEEE
Hey all, I"m frustrated from working with Visual C++ and libraries :/ I am developing my MFC based project, for which I wanted to add a log system to track my bugs and error msg and etc., I have created a static library project and created my Log class: Make sure that your .exe project and all static libraries link the same runtime library. For debug build, all projects should e.g. use "multi-threaded debug", and for release build, all should use "multi-threaded". The setting can be found in your project properties (ALT+F7) -> configuration properties -> c/c++ -> code generation. For one, I just noticed a post made by Marius Bancila in another thread: http://www.codeguru.com/forum/showth ...Show All
shishio ToolBar and StatusBar
Hi Friends, I have one serious trouble in creating toolbar and statusbar in Fram window function.The sample code is following, //to check, the main window created properly if ( CFrameWnd::OnCreate ( lpCreateStruct ) ) { // //if so,... //to return error value return -1; } //to check, the toolbbar created unsuccessfully if ( !m_wndToolBar.Create ( this , WS_CHILD | WS_VISIBLE | TBSTYLE_LIST | CBRS_TOP| CBRS_FLYBY | CBRS_TOOLTIPS )|!m_wndToolBar.LoadToolBar ( IDR_MAINFRAME ) ) { // //if so,... //to display the error message AfxMessageBox ( "Error in Tool Bar " ); //to return the error value return -1; } //to ...Show All
Irishman MFC Dialog Application disappears from alt-tab when displaying modal dialog
I have an MFC DIalog app. When it is displaying a modal dialog, the application does not appear on the alt-tab list unless the dialog style WS_EX_APPWINDOW is set on the modal dialog. Is there a way to get the application to stay on the alt-tab list without cluttering up the taskbar with a bunch of extra buttons As Bite Qiu indicates, it is better to ask in one of the relevant newsgroups. This question could be asked in a MFC newsgroup but this particular question might also be appropriate in a Platform SDK newsgroup. Usually, for MFC programs, a MFC newsgroup is best. That however is your descion and not the main thing I wanted to say. The Taskbar is documented quite well in The Taskbar and that shou ...Show All
Jon_V HASH method implementation in a COM DLL.
Hi All. I am currently writing a COM DLL on VB 6.0 and VC++. I need to implement a HASH METHOD in ATL/COM. Can any one please guide me in this implementation. Thanks in Advance. Hashing has little to do with ATL or COM. Writing hash functions in general is something easily learned by searching the web. Writing C++ functions in COM objects that can be called from VB is done using basic COM programming techniques that can be learned in COM programming tutorials. Hi Brian. Can you give me some site which gives the same in some tutorial manner. Thanks in advance. Here's a hashing function I've used for years: UINT HashBuffer(void* buf, UINT len, UINT slots) // Com ...Show All
Taylor Meek Trace
What is the trace I found a class and a tool... but what for Is it a particular log file How can I use it I talking about that tool and I talking about Trace class too. Tnx It's installed when you install the VS 2005 IDE. If I don't wrong there is something like it in VC++ 6 also. But I didn't understand what it's in general. There's lot of tracing tools, MFC TRACE macro jumps to mind, as does .NET's Trace class. Where did you find it That still doesn't narrow it down. Are you talking about the "MFC-ATL Trace Tool" That tool is useful to display tracing info generated by an MFC program with the T ...Show All
