|
Is it just their service messages that do that? If so they could be cheating and build the directory entries into their firmware.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
U say u are using AT commands and C# to send a message. Actually, this is what i want to achieve. Pls can i see an example, or a source code, showing how to achieve this? Pls. quite urgent. He who goes for revenge must first dig two graves.
|
|
|
|
|
pls help me out to come out of this annoying interactive services dialog in vista which popsup when i start my service which invokes an exe
|
|
|
|
|
Coming out off a dialog box, that's a new one.
As to your question:
you can't avoid it the whole idea behind the vista security model is not to run anything without the permission/knowledge off the user.
Why is your service running an exe, this is very bad. A service can run without any user logged in, if that service then calls an exe you'll get all sorts of strange behavior.
If all your service does is run this exe a better choice would be the scheduled tasks, or just put a shortcut on the desktop and let the user start it up.
This will however not avoid the dialog box.
|
|
|
|
|
hi all ,
I am developing advertising Website-Registering Impression,click etc..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.I attached following code also..Plz reply me if u know...Thanks
using System;
using System.Data;
using System.Data.SqlClient;
using dataacesslayer;
using System.Web;
public partial class Admin_getbase : System.Web.UI.Page
{
string Crid = "";
SqlConnection conn = null;
SqlCommand cmdinsert = null;
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
SqlParameter paramvalue;
conn = new SqlConnection("Data Source=dddd;Initial Catalog=new;User ID=fg;Password=hg");
if (Request.QueryString["Crid"] != null)
{
Crid = Request.QueryString["Crid"].ToString();
}
try
{
cmdinsert = new SqlCommand("sd_Basreg", conn);
cmdinsert.CommandType = CommandType.StoredProcedure;
paramvalue = new SqlParameter("@Crid", SqlDbType.Int);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = Crid;
cmdinsert.Parameters.Add(paramvalue);
paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = IpAddress();
cmdinsert.Parameters.Add(paramvalue);
conn.Open();
cmdinsert.ExecuteNonQuery();
Response.ContentType = "text/plain"; Response.Write("&imp=registered&");
}
catch (Exception ex)
{
cmdinsert = new SqlCommand("sd_Basreg", conn);
cmdinsert.CommandType = CommandType.StoredProcedure;
paramvalue = new SqlParameter("@Crid", SqlDbType.Int);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = Crid;
cmdinsert.Parameters.Add(paramvalue);
paramvalue = new SqlParameter("@IpNum", SqlDbType.BigInt, 50);
paramvalue.Direction = ParameterDirection.Input;
paramvalue.Value = "0";
cmdinsert.Parameters.Add(paramvalue);
conn.Open();
cmdinsert.ExecuteNonQuery();
Response.ContentType = "text/plain"; Response.Write("&imp=registered&");
}
finally
{
cmdinsert.Dispose();
conn.Close();
if (conn.State == ConnectionState.Open)
{
conn.Close();
conn.Dispose();
}
}
}
private string IpAddress()
{
string IPCity = "";
string strIpAddress;
strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
string IpAddress = strIpAddress;
Array IpPart = IpAddress.Split('.');
Int64 IpNum = 16777 * Convert.ToInt64(IpPart.GetValue(0)) + 636 * Convert.ToInt64(IpPart.GetValue(1)) + 26 * Convert.ToInt64(IpPart.GetValue(2)) + Convert.ToInt64(IpPart.GetValue(3));
return IpNum.ToString();
}
}
Create PROCEDURE [dbo].[sd_Basreg]
@Crid int,@IpNum varchar(50)
AS
begin
Insert into S_Base(CrId,IpNum) values(@Crid,@IpNum);
end
Please reply me ...if any optimizing code for this
Raaj
|
|
|
|
|
Hi Raaj, I'm not sure what your question is, otherwise I would try to help.
I'm not sure what this means:
..here problem is whenever user registering Impression that we are loss the 40% impression and here we doing geolocation also.
-Ken
|
|
|
|
|
Hi,
How can I trim the following to get the result please?
string s = " 12345 - 54321"
RESULT:
should show
s = "12345-54321"
It seems s.Trim() only trims the outside of the string and not within.
Any thoughts please?
Thanks
|
|
|
|
|
Correct. You'd need to use the Replace method for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
u can replace the " " with ""
|
|
|
|
|
|
Hi,
How can I create sql database by using Link? Can you give me some links to see and investigate this subject?
Best Regards
Kemal Akkanat
|
|
|
|
|
omegazafer wrote: How can I create sql database by using Link?
What does that mean? Do you want to create database through code? If yes, read the documentation[^].
|
|
|
|
|
I mean, using some codes(in visual studio not in sql), creating sql database. It is like a nhibernate technology. we make classes in vs and give some attributes to properties . After that, When we start the program, our program will create the sql database in sql server automatically.
Best Regards
Kemal Akkanat
|
|
|
|
|
|
|
Hi
AnyBody help me
In my project do by c#, but existing project did by VisualBasic with MSAcess.
now i am doing C# with MySql database. so previous project MsAccess data's are transfer to the mysql Database through c#. otherwise give any other idea.
Thanks
|
|
|
|
|
Read data from access to a reader. Loop through the reader and insert each row to MySQL.
|
|
|
|
|
Hi,Friends
I want to Convert XSL file into XML file by applying XSD file to XSL file. How can I generate Valid XML file according to XSD file.
Thanks
abm
|
|
|
|
|
|
Hi,
This is from Chandrakanth. working on C# with Asp.net.
Actually i have one problem ,
That is While copying the data from
Copy(Source File,DestinationFile) gettting "Ilegal charcters in a path"
Actually what we are doing is Converting Tiff File To TextFile through OCR.
I am getting data INTO STRING from Conversion from tiff to txt throgu OCR.
And Renaming the file with .txt.
And i want to move the data from STRING to txtFile.
Can any one tell me what to do for that.
That Code and all i am giving here .
string strFilePath = FileUpload1.PostedFile.FileName;
Process tessProc = new Process();
tessProc.StartInfo.WorkingDirectory = strFilePath; // @"C:\08122008_NY01_AST_1.0.tif"; // strFileName;
tessProc.StartInfo.FileName = @"D:\Chandrakanth\TesseractOCR08022009\bin.dbg\tesseract.exe";
string strFileName1;
int intLastIndexOfSlash;
if (strFilePath.IndexOf(@"\") == 0)
strFileName1 = strFilePath;
else
{
intLastIndexOfSlash = strFilePath.LastIndexOf(@"\");
strFileName1 = strFilePath.Substring(intLastIndexOfSlash + 1);
}
tessProc.StartInfo.Arguments = strFileName1 + " output"; tessProc.Start();
string output = File.ReadAllText(@"C:\output.txt");
TextBox1.Text = output;
string strOutPutFileName = System.IO.Path.GetFileNameWithoutExtension (strFileName1) + ".TXT";
string strSaveFilePath = Server.MapPath("");
File.Create(strSaveFilePath + @"\" + strOutPutFileName);
string illegal = output;
string regexSearch = string.Format("{0}{1}",
new string(Path.GetInvalidFileNameChars()),
new string(Path.GetInvalidPathChars()));
Regex r = new Regex(string.Format("[{0}]", Regex.Escape(regexSearch)));
illegal = r.Replace(illegal, "");
System.IO.File.Copy(illegal, strOutPutFileName);
Actually that illegal contains data in below format
------------------------------------------------------------------------
JMW -J
'me l^ T
l ii T T ASTER
^ WE INTEGRATE CDMIUIYICJTIOIVS
INVOIC E
ASTER TELE SERVICES FVT. LTD, Invoice No: EMHASDCGSE
Flat na.4 to 7, C/a Krlshna Plaza, Date: 13-Dec417 ,
Opp.WaLer Tanks, Near TATA Garden Busstop, .
Chandan Nagar, PUNE-14
PAN No AACCA54E9L P.O.NG: 4352
CST TIN is 2715000524SC w e.l01 04.2005 Date: MAMGY-W
\lAT TIN is 2715000524GV wel`01 O4 ZODG
ST Regn No. AACCAMSBLSTOUT
Kg Vodafnile Essar Cellular Lid.,
.)Mutropnlltan, F/P Null.
S,No. 21, Old Mumbalrvurla Highway,
Wakzdewadljhivaji Nagar, Site Name: Gad Mudslngi
PUNE 7 411005 TowsrType R1~l
Tower Height: 21 Mts
Natllreof Workmvaition Lamp, Llghting Arrester
EETEHWKJJMS lure lu. a' value la;.
1 Aviation lain 1 @1 avov s woo
Z Li htin Arrester 1 Nas ' 1SD(l 1,600
a Avlaiulun lam came XI arm no la are
1 ** . _
1 ]*__
1 ___ an svo
rli= anuue `rum include sel-vlces tax Amount of ns see _
I `rural niu==i== Value as eve
?
JJ Now Claimed nuowi. of xiivaiue value is slo
(Rupees Thirteen Thousand Slx Hundred and Seventy un!y)
For ASTER TELE SERVICES PVT LTD 7
/ ^ i
Aurlu=rls= slguauiry I
4
ASTER TELESERVICES PVILTD.
4~7 Krlshnla Pbxa, Opp. WalerTarll<, NearTaln Garden Bus Slap, Otlendan Nsgar, Fune -41l 014
2* Phone :(Qll) 020 - 21034495, 323445413, 32,540369, Tetetax : 020 ~ 21034495.
-------------------------------------------------------------------------
System.IO.File.Copy(illegal, strOutPutFileName);
Actually i want to move the data from illegal to strOutPutFileName
here i am getting error
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
for this line
System.IO.File.Copy(illegal, strOutPutFileName);
Can anyb one tell how to do that ASAP?
Thanks and Regards
Chandrakanth
|
|
|
|
|
chandragaddam wrote: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Can you confirm that your path and filename are NOT that long ? Or does the error mean what it says ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
Once again from Chandrakanth.
That file name is in the format of (Tiff File)-- 08122008_NY01_AST_3.0.tif
After Conversion the file will be going to change like 08122008_NY01_AST_3.0.txt.
.txt file is going to store in Application directory.
The Application directory is in
"D:\Chandrakanth\TesseractOCR08022009"
That application name is "TesseractOCR08022009"
And that illegal contains Data. I want to move that to "08122008_NY01_AST_3.0.txt." this txtfile.
While moving data i am getting error.
Could u pls give me some response on thar ASAP.
Thanks and Regards
Chandrakanth
|
|
|
|
|
Looking at the length of the subject of your post, it does not surprise me you have trouble with long names.
|
|
|
|
|
Hi,
I am working in an application of extracting the outlook.pst file annd export its emails data to an Ms-excel file or any other database like ms-access.I know, how to use outlook dll and extract inbox,outbox etc. folders and save them in disk but unable to export them in excel file.So plz ant one can help me in this application.
|
|
|
|
|