|
- Registry Scanning
- Hard Drive Scanning
- Memory process scanning
Sreejith S S Nair
|
|
|
|
|
I am student of Aptech and this days i am doing a project on .Net. In this project i am tryiny to creat Mobile application where i am tryiny do that user access my application by mobile and he can select one ringtone after that he or she can install that bell on his or her mobile just like mobile compnies do on there web site. So tell me is that possible if possible then tell me how i nead your help pleaszzzzzzzzz help me i am wating for your replay
Masood Lodhi
|
|
|
|
|
upto my level best , i know that Openwave 6.2 emulator is useful to run your C# mobile application.better you go for that site and see openwave for dotnet.
Sreejith S S Nair
|
|
|
|
|
Thank u sir it is very kind of u thanks i will try my best to chech that sied thankzzz bye
Masood Lodhi
|
|
|
|
|
I wrote a C# component for application
instance control that I'm enhancing and
I wanted to get some programmer opinions.
The component is designed to be dropped
on the main form of the application.
As a programmer using the component
would you think it more convenient
to have an error event or to throw
an exception? Coming from Delphi
I think it's convenient to create
the error handler using the component
property page in the IDE but I'm not
sure if that's considered bad form
(no pun intended) in C#?
The other approach I could take would
be to check if the error event is
assigned and throw an exception as
alternative. Any thoughts?
TIA
|
|
|
|
|
|
For controls/components or multi-threaded classes, I normally use an Error event. That way you don't get application crashes if the exception is thrown in a method running in a thread that's outside one of your parent app's try{}catch{} blocks.
However, for public/internal/protected methods called directly from the parent app, I usually throw exceptions directly. This allows the developer to wrap immediate exceptions in their own try{}catch{} blocks.
For a control, especially, I would only throw exceptions in constructors, properties, and public methods. Any exception thrown in a protected/private method that MIGHT be called asynchronously gets redirected to an Error event.
Grim (aka Toby) MCDBA, MCSD, MCP+SB
|
|
|
|
|
Hello!
I seem to have a problem in resolving the following exception thrown in this line of my code:
MyClass varMyClass=(MyClass)BinaryFormatterObject.Deserialize(FileStreamObject);
The exception says the following:
An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation
Where should I look and change in order to resolve this?
Who is/can be the target of an invocation?
Million thanks!
Best regards,
Cristina
|
|
|
|
|
|
This typically occurs when an exception is thrown from the constructor when reflection is used to create the object (as is the case when deserializing an object). If you implement ISerializable and have a constructor with the right serialization signature, put a breakpoint in that and step through your code. If you don't implement ISerializable or just have a default constructor (access modifier doesn't matter), put a breakpoint and step through your code.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I implemented the paint method by Jay_sh_s, but im confused.
In my DataSet i have many Tables, so:
For each tables i ll have to create 1 DataGridTableStyle?
and the ColumnStyles, for each table to?
Thanks.
|
|
|
|
|
|
Hello to all,
I have an Access table with several rows in it and a boolean field (column) that only has one row (record) that is TRUE.
Using C# how do I programmatically determine the row that is TRUE and get the index of that row?
So far I am at:
foreach (DataRow row in ds.Tables["currlist"].Rows
I would assume this will go through each row and then find the row that is TRUE in the boolean field. If there is a different, better way please point me in the right direction.
Thanks,
BIll Antonacchio
|
|
|
|
|
Using a DataColumn might be quicker since you are searching for a particular value for only one attribute of the table, not sure though.
|
|
|
|
|
Try
ds.Tables["currlist"].Select("whatyourfieldiscalled='true'");
Will return a DataRow, a much nicer way than using a linear search.
Ryan
|
|
|
|
|
Hi Ryan,
Thank you kindly for that. Will try to get this to give me the info needed. I need to rethink the question though. Will this give me the row number that contains the TRUE field?
What I need to get is the index number of the row that contains the TRUE field.
Regards,
Bill Antonacchio
|
|
|
|
|
** same answer **
Grim (aka Toby) MCDBA, MCSD, MCP+SB
|
|
|
|
|
I am currently developing an asp.net application that develops crystal reports using the push method. What I am wondering is if I can allow the user to specify sort options during runtime while they are viewing the report information in the .asxp page? For instance I have a report that displays three bits of information about a part(PartNumber,RevisionNumber,CallNumber). I am wondering if I can allow the user to switch between sorting the records by these given fields and just have the page reload with the same data in the newly selected sorted order. Thanks in advance for any help
Frank Lepkowski
PS Sorry if this is not posted where it should be I was not sure were to stick the post!
|
|
|
|
|
<code>
DataSet datas = new DataSet("DataSetName");
DataTable dataTable = new DataTable("myNewTableName");
DataRow dataRow = dataTable.NewRow();
dataTable.Rows.Add(dataRow);
for(int i = 0; i<5; i++)
{
DataColumn dataColumn = new DataColumn();;
dataColumn.ColumnName = "myColumnName"+i.ToString();
dataTable.Columns.Add(dataColumn);
dataRow["myColumnName"+i.ToString()]="myItem"+i.ToString();
}
dataTable.AcceptChanges();
datas.Tables.Add(dataTable);
dataGrid1.DataSource=dataTable;
datas.WriteXml("TestXml.xml");
</code>
This code generate the following xml file:
--------------
<?xml version="1.0" standalone="yes" ?>
<DataSetName>
<myNewTableName>
<myColumnName0>myItem0</myColumnName0>
<myColumnName1>myItem1</myColumnName1>
<myColumnName2>myItem2</myColumnName2>
<myColumnName3>myItem3</myColumnName3>
<myColumnName4>myItem4</myColumnName4>
</myNewTableName>
</DataSetName>
--------------
I need the same data to be formatted in this way:
--------------
<?xml version="1.0" standalone="yes" ?>
<myNewTableName myColumnName0="myItem0" myColumnName1="myItem1" myColumnName2="myItem2" myColumnName3="myItem3" myColumnName4="myItem4"</myNewTableName>
--------------
how can I do this?
thanks
_____________
http://members.xoom.virgilio.it/yuppygames/english/index.htm
|
|
|
|
|
Don't use a DataSet . It outputs XML in specific ways - namely as elements. Instead, see the classes in the System.Xml namespace. You could enumerate the tables and columns in your DataSet (or use an XmlDataDocument ) and then write them out to a file using an XmlTextWriter , which allows you to write attributes, elements, comments, and even processing instructions however you want. Lots of samples are included in the class documentation for the System.Xml namespace.
One other option is to save this to a file or a MemoryStream and then load it into an XmlDocument or some other class. You could then use a XslTransform to transform the elements into attributes.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi Gurus,
I would like to know how I can handle multiple modems and force applications that have web access to use a modem or another?
For instance, I have 2 digital modems (one cable and one ADSL) and I would like some applications to use the cable modem and other applications to use the other modem.
At the end of the application I would like to build I could handle a list of applications/dlls that could use a given modem.
For example:
Internet Explorer uses Modem 1 and Modem 2
eMule uses Modem 1 only
Messenger uses Modem 2 only
etc.
Is it possible to build such application with C#? Maybe such a tool already exist?
Best regards to all.
There is no spoon.
|
|
|
|
|
Most applications aren't sensitive to particular connection devices. I know that IE and Messenger are not.
About the only way to acheive this is to - after connecting - modify the route table so that connections to certain hosts go through a particular gateway. For modems, you must connect first before doing this because most ISPs hand-out dynamic IP addresses (even many broadband providers). Some will grant you a static IP, but often times charge extra. So, until you know what your dynamically assigned IP address is, you can't modify your route table accordingly.
As far as using C# to do this, why? Modify a route table is low level, although you can do it using the route.exe command-line utility. Managed applications aren't the solution to everything, especially low-level APIs. For instance, you'll probably never see managed code used for device drivers. These drivers are typically written in C and sometimes even assembler, or at least in part.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi Heath,
I am looking for a way to create an application that matches an application for a give set of modems.
I currently have 2 modems with static IPs and all I can do is to bridge the modem so the result is that the resource networks are in common like if I had a dual CPU. It does not download faster, but while I do massiv downloads, I can still continue to navigate smoothly
I was wondering if it is possible to do an application that can do what I just mentionned that is assigne a set of modems to a given application and for the application to use the set of modems.
I think it's possible or maybe there are tools that already exist.
I just wanted to write this in C#, just for the fun of code. As suggested "leppie", I can build the low level in C/C++ and interface in C#. But first of all, does such an application exist??? I was thinking of ISA or any other firewall, but it's not really the purpose of fire walls...
I'm looking for such application for a while, and I was wondering to do it my self or not :
There is no spoon.
|
|
|
|
|
Again, this works through route tables. If you don't know what a route table is, it's what routes requests to a given host through the proper gateway. Firewalls use a similar concept, only they use stateful filtering because they can - they are completely between you and your request host. You can't preempt the Windows TCP/IP stack like this. That leaves you with one option: route tables.
When you connect with multiple devices (say, two modems) each will have a different IP address. This will be your local gateway. You could modify your route table so that all requests to www.codeproject.com (209.171.52.99) go through one modem while all others are routed to the other.
This has absolutely nothing to do with the name of the application, which most often simply uses the networking APIs of the operating system.
Don't believe me? Try reading the TCP/IP specifications and check back in a few days when you're finished reading them.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
So, an application can't be forced to use a modem or another? Then what about bridged networks???
There is no spoon.
|
|
|
|