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
A

abhinish

@abhinish
About
Posts
106
Topics
47
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to enable Browser Helper Object (BHO) and Toolbar in Internet Explorer using c#
    A abhinish

    Hello Ravi, Thanks for your guidence, but actually what I want is to enable or diable existing BHO in IE as we are making an Browser add-on manager. When existing BHO is enabled or disabled its entry is modified in HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Approved Extensions but we are not able to understand the value data information inside it. If you can put any light on it, It would be a great help.

    abhinav

    C# csharp help tutorial

  • How to enable Browser Helper Object (BHO) and Toolbar in Internet Explorer using c#
    A abhinish

    Hi I want to enable Browser Helper objects (BHO) and Toolbars in Internet Explore using c# window Application. To enable BHO and Toolbars a value has to be created in "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Approved Extensions" Key. Name of the value is Id of BHO/Toolbar. I want to know what data is set in that value and how it is generated. More over are there any classes or interfaces provided for internet explorer which can be used to do the need full. Any help would be great. Thanks in Advance

    abhinav

    C# csharp help tutorial

  • add application to \\root\SecurityCenter2\antispywareproduct as antispyware
    A abhinish

    Hello Guys, We are developing an antispyware program in .net and i want to register my product for listing it into windows security center. I Searched a lot about it and got some idea that it can be done through WMI by \\root\SecurityCenter2 namespace and antispywareproduct class. But all i found was to get the information for antispywareproduct class. Can any one tell me how to add my product to this table. any ideas will be a great help. Regards

    abhinav

    C# csharp security help tutorial

  • Problem with reteriving xml data from sql data base.
    A abhinish

    XmlDocument document = new XmlDocument();
    using (SqlDataReader dr = oComm.ExecuteReader())
    {
    if (dr.Read())
    {
    if (!dr.IsDBNull(0))
    document.Load(dr.GetSqlXml(0).CreateReader());
    }
    }

    I think this is what you want

    abhinav

    C# csharp database xml help

  • Drag and drop not working in windows 7 if application is launched as administrator with UAC enabled
    A abhinish

    Hello guys, Need some expert advise. I am developing a c# windows application which runs as administrator. The problem is on windows 7 and Vista, drag and drop on the application do not works when UAC is enabled. I researched a lot and found that this is because of UIPI (User Interface Privilege Isolation) and on MSDN I found some information asking to allow the filtered messages again by using ChangeWindowMessageFilter API. I tried it and called it on form_load event some thing like this private const uint WM_DROPFILES = 0x233; private const uint WM_COPYDATA = 0x004A; private const uint MSGFLT_ADD = 1; //in form load i called ChangeWindowMessageFilter(WM_DROPFILES, MSGFLT_ADD); ChangeWindowMessageFilter(WM_COPYDATA, MSGFLT_ADD); ChangeWindowMessageFilter(0x0049, MSGFLT_ADD); But it still dont work.. may be i am missing some thing, I tried to set the property uiAccess="true" also in the manifest file and signed the exe but it still dont work. Am i calling the ChangeWindowMessageFilter incorrectly or is there any another way ? Can any one help me regarding this. I had to run the application as administrator as it modifies some registries Any help would be great Thanks in advance Regards

    abhinav

    C# help csharp design json question

  • Display System.Windows.Forms.Form as child of Wpf Window
    A abhinish

    thanks John for ur quick reply can you please provide me some helpful links actually i searched a lot but didnt found any apropriate solution

    abhinav

    WPF csharp help wpf winforms tutorial

  • Display System.Windows.Forms.Form as child of Wpf Window
    A abhinish

    Hello all, I am quite new in wpf and i am having some problem in displaying an System.Windows.forms.Form as child of my WPF main window I have a WPF application opening some system.windows.forms.form from WPF menu but the problem is i am unable to make those winforms as child of WPF Main Window because of which i cant show the winform as center parent. Can anybody help me out how to make the WPF Window parent of the windows.forms.form

    abhinav

    WPF csharp help wpf winforms tutorial

  • Sqlite with c# unsigned long problem
    A abhinish

    thanks Dmitry :) that did the trick

    abhinav

    C# database help csharp sqlite

  • Sqlite with c# unsigned long problem
    A abhinish

    Hello Dmitry, First of all thanks a lot for your quick reply this work around works great and the value is storing and retreiving properly :) but now the problem is I cant query the the 'value' field of 'tt' table

    select * from tt where value = 18446744073709551614

    this does not work can you please help me. thanks a lot again for your help

    abhinav

    C# database help csharp sqlite

  • Sqlite with c# unsigned long problem
    A abhinish

    Hello every one, I am trying to store some Unsigned long values in sqlite database using the sqlite.data.dll in c# windows application i tried to take BigInt as datatype in database but it resulted overflow exception, the result was obvious unsigned long value was too big So I switched the data type to Numeric in database ... now data is inserting properly but when i try to retreive the value back using sqlitedatareader the value is truncated I am totally lost which data type should i use to store ulong value in sqlite database i dont want to take varchar datatype and if I use binary i'll not be able to query on table for ulong values Can any one please help me out what should i use

    abhinav

    C# database help csharp sqlite

  • Deserializing Generic List<object> taking a lot of time</object>
    A abhinish

    Hello Ilia, can you please give me any example or some link for cusuom deserialization to start of with it would be a great help

    abhinav

    C# json performance help

  • Deserializing Generic List<object> taking a lot of time</object>
    A abhinish

    Hello Guys, Need some help from you guys. I have Generic List having a Class object. I have added around 3000000 items in the list List <CTempClass> lsTemp = new List <CTempClass> (); when i tried to Serialize the with binary formater it is working fine but when I deserialize the List it takes a lot of time around 30 Seconds. But when i fill the Generic List with any datatype like List<ulong> lsTemp = new List<ulong>(); and follow the same procedure the speed difference is drastic the while thing deserializes in 1 -2 Seconds My Class object is Declared Serializable. I dont understand why it is serialzer is behaving like this. Am i Missing something. Here is the Sample Code : List<CTempClass> lsTemp = new List<CTempClass>(); for(int i=0; i < 5000000;i++) { CTempClass oTemp = new CTempClass(); oTemp.ID = i; lsTemp.Add(oTemp); oTemp=null; } using (Stream stream = File.Open("c:\\data.bin", FileMode.CreateNew)) { BinaryFormatter bin = new BinaryFormatter(); bin.Serialize(stream, lsTemp ); } //this takes a lot of time using (Stream stream = File.Open("c:\\data.bin", FileMode.Open)) { BinaryFormatter bin = new BinaryFormatter(); var lsTemp1 = bin.Deserialize(stream); } here is the code of temp class [Serializable] public class CTempClass : ISerializable { // public int nId; private ulong m_uCrc64; public CTempClass () { m_uCrc64 = 0; } //Deserialization constructor. public CTempClass (SerializationInfo info, StreamingContext ctxt) { //Get the values from info and assign them to the appropriate properties m_uCrc64 = info.GetUInt64("m_uCrc64"); } //Serialization function. public void GetObjectData(SerializationInfo info, StreamingContext ctxt) { info.AddValue("m_uCrc64", m_uCrc64); } } Can any one please tell me why it is taking so much of time. Any suggestion will be a great help

    abhinav

    C# json performance help

  • How to search word starting with character 'a' Sql Full Text Indexing
    A abhinish

    Hi guys, need some help. i am trying to create a Full text index query for searching all the records having words starting with a particular character for eg. 'A' i tried using Contains Clause with '*' wild card my query is :-

    select * from table where contains (columname,'"A*"');

    results are coming fine but the problem is that it returns all the records in which there is any word between the string starting with A . I need only those records in which the starting char of the column is 'A' similar to the query -

    select * from table where columname like 'A%'

    but i dont want to use like query as it will slower the results .. any help will be appreciated

    abhinav

    Database database help algorithms tutorial

  • Access Network through asp.net 2.0 application
    A abhinish

    hi guys! need some help. i need to access files from my local network through an Asp.net Application on win2k3 IIS 6. i tried to open the file through filestream but it gives an Access Denied error . i tried this: string ActualPath = "\\\\192.168.0.26\\c$\program files\abc\abc.exe" FileStream file = new FileStream(ActualPath, FileMode.Open, FileAccess.Read); but it thows an unauthroized access exception.. but when i try to run this code on XP with iis 5 . it works fine . cant figure it out wtz the problem.

    abhinav

    C# help csharp asp-net sysadmin windows-admin

  • directory in c#
    A abhinish

    hi! try this DirectoryInfo dr1 = new DirectoryInfo("c:\\dirname"); if (dr1.Exists) { MessageBox.Show("Directory Exists") }

    abhinav

    C# csharp help

  • Sleep in an application
    A abhinish

    hi! use Thread.Sleep(5000); // this will sleep the thread for 5 seconds

    abhinav

    C# database help question

  • remote registry access problem
    A abhinish

    hi Ranjith! u should have administrator rights for accessing remote registry service on a remote machine .. by d way why dont u use WMI for getting all d installed applications on local or remote machine.. try using 'Win32_Product' class for getting the list of installed application.. but for this also u should have Administrator Previleges .. on remote machines..

    abhinav

    C# help windows-admin question

  • WMI win32_product class install method.
    A abhinish

    hi guys ! need some help. im developing an enterprize deployment appplication which install client softwares on remote machines in a LAN . I m using WMI win32_product class's install() Method for this.. the problem is i want to create a installation log file for the installed software on client machine .. .. how can i do this install() method sample code:

    ConnectionOptions options = new ConnectionOptions();

            ManagementScope scope = new ManagementScope("\\\\\\\\" + sRemoteMachine + "\\\\root\\\\cimv2", options);
            scope.Connect();
            ManagementPath mp = new ManagementPath("Win32\_Product");
    
            ManagementClass classInstance = new ManagementClass(scope, mp, null);
    
            // Obtain in-parameters for the method
    
            ManagementBaseObject inParams =  classInstance.GetMethodParameters("Install");
    
             inParams\["AllUsers"\] = true; 
            //inParams\["Options"\] = installationParameters;  // problem lies here
            inParams\["PackageLocation"\] = sourceFilePath ;  //source file must be on the remote machine
             
        
            // Execute the method and obtain the return values.
    
            ManagementBaseObject outParams =  classInstance.InvokeMethod("Install", inParams, null);
    

    how to options[] param for creating the log file .. or any other method..

    abhinav

    C# help sysadmin tutorial question

  • WMI Windows Installer Provider on win2003
    A abhinish

    hi guys! need some help! i m developing a Enterprise deployment Application which will install software on network from a remote machine.. for this i m using WMI "Win32_Product" class for remote installation the code is working fine on Win 2000,XP home, XP pro, XP sp1,sp2 .. but gives an Invalid class Exception on win 2003 .. the problem is "WMI Windows Installer Provider" component which is installed by default on all the above OS except WIN 2003, on this OS it is Optional and had to be installed mannually on each of this kind of OS .. the Problem is I want this Component also to be installed Remotly on PC's having 2k3 by my application only.. of course i have admin rights on all network PC's Any ideas how to install this component Programmatically.. any guideline.. will be a great help.. also where can i find the Setup for this as it is a windows component..

    abhinav

    C# sysadmin help tutorial learning workspace

  • Get Windows System directory [modified]
    A abhinish

    hi! i think u r looking for this.. string WinDir = System.Environment.GetEnvironmentVariable("windir");

    abhinav

    C# help question
  • Login

  • Don't have an account? Register

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