-
- C# multithreading
by 100011
- 4 Replies
- Last post
by 100011
- I am developing a windows application using c#. The application uses multithreading to gather data from multiple servers simotaniously and also performs operations on data simotaniously. When I run the application from the Visual Studio IDE, the program functions correctly and the multiple treads process and wait as designed. when I try running the executable directly the program start working, bu
-
- Regex File parsing
by ReneeC
- 11 Replies
- Last post
by OmegaMan
- Hi,
I'm an experienced developer but new to both C# and Regex. I'd like a regex based boolean function with two string inputs:
Arg1: InputMask Arg2: Filename
The functionality needs be match the parsing capability of DOS Dir. In other words, it needs to be able to handle rich use of wildcards.
Output: A boolean is true is returned, when there is a match between a fil
-
- COM and OLE in C#
by Azurewrath
- 4 Replies
- Last post
by Azurewrath
- Hi all, Anyone knows hot to accomplish something like this (at the bottom of the page (with video)): http://www.sloft.net Basically he is using javascript to talk to another program. The code is included in the zip packgage, but I still don't know how to do a similar thing, or find a similar command to connect to the program. I used photoshop's interop dlls and it was very easy. But with this th
-
- 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
-
- Looking for an equivalent of this code in C#
by Pipz
- 2 Replies
- Last post
by Ichi_Programmer
- javascript:alert("The true URL is:\t\t" + location.protocol +
"//" + location.hostname + "/" + "\nIf this does not match the URL
shown in your browser address bar, you are likely to be seeing a web
page from a different web site! We recommend that you close you browser
and empty your browser cache now.");
I would like to get the equivalence of this
-
- Best way to index files
by Grovesy
- 3 Replies
- Last post
by Grovesy
- Hi all, I'm trying to develop a simply media application which will play movies. What I want to do it allow the user to select directories where they have movies. I then want to have a reference to all the found movies in a database (or would XML be better ) and allow the user to enter additional information about each film (ie Title, cover art, description). My question is what is the best way to
-
- How can I write a program that makes another program?
by naiad
- 6 Replies
- Last post
by naiad
- I want to write a program that produces another program (i.e. a game creator or something of the like). I've done a bit of research and from what I've come up with it seems that this is a very hard thing to do. It won't be anything nearly as complex as a game creator, but I'm a relative beginner so I was wondering if there is a way to easily accomplish this. If someone could explain how to do this
-
- Creating code at runtime
by Oscarfh
- 1 Replies
- Last post
by Oscarfh
- Hi,
I'm studying to my certification exam and I've got some problems.
I'm trying to generate code at rutime, the books says that I can create a constructor this way:
//typeBldr is a typebuilder already defined
ConstructorBuilder constr = typeBldr.DefineDefaultConstructor( MethodAttributes .Public);
ILGenerator codeGen = constr.GetILGenerator();
codeGen.Emit( OpCodes .Ret);
-
- obtain windows username information
by ashk1860
- 3 Replies
- Last post
by ashk1860
- hi
is it possible to obtain the windows logged on user information (username, name,...) programmatically
-
- What is the meaning of driver? Can I use C# to write a driver such as I/O driver?
by john wen
- 3 Replies
- Last post
by Martin Xie - MSFT
- Hello I am asking 2 different questions: 1) What is the meaning of driver 2) Can I use C# to write a driver such as I/O driver Please answer above 2 questions. Thank you. John Wen 15 - July - 07
-
- i recieved this error : "No connection could be made because the target machine actively refused it"
by noshy
- 2 Replies
- Last post
by noshy
- i recieved this error while trying to send email "No connection could be made because the target machine actively refused it" and thats the code i wrote :
private void button1_Click( object sender, EventArgs e)
{
System.Net.Mail. MailMessage message = new System.Net.Mail. MailMessage ();
message.To.Add( "mnos7y@hotmail.com" );
message.CC.Add( "mn
-
- ConfigurationSettings in with Remoting
by Netmaster0000
- 2 Replies
- Last post
by Figo Fei - MSFT
- Good day ppl, What I'm trying to do is allow my user to edit certain settings in my config file for a .net remoting application i wrote. I know that ConfigurationSettings.AppSettings allows you to enter the AppSettings key. What i want to do is through code, be able to edit my config file keys like - "povider" and "formatter". Really all of this is just to change the port an
-
- best book for c# with .net?
by Munir Syed
- 3 Replies
- Last post
by Jim de la Bastide
- Hi,
I'm planning on learning c# and .net over the summer. My plan is to learn c# and .net than than learn wpf, i was really surprised researching on wpf technology. Can anyone spot any good beginner author in the link below. I'm looking more at Jesse Liberties, i heard that is a good series to begin with. My background is web development, so know at little bit.
http://www.amazon.com/s/
-
- Writing to a text file
by ugp
- 4 Replies
- Last post
by Thomas Danecker
- There is a Usercontrol in the program. and its Load event is looks lke this.
private void Usercontrol_Load( object sender, EventArgs e)
{
//Here i want to write data (Say: "Hello Data") to a text file (myText.txt)
}
(i.e: when usercontrol is load in the runtime, needs to write this data to the file.)
I dragged 2 usercontrols to the form.(usercontrol1
-
- project namespace issues
by steveareno
- 3 Replies
- Last post
by steveareno
- I have a project that was working fine. I made some significant changes to the project, and then started getting an error saying some objects don't belong to the namespace, even though they are in the same project and have the namespace at the top of the class. It appears some pointer got messed up and now only newly added objects appear in the autolist members for the namespace. In fact, some obj
-
- Unload unmanaged DLL from C#
by Rene E
- 6 Replies
- Last post
by Rene E
- Hi, I want to unload and reload an unmanaged dll in C#. Does anyknow how to do that I have a C# appliaction that uses a leagacy C library. This C library cannot be modified and the functions implemented in it 'leak' memory. if the C# application invokes the unmanaged functions a number of times, the system crashes with an out of memory exception. My idea is to unload the unmanaged dll after a num
-
- tooltip visualization order of overloaded members
by LaraTV
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hi, I have a class with a function overloaded many times. In the editor when I write the function name then the tooltip appears and list all the overloaded variant of the function, I can select the one I want to use with the up/down arrows. Is possible to force this visualization order The order seem to be casual. In fact in different PCs I have different visualization order.
Thanks
Moreno
-
- Object class and value data type
by brother14th
- 11 Replies
- Last post
by Figo Fei - MSFT
- Hi All, I cheked the Object.ToString method in MSDN this morning. It says that
This method can be overridden in a derived class to return values that are meaningful for that type.For example, the base data types, such as Int32 , implement ToString so that it returns the string form of the value that the object represents... After reading these, I've two questions. Q1)Can Int32 be conside
-
- Avoiding circular references
by Wuschba
- 5 Replies
- Last post
by O.Miller aka phoboss
- Hi. I have 2 projects in one solution. Project 1 needs a class from project 2 and project 2 needs a class of project 1. The problem is: If I add a reference of project 1 in project 2, I cannot add a reference of project 2 in project 1 (Error: circular dependency). I understand what the errors means but what shall I do
-
- Please specify the assembly explicitly in the type name
by André_Silva
- 7 Replies
- Last post
by BJohnson
- The type 'DocumentPage.Global' is ambiguous: it could come from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\documentpagece15\b19d9bc2\App_Code.zxs3sy7_.DLL' or from assembly 'C:\Projectos AS\Projectos 2005\DocumentPage\bin\DocumentPage.DLL'. Please specify the assembly explicitly in the type name.
How can i solve this problem
Thank's!
-
- Garbage Collector consumes 100% processor time - Framework bug?
by John Lagonikas
- 7 Replies
- Last post
by OmegaMan
- Hello,
I'm facing a really strange problem which seems to be caused by the framework rather than my code. I've verified most of what I'm writing below with WinDbg and the results are totaly incoherent...
I've written a quite complex application, with heavy (and strategically optimized) use of multithreading and tcp sockets. Part of the application is implementation of an IVR system,
-
- Unable to debug C# solutions
by J Hallam
- 14 Replies
- Last post
by J Hallam
- I'm using Visual Studio 2005 Pro. This problem is repeatable with archived code on backup discs as well as new solutions. When I attempt to run my apps in Debug Configuration with breakpoints, I get the message: the following module was built either with optimizations enabled or without debug information. D:\Programming\Solutions\******... To debug this module, change its project build configurat
-
- Modifying exe settings with another exe
by ivl
- 2 Replies
- Last post
by ivl
- Hi folks, I cannot seem to find an elegant way to do this, despite all of the searching I have been doing. I must be missing something. I have two projects under one solution - one is a Windows Service and the other is a Windows Forms app. The idea is that the app acts as the configurator of the the service, i.e. it is a front end for administrators to modify the application level settings of the
-
- Where Do I Put Global Variables?
by bobber205
- 10 Replies
- Last post
by OmegaMan
- Where do I put data that I want to be globally accessible in my code I read a thread about creating a class that contains all of this and passing it around, but I do not know where to put the instatiation of that class.
-
- Regex File parsing
by ReneeC
- 11 Replies
- Last post
by OmegaMan
- Hi,
I'm an experienced developer but new to both C# and Regex. I'd like a regex based boolean function with two string inputs:
Arg1: InputMask Arg2: Filename
The functionality needs be match the parsing capability of DOS Dir. In other words, it needs to be able to handle rich use of wildcards.
Output: A boolean is true is returned, when there is a match between a fil