|
Seems likely to me that you need to buy a VB.NET book and work through it, because you don't really know what you're doing.
clsDtaClass would be a variable in your code. Without seeing the code, it's impossible to tell you what the error is. I tried google and it seems you didn't give the exact text of the error message, or you're the first person ever to get it and need help with it.
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 )
|
|
|
|
|
I mean a resource is created in a thread and now I want to access it from another thread.
|
|
|
|
|
You're going to have to explain what you mean by "resource".
|
|
|
|
|
Hello,
I have a windows application. After exiting the application, I also want to kill the exe running. How to do this?
Please reply. Its urgent.
Thanks in advanced
Nana
|
|
|
|
|
Which exe do you want to kill? When you exit your application the running exe is killed. If you want to kill other exe use Process class.
|
|
|
|
|
Yeah I want to kill running exe.
It doesnt get killed.
I can see it in task manager.
Nana
|
|
|
|
|
you have to use the process class like giorgi suggested.
using System.Diagnostics;
Process[] currentProcesses = Process.GetProcessesByName("iexplore");
foreach (Process process in currentProcesses)
process.Kill();
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
If you're talking about closing your .EXE and you find it still running in TaskManager, you've done something in your code that's preventing it from quitting. This could be cause by any number of problems, like not terminating a thread you've created or properly disposed an object you created, or you haven't shutdown some COM server you instantied, ...
|
|
|
|
|
Or simply the xxx.vshost.exe is still running, but the xxx.exe should not be.
|
|
|
|
|
And if he's talking about the Release version on a client machine?
|
|
|
|
|
First of all Thanks for all replies.
Ok. I found that there an object of a class which I am using.
If I comment this object, it exe gets killed.
What should I do? I want to use this object in my code.
Nana
|
|
|
|
|
Then you have to get the documentation on that object to find out how to shut it down properly before your app closes.
|
|
|
|
|
Thanks.
I found out how to shut it down.
Thanks once again
Nana
|
|
|
|
|
What should I write to kill exe?
Application.Exit()
or this.Close()?
Nana
|
|
|
|
|
i i am going to give my application to clint
and i wanna fine the installed time of his local machine
how can i find that --what code should i write for that while developing
thnx in advance
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
You should use DateTime object and you will something like "Now" member of that.
Manoj
Never Give up
|
|
|
|
|
See my answer to your other post on this question: http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=2044713#xx2044713xx[^]
Also, please don't double post. People here answer questions on a volunteer basis and will help as best they can when they have time to answer. Yes, questions do go unanswered for a variety of reasons, and it's acceptable to repost the same question after a while, but waiting a few hours and reposting because there was no response (which, based on the timestamps on the posts appears to be what happened) is not necessary.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi,
I am facing problem of COMException while opening MS-Word files on Windows Server 2003. I am refering Interop.Word.dll for opening MS-Word files to count the number of words from it.
I am using following API to open the doc files.
Word.ApplicationClass wordApp = null;
Word.Document aDoc = null;
aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, <br /> ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, <br />ref missing, ref missing, ref missing, ref missing);
aDoc.Activate(); If I deploy above code on Windows 2000 professional then it works without error but if I deploy same code on Windows Server 2003 then I get following exception.
System.Runtime.InteropServices.COMException (0x800A1066): Command failed at <br /> Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles,<br />Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, <br /> Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, <br /> Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
Is there is other way to overcome this bug?
-- modified at 2:41 Saturday 19th May, 2007
#Abhi#
|
|
|
|
|
Hi!
Do you have the same version of Word installed on both machines? (or rather 3 machines: The development machine that created Interop.Word.dll plays a role, too)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
Thanks for reply.
I have same version of Word installed that is Word 2003.
Just OS are different.
Abhishek J
|
|
|
|
|
Hi
First create the Instance of the application using "new".
Manoj
Never Give up
|
|
|
|
|
Hello All,
I want to catch scroll event of a list box in C#. I want to use two list box, and when one is scrolled the another should automatically be scrolled. What should I do for that.
Thanks.
Naveen
|
|
|
|
|
I would assign the relevent events for both controls to the same event handler and do a test to see which control is the active control and assign the relevant properties in the inactive control to the values in the active one. In order to find the relevant properties I would use google to find microsoft documentation on the list box.
If you do this and run into problems post again with your test code and what you are specificly having problems with and it is likely that someone here will help. Specific, focused questions are much better than general, open-ended ones. For more infomation on posting etiquette look here[^].
topcoderjax - Remember, Google is your friend.
|
|
|
|
|
I am trying to increase the height of my StatusStrip... but it won't let me. Whenever I change the value from 22 to any other value, higher or lower, it automatically changes back to 22.
Any ideas how to change this? I want to make it 32 high.
Thanks in advance for any help.
--Peter
|
|
|
|
|
I know somebody just posted some code, that didn't quite make much sense... but it helped anyways. I saw in your code AutoSize set to true, well for some random reason this inspired me to turn off AutoSize. Once i turned off autosize then it let me change the size freely as I wished.
So to make a StatusStrip taller you just need to turn off AutoSize.
--Peter
|
|
|
|