|
I took a look at how the C runtime implements _isatty . This function reads flags associated with every file handle given out by the CRT. The _ioinit function in ioinit.c initialises the arrays which hold these flags.
The code first calls GetStartupInfo to find out if the parent process provided a handle table. The code here is a bit complicated as the C runtime cheats a bit and uses cbReserved2 and lpReserved2 members to hand other handles to child processes - it basically just copies the whole handle table to the new process. I think you can omit this bit.
If the handle table didn't provide the information already - which is the situation a .NET program is in - it calls GetStdHandle using the three standard handle identifiers, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and STD_ERROR_HANDLE. If this returns a valid handle (not INVALID_HANDLE_VALUE [-1] or NULL [0]) it calls GetFileType to find out what it is. You cannot differentiate between the console and a serial or parallel port, all will return FILE_TYPE_CHAR .
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
The Dr. Gui article uses GetStdHandle , and then PeekConsoleInput to test.
|
|
|
|
|
hi,
i have a windows project in C#(visual studio 2005) that uses some DLL i wrote in different projects.
i want to make this application to run from the web page on the local computer(ActiveX,OCX).
how can i do it?
thanks,
Samy
|
|
|
|
|
You can't run an entire windows forms app in a web form. You can however run a windows control in a web form. Click[^]
|
|
|
|
|
thanks. it works for me with the simple examples.
if the windows project has some refrencess to new DLL's ? whould the transformation still be possible?
how will the additional DLL's will be put in the client computer?
|
|
|
|
|
I have no idea. I haven't done any significant ASP.NET develope in years and never what you're attempting. These questions are more for the ASP.NET forum.
|
|
|
|
|
Hi all ,
I have a table named "Permissions" which I read Application User Permissions from that table when the user enters username and password an Logon Window , After that I Load the user permissions in a ArrayList , Now I'm going to keep my current user permissions(ArrayList Object) persistent , because I want to access it in different parts of application for checking permissions. , Is it suitable to save it using AppDomain or you have a better suggestion? Thanks in advance .
-- modified at 13:58 Saturday 27th October, 2007
|
|
|
|
|
If it's going to be used in one application, then why not simply store it in a static class? Then everywhere that you need it, you will be able to access it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks , But
This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?
|
|
|
|
|
Sorry for taking so long to get back to you. Anyway, here's the answer.
DotNetWWW wrote: Thanks , But
This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?
No, because each user will have this app running in a different process space.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Dear All,
I have created a windows installer package for my VB.NEt project. When i install it to another computer, it is displayning a message "This setup requires the .NET Framework version 1.1.4322. Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?" How can i avoid this message, when i creating setup project, or How can I integrade .NET Framework with my setup project.
Can't we run .NET Setup files without installing .NET Framework?
Pls help
|
|
|
|
|
dimuthuvbnet wrote: How can i avoid this message
Install the .NET Framework 1.1 and it's service packs.
dimuthuvbnet wrote: How can I integrade .NET Framework with my setup project.
You can't bundle it into your .MSI. It has to be run as a seperate installation. That CAN be launched from an .EXE setup. Just Google for ".NET Framework BootStrap Install".
dimuthuvbnet wrote: Can't we run .NET Setup files without installing .NET Framework?
No. One of the prereq's built into the MSI is the .NET Framework must be installed.
|
|
|
|
|
dimuthuvbnet wrote:
Can't we run .NET Setup files without installing .NET Framework?
Nope, it is a requirement.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
hello everyone
im currently learning c# and i recently discovered some strange behaviour in the .NET framework 2.0 (using VS2005 Pro). i wrote my own textbox which does, along with other things, change the Borderstyle on the leave event. but it doesnt work, the below code has the effect that when using the mouse to leave the textbox everything works, but with TAB, youre trapped in the box. changing any other property instead of borderstyle is not a problem. only with this very property it acts weird.
anybody had this before? is this a bug or did i miss something?
thanks for reading and maybe answering this!
public class TextBoxTest : TextBox
{
protected override void OnLeave (EventArgs e)
{
BorderStyle = Borderstyle.Fixed3D;
base.OnLeave (e);
}
}
PS: first post here, so please be nice if i did something wrong
|
|
|
|
|
Okay guys, just found this one on the microsoft feedback page:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=185568
seems like this one is not solvable atm
thx for reading though
|
|
|
|
|
We are having problems correctly managing our configuration files across multiple servers and environments. Currently we either save a separate copies of the configuration files for each environment or comment out values for other environments and add the new environments values beneath. There has to be a better way!!!
Does anyone know of an application that will manage these configuration files? Something that preferably will also version control the configuration files?
|
|
|
|
|
We use sourcecontrol for the different config files. We maintain a version for each environment, e.g DEV, UAT, TEST, PROD, and as part of our automated deployment process, we pick up the appropriate config file. It's relatively easy to do as long as you can script your particular source control system.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
In my system, i have .net 2.0 installed. But i have to work(modify) on a project which was created in .net 1.1. My question is will it create some technical issues while building.
Please suggest me a solution...... its urgent
Bala
|
|
|
|
|
Yeah, you can't do it.
VS 2005 will compile against the .NET Framework 2.0 only. You'll have to open the project in VS.NET 2003 for it to compile against .NET 1.1.
|
|
|
|
|
If you have .NET 1.1 installed, you'll need to compile it up from the command line. Use csc.exe with relevant options to do this. Note that you'll have to put the path into the csc for the .net 1 framework so that you don't launch the .Net 2 compiler by accident.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Now there you went and told him how to do it the "easy" way. You fountain of wisdom you.
|
|
|
|
|
Dave Kreskowiak wrote: you went and told him how to do it the "easy" way
That's me. Always looking for the shortcut.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
HI All,
Thanks a Lot for All who helped out. Ill use VS2003 with Framework 1.1.
Regards,
Bala
|
|
|
|
|
Bala J wrote: its urgent
That is rather rude to say.
Bala J wrote: i have .net 2.0 installed. But i have to work(modify) on a project which was created in .net 1.1. My question is will it create some technical issues while building.
There shouldn't be too much of an issue. You'll have to run the 1.1 code through the code converter on VS 2005 and take it from there. Convert it to 2.0 and forget about 1.1...
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
You can install both versions at the same time.. with out any issue.
|
|
|
|