George P Boutwell's Q&A profile
.NET Development Image.Save method = "-2147467259 A generic error occurred in GDI+.".
I'm having problems saving a Image to a response stream. In a Web Service Control, I have created an object that overrides System.Web.UI.WebControls.Image. I then overrode the RenderContents method. I needed to capture a bitmat image that has been embedded within my DLL so that I can modify the color palette before I send the image to the browser. All goes well until I call the Image.Save method. I then get "-2147467259 A generic error occurred in GDI+.". I have not seen an answer in this resourse, but if I have missed it, a pointer would be welcome. If you see any glaring error, a correction would also be welcome. If you need to reproduce it, this code should work in a Web Server Control project with an image of the approp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D presentation
Hi guys, I really want to waw my client and write a window display for a real estate shop using C# and managed DirectX 3D. It will be a presentation running accross 4 screens. I have a basic amount of experience working with meshes and textures, etc (I made a 3D space shooter around a year ago). But, I'm lacking ideas really of how to present pictures and info about apartments and houses... Could anybody possibly inspire me Thanks! Well, the origional request was a boring powerpoint style presentation, but as soon as I mentioned 3D they kinda perked up a little... Besides, I think powerpoint window displays dont really get noticed these days as its not different. Where, a ...Show All
Windows Forms axWebBrowser and NewWindow2
Hi, I can't figure out this: How do I cancel NewWindow2 and cause Navigation to occur in the current Window I know that I shall use e.cancel = true to cancel the new page but how do I get the Url so that I can use it in the current window So far I have been using this code: Form1 frmWB = new Form1(); frmWB.axWebBrowser1.RegisterAsBrowser = true; e.ppDisp = frmWB.axWebBrowser1.Application; frmWB.Visible = true; but now I just want everything to be in one window. Thanks in advance /Blinklys I figured it out myself I should use NewWindow3 instead and navigate the URL to the current window Over and out /Blinklys ...Show All
.NET Development how to get the temporature from this webservice?
I am trying to coonect to this webservice: http://www.webservicex.net/globalweather.asmx WSDL using this code: net.webservicex.www. GlobalWeather getWeatherToday = new WindowsApplication1.net.webservicex.www. GlobalWeather (); txtTemp.Text = getWeatherToday.GetWeather( "Bahrain International Airport" , "Bahrain" ); but i need to get the temporature only not the whole xml data in the textbox.. thank you very much but after all i didn't like this webservice because it outputs the temperature as 96 F (36 C) but I just need 36 (without C) Thanks again... ...Show All
Windows Forms Database install question
I was wondering how the datafiles get copied and updated. I came across a link and that looks good. In that there is a psuedo code and I have a question on it, if someone can help me http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=116568&SiteID=1 In this code, there is a variable called customMigrationOrMergeNeeded, I couldn't find it in ApplicationDeployment.CurrentDeployment namespace. Where is it I checked microsoft web site and I couldn't find any either. I can check and see if .pre folder exists in the data folder, but is it still true Thanks in advance. ...Show All
.NET Development Apostrophe in email address - Help NEEDED -- URGENT
We are unable to send emails to certain people having Apostrophe in their email addresses. Please help. Platform: Exchange server 2003 VS 2005 / Framework 2.0 Thanks I don't have the slightest idea what any of that meant, but one of my clients is reporting that they also are unable to send emails to a contact outside the company who has an apostrophe in his email address. They are on Exchange 2003. ...Show All
Visual Studio Team System ClickOnce Version Number as Team Build number
I want to create a Team Build that does a ClickOnce publish for my testers that creates a build number that includes the ClickOnce version number. We are showing the ApplicationDeployment.CurrentDeployment.CurrentVersion to the testers as part of the test application. When they enter bugs into TFS, we want them to be able to easily pick a build (on the Details tab of the Bug work item) that correlates to that ClickOnce version. If have several of the pieces to do this figured out: 1) Change SolutionToBuild to SolutionToPublish in the build proj file. 2) Override the BuildNumberOverrideTarget to create my custom build number. I could use some pointers on these questions: 1) If I want to append to the standard Team Build bu ...Show All
Visual Basic How do I open an application using a drop down menu?
I would like to know how I open an application using a `Tool Strip Menu`. Try something like this: Private Sub RunNotepadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RunNotepadToolStripMenuItem.Click System.Diagnostics.Process.Start("notepad.exe") End Sub ...Show All
Windows Forms Error Handling - Application level
I know that .NET provides a default run-time error dialog that let's you review an error and then either continue or quit an application. Is it possible to replace this dialog with my own error handling routine I would like to write just one routine that will handle all errors at the application level. I tried to wrap Application .Run( new Form1 ()); in the Try Catch block, and it does work with the exception that I cannot do the Continue action similar to how .NET does it in its error-handling dialog. How can I write code to continue processing Thank you very much for your help! Evgueni The problem is, you don't necessarily want the user to be able to choose to continue. Its entirely possible that the excepti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A Couple Of Worrying Points From The EULA
i. Personal Use. Use of any programs developed for the Xbox platform using the software is restricted to your personal, non-commercial use. So what happens to this so called "YouTube of games" if the restrictions imply that we can't share them. I also thought XNA GSE also had plans for being able to sell your games over XBL too (I picked that up from somewhere). ii. Distributable Code. You are not permitted to distribute the Distributable Code for programs developed for the Xbox 360 platform. I'm unclear to what this means, it almost seems we can't give out source code, please elaborate on this. Ely wrote: 1 is pretty much saying if you developed a game for the 360, you are no ...Show All
Game Technologies: DirectX, XNA, XACT, etc. program to make models
were is a program to make models cause i dont want to just google it and get some dumb crappy one There are lots to try, some you can try: Blender - Free http://blender.org/cms/Home.2.0.html trueSpace - Free and you can upgrade for less when you subscribe http://www.download.com/TrueSpace/3000-6677_4-10298420.html tag=lst-0-1 MilkShape - Cheap http://www.swissquake.ch/chumbalum-soft/ Then you have things like 3dsmax and maya that cost a bundle. But do google around, you never know what you'll find. The important thing is that it does what you want, you don't need overkill for games. ...Show All
Visual C# How can I find whether the current thread is exited or not?
Is there any property or method is available for checking whether the current threading is exited or not. If so can you place provide me the code snippet and some of the useful tutorial & samples links for learning about this concept. Evan Mulawski wrote: if (threadMain.ThreadState != ThreadState.Running) //Not running { //Next step } If a running thread has called a Wait method (WaitOne,WaitAny,WaitAll, etc.) or called Sleep, its state will not be ThreadState.Running, it will be ThreadState.WaitSleepJoin. ...Show All
SQL Server No Item showed
Hi gurus I have sql server 2000 that was working fine until today(figures), today I opened EM and under sql server group where used to be all my information now there is NO ITEM, nothing shows(database,Nothing) The server is working as I had no complaints from my user on data not been saved or getting data from but its strange that I can not see all my info like I used to.- If I go into sql query analizer, it ask me to connect to local which I do and I can see all my databases from there but once I close that window ,on my EM nothing shows. I checked all services andevery one of them seems to be up and runnig Thanks forall the help I can get Hello, Sounds like you just need to re-register ...Show All
Smart Device Development "project creation failed" in vs2005 & WM5.0 SDK
can't create smart device projects, while native win32 projects are ok. when i press ok button in the New Project dialog, the windows disappered and quickly went back, and there is a "Creating project <name>... project creation failed" msg in the status bar. i searched the forum and found this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=277896&SiteID=1&PageID=0 there were two users( kidjan and Alpha W ) encountered the same question. repair the WM5SDK didn't help, any solution Did you try deleting \Documents and Settings\<local user>\Local Settings\Application Data\Microsoft\CoreCon\1.0 directory And are you getting the same error after do ...Show All
Visual C# 同 How to use c # to write shrinking algorithm?
Algorithm use c # language is described shrinking Can write the code example thanks ----------------------------------------- 1: 0,1,9 2: 4,8,4 3: 7,3,3 4: 3,1,3 5: 7,3,6 6: 2,5,5 7: 4,5,9 8: 5,5,8 9: 5,0,4 10: 7,3,5 11: 1,9,3 12: 0,3,5 13: 5,5,0 14: 8,1,4 15: 9,1,6 //estimate next number through these datas --------------------------------- 16:( ),( ),( ) ...Show All
