danskcarvalho's Q&A profile
Internet Explorer Development My php download script does not work anymore
Hello, On my web site, I use a classical php script to allow file download after registration. Since IE7 has been installed, I cannot (and my clients neither) use IE to download files (FireFox or Opera still work fine, IE6 worked fine too). Message is: "Internet Explorer cannot download .... IE was not able to open this internet site. ...either unavailable or cannot be found." Here is a simple PHP script to illustrate my problem: < php header("Cache-Control: no-cache"); header("Content-Type: image/jpeg"); // or "application/download" header("Content-Disposition: attachment; filename=myImage.jpg"); header("Content-Description: Download image"); // or program $f ...Show All
.NET Development TcpListener
Hi. I'm trying to make a simple application which receives data from a local host and displays it. Everything works fine upto the point where it's supposed to connect to theclient. However, when I type in whatever I want to send, I keep waiting for it to come back...an eternity thingy. Heres the code: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; using System.Net.Sockets; namespace MyTcpListener { class Listener { public static void Main() { TcpListener server = null ; try { Int32 port = 9000; IPAddress localAddr = IPAddress .Parse( "127.0.0.1" ); server = new TcpListener (localAddr, ...Show All
Visual FoxPro Help with expression (one more time...)?
Hello All...many thanks to all who helped with my previous post. I have hit one more 'snag' in preparing my data. Here's a sample of three fields in my table... MRC REQUIRED DETAILS 4720-00-001-0057 ADLF HOSE OR TUBING SPEC/STD DATA MIL MIL-H-5593,SIZE 4 SPECIFICATION ADJM INNER CONVEYING TUBE MATERIAL RUBBER, SYNTHETIC MEDA MEDIA FOR WHICH DESIGNED AIR CRWL INSIDE SURFACE CONDITION SMOOTH CQCS LAYER COMPOSITION AND LOCATION 1ST LAYER ANY ACCEPTABLE CQCS OUTER LAYER MOLDED RUBBER CRJM OUTER COVERING ENVIRONMENTAL ABRASION RESISTANT AND PROTECTION CRJM ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are all the scrip codes for XNA?
I know almost all game develpement programs use scrip codes and I would reall like it is someone would tell me some I would like to know them all Also whats the code to make cheat codes The problem with your question is that XNA has no specific script codes. Each developer that makes a game using the XNA Framework will decide for themselves if they want to create their own scripting system for their game and they will either use an existing system (of which there are many) or implement their own. Also, there is no specific code to make cheat codes. Technically, I guess you would say that C# is the code to make cheat codes in XNA. If a developer wants to add cheat codes to his game (usually done for test ...Show All
Visual Studio Team System MSBuild FlavorToBuild being ignored
I setup two build types for a team project, one is a testing debug build and the other is a production release build. It seems that no matter what I put in the FlavorToBuild the solution keeps getting build with the Debug configuration. One of the projects in the solution is a web deployment project that swaps sections of the web.config depending on the build configuration so the final output keeps setting this incorrectly. I currently have this in the TFSBuild.proj: < ItemGroup > < ConfigurationToBuild Include = " Release|Mixed Platforms " > < FlavorToBuild > Release </ FlavorToBuild > < PlatformToBuild > Mixed Platforms </ PlatformToBuild > </ ConfigurationToBuild > ...Show All
Visual Studio 2008 (Pre-release) DLinq System.NullReferenceException
Hello guys! I have a simple table and simple classes and I'm trying to use DLinq to retrieve and insert data, but I received System.NullReferenceException message. My table id int xboxgamertag varchar email varchar password varchar My DLinq code BigBangDatabase db = new BigBangDatabase ( @"C:\My\Documents\Academic\2006\Estagio Supervisionado\Big Bang\Implementation\Big Bang XNA\BigBangXNA\BigBangXNASolution\BigBangWeb\App_Data\BigBang.mdf" ); var q = from c in db. Users orderby c.Email select c; foreach ( var user in q) System.Web. HttpContext .Current.Response.Write( "GamerTag = " + user.XboxGamerTag+ ", Email = " + user.Email+ "<br>" ); Visu ...Show All
SharePoint Products and Technologies InvokeWorkflowActivity doesn't call workflow
I'm trying to get one workflow to call another one. I tried using the invokeWorkflowActivity, I set the TargetWorkflow to the workflow that I want to get called. It's in another project so I added the project as a reference. What else do I have to set up in order for this to work properly. I get no errors, the first workflow starts and then completes as expected because the call to start the workflow is asyncronous. The problem is that my second workflow doesn't seem like it's getting called. I only associated the 1st workflow, do I need to associate the 2nd workflow too Thanks, -Somsong ...Show All
Software Development for Windows Vista how to create a custom workflow event on the workflow runtime service
hi there, can somebody help me how to create a custom workflow event on the workflowruntime. i tried to extend runtime with and add a new event to it but i am not able to figure this out by myself.. namespace WorkflowLibrary1 { public delegate void LineEventHandler ( Object sender, WorkflowEventArgs e); public class Class2 : WorkflowRuntime { public event LineEventHandler LineChanged; public void RaisechildDataReady( ) { LineChanged( this , new WorkflowEventArgs ()); //////the compiler is saying WorkflowEventArgs does not hava a constructor . } } } can somebody put me in the right direction thanks prasanth than ...Show All
Visual C# Utils Class inquiry
Utils Class appears to be undocumented. MSDN says that it is intended for use by the OS system only (VB compiler) and not supposed to be called directly from C# code. I came across exactly the opposite and when I tried to invoke it in Intellisense it appeared the class has a lot of useful method I badly need. It appears some of them are self-explainatory but others are a bit more obscure. Anyhow, I wound not mind to read more on that class. Where can I find a source Thanks. Download Reflector (you should be able to google it rather easily) and see what those utility functions are doing under the hood. ...Show All
Software Development for Windows Vista Problems with WMI classes Win32_VideoController, Win32_VideoSettings, and CIM_VideoControllerResolution under Vista.
Under Vista, attempts to access Win32_VideoSettings and CIM_VideoControllerResolution objects via WMI return no records. The online documentation claims that Vista is a supported platform. The Win32_VideoController object returns records but all the CurrentBitsPerPixel, CurrentHorizontalResolution, CurrentNumberOfColors, CurrentRefreshRate, CurrentVerticalResolution, etc., are all empty. Further, the Availability value for every controller is set to 8, (OffLine). I'm having no problems obtaining WMI information from Vista, exactly like that under XP, except for the three that I mentioned. Is this a bug under Vista, or has the information moved somewhere else The information has not moved. These are ...Show All
Visual Studio 2008 (Pre-release) SQL query to LINQ
I have SQL query: Select * from c_payments Union all Select * from m_payments How can I do the same in LINQ Thanks for advice but... Error 5 The type arguments for method 'System.Query.Sequence.Union<T>(System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IEnumerable<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. How can I resolve this error ...Show All
Visual C++ MDI - opengl program
HELLO. I am using vc 8.0 and I would like to write a program using MFC, where all the child windows are opengl windows, displaying different 3D objects. Is there any (simplified) project for that in the net Thanks a lot! STICK. http://www.codeproject.com/opengl/glenabledview.asp ...Show All
.NET Development Display results to the end user as it appears in the 'Autos' window of debugging
Hi, Can I display the resulted objects to the program user in a 'tree view' as that appears in the debugging window 'Autos' Thanks, Aya. Ok, My application is for a research in the 'Computer Science' domain , and the user also will be a professional programmer. I need to explore all properties of specific objects to see the qualification of the application's results. Thanks, Aya. ...Show All
.NET Development Start automatically Windows service
I created a windows service in VS Standard .Net 2005 I installed it and set to start automatically, but when boot machine, an error 1053 occured. If I click in button to Start, everything is OK. I can stop it... Please, what can I do Tks! No other error in app or system event log around that time Try to write some text to the event log or a log file from within the OnStart event to see if that one gets executes. -- SvenC ...Show All
.NET Development Problem with : The type or namespace name 'myDataset' could not be found (are you missing a using directive or an assembly refer
Hi, I have the following code for my Win Application: private void Page_Load( object sender, System.EventArgs e) { if (!Page.IsPostBack) { SqlConnection con= null ; SqlDataAdaptor da= null ; SqldataSet ds= null ; try { con= new SqlConnection("server=ajaypc;uid=sa;pwd=;database=ajay"); da= new SqlDataAdapter("select * from nm",con); ds= new DataSet(); con.Open(); da.FillSchema(ds,SchemaType.Mapped); da.Fill(ds,"eid"); DataGrid1.DataSource=ds; DataGrid1.DataSource="eid"; DataGrid1.DataBind(); } catch { throw ; } finally { if (con!= null ) con.Close(); } } } ...Show All
