-
- Need help about ADSI and IIS
by Arpa
- 2 Replies
- Last post
by Arpa
- hey everybody, I am looking for one Code for making an applicaion which have to Start and Stop web sites which hosted in IIS 6.0.
as i read ADSI IIS Administration Programatic documents over MSDN , I found i ave to use Start method and Stop method in this case.
but now my question is , I need one exactly sample in C# about this case to help me , becuase i developed on but that one is not wor
-
- Bug Causes Windows Service to Start and Immediately Stop
by Josh_G
- 5 Replies
- Last post
by Josh_G
- Hello,
We have developed an OPC server that runs as a Windows service. The application was coded in C#.
We put the server through extensive testing and didn't seem to have any problems. Now we are facing a strange bug for a copy of the server running on a tablet PC. Something seems to be causing the Windows service to get corrupted. It appears that after a hibernation cycle, the W
-
- Global Hook for WM_NCHITTEST
by jtackabury
- 14 Replies
- Last post
by just.a.nerd
- I am trying to globally catch all the WM_NCHITTEST messages (not just ones for my application), but I'm having some problems. I know that I will probably need a C++ DLL to handle all the messages and send them to my application, no problem, I've got that setup. But what hook do I use I've tried WH_MOUSE and WH_MOUSE_LL and the callbacks never seem to catch the "WM_NCHITTEST" message. Am
-
- Microsoft.Office.Interop.Excel ERROR
by erik216hk
- 1 Replies
- Last post
by Karthikeya Pavan Kumar .B
- I am using c#.net to connect database to find data. Then transfer data to excel for print out.
In project reference I add office 11 object library, now using Office = Microsoft.Office.Core; That have not any error. But using Excel = Microsoft.Office.Interop.Excel
That will have a eror message about Interop ...
Please help me, thanks~~
-
- NEED A REALLY, REALLY SIMPLE CHAT-TYPE PROGRAM!!
by xlthim
- 14 Replies
- Last post
by Pace
- OK - I've been all over the web for the past couple of hours looking for a program, but nothing is fitting what I need.....
I have 2 computers. On one (server), I press a button and a string is generated. I need to get this string to the other computer (client) via networking so the client will do something.
Every program I have looked at seems like I have to have a 3rd computer to be the se
-
- Creating multiple instances of applications
by twinsen.be
- 8 Replies
- Last post
by twinsen.be
- Hi C# community,
I'm asked to build something, to be able to open 2 (or more) instances of an existing application, that only allows 1 instance running at the same time.
For example: MSN Messenger can only be started once, how can I build something to get beyond that limit
Do I need a console application, should I use a windows service
I've been toying with the following cl
-
- Static fields, inheritance, and Reflection...
by nastynate
- 8 Replies
- Last post
by micvos
- I'm trying to force a class that inherits from a base class that contains a static field to assign a value to this field. I'm not having any luck.
For example, say I have a base class "Shape":
public class Shape
{
public static string Description = "A shape";
}
and I want to create a class that inherits from shape, but I want the new class to be forced to assign a value to
-
- .net C# course in UK
by Dan Walmsley
- 1 Replies
- Last post
by Isaiyavan Babu Karan
- I am looking to do a course covering C# preferably with communications in the UK, it would have to be a part time course as I am working, it would be work that are sending me on this course. Can anyone recommend anything
-
- passing byte[] array from C# to c++ unsigned char*buf com function parameter
by rodniko
- 7 Replies
- Last post
by aM000
- i have a function in c++ com that gets an unsigned char *buffer parameter. when i use the dll in c# this function expects 'ref byte' parameter. how do i pass a byte[] buffer as a parameter to the c++ function and receive it as an unsigned char *buffer in the c++ function * already tried IntPTR , the compiler write that it cant convert system.Intptr to ref byte. unsafe { fixed (byte* p = buf) { I
-
- Interfaces oversold???
by IS dude
- 14 Replies
- Last post
by Mark Benningfield
- First, I must admit that I am a C# novice and so I probably don¡¯t have as much knowledge and experience on the subject of interface as most of you guys reading this post.
After reading a few books on C# and interface design, I still can¡¯t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ¡®only¡¯ and not as a powerful c
-
- properties
by textman
- 2 Replies
- Last post
by c blunt
- How can I print the properties window...
-
- Error while counting the words in a word document
by sheriffdaone
- 0 Replies
- Last post
by sheriffdaone
- Hi everybody I am trying to count words in a word document and then upload them into a ftp server but before i upload them i have to count the words. So i wrote a method for it but it always gives different exceptions. If i do it in regular ways in the upload method it throws a COMException "The File in use" but if i try to use the method that i wrote it throws another COMException &quo
-
- Calling C/C++ DLL function Entry Point Error
by Nepius Clemens
- 3 Replies
- Last post
by Nepius Clemens
- I have a dll that was made for C/C++ in Borland. The problem is that I keep getting an "entry point not found" error when I run the program. When I compile, I get no errors. I use DllImport like this: [DllImport("C:\\Program Files\\SPF\\SpfIIDll.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "InitSpfII", ExactSpelling = true)] static extern unsafe i
-
- What is with all of the files for a simple program?
by conrarn
- 9 Replies
- Last post
by conrarn
- I posted this in the IDE section but got no reply so I am trying it here.
I am just learning C# and made a solution for a command line program. I would like to know what the heck all of these output files are for and can I somehow force them not to make subdirectories. I was able to remove the bin directory but not the obj\Debug etc. directory. Also don't understand the Test.vshost.exe file and
-
- application built on C#.net 2.0 hange on windows server 2003
by zmkpower
- 7 Replies
- Last post
by OmegaMan
- hello all... An application built on C#.net2.0,i m running this application Windows Server 2003 Enterprise Edition with Sp2..The Application some Times Stops responding and disappears(Close) during running..can any one plz tel me actual solution or cause of this problem..! an urgent reply will be appreciated.. zshan
-
- SQL headache
by Bwjohnson84
- 3 Replies
- Last post
by TaylorMichaelL
- i'm very new to C# and SQL and i was hoping someone could help. i am trying to make a simple inventory program, i'm trying to set up a data base(like a speadsheet) and then display it, i'm planing on having more controls later on but i can't seem to blend the GUI of the window to the database i've been stuck on this for days and i've search everywhere and nothing comes up for my situation, please
-
- Detected dependencies reappears
by Gerry S. A.
- 4 Replies
- Last post
by Matt Phillips
- I created an setup project which includes about 10 project outputs. When I add the primary output of these 10 projects, the setup project automatically detects the dependencies and include them under the file system and 'detected dependencies'. I removed all of them since they are all third party components, but when I reopen the solution or open the solution in new workspace, these detected depen
-
- This is driving me up the wall!!
by David_Wright
- 14 Replies
- Last post
by Matthew Watson
- What is going on here : I get an error saying: The private field 'pubtoken' is assigned but its value is never used And the next error says: Error building instance path 'pubtoken'. (Unable to locate a member called "pubtoken") Okay, maybe the private field is causing the prob, but I can't change it to public !
-
- Clone object ?
by Eric Chow
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hello,
How can clone all the properties from one object to another object
For example,
class A {
private String name;
private int age;
private boolean status;
...
}
class B : A {
private String address;
}
A a = new A();
(set all the properties for a)
B b = new B();
How can copy all the properties from a to b
Best regards,
Eric
-
- Casting List<base> to List<ireadonlybase> where base implements ireadonly
by submicron
- 9 Replies
- Last post
by Vivek Ragunathan
- Hi All, I'm having problems implementing a readonly interface to a set of classes. Heres a simplification of the code: interface IreadonlyBase { // Does gets only on base class } class baseclass : IreadonlyBase { // Does gets and sets as usual } interface IreadonlyDerived : Ireadonlybase { // Does gets only on derived class & base class } class derivedclass : baseclass, IreadonlyDervied { // D
-
- Public partial classes
by thukralz
- 8 Replies
- Last post
by Kusala
- Hello Everyone,
How to access these public partial classes:
I have something like this
public partial class test : System.Web.UI.Page
{
// What ever I need here
}
I have a second class
public partial class test1 : System.Web.UI.Page
{
//Code here
How can I access test from here
}
-
- Run application as a Service
by thukralz
- 12 Replies
- Last post
by Ross Dargan
- What type of project it should be to run as a service
Say if I create something and want to run it as a service how to do it and some of my other application has to use that service how does that work
-
- Access Denied to system32 folder, writing to file
by PaulRom
- 14 Replies
- Last post
by PaulRom
- I have a web aplication with a custom dll in the gac. My aplication writes to a file that is held in the system32 folder. When the web aplication is run. an error message stating access denied occurs. I need to be able to write to the file and the file cannot move location.
Any help would be fantastic
Thanks
-
- ctrl-tab functionality
by VooDoo Chicken
- 6 Replies
- Last post
by VooDoo Chicken
- hi, how do you build the crtl tab functionality from c# (or at least calling native api from c#). i know how to retrieve active windows list (more or less), but i dont know how to successfully focus a specific window, specially if that window runs full screen, like i would do with crtl-tab with no problem
-
- How easy is this in C#?
by Bwilhite
- 14 Replies
- Last post
by Bwilhite
- Sorry for the very general subject line. I've been working on a problem for some time right now that will have two separate applications passing information back and forth and preferably sharing objects. To date, I've been working on this problem using C++ and the WinAPI. However, the WinAPI and Visual Studio c++ 2005 don't really integrate very well. I've been taking a look at C# lately, and it