|
On a first try using
writeableBitmap.Lock();
unsafe {
Marshal.Copy(my_arrb_8bit
, 0
, writeableBitmap.BackBuffer
, img_w * img_h);
}
writeableBitmap.AddDirtyRect(new Int32Rect(0, 0, img_w, img_h));
writeableBitmap.Unlock();
seems to start working not yet at 30fps but almost there...thank you very much
|
|
|
|
|
|
I am trying to install an application using c# console application. I have installed it using Process.Start(exepath,"/q").. It was installed successfully. in the same console application, I am trying to search for an update for the same application and trying to install using Process.Start(updatePatchexepath,"/q"). But it is giving some error like "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2734." Can any one help me resolve this.
Thanks in Advance.
|
|
|
|
|
What happens if you try to run this command outside your C# code? You've posted this in the C# forum, but it's not really a C# problem - it's a problem with your installer file. If you looked this error up, you'd see the message was "Invalid reinstall mode character."
|
|
|
|
|
It is not throwing any error message when running it manually. It is launching the update wizard. But when I pass some argument like "/q" to process.start() for this update exe, this error is shown. I want even this update to get installed without displaying the UI. It is a .EXE file and not an msi installer file. However it works for the installation of the application and not for updating the application.
|
|
|
|
|
If you try running this upgrade exactly like this from the command line (i.e., passing in the /q flag), what happens? In general, when you are wrapping something with Process.Start, it's a great idea to see what happens from the command line first.
|
|
|
|
|
It is giving the same installer error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2734" when i run it from cmd (i.e., using "updateexename.exe /q").
|
|
|
|
|
That's what I was trying to get to above. It looks like /q isn't a supported switch for an upgrade, although I can't say for certain whether or not this is the case. Without knowing any more about how you created this update exe, I can't give any more help.
|
|
|
|
|
Ok thanks for this information
|
|
|
|
|
I run the below query in SQL server through C#.
SELECT ScheduleTime FROM test
I'm using SqlDataAdapter to fill the results in datatable. I'm getting "ScheduleTime" values from test table ("ScheduleTime" is datetime type). But the results are in system date time format.
For example, if my system Time format is "tt hh:mm:ss" in Long Time, the results are in the below format.
27-03-2013 PM 03:51:01
if my system Time format is "HH:mm:ss" in Long Time, the results are in the below format.
27-03-2013 15:51:01
I need to get the results in dd/MM/yyyy HH:mm:ss format irrespective of system date/time format.
Please guide me to this. Thanks in advance.
|
|
|
|
|
convert the date to show your desire format eg.
DateTime dt = yourdatabasedate;
string showdate = dt.ToString("dd/MM/yyyy");
for you : use this format "dd/MM/yyyy HH:mm:ss"
|
|
|
|
|
Thank you, hemantrautela. Due to hectic schedule, couldn't able to solve this small issue.
Thank you once again
|
|
|
|
|
I do not understand why the right button does not work??
namespace mouseclick
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
listBox1.MouseClick += new MouseEventHandler(listBox1_MouseClick);
listBox1.Items.Add("aaaaaaaaaaaa");
listBox1.Items.Add("aaaaaaaaaaaa");
listBox1.Items.Add("aaaaaaaaaaaa");
}
void listBox1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
MessageBox.Show("Left Button");
}
if (e.Button == MouseButtons.Right)
{
MessageBox.Show("Right Button");
}
}
}
}
|
|
|
|
|
Are you right-clicking on an item, or the listbox?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Clicking on an item. Left clicking item works. Right clicking item does not.
|
|
|
|
|
Tried same code on both Vis2008 and Vis2010 Express with the same result.
|
|
|
|
|
The ListBox does not return a right click event; see the table on this MSDN page[^].
Use the best guess
|
|
|
|
|
Thanks I guess I will have to write a custom listBox from scratch.
|
|
|
|
|
I see from your posted link that a listView does have a right.mouse.button.click. I guess that's my best solution.
|
|
|
|
|
Quite possibly; it all depends on what you are trying to do.
Use the best guess
|
|
|
|
|
Perhaps the MouseDown and MouseUp events could help.
|
|
|
|
|
better use else if in second condition
if (e.Button == MouseButtons.Left)
{
MessageBox.Show("Left Button");
}
else if (e.Button == MouseButtons.Right)
{
MessageBox.Show("Right Button");
}
|
|
|
|
|
I need to read invoice info off of a PDF. The files have no images and are tabular in design.
I did some Google searches but I can't seem to find an example of actually reading a PDF.
Anyone done this? Can you provide an example or point me in the right direction?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
|
Thank you!
If it's not broken, fix it until it is
|
|
|
|