|
Use try/catch block and in catch block see the error message of your exception so that u'll know more about the error.
|
|
|
|
|
I already did it before but it jump to Catch but there was no Message...
I have finally found the problem now, my error. Sorry for pointless question and Thanks for your reactions...
|
|
|
|
|
|
Why are you posting twice? You first post has been answered
|
|
|
|
|
Why did you post again the same question?
I have answered the question below.
Regards,
Satips.
|
|
|
|
|
still i get the same error
|
|
|
|
|
Hi
While building the solution i'm getting this error "error result returned from 'tlbimp.exe'"
Please tell me the solution.
Regards,
Rocky.
|
|
|
|
|
The original error implies that the IDE is not finding cl.exe on your machine. Could you make sure that cl.exe exists on your machine.
If it is there then I believe you can inform the IDE about it. Just start the IDE (without opening a specific project) and do the following:
1) Go to Tools --> Options
2) Click on the the projects folder at the left menu.
3) Under "projects", click on "VC++ Directories"
4) Make sure that the top right window labeled "Show directories for" contains "Executable files"
5) click on the new New Line icon (icon similar to new folder icon on the top right)
6) add the location where your cl.exe exists.
Hope this helps!
Regards,
Satips.
|
|
|
|
|
I still get the same error
|
|
|
|
|
Confuseed wrote: r "error result returned from 'tlbimp.exe'"
What is that tlbimp.exe ?
For what perpose are you using that exe in your application ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Sandeep Akhare wrote: What is that tlbimp.exe ?
Type Library Importer (Tlbimp.exe)
Type Library Importer[^]
Regards,
Satips.
|
|
|
|
|
Hi everybody,
I am writing a webscraping c# application, it's a browser that opens a web page enter the login and password then invokes the submit button. All this process is working, but when I wanted to treat each html node I had problems getting the next node and previous:
private void GetNOdes(TreeNodecurrentNode, HtmlElementCollection elements)<br />
{<br />
foreach (HtmlElement element in elements)<br />
{<br />
TreeNode node = currentNode.Nodes.Add(element.TagName);<br />
<br />
<br />
<br />
TNode.Text += node.NextNode.ToString();<br />
<br />
<br />
<br />
FillTreeViewRecursively(node, element.Children);<br />
<br />
}<br />
<br />
}
Do you have an idea how can i get the next and the previous node for a given one ?
Thank you so much..
Tercha
|
|
|
|
|
hi every one !
i have a windows service whic starts five differtn threads on Onstart() method and each therad checks five different xml file at certain interval. now is ther any way in whic i can debug the service.
plz do help.. just a logic will do.
|
|
|
|
|
Hi
You can try the following ways:
1.Use the attach to process command (on your service executable file) from the tools menu after setting some break points on your code.
2.Use System.Diagnostics.Debugger.Break(); command on your code to force break on program execution.
|
|
|
|
|
the reply from "nissims" is a good one..
but u can also debug in a sense...
that u make a log file by writing in it at important points in your code.
|
|
|
|
|
|
I am trying to write an ftp client program that will automatically detect a wireless network and upload files to ftp server. It is working nicely in normal condition.
But if network connection is disconnected in the middle of an ftp uploading, i get 'System.Net.WebException: Unable to connect to the remote server' exception as i should get. Up to this part i have no problem.
But when the connection is available again, it tries to upload the file again and gets this exception---
System.Net.WebException: The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
I can not upload files until i restart the ftp publisher process in FTP Server. Definitely the FTP publisher service is locking the file in server and i can not even delete the incompletely uploaded file. I must restart the FTP Publisher process to work again.
A wireless network can be disconnected any moment. So this is a huge problem and i desperately need a solution.
PLEASE Try TO Help ME OUT.
Chayan
|
|
|
|
|
if problem is occuring rarely then try to upload after pausing for couple or more minutes, i think server will leave the handle after sometimes. if there are list of files then try uploading others to utilize that time or simply use sleep.
Regards
Shajeel
|
|
|
|
|
Thanks a lot for your so quick reply... I am also thinking to do something like this...thanks again mate...
Chayan
|
|
|
|
|
how can i automatically retreive message from a queue without any postback on the
receivers side.
hello every one
|
|
|
|
|
In my experience, the only way that the post back happens is if the Message has a return queue and you use it. Is your question how to read a queue, or if the reply happens automatically?
Hogan
|
|
|
|
|
yes u got it right. i want to automatically retreive message when it arrives in queue but the client should not refresh it .
hello every one
|
|
|
|
|
Try using the Events from the MessageQueue object.
MessageQueue mq = new MessageQueue();
mq.ReceiveCompleted += new System.Messaging.ReceiveCompletedEventHandler(MessageQueue_ReceiveCompleted);
//Call this to start processing
mq.BeginReceive();
Then have the event handler that processes the delegate.
private void MessageQueue_ReceiveCompleted (object source, System.Messaging.ReceiveCompletedEventArgs asyncResult)
{
MessageQueue mq = null;
try
{
mq = (MessageQueue)source;
//Create a Message object and populate it from the event.
System.Messaging.Message mes = mq.EndReceive(asyncResult.AsyncResult);
//Do your message queue work here.
}
|
|
|
|
|
Hello
I had a question about named delegates. Now from my understanding named delegates can only hold references of a method that matches the signature of the delegate. I have a piece of code which is contrary to this statement.
Using System;
delegate int CountIt(int end);
class varCapture{
static CountIt counter()
{
int sum = 0;
CountIt ctObj = delegate(int end) {
for( int i = 0; i <= end; i++ )
{
Console.WriteLine(i);
sum += i;
}
return sum;
};
return ctObj;
}
public static void Main()
{
CountIt count = counter();
int result;
result = count(3);
}
Now the delegate of type CountIt must refer to a method that takes int as a parameter and returns int as a parameter.
CountIt count = counter();
In the following line the delegate count is pointing to the method with no parameters or return type. So I wanted to understand how is it possible?
Is this assignment possible because the counter() is returning a object of type CountIt(same as that of the delegate)? If so when CountIt count = counter(); is executed it calls counter() and then just initializes the CountIt object an return it, does it actually go into the anonymous method block code? If not why?
Thanks
Revant Jain
|
|
|
|
|
int MyMethod()
{
return 9;
}
int n = MyMethod();
That's all your code is doing, it's no mystery.
Revant Jain wrote: If so when CountIt count = counter(); is executed it calls counter() and then just initializes the CountIt object an return it, does it actually go into the anonymous method block code? If not why?
counter() returns an object, which is a delegate. So, this works. When the delegate fires, it will run the anonymous code, because that's how the delegate was defined.
The code is convoluted, but it's correct.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|