|
Hey - at least he had done the hard bit!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
I have downloaded the TaskDialog from MSDN Code Gallery and it's working find on my development machine (Vista and VS 2008 installed) but when i deployed to the first machine (XP) and copied DLL in the application EXE folder (INSTALLDIR) then I got this error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.EntryPointNotFoundException: Unable to find an entry point named 'TaskDialogIndirect' in DLL 'ComCtl32'.
at Microsoft.Samples.UnsafeNativeMethods.TaskDialogIndirect(TASKDIALOGCONFIG& pTaskConfig, Int32& pnButton, Int32& pnRadioButton, Boolean& pfVerificationFlagChecked)
at Microsoft.Samples.TaskDialog.PrivateShow(IntPtr hwndOwner, Boolean& verificationFlagChecked, Int32& radioButtonResult)
at Microsoft.Samples.TaskDialog.Show(IntPtr hwndOwner, Boolean& verificationFlagChecked, Int32& radioButtonResult)
at Microsoft.Samples.TaskDialog.Show()
at The_Internet_Cafe_System.frmMain.frmMain_FormClosing(Object sender, FormClosingEventArgs e)
at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
tics
Assembly Version: 1.0.0.0
Win32 Version: 1.00.0.0
CodeBase: file:----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
TaskDialog
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:----------------------------------------
DevExpress.XtraNavBar.v7.2
Assembly Version: 7.2.2.0
Win32 Version: 7.2.2.0
CodeBase: file:----------------------------------------
DevExpress.XtraEditors.v7.2
Assembly Version: 7.2.2.0
Win32 Version: 7.2.2.0
CodeBase: file:----------------------------------------
DevExpress.Data.v7.2
Assembly Version: 7.2.2.0
Win32 Version: 7.2.2.0
CodeBase: file:----------------------------------------
DevExpress.Utils.v7.2
Assembly Version: 7.2.2.0
Win32 Version: 7.2.2.0
CodeBase: file:----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
|
|
|
|
|
the page you linked to calls it "Vista's Task Dialog"; why should this work on older systems?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
but then it should have at least show it i normal style!!
I didn't expect it to throw and error!!
|
|
|
|
|
Why should the system know what you intended to do??
All it knows it that you tried to call a function, TaskDialogIndirect, in ComCtl32 that doesn't exist in Windows versions before Vista. So, yeah, it's going to throw an exception, which your code didn't catch and handle. If you want a different dialog to show up, you're going to have to write code around this section that blew up to catch the exception and call a different function or show a different form or whatever if you want something different to happen on XP.
|
|
|
|
|
Hi,
As it can be seen from the sample picture I added, my form has a weird white space on it's Windows 7 window preview. This only happens on this from and I have no idea on why it happens.
Sample picture:
http://i36.tinypic.com/11vmzuo.png
Any help is appriciated. Thanks.
|
|
|
|
|
Looks like a scaling-down artefact. The preview seems to have been generated by scaling down the original with performance preferred over accuracy (linear vs more complex interpolation).
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
It might be that, but when I increase the width of my form this white space disappears and the preview is drawn correctly. I suspect maybe a component having a larger width then the form causes this. Is it possible?
|
|
|
|
|
if the scale down is executed by simply skipping some rows and columns of the original image, then the artefacts will depend on the exact location of the various parts in the original; your 3-D effects do include whitish lines. Your scaling down just happened to hit it.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Lucky me.
|
|
|
|
|
hi,
i want send an email from a windows form, but after sending , my Emails are in bulk Folder as a spam.what can i do for sending my emails to inbox?
MailMessage oMail = new MailMessage("myFromAddress", "myToAddress");
oMail.Body = "myText"
oMail.Subject = Subject;
oMail.BodyEncoding = Encoding.UTF8;
SmtpClient oSmtp = new SmtpClient();
oSmtp.Host = SmtpServer;
oSmtp.UseDefaultCredentials = false;
oSmtp.Credentials = new NetworkCredential ("myMail@XXX.com", "myPass");
oSmtp.Send(oMail);
thanks.
3DMeT
|
|
|
|
|
Change your email content so that the receivers spam filters don't think it's spam.
Your email address may be on a blocked list, like if you're sending from a GMail or Hotmail account or the content may be flagged as suspicious.
There is nothing you can do with the code on your end to fix this.
|
|
|
|
|
Thanks for your answer
Change your email content so that the receivers spam filters don't think it's spam
What Can i do the receivers spam filters don't think it's spam?
|
|
|
|
|
Read Dave's response again. There is nothing you can do in code to prevent this.
The message subject or text may contain words that the email filter deems as spam.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You have no way of knowing, from your side, why the spam filter is eyeballing your emails. You can ask the receiver to investigate it for you, but that's about it.
|
|
|
|
|
when i am sending my emails from gmail to yahoo, my emails are in inbox
but when i am sendding same emails from gmail to yahoo by my application with authentication, they are in spam folder.is it common?
|
|
|
|
|
with same settings outlook send my emails to inbox.what does outlook work?
|
|
|
|
|
There is no difference between your app sending an email and Outlook sending an email. The receiver does the filtering, not your app. You simply have no control over it.
|
|
|
|
|
Hi people
I'm using a web service to display the current weather on my main interface. At the moment I have to click a button everytime I want to update the weather, and while this is updating, my interface stalls for however long it takes to update which is usually 5 seconds. What I want to know is, is there a way to have this running on a separate thread without clicking a button and have it update continuously while still being able to work with the main interface?
Here is the code I use to update the current temperature:
string strTemperature = "";
GlobalWeatherService.GlobalWeatherSoapClient proxy = new aXYZ.GlobalWeatherService.GlobalWeatherSoapClient("GlobalWeatherSoap12", "http://www.webservicex.net/globalweather.asmx");
string weatherXml = proxy.GetWeather("Port Elizabeth", "South Africa");
StringReader reader = new StringReader(weatherXml);
XmlReader readerXml = XmlReader.Create(reader);
XmlDocument weatherXmlDoc = new XmlDocument();
weatherXmlDoc.Load(readerXml);
for (int i = 0; i < weatherXmlDoc.ChildNodes.Count; i++)
{
for (int j = 0; j < weatherXmlDoc.ChildNodes[i].ChildNodes.Count; j++)
{
if (weatherXmlDoc.ChildNodes[i].ChildNodes[j].Name == "Temperature")
strTemperature = weatherXmlDoc.ChildNodes[i].ChildNodes[j].InnerText;
}
}
lblTemperature.Content = strTemperature;
|
|
|
|
|
|
Thanks. I'll go through that now.
I tried using a DispatcherTimer like in the following code:
DispatcherTimer _timer = new DispatcherTimer(DispatcherPriority.Normal);
_timer.Interval = TimeSpan.FromMilliseconds(2000);
_timer.Tick += new EventHandler(delegate(object s, EventArgs a)
{
UpdateWeather();
});
_timer.Start();
I've tried about 4 different ways of using the Dispatcher, but no matter what I try, my UI keeps freezing while it's doing UpdateWeather. Can it be because I call this Timer from my form_Loaded event??
|
|
|
|
|
Hi,
you probably need this[^].
BTW: does the weather really change every 5 seconds where you live?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I was going to lend him some of my threads if he can order me a cold snap for Tuesday.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
No problem. Is a 5-second cold snap within an otherwise hot November day sufficient?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Okay it seems to work with the BackgroundWorker.
backgroundMessageGetter.DoWork += new DoWorkEventHandler(backgroundMessageGetter_DoWork);
backgroundMessageGetter.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundMessageGetter_RunWorkerCompleted);
backgroundMessageGetter.ProgressChanged += new ProgressChangedEventHandler(backgroundMessageGetter_ProgressChanged);
backgroundMessageGetter.WorkerReportsProgress = true;
backgroundMessageGetter.RunWorkerAsync(this);
void backgroundMessageGetter_DoWork(object sender, DoWorkEventArgs e)
{
try
{
while (true)
{
GlobalWeatherService.GlobalWeatherSoapClient proxy = new aXYZ.GlobalWeatherService.GlobalWeatherSoapClient("GlobalWeatherSoap12",
"http://www.webservicex.net/globalweather.asmx");
string weatherXml = proxy.GetWeather("Port Elizabeth", "South Africa");
backgroundMessageGetter.ReportProgress(0);
Thread.Sleep(2000);
}
}
catch (Exception error)
{
System.Windows.MessageBox.Show(error.Message);
}
}
void backgroundMessageGetter_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
}
modified on Saturday, November 14, 2009 8:42 AM
|
|
|
|