|
first-chance exceptions are exceptions that have been caught and dealt with. No need to worry about it
BTW: that exception code is the same as NullReferenceException
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Thanks. I would not worry about it at all if the IDE ignored the problem and let me debug my program.
|
|
|
|
|
Your settings just might be wrong, I have fallen in a similar trap if I havent reset the settings for exceptions. Go to Debug, Exception, click 'Reset All'. Also make sure you dont have native debugging turned on, if you dont need it. Try it now
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Thanks. I unchecked the "debug unsafe code" and reset exception settings, then it's OK.
|
|
|
|
|
How can I save a word file directly to server? Means, I have open a existing word file using browser and and i need to save the file .
Any idea ???
Happy Programming
-----
Abhijit
|
|
|
|
|
search for this:"ASP.NET 2.0 FileUpload Server Control" for ur query. and try searching CP before u put in your query. a lot of things are already there on this magnificent site.
|
|
|
|
|
|
Firstly, I suggest you go away and learn how to be polite. Secondly his answer is perfectly reasonable for the question you supplied. If you put more detail in in the first place on what you wanted to do then prehaps his answer would have been more detailed!
Please learn to be polite.
|
|
|
|
|
First of all i am sorry , if i have use any non polite words in this discussion !!!!
But do you have the ans ??
Happy Programming
-----
Abhijit
|
|
|
|
|
Check out these options:
ROUTE ONE:
1) Downloads the file.
2) Make changes. Save it.
3) Upload the file.
ROUTE TWO:
1) Try using a Word Automation on server to provide editing and saving directly. Remember that there are known issues with Word being automated from ASP.NET. I have a review and an URL to appropriate KBs here: http://lavanyadeepak.blogspot.com/2007/03/office-automation-for-aspnet.html[^]
2)Try using third party office components like ASpose Word. I haven't tried them and hence can not comment on it.
ROUTE THREE:
Have you tried Html-Kit (http://www.chami.com/html-kit/[^])? It has a workspace feature of saving to FTP wherein the application 'Save' toolbar icon actually maps to an implicit FTP PUT. You may need to have a hook in your Microsoft Word to achieve this.
|
|
|
|
|
Hi Vasudevan,
Thanks for yor your help ! i will surely check it and let you know when done !!!
Thanks again
Happy Programming
-----
Abhijit
|
|
|
|
|
Hi!
I'm planning to program some sort of electronic gaming machine / slot-machine (like: 5 columns with "Reels", each "Reel" shows some symbols, if you have 5 symbols in a row you hit the Jackpot).
Although I think I'm already familiar with WPF's basics (how to create controls and edit their style), I have no clue how to solve this task with WPF.
Are there any suggestions how I should program those "Reels"? Should I play videos or could it be solved by "animating" some icons? I have really no clue.
Thanks,
Mario M.
Cheers,
Mario M.
Dear CodeProject member: Please don't forget to show me how clever you are by rating also this message as "crap/spam/trash" instead of writing a meaningful response!
|
|
|
|
|
I dont really know WPF, but I am pretty sure it has an Animator class (something about a StoryBoard too). I am sure a Google will reveal more info
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hey Everybody!
I'm trying to write an IM.
The IM is working great inside the LAN, but not through the internet.
I configured my router's firewall to allow port 3300 and to transfer the stream to 192.168.1.4 (my computer inside the LAN).
When I am trying to send a message to myself using my internet IP, the tcpClient.Connect() method throws a timeout exception.
it seems that the service() method that should "catch" the incoming data simply does nothing!
Surly I'm doing something terribly wrong!
Can someone help me on that??? I'm really suck!
Thanks A LOT!
|
|
|
|
|
You cant do that It is not possible to connect to yourself via a NAT device. The connector and connectee needs to be on opposite sides of the NAT device.
That said, there are some tricks to work around this. This involves modifying your hosts file, and adding an entry for your localhost, that match the name of your hostname to the outside work (this wont work with IP's).
Example:
Say your outside hostname is user-123-123123-344323.myisp.com
then add that hostname to your hosts file, and point it to 127.0.0.1.
Now when you conenct via hostnames, it will resolve the hostname as 'internal' and bypass the NAT device, allowing you to make a connection.
Hope this helps
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hi is there a way to simulate keypresses using a joypad?
I would like to create a program which fires keypress messages to an IE window for use with games. Is this possible?
ty
|
|
|
|
|
Yes - you'd need to capture the controller's input with DirectInput and then turn it into keyboard input.
There is a program called Joy2Key (Google for it) that also does this, and also allows you to simulate mouse input with your joypad.
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
|
I have created a class named Authentication
now i need to create n number of objects of Authentication
My authentication contains a method method1()
i need to access through authentication class array objects ...
how can i do this ...
thankzzzzzzz
A123-B321
|
|
|
|
|
Authentication[] array = new Authentication[n];
foreach(Authentication item in array)
{
item.method1();
}
Just because you said array. You should use collections (unless Authentication is low-level class, which is obviously not the case).
So something like:
AuthenticationCollection: Collection<Authentication>{}
AuthenticationCollection items = new AuthenticationCollection(n);
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
The easiest way is using the System.Collections.Generic namespace, it automatically gives you most of the methods you need (Add etc...) and you can create any others you need.
i.e.
using System.Collections.Generic;
namespace TestNamespace
{
class Authentication
{
public void method1()
{
}
}
class AuthenticationCollection
{
private List<Authentication> _Items;
public List<Authentication> Items
{
get
{
return _Items;
}
set
{
_Items = value;
}
}
public AuthenticationCollection()
{
_Items = new List<Authentication>();
}
}
}
To call method1, simply use the index of the Item in the collection when instanciated and filled.
using System.Windows.Forms;
using TestNamespace;
namespace MyApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Load += new System.EventHandler(Form1_Load);
}
void Form1_Load(object sender, System.EventArgs e)
{
Authentication myAuth1 = new Authentication();
Authentication myAuth2 = new Authentication();
AuthenticationCollection myCollection = new AuthenticationCollection();
myCollection.Items.Add(myAuth1);
myCollection.Items.Add(myAuth2);
myCollection.Items[0].method1();
}
}
}
Dave
|
|
|
|
|
i want to apply the selected item (printer name) from listbox collection when ever i load the print dialoge
plz help me in this regard
challavijju
|
|
|
|
|
Your problem is not clear ? can u kinldly explain in details ?
And one more think while post your question dont write like that
Challavijju wrote: Subject:Re: This is my first post
Put your main objective in short as questions . other wise no one will look into this
Happy Programming
-----
Abhijit
|
|
|
|
|
Hi Guys,
I am trying to access the inbox on Exchange Server 2003 by writting a following code in Visual Studio 2005 on windows vista business edition.
ADODB.Connection oCn = new ADODB.Connection();
ADODB.Recordset oRs = new ADODB.Recordset();
ADODB.Fields oFields;
ADODB.Field oField;
// TODO:
string sFdUrl = @"https://exchange server/owa/";
oCn.Provider = "MSDAIPP.DSO";// "exoledb.datasource";
oCn.Open(sFdUrl, @"domain\user", "Password", -1);---------- This is wehre I am getting an exception.
The exception says : {"Provider cannot be found. It may not be properly installed."}
Can you help to solve this issue please?
Thanks
-- modified at 7:46 Friday 19th October, 2007
happy coding!
|
|
|
|
|
hi ,
i wrote this code so that i can understand delegates...
code works fine ....good
but when i changed the code a bit ie when i wrote the main function inside another class if i need to call the method using delegates then i have to call like
""mydelegate obj = new mydelegate(class.dog);""
ORIGINAL CODE::
class Program
{
public static void dele()
{
Console.WriteLine("the delegate will call this function");
Console.ReadLine();
}
static void Main(string[] args)
{
mydelegate obj = new mydelegate(dog);
obj();
}
}
}
ALETRED CODE WITH TWO CLASSES::
class Program
{
public static void dele()
{
Console.WriteLine("the delegate will call this function");
Console.ReadLine();
}
class Program2
{
public static void anotherdele()
{
static void Main(string[] args)
{
mydelegate obj = new mydelegate(Program.dog);
obj();
}
}
}
SO My doubt here is i thought using delegates we need not know the name of the class but here if the main is enclosed in another class i need to use the class name....
any help is welcome .......
thanks
C#
|
|
|
|