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