Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Mixing VB 2005 with assembly language

Mixing VB 2005 with assembly language

Scheduled Pinned Locked Moved Visual Basic
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orlando_Herrera
    wrote on last edited by
    #1

    Sorry I'am from Mexico, my english es very mistaken. I need mix Assembly language with VB 2005. I need get a information of the PC ( RAM, HD size ) with a aplication assembler and display the information in my WinForm of Visual Basic 2005. thanks for your aid !!! :)

    N D 2 Replies Last reply
    0
    • O Orlando_Herrera

      Sorry I'am from Mexico, my english es very mistaken. I need mix Assembly language with VB 2005. I need get a information of the PC ( RAM, HD size ) with a aplication assembler and display the information in my WinForm of Visual Basic 2005. thanks for your aid !!! :)

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      research WMI

      1 Reply Last reply
      0
      • O Orlando_Herrera

        Sorry I'am from Mexico, my english es very mistaken. I need mix Assembly language with VB 2005. I need get a information of the PC ( RAM, HD size ) with a aplication assembler and display the information in my WinForm of Visual Basic 2005. thanks for your aid !!! :)

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can't mix assembler into a VB.NET app. Besides, what you want can be accomplished much easier with Windows Manangement Instrumentation (WMI) and the classes in System.Management namespace.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        O 1 Reply Last reply
        0
        • D Dave Kreskowiak

          You can't mix assembler into a VB.NET app. Besides, what you want can be accomplished much easier with Windows Manangement Instrumentation (WMI) and the classes in System.Management namespace.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          O Offline
          O Offline
          Orlando_Herrera
          wrote on last edited by
          #4

          Sorry. Can I connect a program of assembly language to my application in VB ? Scan my PC from the program assembly and connect to ny aplication. is it possible? sorry, my english is very bad. Mexico OrLaNdO HeRReRa

          P D 2 Replies Last reply
          0
          • O Orlando_Herrera

            Sorry. Can I connect a program of assembly language to my application in VB ? Scan my PC from the program assembly and connect to ny aplication. is it possible? sorry, my english is very bad. Mexico OrLaNdO HeRReRa

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            rammsteinohr wrote:

            Can I connect a program of assembly language to my application in VB ?

            All native machine code is already in machine language. You can write assembly code that is in a .dll and called from .NET. How to do so is beyond a forum post. There is an article around here at CP about it.

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            1 Reply Last reply
            0
            • O Orlando_Herrera

              Sorry. Can I connect a program of assembly language to my application in VB ? Scan my PC from the program assembly and connect to ny aplication. is it possible? sorry, my english is very bad. Mexico OrLaNdO HeRReRa

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Yeah, it can be done. But how you communicate with that assembly code is entirely up to how that code is written. Without knowing how the assembly code expects you to call it and receive return values, it's impossible to say.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              O 1 Reply Last reply
              0
              • D Dave Kreskowiak

                Yeah, it can be done. But how you communicate with that assembly code is entirely up to how that code is written. Without knowing how the assembly code expects you to call it and receive return values, it's impossible to say.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                O Offline
                O Offline
                Orlando_Herrera
                wrote on last edited by
                #7

                so, as I can create a DLL in assembly language? where search Information about it ? give me the URL or LINK please !!!

                D 1 Reply Last reply
                0
                • O Orlando_Herrera

                  so, as I can create a DLL in assembly language? where search Information about it ? give me the URL or LINK please !!!

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  There is very little on assembly language under Windows because hardly anyone ever uses it. Why are you fixated on assembly?? What are you doing that makes you think you require it?

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  O 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    There is very little on assembly language under Windows because hardly anyone ever uses it. Why are you fixated on assembly?? What are you doing that makes you think you require it?

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    O Offline
                    O Offline
                    Orlando_Herrera
                    wrote on last edited by
                    #9

                    Is a School project, is hibrida or hybrid programming ("programacion hibrida" in spanish). The teacher say: "Use Assembly Code with another language (mixing)". And i want programmin VB 2005 with Assembly language...... But the information is little.....if you can help me....i will happy Thanks !!!

                    D 1 Reply Last reply
                    0
                    • O Orlando_Herrera

                      Is a School project, is hibrida or hybrid programming ("programacion hibrida" in spanish). The teacher say: "Use Assembly Code with another language (mixing)". And i want programmin VB 2005 with Assembly language...... But the information is little.....if you can help me....i will happy Thanks !!!

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #10

                      You're going to have to create two seperate project. An assembly language project compiled with an assembler, or you could write in-line assembly into a C++ component, which compiles to a .DLL, and a seperate VB.NET project to consume the library functions you write. Google for "Windows assembly language" if you want examples.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups