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;...
User Profile
Collapse
-
using SHFileOperation to create a file
-
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... -
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));...
No activity results to display
Show More