|
Directly u see the Task manager.. or in a .net frame work means Process option is there la.. Its wright take it or u got correct ans intimate me..
Regards..
Maldeeban.R
Hi i am working as a software engineer.. this code project site articles is very usefull for us.. I am very interst to read this articales..
|
|
|
|
|
It is giving the process name i.e Winword but i want to display the tasks as in task manager and i would like to start or stop the tasks even though it is running in the client machine
I tried the Service Controller class also it is giving only the windows services
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hello Friends ,
I have a situation here , i have a com component (DLL) which is created in VB , i am accessing the dll in C#.Net .
The problem here is i have parameters to which are optional, but in c# while accessing it is giving me message saying that parameter is mandatory.
Example:-
vb6.0
Public function operation(byval a as integer,byval b as integer, optional symbol as string)
dim output as integer
case symbol
when "+"
output = a+b
when "-"
output = a-b
end case
endfunctin
i am calling this function in C#.
Here the symbol is optional . how i have to hadle the situation?
Thanks in advance.
Bharath.S.Ron
|
|
|
|
|
Hello!
In this case you'll have to use Type.Missing for the optional parameters you don't want to fill in.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
I was wondering if there was any difference between the following code:
<br />
public void LoadAll()<br />
{<br />
obj x;<br />
StaticClass.DoSomething(x);<br />
}<br />
<br />
public void LoadAll()<br />
{<br />
obj x = StaticClass.DoSomething();<br />
}<br />
Are there any pros and cons to either of these? Are there any concerns with thread safety?
-- modified at 22:55 Sunday 3rd June, 2007
|
|
|
|
|
Any concerns you may have remain the same in either case, ultimately I'd go with the second for clarity, but so long as it's all running in the same thread, which it is here, I don't see any thread safety concerns. The second approach does allow the method to create the object whenever it likes, the first means it always exists.
The first would be better represented with the out keyword, seeing as you expect the value to be assigned, and not just read. Stupid C# doesn't have const, but you can make your code clear by using the out keyword.
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 want the reference for the charecter input system function code which is simmilar to windows operating system.
Please provide me the reference
Help Ever Hurt Never
|
|
|
|
|
You've asked this several times now. Surely you realise that anyone who knows what the windows code is, probably isn't allowed to show it to you ?
Even if I had the Windows source, and was able to share it, I would honestly have no idea what part of it you want to know about, based on how you word your question. You want to know how the textbox works ? How the keyboard is monitored ? How the console shows key preses ? I have no idea.
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 )
|
|
|
|
|
What is the best way to save currently opened PDF file as image in sql database?
|
|
|
|
|
Look the TEXTPTR function in SQLServer's help.You may find the answer.
|
|
|
|
|
do you mean as a bitmap, or as a binary file ? SQL Server doesn't care what the file type is, it just stores the bytes.
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 )
|
|
|
|
|
Is there a way to use Detours (http://research.microsoft.com/sn/detours/[^]) with C# ?
I tried to load the dll directly to C# project and it faild.
I could write the project in C++ and solve this issue (i'm new to C#), but would rather do it in C#, so i be able to integrate CScript engine to my project.
|
|
|
|
|
The way to call methods in a C++ dll from C# is pinvoke. www.pinvoke.net has heaps of examples of calling existing Win32 APIs, which should give you a clear idea of the syntax required.
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 understand why the "Main" method needs to be in a class. But it appears that the name of that class can be pretty much anything! Is there some generally accepted name that is used most frequently for the "Main" containing class? I guess C# will find the "Main" method no matter what - yes?
|
|
|
|
|
SPRC wrote: I guess C# will find the "Main" method no matter what - yes?
Yes, and typically, the point is that you don't need a class just to have that main method in there, it gets added usually to the first form class that is shown by your app.
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 )
|
|
|
|
|
How can I get information about user that is currently log on on windows Xp through web.
i.e A user access a particular page 'XYZ.com' then in response the page opens with user name 'ABC'
|
|
|
|
|
You can't realy. The best you can do is to call HttpRequest.LogonUserIdentity.
|
|
|
|
|
Created Logon Screen using integrated authentication, How to get Uncpath of Home directory so that user can access their home folders from home for remote downloading and uploading
thnks
|
|
|
|
|
Your main issue will be that an ASP.NET application doesn't have permission to access the file system above it's root. What do yuo mean by Uncpath of home directory ? What do you mean by 'access their home folders from home' ? Do you mean that you are writing a web app which will run on the home machine and give a user access to that machine remotely ?
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 )
|
|
|
|
|
hi.
I need to concut a string in C# so that it will be aligned to the left.
for example:
dd/mm/yyy message1 line
dd/mm/yyy message222 line
dd/mm/yyy message566455 line
etc...
note: it's not possible here but the intention was for all the "line"s to be one on top of the other....
Thanks....
|
|
|
|
|
strings are aligned to the left (at least if you write from left to right).
if you are painting to the screen, it may help to choose a "non-proportional" font,
such as "Courier New" so all characters have the same width;
maybe you want a DateTime format that applies leading zeroes,
and you might show your message number using a fixed number of digits:
num.ToString("000000") will generate at least 6 characters, using leading zeroes.
If you are painting on a Graphics, you can use MeasureString() to get the string
width in pixels, and adjust coordinates accordingly (but that would be useful only
if you do NOT want to align to the left).
Hope this helps.
|
|
|
|
|
A newbie question:
protected
Access is limited to the containing class or types derived from the containing class
protected internal
Access is limited to the current assembly or types derived from the containing class.
(MSDN)
What does 'assembly' refer to? Is it the same application or the same class?
protected internal combines protected and internal, but in an OR sense, not an AND sense (pro c#).
What does this mean?
Jon
|
|
|
|
|
jon_80 wrote: What does 'assembly' refer to? Is it the same application or the same class?
This is the same unit of code that is place on disk. In normal language: This is the .exe or .dll file in which the class sits.
jon_80 wrote: protected internal combines protected and internal, but in an OR sense, not an AND sense (pro c#).
You can only access a protected internal member, if you inherit from that class and you are in the same assembly. I think the book is wrong here, as you can't access protected members even if they are also internal. Might want to reread that part, because I'm pretty sure they didn't mean it that way.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
|
|
|
|
|
The book is right - protected internal means "protected OR internal" - the member can be accessed within the same assembly OR in any derived type, even if that derived type is outside of the assembly.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
An assembly in .NET is one of two things, the .EXE file you make when you compile, or the .DLL file. So an assembly is the whole application, not just a class.
To answer your other question I'll have to define internal as well.
protected is an access modifier that limits access to the current class or classes derived from the current class.
internal is an access modifier that limits access only to the currect assembly.
protected internal is an access modifier that limits access to only derived classes in the current assembly.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|