-
- Modify the account for a Windows Service
by Lambch0p
- 5 Replies
- Last post
by Lambch0p
- Hi,
I've been asked to automate the installation of a legacy application.
Part of the installation requires calling an existing EXE (not .NET, and no-one has the source code) that installs a service for the application. That all works fine. However, once the service is installed, I need to change the username and password that the service logs on as. Is this possible with .Net I can fin
-
- FREE C# e-book PDF file download.... SAVE a copy!!
by John Oliver (UK&am
- 2 Replies
- Last post
by Sean
- Hi ALL,
See these links.>>
http://www.programmersheaven.com/2/CSharpBook get it directly here>>
http://www.programmersheaven.com/ebooks/csharp_ebook.pdf
Regards,
S_DS
-
- Time to the nearest 15 min interval
by Can-Ann
- 14 Replies
- Last post
by boban.s
- I need to round time back and forth to the nearest 00/15/30/45 minutes
an example would be:
6:55 am to 7:00 am
6:05 am to 6:15 am
6:20 am to 6:30 am
or
6:55 am to 6:45 am
6:05 am to 6:00 am
6:20 am to 6:15 am
Can anyone suggest how to do this. Any help would be appreciated.
-
- Maximum project name length
by Andy C P
- 1 Replies
- Last post
by Sergey Galich
- Running debug/F5 from Visual Studio C# 2005 on projects with full paths over 127 characters is still broken, 2 years after this thread started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=132429&SiteID=1 Though marked as 'answered', it plainly hasn't been resolved and I still have machines on which I simply can't use VS. (There are many other similar threads) I'm experimenting with C
-
- Singleton as startup
by Nathan_
- 5 Replies
- Last post
by czaval
- I'm working on an application that works on a plugin type architecture. The main app has an mdi form that contains a navigation form (host) and nothing else, at start up I create an instance of a singleton that handles the communication between the host and the plug-ins (loading, disposing etc). I would like to be able to make the singleton the startup object to place all logic in relation to wh
-
- changing table names
by Can-Ann
- 14 Replies
- Last post
by Andrej Tozon
- I have a bound dataset, with tables (2000,2001,2002,2003 etc).
all these tables are the same, just different names. Because these names will change over time I want to be able to add them within the program.
If I design the form around the table 2000, can I change it to display the information from table 2003.
The table 2000 would have a tableadapter and bindingsource.
If this is possi
-
- C# project type
by YaelS
- 1 Replies
- Last post
by Peter Ritchie
- What is the project type of C# in vs.net 2003 I neet to create if I want only this code
I createed this as a console application, but I don't want to see the console window..
Thank you.
My code is only this:
System.Diagnostics.Process.Start("OUTLOOK.EXE");
-
- Invalid parameter used
by Jayvardhan
- 2 Replies
- Last post
by Jayvardhan
- I am facing a problem with my GDI++ code in C# control.
Though i have tried many things from last 6 months, i am not able to get completely rid of this bug.
Whenever the user is opening a window or closing a window, i'm getting following exception.
This is a very rare exception but it causes the whole application crash and has become a nigtmare for me.
This problem is more frequent on
-
- What kind of logs system do you use?
by tomach
- 4 Replies
- Last post
by ShellShock
- I have to write some dll in .net. But I have no idea what kind of logs can I use Is ther something like syslog or newlog generation in linux What kind of system logging do you use Best Regards,
-
- Help with RPG project :)
by Mobidoy
- 7 Replies
- Last post
by IsshouFuuraibou
- Hello all,
i am learning C# and, i want to slowly create a RPG, i dont need it to be graphic intensive, it is my first, i want to create something quite small just to get an idea of how to do it.
I would love to make something like a dungeon crawler or, something like Might&Magic (1 thru 5). I hope you see what i mean !
Does anyone have a link or a book that has a tuto that would make
-
- How do I create a total
by Nick Bowes
- 4 Replies
- Last post
by Anu Viswan
- Hi there,
I'm just starting to learn C# but i'm currently stuck on something that I'm sure is quite easy. I need to get a total from the vairable "random" after the for loop has run:
int die, dice, random, total;
Random num = new Random ();
Console .Write( "Please indicate how many dice you would like to role: " );
die = Convert .ToInt32( Console .ReadL
-
- The type or namespace name 'Mail' does not exist in the class or namespace 'System.Net'
by imran munir
- 3 Replies
- Last post
by IsshouFuuraibou
- The type or namespace name 'Mail' does not exist in the class or namespace 'System.Net' (are you missing an assembly reference )
-
- Error on Base.Dispose(disposing)?
by ChiragKhabaria
- 6 Replies
- Last post
by Figo Fei - MSFT
- Dear All, I am getting the Error , Object Reference not set to an Instance of an object on the Dispose Method. The Cost was pretty well working fine, but i dont know what screwed up today. I tried to the replace the dlls etc.. but with no luck. Any anyone give me some pointers on where to look for /// <summary> /// Clean up any resources being used. /// </summary>
-
- Convert an enum value to an int?
by Saiedh
- 5 Replies
- Last post
by Pete Cox
- I have enum defined like so:
Code Block public enum ePriority = { Low = 1, Normal = 2, High = 3};
1) Can I decalare a property on this enum like the following
Code Block
private ePriority Priority;
public enum Priority {
get{return this.Priority;}
set{this.Priority = value;} // How do I convert value to an enum value
}
-
- Method comparable to incrementing pointer position in C#?
by Chris Rush
- 2 Replies
- Last post
by jschell
- I'm not sure if my title explains exactly what I am looking for. Basically, I want to do the following in C#: C++:
Code Snippet
char *pData; char Data = *pData+2; Assuming that is adding 2 to the current pointer position of pData, and then assigning the pointer to Data. Basically, what I'm after is this, only it seems like their should be a simpler way:
Code Snippet
b
-
- Compiler Optimizations Wreaking Havoc
by Chuck S.
- 7 Replies
- Last post
by Chuck S.
- C#, VS2005
The application works as expected in Debug configuration, but the Release configuration is wonky when compiled with optimizations turned on (default). The issue is that this is a rather long development cycle application and most of it was developed in Debug configuration. As a check, I ran it in Release and it no longer functions well.
Now, I haven't dug too deeply into
-
- Calling a function pointer in managed C#
by gwart77
- 5 Replies
- Last post
by gwart77
- How can I use a function pointer in managed C#
I have a function in an unmanaged dll that returns a function pointer. I am able to call the function in the unmanaged dll using DllImport, but I do not know how to use the returned function pointer in C#.
How can I use a function pointer in C# to invoke a function in an unmanaged dll
I have found many examples of passing callback functions i
-
- C struct of delegates is clobbered when one is called
by Peter N.585670
- 2 Replies
- Last post
by Peter N.
- I'm passing a struct containing delegates to an native call in a DLL that wants a struct full of function pointers. The values it receives are all valid. However, when execution returns to the native DLL from the managed method (which runs flawlessly), all the members of native struct seem to get clobbered.
What I can't figure out is whether this is because they're all getting garbage colle
-
- Get chnaged/modified data a file
by Suman Biswas
- 6 Replies
- Last post
by Suman Biswas
- Hi, My blog I'm trying to develop a project by which any one can get incremental backup of any file. File Upload to Server and Download from Server already done. But problem is how I can get changed data from a file and how it can add to existing file. If any one have idea in algo and code level please help me. Thanks, Sum
-
- Getting the max/min value of an array?
by Azurewrath
- 14 Replies
- Last post
by theTroll527
- Hi all,
Is there a method for arrays that contain integers/floats that when used returns the lowest/highest value
If not, is it possible to add this functionality to arrays as a method, kind of like a global method I can use in any project Is it possible to make changes like this kind of like a permanent addition Or is there stuff like these available on the web
Lastly if it's all possibl
-
- VS.Net too slows down after first debug attempt
by Sammy1971
- 5 Replies
- Last post
by Sammy1971
- Hey Guys, I hope Someone can help with this issue. after running any project made with C# my IDE slows down to the point where I can not type a single word without waiting for 5 to 7 seconds between words, some times typing "this" takes 7 seconds. I am using XP SP2 with VS.Net pro 2005 SP1 OS is 32 Bit XP and processor is 64 bit AMD. Memory is 1.5 Gig this is a fresh install So far I hav
-
- question marks in parameter list
by Tryin2Bgood
- 7 Replies
- Last post
by Tryin2Bgood
- I have a Fill Method and when i mouse over it the parameter list reads int, bool, string....this means nullable right How do i pass values to nullable types....when i pass it 12, false "hello"....It tells me that the arguments i have specified are are invalid for this method any help with this.....
-
- BCC EMail List
by Furious P
- 0 Replies
- Last post
by Furious P
- Hi , I'm writing an app to send EMails. I want to be able to give the user the option of hiding all recipients, which I've done through adding everyone to BCC. I would like to include the sender in the BCC, but I would also like the sender to see the list of recipients. I know it's a long shot and it probably can't be done but is there any way to add everyone to BCC but allow one person to see th
-
- operating with byte
by ambe
- 4 Replies
- Last post
by ambe
- hello everybody, for ex. i have byte value byte bb = 0x00F5; now i need to do some operations, i need to convert in some way this value to int type and get value 20 of int variable. The letter F in my byte is 15 (from hex) and 5 so 15+5 = 20. Can i do this in some way I can't find any documentation or help on this. thanks
-
- integer division versus floating point division
by rtaiss
- 1 Replies
- Last post
by Mark Dawson
- what s the difference between the 2 and do we handle each of them to prevent errors pls
Thank you