|
|
Hello,
I am developing a program to access mails from a Exchange server 2003 Mailbox. For this I am using MSXML 2.6, XMLHTTP and WebDav protocol's PROPFIND method.
Till Now I created one Sample Console Application to execute these tasks (basically Exe). But when I try to implement the same logic in Web Application I am getting an Error. See the screen shot below.
I tried the same with a Console Application/Windows Application, both are working fine and able to access Exchange Server 2003. I am able to Read/Send Emails from Exchange Server and also able to Change Mail Message Status as Read.
Problem is when I create Class library (dll) or a Web Application to use the same code I am getting the error and I am unable to access Exchange Server 2003. I tried with different versions of MSXML but no use.
Any help regarding this would be very helpful.
Thanks & Regards,
Srinivas Muvvala.
|
|
|
|
|
I know Pen.CustomLineCap provides the function.But I don't know how to use it.
And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me?
Thanks!(Please email to me!)
|
|
|
|
|
Here is an example from MSDN.
Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
|
|
|
|
|
|
Hi!
In order to draw an arrow tip at the beginning or end of a line you'll have to assign the correct CustomLineCap to your pen, as you've already found out.
For an arrow, this is an instance of AdjustableArrowCap .
You can control the look of the arrow tip by setting the Width , Height , MiddleInset , Filled and WidthScale properties.
Then it's really easy.
Regards,
mav
|
|
|
|
|
Thank you,I have resolved the problem in your help.
|
|
|
|
|
yeah, I have a listBox that the user can select multiple items in the list, how do I go about removing the selected items? I tried so many things, but I haven't had any success, I'm thankful for any help.
Stephen
|
|
|
|
|
Remove the selected items from the list?
for(int i = lstBox.SelectedItems.Count; i >= 0; i--)
lstBox.Items.RemoveAt(i); You have to do it bottom-up. If you do top-down, when you remove an item on the top, the index of the items below it change. You could also do this:
while(lstBox.SelectedItems.Count > 0)
lstBox.Items.Remove(lstBox.SelectedItems[0]); but I think the first way is easier to understand.
I hope this helps!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
|
the error i recieve was
'SerialPlcProgram.Form1.txtStatus' denotes a 'field' where a 'class' was expected
i got a
public static void ReadThread()<br />
{<br />
SerialPort line = new SerialPort();<br />
string ReplyString;<br />
ReplyString = Encoding.ASCII.GetString(line.Read(10));<br />
txtStatus.Text= ReplyString;<br />
<br />
}
and i start a thread for read just after a open()(open connection for serial connection)
|
|
|
|
|
What's wrong with the thread you started 40 minutes ago?
You are trying to use txtStatus as if it were an object.
---
b { font-weight: normal; }
|
|
|
|
|
sorry for the double post..
th last thread was askin for you all point of view if i should use a thread for my read function.
and yes i was hoping to up date a textbox in the form directly from the thread..
is it possible?
|
|
|
|
|
You need a referece to the form to update an element in it. You can't access the form from a static method without a specific reference to the form.
---
b { font-weight: normal; }
|
|
|
|
|
I have a button that when clicked will draw a line on a Form.
How do I pass to the Paint handler that the button was clicked
to DrawLine, since I should do all my drawing inside the Paint handler?
i.e...
//
btn_OK_Click
{
///
g.DrawLine(.....
}
//
private void On_Paint
{
//btn_OK_Click ??
}
|
|
|
|
|
You can use Invalidate method in the button click event handler which will repaint the window; so in the OnPaint you can put the code for drawing the line.
Regards,
Ashok Dhamija
_____________________________
Padam Technologies
|
|
|
|
|
Hi..
i doing a program to communcate with a plc.. on serial port.
i got it ro sent but i tink there a problem with the recieving.
some time i got it some time i dont..but i check with the hypertermianl. and the command was find..
so i tink there maybe a pro in the send part.. i sent() then read(),
should i start a thread on readin first?
if so some help on threading cos i have no knowledge on threading.
thanks
|
|
|
|
|
Hi,
Anyone know why this problem may occur and how it can be fixed?
on a "Response.Redirect" the screen goes blank.
It works perfectly fine on my local machine, but gives a blank screen on the server (running Windows Server 2003).
|
|
|
|
|
Is it really the screen that goes blank, or do you mean that the browser window goes blank?
What url are you using in the Response.Redirect call?
---
b { font-weight: normal; }
|
|
|
|
|
Some time there is threadabort exception occurs, In this case you need to catch it.. Try looking into it and then see !!
Regards,
Jaiprakash M Bankolli
|
|
|
|
|
I succeeded to build a peer session between server and the client but i want to make voice session iam using directx directplay namespace of dx9 .
But i have one problem which make me too mad even i searched it in msdn and it is really abusing me
it is the constructor of that class server inside the voice component in directplay namespace
<br />
Microsoft.Directx.Directplay.Voice.Server myserver = new Microsoft.Directx.DirectPlay.Voice.Server(object dplay);<br />
What is the dplay object it is written in the msdn is that it initializes new instance of the object but what object i need someone to help me in this topic please.
I even tried two ways .
First I declared an object for this object myobject;
And i passed it in the parameter but it also didn't work.
I passed the peer session as an object to it but it gave me an exception.
Please try to help me.
I only want somebody to show me simple code for successfully initialize that server constructor without any exceptions.
Or show me simple code for initializing successful voice sessions between two clients ?
Miss With The Best And Die Like The Rest
|
|
|
|
|
Look at tutorial 8 in the samples that come with DX9.
private void InitDirectPlay()
{
// Release any exising resources
if (m_Peer != null)
m_Peer.Dispose();
// Create a new DirectPlay Peer object
m_Peer = new Peer();
// Add handlers for DirectPlay events
m_Peer.FindHostResponse += new FindHostResponseEventHandler(FindHostResponseHandler);
m_Peer.Receive += new ReceiveEventHandler(ReceiveHandler);
m_Peer.HostMigrated += new HostMigratedEventHandler(HostMigratedHandler);
m_Peer.SessionTerminated += new SessionTerminatedEventHandler(SessionTerminatedHandler);
m_Connection = ConnectionType.Disconnected;
}
This source code initialises and sets up a peer object, which seems to hold a bunch of callbacks. This is the object you need to pass into the Voice constructor. I'd agree, there's no docs I could find on this either, but I found this in the samples pretty quickly.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My friend i already done this code and i passed mypeer object to the constructor of the voice server class but if gives me an exception
Miss With The Best And Die Like The Rest
|
|
|
|
|
Then you should have said so. This is what's required, if you get an exception, then you're doing it wrong. Run the code in the sample, and then work through until you figure out what step the sample takes which you are missing.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
1. How to retrieve the needed row from DataGrid?
2. How to change wide of each column?
thanks
|
|
|
|