|
I have a solution using a DCom component,but the component was written in VC,I also insert the source project to the solution.Someone would like to tell me how should I do to debug such program step by step?
Thanks
|
|
|
|
|
You didn't mention adding the project dependencies (right click main project/Add reference/ Choose VC project). You should now be able to step into unmanaged code. However, there are lots of strange behaviours (like functions which completly ignore return statements and so on) when debugging managed and unmanaged code in the same time.
|
|
|
|
|
Oh,it's sound fine.I will have a try immediately.
I also wish I can gain some advise here in future.
Thanks very much.
|
|
|
|
|
Sorry,I had follow your guide,but (right click main project/Add reference/ Choose VC project) have no such chioce,there is only a list of all the current projects of the solution. And it forbid me to add the VC project.
I have to insert the VC project to the solution,compile and run it.but when the COM objects's functions were called,it step over but no step in.
|
|
|
|
|
Hi All,
We have a web service(developed in C#) and currently we are using "GET" method for posting the data to the server.Now we want this to change and instead of using "GET" we should be able to use the "POST" method, using the following code we are using the "GET" method.
webRequest.Method = "Get"; where webRequest is System.Net.HttpWebRequest variable.
Could you please let us know if there would be changes required in the WebService to use "POST"?
Does "GET" method has a limitation in .NET for the amount of data to be sent?
Any link/article would be greatly helpful.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Can we Query database in XSLT/XSL ?? or can we pass values to XSLT/XSL through C# or VB.Net ???
Thanks in advance.....
|
|
|
|
|
Look at XsltArgumentList. Use extension objects to provide methods to calculate or retreive external data (for example from a database) - use parameters to send data you already have into the XSLT.
|
|
|
|
|
Hi,
When should i use ?? Timer vs Thread.Sleep(int);
could u please guide me with justification?
i believe that :
I can prefer Thread.Sleep(); if my execution has to be blocked for a specific amount time, and go for Timer if i have to execute a specific job after a period.
Is it like that???? Or
Anything else and more important is there?
please guide me..
Thanks
|
|
|
|
|
Hi,
it is slightly more complex:
- you can use timers to get a single activation in future, or a periodic activation;
- the timer fires its event on some thread; for a Windows.Forms.Timer that would be
the main or GUI thread; for other timers, it is a different thread (which is good since
it does not load the GUI thread, but it also makes you need Control.InvokeRequired
and Controle.Invoke() if the timer's handler needs to touch some Control).
- you can use Thread.Sleep() to put the current thread to sleep for some time, but only
if that is acceptable to the thread. It is probably OK to do it in a worker thread
or background thread, and not in the main thread (aka "GUI thread") since during the
sleep the entire GUI comes to a halt, so it would not repaint when uncovered, you would
not be able to resize it, etc etc.
So, if you have things to do on the GUi thread thar must be kept apart in time, you
have to organize that without Trhead.Sleep(); in that case a Windows.Forms.Timer is
the right choice.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Not fair. I wanted to answer this one;P. Good answer though.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You answered like this because it seems you have no idea about the subject.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Yup - that's me. I'm the ultimate expert. I know nothing about everything.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: I know nothing about everything
Then why is it I have seen questions you did not answer ?
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I like to spread my ignorance thinly.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Is there a max value for treeNode.StateImageIndex?
I have a stateImageList with 21 images. Any image above the 15th e.g. treeNode.StateImageIndex = 15, generates an ArgumentOutOfRangeException with message:
InvalidArgument=Value of '15' is not valid for 'StateImageIndex'
A max value isn't documented as far as I see. What am I missing?
Thanks
|
|
|
|
|
|
I have an application that I want to start as soon as the user enters Windows. How can I configure this from the installation? Could anyone give me a link or some advice?
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
Make it a service. Get it put into the special Startup folder. Take your pick.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks. I'll go with the special folder part.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
|
In setup project -> file system Editor
add the user's startup project and add your exe their.
or visit this link
http://www.developerfusion.co.uk/forums/thread/97759/
|
|
|
|
|
There are a lot of ways.
1) Windows Service (works even if no one is logged on)
2) Startup Folder of Users/All Users
|
|
|
|
|
Using the KeyDown event, i can see if a key has been pressed while the form is in focus, but how do i check what key was pressed?
Thanks in advance
|
|
|
|
|
In general, events provide the information you need. That is what makes them useful.
Have you noticed the two arguments your KeyDown handler is getting ?
There even is some documentation explaining KeyEventArgs if you would care to read it.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
In the end i figured out i could do this...
if (e.KeyCode == Keys.K)<br />
{ MessageBox.Show("Key was k"); }
Is that a poor way of doing it?
Also, perhaps you could explain the mystery e, ive used it in GDI+ too, but dont know what it is
|
|
|
|