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. C#
  4. vb to C#.Net

vb to C#.Net

Scheduled Pinned Locked Moved C#
csharpdatabase
5 Posts 3 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.
  • A Offline
    A Offline
    Ankit Aneja
    wrote on last edited by
    #1

    Dim WithEvents p As CLAMXLib.ClamEngine Private Sub Form_Load() Set p = New ClamEngine p.Database.Path = "E:\projects backup\ankitclam backup\Clamtest\database\" End Sub in vb code was written as above now in C# i am writing my own function instead of using Form_Load() and calling that from somewhere else well i want to know conversion of line Set p = New ClamEngine how will we write this line in C# i have written till now CLAMXLib.ClamEngine p; public void myfunction() {// here i want that line p.Database.Path="E:\\projects backup\\ankitclam backup\\Clamtest\\database\\"; } Ankit Aneja "Nothing is impossible. The word itself says - I M possible" -- modified at 7:54 Wednesday 23rd November, 2005

    L A 2 Replies Last reply
    0
    • A Ankit Aneja

      Dim WithEvents p As CLAMXLib.ClamEngine Private Sub Form_Load() Set p = New ClamEngine p.Database.Path = "E:\projects backup\ankitclam backup\Clamtest\database\" End Sub in vb code was written as above now in C# i am writing my own function instead of using Form_Load() and calling that from somewhere else well i want to know conversion of line Set p = New ClamEngine how will we write this line in C# i have written till now CLAMXLib.ClamEngine p; public void myfunction() {// here i want that line p.Database.Path="E:\\projects backup\\ankitclam backup\\Clamtest\\database\\"; } Ankit Aneja "Nothing is impossible. The word itself says - I M possible" -- modified at 7:54 Wednesday 23rd November, 2005

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      ClamEngine p = new ClamEngine(); regards

      A 1 Reply Last reply
      0
      • L Lost User

        ClamEngine p = new ClamEngine(); regards

        A Offline
        A Offline
        Ankit Aneja
        wrote on last edited by
        #3

        in vc++ like this m_spIClamEngine.CreateInstance(__uuidof(ClamEngine)); when i write ClamEngine p = new i am not getting ClamEngine() at end Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

        1 Reply Last reply
        0
        • A Ankit Aneja

          Dim WithEvents p As CLAMXLib.ClamEngine Private Sub Form_Load() Set p = New ClamEngine p.Database.Path = "E:\projects backup\ankitclam backup\Clamtest\database\" End Sub in vb code was written as above now in C# i am writing my own function instead of using Form_Load() and calling that from somewhere else well i want to know conversion of line Set p = New ClamEngine how will we write this line in C# i have written till now CLAMXLib.ClamEngine p; public void myfunction() {// here i want that line p.Database.Path="E:\\projects backup\\ankitclam backup\\Clamtest\\database\\"; } Ankit Aneja "Nothing is impossible. The word itself says - I M possible" -- modified at 7:54 Wednesday 23rd November, 2005

          A Offline
          A Offline
          anandss
          wrote on last edited by
          #4

          p = new CLAMXLib.ClamEngine();

          A 1 Reply Last reply
          0
          • A anandss

            p = new CLAMXLib.ClamEngine();

            A Offline
            A Offline
            Ankit Aneja
            wrote on last edited by
            #5

            it is not showing ClamEngine(), after CLAMXLib. p=new CLAMXLib. and running fine in vb and vc++ Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

            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