Matthew McHugh's Q&A profile
Visual C# Image processing: question!
Hi guys. Straight to the question. I have a bmp(eg:200x200). What I want to do is to take the values of the three channels(RGB) of every 10x10 region from this bitmap... I hope you understand what I mean I have tried with the source bellow...have a look and tell me what to do! What am I doing wrong private void button3_Click(object sender, EventArgs e) { int red = 0,green=0,blue=0; Color clr; int widthBound = 0; int heightBound = 0; Bitmap bmp = new Bitmap(pictureBox4.Image); while (widthBound<bmp.Width) { for (int x = widthBound; x < widthBound + 10; x++) { ...Show All
Visual Studio Team System Code Analysis included in check-in policy
If you go into the Source Control Settings for a TFS project, click the Check-In policy tab, and then add/edit the policy type of Code Analysis, the window that displays has 3 checkboxes at the top. The first checkbox's purpose is not clear. It's titled "Enforce check-in to only contain files that are part of the current solution." Could someone give an example of a file that would be impacted by this What files are NOT part of a solution that would otherwise be analyzed Thanks in advance. Mark Hi Mark, Code Analysis can only be run against projects that are in the ...Show All
SQL Server Assigning properties to variables
I have a package level Event which runs a stored procedure, to log the error. What I want to do is assign some of the properties of the erroring task to package level variables so that I can use them as parameters. I can see how to assign properties from variables, but not the other way round. Can anyone explain to me how to do this Many thanks Rudy Andy Can you explain me what your script task exactly does I'm searching for a script that changes the sql-commands Thx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't install directx 9.0c Please help.
Hi I am using windows xp professional with service pack 2 installed in it. As we all know that service pack 2 has built in directx 9.0b installed in it. Now if I try update directx 9.0b with directx 9.0c it wouldn’t do it. So using on of the directx uninstall software I have removed the directx 9.0b and restore the directx 8.1 from windows xp professional Service pack 1 cd. Which was successfully done. Owow. But I am still unable to install directx 9.0c into my pc. When I try to install directx 9.0c , a dialog box appear saying “The components installed are now ready for use.” Which is not true. ...Show All
Visual Studio 2008 (Pre-release) Loading Page into TabItem
If I have a System.URI that points to some XAML in another assembly, how can I load that into the Content property of a TabItem I know this is easy in a Frame but I don't need navigation functionality. Thanks Michael The solution I've used for this situation was to create a User Control for the page. Then I add the clr-namespace to the .xaml file and do the following to add the User Control to the tab item content. <TabItem.Content> <MyUIModule:Page1 /> </TabItem.Content> ...Show All
Visual Studio Express Editions Problem with docking
I used toolstrip to make a toolbar, and i am trying to create it along the same lines as the old MicroSoft Office Desktop Toolbar, but cannot find how to dock the toolbar to the side of the screen. Any Help please Jeremy Try using ToolStrip s = new ToolStrip (); s.Dock = DockStyle .Left; s.Dock = DockStyle.Right; ...Show All
Audio and Video Development Media Compression support
By supporting the next wave of high performance media, won't there be a need for a new way to compress video/audio streams Our current system is flawed, rendering entire videos into raw streams would require vast amounts of hard drive capacity. I propose a solution to the media storage problem. Given that Media currently is stored in a playable format, meaning you can click it and instantly start playing it in media player, or whatever player you use, why not develop a simple system for storing this content when not in use. Let's get technical, and talk a little bit of math. Let's say you transcode (hexdump) an entire video to a tex ...Show All
Visual J# Postdata in webbrowser.Navigate
Hi, I want to Navigate to a site "anysite.php" and sending postdata. If I call Navigate method "anysite.php" is shown. But there is no postdata. Source Code: String postdata = "u=idcode" ; System .Text. ASCIIEncoding a = new System .Text. ASCIIEncoding (); ubyte [] byte1 = a.GetBytes(postdata); webBrowser1.Navigate( "anysite.php" , "_SELF" ,byte1, "" ); The webbrowser shows Method=post instead of method=get but contains no postdata. Can anyone help me Hi, This is more related to windows forms, Can you please post this on http://forums.microsoft.com/MSDN/default.a ...Show All
.NET Development calling Java services from .Net
I would like to know if anyone has any experience calling Java services from .net and any available code samples You can generate proxy code to send requests to a Java web service just as you would any other web service by using the WSDL.exe tool or the Add Web Reference functionality in Visual Studio. You use WSDL.exe to generate proxy code like this from the SDK command prompt: wsdl.exe [web service URL] Daniel Roth ...Show All
Visual C++ Mixed Mode dll LoadLibrary failure ERROR_DLL_INIT_FAILED
I have a .NET 2.0 Mixed Mode dll I am attempting to load using the LoadLibrary command from an MFC application. Every time I try to load the library LoadLibrary returns the error 1114 (ERROR_DLL_INIT_FAILED). If I create a new application from scratch and attempt to load this DLL it loads fine. I have done some reading and I have seen some problems with this using Mixed Mode DLLs statically linked to the CRT, but we have none of these. This used to work in the 7.1 CRT. Has something changed in version 8.0 that would cause this behavior Can anyone suggest a way to debug ...Show All
Visual C# Disable/Enable Hardware Devices
Is there any way to disable or enable a hardware device like a network interface in C# Hum... Have you try to look at WMI http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/wmi_reference.asp HTH. Bye. ...Show All
Smart Device Development Invoking Touch Panel Calibration Application
Could someone please tell me how to invoke the Touch Panel Calibration Application for Windows Mobile 5 Running ctlpnl.exe with the arguments cplmain.cpl,7 opens up the Screen Settings form. I do not want to allow the users to change the orientation, ClearType or text size. I would like for only the Align Screen application to pop up. Thanks. This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate ...Show All
Visual C++ About convert CString to char*
When I Search the forum with this tilte,I found there is a way to convert CString to char*.but I get a error when I compile it in vc 2005 CString hello("CString"); char* hello1=new char[hello.GetLength()+1]; _tcscpy(hello1, hello); Error 1 error C2664: 'wcscpy' : cannot convert parameter 1 from 'char *' to 'wchar_t *' d:\projects\c++.net\test3\test3\test3.cpp 20 why thanks. Short Answer: Why are you using a char * when you clearly wanted a TCHAR * Long Answer: In previous versions of Visual C++, all applications were compiled with Unico ...Show All
Visual Studio Express Editions Missing GettingStarted.htm Page
All, I just completed an uninstall of VC# Beta 1, .net framework 2 and SQL EXP followed by an install of VCS Beta 2. Upon opening I noticed the internal web browser displayed an error page and apparently can't find the file: C:\Program%20Files\Microsoft%20Visual%20Studio%208\Common7\IDE\VCSExpress\HTML\GettingStarted.htm I've searched the drive for this file and it appears to be missing. I've also tried to repair the installation with no success. Does anyone have an idea Cephid You might want to try something simple like View, Start page. There seems to be a problem with left ...Show All
Visual Studio VS2005 - Searching other sources for help
When doing an "F1" search or doing Help/Search for help in VS2005, I want to search some local HTML documents on our internal network as well. I was hoping to be able to add "online help" through Tools/Options/Enviornment/Help/Online which gives you a number of different web sites you can also search. But there doesn't seem to be a way to add my own resources. Is there a way to do something like this I would be bery interested to learn more about this feature. So if you could provide a link or something to get more information on how we can do this, I would be thankfull!! Thanks! Philippe ...Show All
