|
Hi all! I want to start programming for smart devices, I have installed smart mobile device 2003 and each time I run it, it keeps telling me that an error occured continue yes or no. I want to find out if there's any other software I need to install.
Thanks
AC
|
|
|
|
|
It might be a little more helpful to explain the error a little more. Are you getting the error when you run Visual Studio or when you are trying to run the application you have created? Are you trying to use the emulator or a device?
|
|
|
|
|
hi
I'm trying to execute an MSI installation file from inside a windows application. Here's what I'm doing:
Process p = null;
p = new Process();
p.StartInfo.WorkingDirectory = path;
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.StartInfo.FileName = "Microsoft_WSE_20_SP3_Runtime.msi";
p.Start();
p.WaitForExit();
When I run it, I get a message saying the installation package could not be opened. When I run it from the command prompt, it works.
I use the same code to run osql commands and those work fine.
Any ideas what I'm doing wrong?
thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Try setting the UseShell property of the Process.StartInfo class.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Thanks! It works. I have just tested it on the dev machine.
I couldn't help noticing your signature...I get that you were supporting Sweden yesterday?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Talal Sultan wrote: I couldn't help noticing your signature...I get that you were supporting Sweden yesterday?
Not really, but I couldn't have cared either way. It's just we Welsh like taking the **** out of the English but on the whole we prefer if a British team wins (we think of it as Britain rather than England playing).
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
I made a control library and in it derived a control from the System.Windows.Forms.Textbox control. Now some attributes that can be set for a Textbox control should not be configurable at design time by the project using the control library e.g. I don^t want the user of the control to make it accept tabs or make it multiline. Unfortunatly when I put that control on a form the designer can still see the AcceptsTab attribute in the properties-window and put it to true or false. Is there a way to make that attribute dissapear from the properties of the control?? Can I hide attributes of the base class?
Thanks for any help you might provide,
Davy
|
|
|
|
|
Have you tried overriding these properties? You could try doing that without putting any attributes on it. Maybe if you do so without specifying in the attribute where you want the property to appear, it just won't appear worth a shot...
Sorry that's all I can think of right now
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Is it possible to configure the project in C# in such a way so that code will not compile until and unless proper xml comments are provided for all the public methods in the project classes??
Krunal C
|
|
|
|
|
If you specify the generation of the XML comments file in the project properties then you will get warnings for missing XML comments on public methods and fields. Then maybe you can enforce a policy of having no warnings - not sure whether you can force warnings for missing XML comments to be errors. No doubt in a Team Foundation Server environment you can define a check-in policy.
Kevin
|
|
|
|
|
KrunalC wrote: proper xml comments are provided
What are proper xml comments? As was stated you can get a warning but there really is no automated way that I'm aware of to enforce a rule such as this. It is more up to documented procedures and followups such as code reviews.
|
|
|
|
|
No. But if the project has an XML output file, Visual Studio will at least give warnings to invalid or missing XML comments.
Visit BoneSoft.com
-- modified at 10:12 Wednesday 21st June, 2006
Sorry, I didn't see the other answers when I posted this. Didn't mean to reiterate what others rightly posted.
|
|
|
|
|
As others have said, you get warnings about XML comments when you set the XML documentation file property.
Then in your build properties for the project, why not just set the "Treat Warnings As Errors" to true?
Logifusion[^]
|
|
|
|
|
Is there any way to treat only particular warning as an error?? Like in my case i.e. when xml comments are not specified it generates compile error no. cs1591. I would like to treat only this warning as error. I don't want other warnings to stop program compilation.
Thanks to all who have taken time to reply my query..
Krunal C
|
|
|
|
|
how can i use crystal reoport in visual studio 2005 express edition.
|
|
|
|
|
You've asked the same question three times man...
To answer your question:
You can add a Crystal Reports Viewer as any usercontrol, it's in your toolbar.
You can create Crystal Reports in your VS environment by project->Add->New Item Crystal Report
However, if you need to create many reports, use the Crystal Decisions Software.
You can manipulate reports and the viewer in code, but you need to read up on that.
You can find some info on MSDN, but my suggestion would be a book. My learning curve was about 2 or 3 weeks before you can do anything really descent
PS: I'm not familiar with VS2005 editions, it could be that the express edition does not contain the Crystal Reports stuff.
good luck.
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
Hi
I have created a generic class. This class has a property on it that takes on the type T that is used when creating an instance of the class.
T will be an enumeration. When the instance of the class is being used there are some cases where only the int value relating to the enumeration will be known, in this case I want to pass the int value into my generic class and have it cast it to the enumeration. This is what I can't figure out, see the DatabaseFromValue property below.
Any ideas what I need to do here? I'm new to generics, so if I'm completely of track here please say.
using System;
using System.Collections.Generic;
using System.Text;
namespace GenericsTestApp
{
class Program
{
static void Main(string[] args)
{
EnumSimpleSearch<myenum> search = new EnumSimpleSearch<myenum>();
search.From = MyEnum.cat; //This is fine
search.DatabaseFromValue = 1; //This is what I'm having the problem with, see property in class below
}
}
class EnumSimpleSearch<t>
{
public EnumSimpleSearch()
{
}
private T myVar;
public T From
{
get { return myVar; }
set { myVar = value; }
}
public int DatabaseFromValue
{
set
{
//I've tried the following:
myVar = (T)value; //Cannot convert type 'int' to 'T'
}
}
}
public enum MyEnum
{
cat = 0,
dog = 1
}
}
Thanks
|
|
|
|
|
how can i use Crystal Report in visual studio 2005?
|
|
|
|
|
|
Hi
I'm working with WTS, I have connected two of my client machines to the WTS Server and accessing the applications from the Server. I would like to capture the Session's Client Name in my Server's C# application. Anyone can help me to get out from this. Thanks in Advance
Chandru
|
|
|
|
|
|
Hi,
In windows application, combobox is bind with dataTable. How can i get selected value from the ValueMember? Using combo.ValueMember displays the ValueMember's Column Name, while i need selected value.
Can anybody help me in this regard, please!
Thanks
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Hi
While binding the datatable to your combobox, you have mentioned the ValueMember and DisplayMember, but while retriving the value just mention ComboBox.SelectedValue.
|
|
|
|
|
Thanks alot..........
i were trying to use multi-column combo (downloaded from codeproject's article) and datagridview combo. Anyway my actual problem is solved and thats a big deal to me.
Thanks again. &
Best Regards.
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Hi,
I want to render video in Panel.
I set all IVideoWindow interface properties but the video render in Active MovieWindow.
Can anyone help me with this?
|
|
|
|