|
I don't think so! Furthermore, unless your program is running with administrative priviledges, it does not have the permission to access to certain files especially located below C:\Document and Settings\.
-- modified at 19:38 Monday 13th February, 2006
|
|
|
|
|
The program is not running with administrative privileges.
It's installed for a single user, that's why "C:\Documents and Settings\username\Application Data\...\" directory is used.
The UnauthorizedAccessException exception happens only for small subset of the customers and I can't reproduce it locally. In addition, these "unlucky" customers don't see the problem instantly.
That's why I'm wondering if theoretically this exception could be thrown during reading a file that is opened for writing in the same time.
|
|
|
|
|
hi
i want to embed an exe file in my app and (to protect exe file) run it from my app ?
please give me an example of this (exe file)
thanks ...
|
|
|
|
|
hdv212 wrote: i want to embed an exe file in my app and (to protect exe file) run it from my app ?
It isn't anything I've ever tried. One way I can think of is to embed it as a resource, then when necessary extract the resource and write it to disk and run it. When the process terminates it can then be deleted from the disk.
However, I don't see how this would protect the exe. You could always run some diagnostic tools over the wrapper application and extract the resource.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Hello...
I'm in the process of writing a network analyzer in C#
for an IT project. One of the project requirements is for the
analyzer to report some metadata concerning Exchange-based
emails that go out to the internet. Currently, I've got a simple
listening socket (RAW socket) that is intercepting the
network packets. The questions are:
1) Where in the IP packet (Ehternet, IP, or TCP header)
can I inspect to determine that it's an Exchange-related
packet and needs to be process (inspected) further.
I'm pretty sure the IP packet would be of type TCP, but
2) Where in that series of bytes does it specify Exchange, the to:/from:/subject:/ etc. Is it the TCP header, IP??
3) Is the a doable thing?
I'm assuming that Exchange is using SMTP for sending the email(s).
Any info would be extremely helpful...
Thx,
T
|
|
|
|
|
What if you used a program called Ethereal to capture the traffic you want to sniff. Figure out what trigger you are looking for and then program that into your project? Ethereal can get very detailed and can show you where the data is in the packets you are looking for. It parses out the data automatically based on what protocol it's sent and can show you the raw data if you need to see it.
|
|
|
|
|
how can i use the microsoft speech SDK to make a speech to text by c# plzzzzzzzzzzz???
Fox
-- modified at 3:47 Tuesday 14th February, 2006
|
|
|
|
|
Hi all!
I need your help.
I wrote a data connect code, with adapter and dataset, any way when i am trying to point to one of the tables i get this message:
'System.Data.DataSet'denotes a property where a 'method' was expacted.
I am writing in ASP.
I do the command myDataSet.Tables("Passwords").Rows.Count!
after i write the table name the object stops responding me, you know when pressing ".".
i know that the data base connection exists because when i am using the contain property with onw of the names of the tables that exist in the database a i get true.
what the hell is the problem??????
and another small and dumm quastion, how do i create a MessageBox in the webapplication.
Thanks
|
|
|
|
|
(1) myDataSet.Tables["Passwords"].Rows.Count
(2) java script: alert("Hello World")
-- modified at 15:58 Monday 13th February, 2006
|
|
|
|
|
I am sorry but when i am writing this line java script: alert("Hello World")
i get errors, iwrite it in the code area, where the C# code is written, else how can i "IF" it?
sorry for the trouble.
|
|
|
|
|
Hello,
I create controls dynamical by the values of the rows in my BindingSource. I do this in the event CurrentChanged.
I add a control to a panel and bind this control to the BindingSource.
the problem is: the current changes BEFORE I add the fitting control.
that means a wrong (old) control might still exist when the BindingSource changes to another row. so the content might not fit for this control. the "old" is cleared and the new (fitting) one is added afterwards.
how could I clear the old control BEFORE the "current Changed"?
thank you!
|
|
|
|
|
instead of binding it in current change event... bind it item databound of that table
VMSSanthosh
|
|
|
|
|
Hello,
thank you for your answer! The problem is, i dont find this event. I can imagine such a event in .net 1.1 webcontrol-datagrid.
I am using .NET 2 on Winforms.
can you specify your answer? thank you.
thank you
|
|
|
|
|
I noticed something weird with the DataGridView.Columns. I set up a DataGridView on my form and I wanted to set a DataTable as the DataSource. When I did this all of my columns are displayed, but I only wanted to have some of them displayed. With a DataGrid I would just use the DataGridTableStyle object, but they don't work with DataGridView. So instead I set at design time all the columns I want to see displayed and map them to the column names in the DataTable using DataPropertyName of each column. This works, in that the data from the table get displayed in the right columns, but the DataGridView rather unhelpfully decides to fill in all the missing columns too. So I add all the missing columns at design time but set them to be not visible. Now this seems to work fine.
Next I decided I'd like to be able to toggle the visibility of some of the columns. So I set up some menu options and try to toggle the visibility using the Column object I set up at design time. Some like this:
colMyColumn.Visible = !colMyColumn.Visible;
This works fine before I bind my DataTable, but not afterwards. After binding colMyColumn is no longer a member of the DataGridView's Column collection. I.e.
MyDataGridView.Columns.Contains(colMyColumn);
Returns false. However, this:
MyDataGridView.Columns["colMyColumn"];
Returns the correct column that is a member of the column collection. My question is why does colMyColumn no longer hold a reference to the same object as the one in the column collection? Why has the DataGridView appear to have cloned it when it bound to the DataTable? What is going on here?
Thanks
|
|
|
|
|
I've got a large number of values to output as text, so I want to change the behavior for my entire outwput mehtod rather than calling Double.ToString(...) every single time. THe problem is that despite intelisense claiming that the numberformat Property is both a getter and a setter, when I try and change it I can an invalidArgumentException that the instance is readonly.
<br />
System.Globalization.NumberFormatInfo normal, changed;<br />
changed = new System.Globalization.NumberFormatInfo();<br />
changed.NumberDecimalDigits = 6;<br />
System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat = changed;
|
|
|
|
|
by using a System.Globalization.CultureInfo object i can avoid a crash, but the default conversion of a double to a string completely ignores the value. nor do either of the following work:
string s = someDouble.ToString(changed.NumberFormat)<br />
string s = someDouble.ToString(changed)<br />
|
|
|
|
|
CultureInfo's properties are read-only once assigned to your app's thread. You'll need to create a new CultureInfo object with the settings you desire.
System.Globalization.CultureInfo info;<br />
info = System.Globalization.CultureInfo.CurrentCulture;<br />
info = new System.Globalization.CultureInfo(info.LCID, true);<br />
info.NumberFormat.NumberDecimalDigits = 6;<br />
System.Threading.Thread.CurrentThread.CurrentCulture = info;
Unfortunately, the Double.ToString() method (without arguments) ignores the NumberDecimalDigits property. You have to do a Double.ToString("N") for it to work, which is not what you want.
Unless of course there's a way to change the default format string for a double.
|
|
|
|
|
Is there a SQLDMO equivalent for Oracle? I am stuck in my project due to this. I have developed an application that uses SQLDMO that works great for SQL Server database. Now I need to extend that app to Oracle and am having a hard time finding a tool that does to Oracle what SQLDMO can do for SQL Server.
Thanks in advance.
|
|
|
|
|
I could be wrong but I don't think there is an exact equivalent of SQLDMO in Oracle. You should go to Oracle's developer's network and query their message boards or knowledge bases. Oracle does have some .NET tools such as ODP.NET.
|
|
|
|
|
Hi all,
I want to serialize Cursor object on server
and deserialize it on client.
I tried to implement it but i got
exception "Cursors can't be serialized"
Can anybody give me a code snippet that
shows how to do it?
thanx
"Imagination is much more important than implementation"
|
|
|
|
|
A mouse cursor? There's really nothing to serialize, except maybe which cursor is being used and it's position on the screen. What are you trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to inform client that which cursor is being used.
Can u give me idea how to do it.
Thanx.
"Imagination is much more important than implementation"
|
|
|
|
|
Why??? There's no reason for it! The cursor changes depending on what's going on in the current application, what window and what part of a window the cursor is over, ... I just don't see any useful information in it.
This is basic serialization to an XML file.
Dim serializer As New XmlSerializer(GetType(Cursor))
' You can use other stream types, but you never said what you're doing with this
' or how your passing this to any client...
Dim writer As New StreamWriter(filename)
serializer.Serialize(writer, Cursor.Current)
writer.Close()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have created 3D head and my appliction that I input text it will read . I want to programm lips movments accourding to out put soud. My text to speech application have programmed using C#. Help me !
Nothing's Forgotten, nothing's ever forgotten !
|
|
|
|
|
Of course, there's no way to do this using the .NET framework class library as it's just not a common programming operation. You're going to need some software that hooks up sounds with vertices on your 3d model; this is certainly something you don't want to be forced to program yourself (which would be an enormous undertaking, I would imagine).
Search the web for 3d lip syncing, you should get some hits. There is software out there built for doing this.
Now, if you don't need high-quality, full fidelity lip movements, you could just write some animation into your 3d model to move its mouth while the text is being read...
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
|
|
|
|