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

Ashraj1982

@Ashraj1982
About
Posts
22
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Exporting to XML
    A Ashraj1982

    Hi , Is there any way to export the .aspx file as XML file or vice varsa?

    XML / XSL xml question

  • Need help in File handling with directory
    A Ashraj1982

    Hi All, Can any one give me the suitable functions for the following in c# : 1. To find first instance of a file name that matches the file specification like *.jpg? like _tfindfirst( ) function in vc++ 2.To find the next name, if any, that matches the file specification? like _tfindfirst( ) function in VC++ 3. To find the Sub Directory? like _A_SUBDIR( ) function in vc++ 4. To ignore directory with . and .. ? Thanks

    C# csharp c++ help question

  • need help in using Reference type for pointers
    A Ashraj1982

    Hi, I'm using reference types in c# instead of pointers...so in below code i'm sending the ptr which is a pointer but using ref key word now can any one tell me how to increament the pointer *(ptr+i) in c#? int Largest(ref int ptr,int Icount) { int largest =0; largest = *(ptr+0); for(int i=0; i < Icount; i++) { if( *(ptr+i) >= largest) { largest = *(ptr + i); } } return largest; }

    C# csharp help tutorial question

  • Help needed in Reference Parameters
    A Ashraj1982

    Hi, Can any one tell me how to convert the below code to c# Int *ptr; ptr=&array[0]; sum = avg(ptr,index) I know that we can use ref key word but how do i assign the address to ptr?

    C# question csharp database data-structures help

  • Problem in Data base
    A Ashraj1982

    Hi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?

    C# csharp help tutorial question

  • Adding new Rows to the Data base table
    A Ashraj1982

    Hi Can any one please tell me how to add the new rows to the existing table with the values using SqlAdapter and Data Row with out using insert statement. DataSet dset = new DataSet("DBTable"); DataTable dbtable = new DataTable("DBTable"); dset.Tables.Add(dbtable); SqlCommand dbcommand = new SqlCommand(); dbcommand.CommandText ="select * from DBTable"; dbcommand.Connection = myConnection; SqlDataAdapter dbDA = new SqlDataAdapter(dbcommand); dbDA.TableMappings.Add("Table", "DBTable"); dbDA.Fill(dset, "DBTable"); DataRow row; row = dbtable.NewRow(); row["FileName"] = DBfile; row["Meters"] = IMeter; dbtable.Rows.Add(row); dbDA.Update(dset); This above code throws exception called "Update requires a valid InsertCommand when passed DataRow collection with new rows." any Idea?

    C# tutorial question announcement

  • Data Base problem
    A Ashraj1982

    sorry !! Plz can you tell me in the code where and what i have to change? The problem is i'm new to c# .

    C# help tutorial question announcement

  • Data Base problem
    A Ashraj1982

    Hi, I'm trying to create a new row and add values to the column in the below code. But it throws exception called "Update unable to find data table 'Table' or Tablemapping 'table' ". DataSet dset = new DataSet(); SqlCommand dbcommand = new SqlCommand(); dbcommand.CommandText ="select * from DBTable"; dbcommand.Connection = myConnection; SqlDataAdapter dbDA = new SqlDataAdapter(dbcommand); dbDA.Fill(dset, "DBTable"); DataTable dbtable = dset.Tables[0]; // dset.Tables.Add(dbtable); DataRow row; row = dbtable.NewRow(); row["Name"] = DBfile; row["Meters"] = IMeter; dbtable.Rows.Add(row); dbDA.Update(dset); any solution? or let me know how to create a new row and assign values to the columns.

    C# help tutorial question announcement

  • Need help in type casting
    A Ashraj1982

    Hi, I'm converting char[] to double using Dlength = System.Convert.ToDouble(strdata); But its throwing exception called "Unable to cast object of type 'System.char[]' to type 'System.IConvertible'. Any idea?

    C# help question

  • Need help in parameter passing by Reference
    A Ashraj1982

    Thanks Rahul... But i'm getting error "Identifier Expected" so any idea....

    C# csharp help tutorial question

  • Need help in parameter passing by Reference
    A Ashraj1982

    Hi, Can i know how to pass the address of the variable in c#? Following is the code in c which has to be converted into c#.. public int Largest(int *ptr,int Icount) { int largest =0; largest = *(ptr+0); for(int i=0; i < Icount; i++) { if( *(ptr+i) >= largest) { largest = *(ptr + i); } } return largest; } plz let me know how to sent the reference and increament the pointer.

    C# csharp help tutorial question

  • Need help in explicit convertion of char[] to string
    A Ashraj1982

    Thanks.... But i dot want to concatenate bcoz the string has to be over written for every line read from the file.

    C# help data-structures question

  • Need help in explicit convertion of char[] to string
    A Ashraj1982

    Hi, Can any one tell me explicit convertion of char array to string? i have string str and char strdata[25]; now i want to assign strdata value to the string called str. I'm getting error " cannot implicitly convert type 'char[]' to 'string' " Any idea?

    C# help data-structures question

  • Need help in file hanling
    A Ashraj1982

    Hi, Can any one plz tell me how to check for end of file and reading each line to buffer. while(!feof(fp)) { string = fgets(buffer,85,fp); // Read each line from the file } The above code in c#.

    C# csharp help tutorial

  • Help need in OpenFileDialog
    A Ashraj1982

    There is no method called getfilename !! see I have this below OpenFileDialog select_file = new OpenFileDialog(); select_file.Title = "selected file"; select_file.Filter = "(*.txt) | *.txt"; if (select_file.ShowDialog() != DialogResult.Cancel) { file = select_file.FileName; // stores whole path with file name } but i want only selected file name in file not the path .

    C# help question

  • Help need in OpenFileDialog
    A Ashraj1982

    Hi, using openfiledialog to select a particular file and store the selected file name in a string it sores the filename with path so is there any way to store only the file name not the whole path? Thanks

    C# help question

  • VC++ Faq's
    A Ashraj1982

    Hi, Can any one give me the link for VC++ questions and answers that are import for the interview. Cheers Archana

    C / C++ / MFC c++ career

  • Integrating vc++ and c#
    A Ashraj1982

    Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks

    .NET (Core and Framework) question csharp c++

  • Integrating vc++ code with c#
    A Ashraj1982

    Hi , Can any one please let me know how can i use the vc++ code in c# using the concept of Managed and Unmanaged code? Bcoz i dot have any idea about the interface so please suggest me about how i can go ahead. Thanks

    Managed C++/CLI question csharp c++

  • Integrating c# code in vc++.net
    A Ashraj1982

    Thanks Milton :) Mine was a .EXE and i could get that application in .net by creating the process using System.Diagnostic.Process. can you tell me the way to creat a DLL for the existing vc++ application? Thanks and regards

    C / C++ / MFC csharp c++ 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