User Profile

Collapse

Profile Sidebar

Collapse
sambarker123
sambarker123
Last Activity: Mar 31 '08, 05:17 AM
Joined: Feb 25 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sambarker123
    started a topic using SHFileOperation to create a file
    in C

    using SHFileOperation to create a file

    Hi all
    I am tring to copy a file.The code is as below

    int _tmain(int argc, _TCHAR* argv[])
    {

    string s3,s4;

    s3="C:\\test\\t o";
    s4="C:\\test\\f rom\\sam.txt";
    LPCTSTR ptr=s3.c_str();
    LPCTSTR ptr1=s4.c_str() ;


    SHFILEOPSTRUCT s = { 0 };
    //s.hwnd = m_hWnd;
    s.wFunc = FO_COPY;
    s.pTo =ptr;...
    See more | Go to post

  • sambarker123
    started a topic using execute reader
    in .NET

    using execute reader

    Hi all,
    I am using NPGSQL to connect to postgres server.I am getting
    exception at the first statement in the try block.
    string not recognised as a vaild date time


    NpgsqlCommand command3 = new NpgsqlCommand(" SELECT * FROM table1WHERE \"col2\" = :val3", conn1);
    command3.Parame ters.Add(new NpgsqlParameter ("val3", DbType.String)) ;
    command3.Parame ters[0].Value...
    See more | Go to post

  • sambarker123
    started a topic inserting time into postgres

    inserting time into postgres

    Hi,
    I am using c# code to connet with postgres.

    I have posted bit and pieces of the code

    NpgsqlCommand command1 = new NpgsqlCommand(" INSERT INTO test(col1,col2) VALUES (:val1,:val2)", conn1);

    // Now add the parameter to the parameter collection of the command specifying its type.

    command1.Parame ters.Add(new NpgsqlParameter ("va1", DbType.Date));...
    See more | Go to post
No activity results to display
Show More
Working...