creating dll's

hey i am designing a program and i was wondering if it is possible to create a dll in Visual Basic Express Edition
well, maybe I should rephrase that. I'm designing a program where when you click a button it opens a text editor(already have that made). Someone told me that to reference the program in the code you need to create a dll(is this true )


Answer this question

creating dll's

  • Brian Cohen

    I just tried:

    Process.Start("notepad.exe")

    and it worked the first time.

    Have you any error information



  • Mark J.

    When I issue that command, Notepad comes up.

    You have a systems problem, not a coding problem.

    I believe that there is a problem with notepad itself.  Either the files is not there, there is a permissions problems or it's corrupted. What puzzles me is the absense of error messages.

    What version of Windows are you running

     



  • MSTony

    nothing


  • scotthunter

    Shak,

    Normally there is a path variable which includes that directory.

    When I open a command window, and enter:

    c:\>path

    it will display the path information for the system:

    C:\>path
    PATH=e:\Program Files\DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86;C:\WINDOW
    S\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Fi
    les\Microsoft SQL Server\90\Tools\binn\;

    If you'll notice windows and windows\system32\ are pre-defined.

    I didn't mark my answer correct so the OP did. I was curious to know what the problem was.



  • DrFlick

    Did you set a breakpoint to make sure your code is called Have you tried putting that code somewhere else ( in your static void main, for example ) and seeing if it runs notepad - it certainly should.



  • Jibbles

    Wait a second - are you saying that you wrote a text editor, and now you think you need to put it in a dll in order to run it from another app If so, then you just need Process.Start(path to your text editor). You certainly don't need a dll, either way.



  • Steven Hahn

    hi,

    i guess you have to find out where is the proplem exactly in your code or your notepad or may be your system

    try to replace Process.Start("notepad.exe") with Process.Start(full path to a program you wrote and you are sure its working)

    i guess that will make you figure out where is the problem because notepad is working here as well when i use this line

    hope this will help



  • Kamran Amin

    heres the code I used:

    Private Sub BackupValuesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackupValuesToolStripMenuItem.Click
    Process.Start("notepad.exe")
    End Sub

  • Sergey Averchenkov

    What happens when you do Start | Run

    Notepad.exe



  • Muzukashii

    thanks, but that didn't work
    i tried that way, and also tried this:
    Process.start("%SystemRoot%\system32\notepad.exe")

  • Agachart

    How did it 'not work' If you want it to open your file, you need to pass the path to it as a command argument. If you need to pass the path to notepad then your environment variables are broken, and you have to resolve %SystemRoot% yourself.



  • Arvind Surana

    Yes you can make a dll in VBE.

    No it isn't needed. You can bring up a text editor in a single line of code.

    process.start("notepad.exe")



  • Rama kuppa

    Works Here Bigger Than Sin.......

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Process.Start("notepad.exe")

    End Sub

    End Class


  • homerc44

    well, there wasn't an error, really
    i'm trying to make an object in a menustrip load a text editor
    when i do process.start("notepad.exe") when i click the object on the text editor it does nothing

  • creating dll's