Jump to content
Xtreme .Net Talk

Grasshopper-NET

Members
  • Posts

    18
  • Joined

  • Last visited

Grasshopper-NET's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The most common bug with loading any resource is the file path. You either need to use the full file path or place the file in the app directory.
  2. MDX is no longer avaliable in the DXSDK as of Nov. :(
  3. Sorry wrong question. It's late, I'm typing but not as I'm thinking.? If that makes any sense. I meant MDX 2.0, but I found the answer. So an admin. can delete this post. Thanks.
  4. Which is the last DirectX 9 SDK it ships with?
  5. First do you know how events work? If not you can read this page. DirectX has it's own set of events that apps would hook into. DX fires the events and your app would respond to them.
  6. Out of curiosity is this similar to a security voice check?
  7. Yes. How far along in the code are you? This would help with a starting point.
  8. This thread was really helpful. I was just having the same idea and thought let me check the boards. Vola! Here it is. Thanks
  9. Thanks for the link.
  10. Can anyone direct me to where I can find some [free] managed language text editors with a UI to implement in my program. Thanks alot.
  11. Thanks for the help I also found some owner-drawn menu tutorials on the net.
  12. I've been using Visual Studio .NET 2003 and it just occurred to me that when I create a context menu or menu, I can't find a property to add icons or images to the menu items. But in Visual Studio .NET 2005 there is a property that allows this. Okay, here's my question can I add icons/images to my menu items in VS2003? Thanks for reading. :)
  13. Thanks, that helped alot. :D
  14. I'm trying to display an error message using System::Windosw::Forms::MessageBox::Show(); These are my headers: using namespace System; using namespace System::IO; using namespace System::Data; using namespace System::Text; using namespace System::Windows::Forms; using namespace System::Collections; /// ----------------------------------------------------------------------- ///<summary> Creates a new file in the given path or current directory /// ----------------------------------------------------------------------- static void CreateNewFile( String* filename, String* text, bool overwrite ) { StreamWriter* streamWriter; // Check to see if the user is writing over an existing file. if (File::Exists(filename) && !overwrite) { if (MessageBox::Show(S"That file exists. Would you like to overwrite it?", S"File Overwrite?", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == DialogResult::No) { // Leave the subroutine return; } } // The StreamWriter must be defined outside of the try-catch block // in order to reference it in the __finally block. // Ensure that the creation of the new StreamWriter is wrapped in a // try-catch block, since an invalid filename could have been used. try { Shared (static) File class. streamWriter = File::CreateText(filename); // Write the entire contents of the text // to the StreamWriter in one shot. streamWriter->Write(text); streamWriter->Flush(); } catch (Exception* exc) { // Show the error to the user. MessageBox::Show(String::Concat(S"File could not be created or written to.\r\nPlease verify that the filename is correct, and that you have read permissions for the desired directory.\r\n\r\nException: ", exc->Message), S"File Error", MessageBoxButtons::OK, MessageBoxIcon::Error); } __finally { // Close the object if it has been created. if (streamWriter) streamWriter->Close(); } };
  15. ----- error C2653: 'MessageBoxA' : is not a class or namespace name ------ I included all the correct .NET references in my project, but somehow it doesn't distinguish between the Windows version and the .NET version.
×
×
  • Create New...