Jump to content
Xtreme .Net Talk

zingbats

Members
  • Posts

    8
  • Joined

  • Last visited

About zingbats

  • Birthday 04/14/1988

zingbats's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have just purchased Borland C++ builder (I know :( I feel ashamed). I know these are about the .NET framework, but I wondered if you could help?! I am following the tutorial but I am getting a linking error while compiling. Here is my code (all of it) and the error: The error is: [Linker Error] Unresolved external '__fastcall TForm1::HelpIndexExecute(System::TObject *)' referenced from C:\BORLAND\PROJECTS\TEXTEDITOR\UNIT1.OBJ //THE CPP FILE: //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } void __fastcall TForm1::FileNewExecute(TObject *Sender) { RichEdit1->Clear(); FileName = "untitled.txt"; StatusBar1->Panels->Items[0]->Text = FileName; } //--------------------------------------------------------------------------- void __fastcall TForm1::FileOpen1Accept(TObject *Sender) { RichEdit1->Lines->LoadFromFile (FileOpen1->Dialog->FileName); FileName = FileOpen1->Dialog->FileName; StatusBar1->Panels->Items[0]->Text = FileName; } //--------------------------------------------------------------------------- void __fastcall TForm1::FileSaveExecute(TObject *Sender) { if (FileName == "untitled.txt") FileSaveAs1->Execute(); else RichEdit1->Lines->SaveToFile(FileName); } //--------------------------------------------------------------------------- void __fastcall TForm1::FileSaveAs1BeforeExecute(TObject *Sender) { FileSaveAs1->Dialog->InitialDir = ExtractFilePath (FileName); } //--------------------------------------------------------------------------- void __fastcall TForm1::FileSaveAs1Accept(TObject *Sender) { FileName = FileSaveAs1->Dialog->FileName; RichEdit1->Lines->SaveToFile(FileName); StatusBar1->Panels->Items[0]->Text = FileName; } //--------------------------------------------------------------------------- And the .h file: //--------------------------------------------------------------------------- #ifndef Unit1H #define Unit1H //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <ActnList.hpp> #include <ActnMan.hpp> #include <ComCtrls.hpp> #include <StdActns.hpp> #include <ActnCtrls.hpp> #include <ActnMenus.hpp> #include <ToolWin.hpp> //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TRichEdit *RichEdit1; TStatusBar *StatusBar1; TActionManager *ActionManager1; TAction *FileNew; TAction *HelpAbout; TEditCut *EditCut1; TEditCopy *EditCopy1; TEditPaste *EditPaste1; TFileOpen *FileOpen1; TFileSaveAs *FileSaveAs1; TFileExit *FileExit1; TAction *FileSave; TActionMainMenuBar *ActionMainMenuBar1; void __fastcall HelpIndexExecute(TObject *Sender); void __fastcall FileNewExecute(TObject *Sender); void __fastcall FileOpen1Accept(TObject *Sender); void __fastcall FileSaveExecute(TObject *Sender); void __fastcall FileSaveAs1BeforeExecute(TObject *Sender); void __fastcall FileSaveAs1Accept(TObject *Sender); private: // User declarations public: // User declarations AnsiString FileName; __fastcall TForm1(TComponent* Owner); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif
  2. Well, I am going to cunningly take back the VB.NET CD collection to the shop I bought it in an buy the VS.NET package instead :D
  3. Ahh I understand, but, at the moment, I just have VB.NET Which I am assuming MUST have .net files installed to work. ^_^ (which means I have to spend out yet MORE money)
  4. Well, My objective is to create a program where I can distribute it to my friends etc even if they do not have the .net framework. Even if certain VB.net DLLs or w/e were included with the .exe, anything but the .net framework.. I don't care what fancy .net product I use, as long as it is able to be distibuted At the moment, I only have VB.net, but I May get the studio... It is a classic case of microsoft globalising everything.
  5. To my knowledge, the Visual C.net outputted programs require (as always) the .NET framework which kinda defeats the point of a "standalone" program... Do any of you know a similar sytem to Visual C that works in a similar way, but JUST uses C and requires nothing else? Would it be possible to copy C code created in VC into another C compiler and thus force it from requiring the .net framework?
  6. Hi! I try and make a list of my problems at the end of most days and post them in a grouped post. (to prevent too many posts and I usually figure them out!) First question, I have a mutiline text box with a rightclick menu. I have a copy area and want to make it copy selected text (if there is any selected) and the whole box if there is none selected. As well, in notepad, u resize the window and the txt area resises; in VB, that doesn't happen, how can I set it... Regards; Alex.
  7. U learn summit everyday. I would like to say that I am very impressed with the standard of this forum and the speed at which my query was answered. =) I hope one day I will be here helping people as well :p
  8. I have just bought VB.NET and I think that is very well constructed and well designed. I am making a PHP editor (like a text editor) to start off making simple programs. I can save files, edit files, but, when I open the text file into the main box, it only opens the first line of text within the file. I tried the rich text thingy but that creates boxes as line breaks which aren't readable by notepad. It needs to be readable by notepad!. I stopped it printing with line break "boxes" by changing the box type to multiline text boxt. Here is my code. OpenDialog1.ShowDialog() FileOpen(1, OpenDialog1.FileName, OpenMode.input) Input(1, TextBox1.Text) FileClose(1) Are there any settings I need to change? Kind regards; Alex
×
×
  • Create New...