User Profile

Collapse

Profile Sidebar

Collapse
vickyvick
vickyvick
Last Activity: Apr 22 '09, 09:59 AM
Joined: Jul 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Efficiency - RegcreatekeyEx Vs RegopenkeyEx

    Hi,
    I'm using Regcreatekeyex( ) to query a value, the frequency of using this function is very high and I was wondering if I could use the Regcopenkeyex function to optimise the code,Please leave aside the functionality of these two functions, I just want to know in the context of time efficiency. Could anyone guide me as to how to find if Regopenkeyex() is more efficient than Regcreatekeyex( )?

    Thanks,
    Vickram.
    See more | Go to post

  • Hi Plater,

    Simple mistake did me in, that was the cause of the issue, I had introduced the FileIOPermissio n line and assert line, but overlooked the filecreate part.
    Now its working fine.

    Thanks a lot.
    See more | Go to post

    Leave a comment:


  • vickyvick
    started a topic Create a text file on a network path using C#
    in .NET

    Create a text file on a network path using C#

    Hi,

    I'm new to C# and I'm developeing a utility which creates a text file and populates it with registry key values.

    It works fine on a local path, but with absolute path, it throws an error that "Access to the path .... is deined". Code is given below.

    StreamWriter SW1;
    FileIOPermissio n myPerm = new FileIOPermissio n(FileIOPermiss ionAccess.Write , "\\\\192.168.48 .125\\Shared");...
    See more | Go to post

  • 'System.IO.FileLoadException' occurred in Unknown Module.

    Hi, the only code that is present in main is given below

    string filePath;
    FileIOPermissio n FilePermission = new FileIOPermissio n(PermissionSta te.Unrestricted );
    FilePermission. AllLocalFiles = FileIOPermissio nAccess.AllAcce ss;
    StreamWriter SW;
    if (args.Length == 0)
    {
    filePath = string.Copy("C: \\miginfo.txt") ;
    SW = File.CreateText (filePath);...
    See more | Go to post
No activity results to display
Show More
Working...