Answer Questions
Mordt New Programmer Question
Sorry. // I am a 13 year-old with a talent for programming. Hi, Tom. Welcome. Can I suggest that statements like this aren't likely to rub people here very well You're writing a forms app in C++ or C# Because this is the C++ forum, but I'd have expected people to use C# more so for forms programming. The System.IO namespace contains all the stuff you need for reading and writing files. There is a File.REadAll static method that ...Show All
ericsbox71 Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
john.d Print Preview Architecture
I want to understand the architecture of PrintPreview. I didnt find any documentation regarding CPreviewView in MSDN plus explanation of Print Preview is very minimal. Can some one plz guide me to a detail article about Print Preview Artchitecture I shall be very thankful. Best Regards, CPreviewView is an internal undocumented MFC class. What do you want to know What do you need By the way ...Show All
rmccullough disabling items on a popup menu
Hi I am trying to gray items on a popup menu at run time. I used the following statement. file_menu->EnableMenuItem(ID_CONTACTS_PH1_PAGER, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED); But this is not working. I have no clue why this wont work. Coz it seems perfectly fine to me. Any suggestions anybody Regards Sharat Hi Sharat, Did you set the CMainFrame class' m_bAutoMenuEnable member to FALSE (the constructor is the place to do this) &nb ...Show All
JasonJ17 Problems signing a C++/CLI assembly in release mode.
I've got a managed C++/CLI assembly which I gacutil. I used to sign it in the C++ code like so: [assembly:AssemblyKeyFileAttribute("..\\..\\wrapper.key")]; but now that code is ifdef's (for previous versions), and I have this code in the vcproj file instead: <Tool Name="VCManifestTool" KeyFile="..\..\wrapper.key" /> It works fine in debug mode, not in release mode. (Although in both modes I get a warning from ...Show All
Dan Clash Dispose in C++/CLI
I know that there is a lot of articles about this, but it is still not 100% clear. Suppose that I have the following classes: Client (C#, uses Server class) Server (C++/CLI) Helper (C++/CLI, reference of this class is kept in the Server class). Running FxCop on my project, I get the following message about Helper instance: http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Usage/DisposableFieldsShouldBeDisposed.html ...Show All
TommyKohler Class, which returns a value
I've got a class: class MyClass{}; And I've got a varyable of this class: MyClass myVaryable; And I want this myVaryable to return a value. For example: class MyClass{}; MyClass myVaryable; std::cout << myVaryable; And I want C++ to write someting like: "MyVariable's value". How can I realise this http://www.codeproject.com/vcpp/stl/iostreaminserters.asp That's my article on iostream inserters and extractors. write your o ...Show All
opc3 Error running compiled program
Hi, I just finished compiling a program using MSVC 2005 and when I try to run it I get this message: 'The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.' I've checked my manifests and they seem correct. Does anyone know what I need to do to make it work correctly I'm sorry if I'm not giving enough info here. Thanks. ...Show All
jagdeep singh Write C file
how do you write a C file in Vis C++ Hi, How come do you want to write a C file in VSC++2005 Is there any reason for that If so, let me know it. I am really interested in it. Note: Some experts say that C++ supports a superset of C. Thank you very much in advance. It took me a while to work this out myself Select: File - New - File... Select a C++ File (just try and igno ...Show All
AnthonyH Stopping my NT service failed after TimeOut
Hi, I've created a service in VC++ (unmanaged code) on Visual Studio 2005. Everything works fine. But I still have a problem to stop my service. During its termination, my service needs time to communicate with external components (about 5 minutes). When I stop my service from the "Control manager", my service enters in a STOP_PENDING state. I start a independant thread which refresh its status by calling regularly SetServiceStatus. Bu ...Show All
congminh6 Need help with a program...
Hey everybody. I've written this program and cannot figure out why it won't work. Here are my requirements... A teacher wants a program which will test students’ memory of the values of small integers squared. She asks for a program which prompts the students for an integer. It then asks them for that number’s square. If their answer is correct they are congratulated if it is incorrect the correct value is given. Because she wants t ...Show All
Benne Inside SHGetFolderPath
Hi, I just discovered while running my application with Application Verifier , that a call to SHGetFolderPath causes the application verifier to log an error related to RegCreateKeyExW. That is, a call to SHGetFolderPath , internally calls RegCreateKeyExW for the reg key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders I was wondering why would SHGetFolderPath need to create a registry key All i ...Show All
Vallari Kamble MSFT Error while compiling.
I got this two errors while compiling my whole project : 1.error LNK2019: unresolved external symbol _sleep referenced in function _Error 2. fatal error LNK1120: 1 unresolved externals Can some one please help, thanx Cheers, C Try using time.h. Take a look at the following links for more details: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_crt_clock.asp http://msdn.microsoft.com/library/default.asp ur ...Show All
tford65 Notification on Text change for Windows Control
Hello, I have a question in SDK windows programming. I have a window control, implemented as an editable control for user to enter text. User can add text in the window control either by typing through keypad or copy/paste using mouse. I call GetWindowText() to read text from the control. I want to display a message while user is entering text or copying a value, if the text exceeds a certain length. I am aware that I can trap keyboard a ...Show All
Dhanhamsan Gunalan Compare and Contrast VS 2003 and VS 2005 Express
Could somebody please tell me, or point me to an appropriate link, that has the major differences between VS 2003 and VS 2005 Express. I want to use the .NET 2.0 framework, but since VS 2003 doesn't support 2.0 (much to my disappointment), I'm not looking into considering using VS 2005 Express instead. Thanks in advance. ~Chris Express doesn't have: ATL Support MFC Support Ressource Editor SDK with standard ...Show All
