Answer Questions
BuckWoody strcpy_s / strcat_s / sprintf_s
I have found out the hard way that these functions pad the output buffer to its maximum extent with character 0xfd That's great, but could the documentation say something to make it clear this happens "anonymous@discussions.microsoft.com" <OneRing@discussions.microsoft.com> wrote in message news:7bb8da2f-2dd3-4f1a-97b0-3ea507fa09ba_WBRev1_@discussions.microsoft.com >> No. If you call memcpy, whether ...Show All
TLentine deleting a character that was written at the command promt
if I cout<<" bla bla bla "; i get bla bla bla how can i delete the last "bla " so it apears like bla bla Strange question. How about cout << "bla bla" Or cout << "bla bla bla\b\b\b \b\b\b". I know the question sounds s trange but I tried to make it mor simpler . here's the real problem : I want to cout a messege and ...Show All
Ravi Thapliyal UNICODE and RichEdit control
How can write a UNICODE string in a RichEdit control (ReplaceSel has as argument only a LPCTSTR) sdiaconescu2001 wrote: How can write a UNICODE string in a RichEdit control (ReplaceSel has as argument only a LPCTSTR) If this is a Unicode build, then an LPCTSTR maps to a LPCWSTR (pointer to a const wide character string), which is what you need. Just use the _T macro. pRichEdit->ReplaceSel( _T("...") ); ...Show All
Brian Leslie msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled ...Show All
Bength CEdit
I'm trying to do something that I thought should be trivial, but after hours of searching I still haven't figured it out. I have a dialog application (actually CFormView) with some edit fields. These edit fields control display output for an GL display. What I would like to do is get a message back when the user has finished changing the edit field, i.e. when they hit return. So far all I've found are the "CHANGE" and "UPDATE" ...Show All
tp_hi Win64 gethostbyname() exception
Under Win64 (amd64) I'm doing the following system call: struct hostent *lpHost; if ((lpHost = gethostbyname(szHost)) == NULL) return false; When doing so everything goes fine but in the VS2005 debug "output" window I see the following silent exception: First-chance exception at 0x7d4e228c in mytest.exe: 0x000006C5: The tag is invalid. I have verified that the code is correct and that everything works as it's suppose ...Show All
albertvanbiljon 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
Ria array of class objects
Hello all. I am new to C++ and I just have a couple questions. Im working on a version of the game of life which can be found here ... First off, I am reading a file which contains 1's and 0's, creating an object for each 1 or 0, and then putting all of the objects into an array. I think I have that working but this is where I am getting lost.. I already have a method from when I did this same project but didnt use objects (just the integers). I ...Show All
Mahesh Bhosle Multiple Resource Files
Hello. I have been "told" that my app may need to operate in multiple languages. As far as I can tell this will need me to create another resource file, with all the same dialogs, menu's etc just with different languages. So "File" is something else in spanish. I realise that this is a labourous task etc. I was wondering where it is in Visual studio that you can specify to use a different .rc file As I understand it is a ...Show All
Srinivas Raju How do I create a folder for my library files?
I have a DLL project and I want to create a folder to contain my library files. In Visual Studio 6, all of our projects have a "Library Files" folder that contain our .lib files. When using Visual Studio 2005, I right click on the project and try to add a folder called "Library Files" and all it does is create a physical folder in the project directory and I cannot associate .lib files with it. How can I create a folder to ho ...Show All
TIrthma no compile tool is associated with the file extension
I have been using C++ for a long time, but have just recently been forced onto a new compiler. I've installed MSDN and Visual C++. Now I can't get anything to compile. So I'm back to the basics with a simple Hello World program. I still get: Cannot compile the file 'c:\c++\HelloWorld\HelloWorld.cpp'; no compile tool is associated with the file extension. Where should I be looking for the compiler settings and what should they look l ...Show All
Masterbrain Problem executing code on other systems.
I'm hoping that I am forgetting to do something obvious. But, I seem to be unable to write code that works on any system other than my own. I'm currently using Visual Studio 2005 If I compile my project on my 64 bit machine, the code will only execute on this machine. If I compile it on my 32 bit machine, it will execute on both my 32 or 64 bit machine but no one else's. Old code with project files from older versions of Visual Studi ...Show All
dor windows message
Hi i have a dll witch registers a windows message.. and send it to a window.. RegisterWindowsMessage retruns the message id .. but how will my application know for what id of message to look for actually my problem was that the c# application wont know the message id.. but you ispared me .. i return the message id when it call the dll CreateHook ThaNks!! You need to store the value returned, and pass it to the app which consumes ...Show All
CampAlbion _inp/_outp Functions
I want to read and write the parallel port. I looked up _inp/_oup at http://msdn2.microsoft.com/en-us/library/y7ae61bc.aspx . In the remarks section it says that _inp/_outp "might not be used in user code in...Windows XP". However, WinXP is listed as being compatible. So, can I or can't I use it Are there dangers in using _inp or _outp VF VFaul wrote: I want to read and write the ...Show All
JH_ VC++ User Control Troubles
I had a user control project up and running. It compiled just fine. All of a sudden it kept compiling even if there were blatent errors with the code such as a missing semicolon or random text splattered somewhere it shouldn't be. Now my *.dll file is built and I can't even use it in my main project. Does anyone have any insight into this problem Hah! I religiously cleaned it... Then I created a new project and copied/pasted my code from ...Show All
