akram badr's Q&A profile
Visual C# C# & vb2005e
Hi, I'm fairly new to c# and would like to check with the c# gurus out there... I need to to create a project that goes fairly in depth into the innards of dshow programming and I've been told that C# can go to some lengths that vb2005e cannot. Is this true I guess what I'm asking is can c# do all that vb2005e can and more If you are interested in working with DirectShow from C# I would highly recommend you look here: http://directshownet.sourceforge.net/ This is a port of the directshow API to C#. It allows you to work with almost all aspects of DirectShow. The download comes with many samples to help get you started. ...Show All
Visual Studio Express Editions Visual Basic 2005 Express help
ok i have visual basic 2005 express installed and that is all no other programing software on either of my pcs. I am just starting to learn vb. and i am watching these video tutorials and reading these books. it says go to add new item then click inheritance form.. well that option is not availible in 2005 express. So can someone talk to me like i am stupid and tell me how to fix this. and also will inheritance form pull information from form 1. like num1 = whatever and i just reference num1 on the inherited form and it pull the information Thank you for the all the help ok i know i am probably being annoying but this is what i typed [code] Public Class Form2 Inherits Form1 <--- ...Show All
Software Development for Windows Vista Merge XPS documents
Basicly I want to merge 1-n xps-documents into a new package, either just add all source-documents or just add all the pages of the source-documents into the new package... I've tried out with following code, which writes all the source-documents-pages into a new xps-document, however this is very very slow!!! public void CreateXPSStreamPages(string targetDocument, List<string> list) { Package container = Package.Open(targetDocument, FileMode.Create); XpsDocument xpsDoc = new XpsDocument(container); XpsDocumentWriter writer = XpsDocument.CreateXpsDocumentWriter(xpsDoc); SerializerWriterCollator vxpsd = writer.CreateVisualsCollator(); vxpsd.BeginBatchWrite(); foreach (string sourceDocument in list) { Add ...Show All
Visual Studio Express Editions Installing Visual Web Developer Express
Hello, Are there any problems installing Visual Web Developer 2005 Express on a machine which has Visual Studio 2005 Team Suite installed on it already Also, will there be problems if I did install Visual Web Developer and later decided to uninstall it. By problems I mean will it cause a problem within Visual Studio 2005 Team Suite after Visual Web Developer has been uninstalled No, the express edition install side by side with other visual studio products. I have had multiple VS version including a few express edition where one was the web developer installed at the same time on one computer. I have uninstalled VWD and all other products had remained stable and usable. No problems at all. Be sure to not uninstall any sha ...Show All
Visual C# Obtaining default user's mydocument folder using C#
Hi. I am looking for way to detecting user's MyDocument folder. Is there any class in C# that I could use I am developing an application that sometime require to write a temp files into the user folder when they don;t have permission to write into the application folder. Thanks in advance, ...Show All
Architecture Question about UI layer
I'm designing a very data oriented application where there will only be two physical tiers: the user's machine (with maybe up to 50 users) and a database server. Most of our customers will be using SQL 2005, but some have said they would like to use their existing Oracle db. Therefore, the UI was going to consist of two layers: a Windows.Forms layer and then a .dll containing classes that will marshal data to and fro the db, and take care of any business logic. By having the objects in the .dll implement interfaces, I can basically swap in different .dlls for different backend databases. The problem is this: our user interface is HIGHLY interactive and customizeable. For example, the Customer List form features your basic databound grid ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Non-Xbox Gamepads
I went to rig my gamepad into my XNA game today.. it is a playstation dual-shock controller rigged through a USB adapter. It shows up cleanly under game controllers with four axes and sixteen buttons, and is a fully DirectX compliant HID. Overall an excellent controller. I tried to read its value using the GamePad.GetState(...) method and it tells me the controller is disconnected! The docs say the GamePad class is for "user interaction with an Xbox 360 Controller". Have those of us making Windows PC games been left out of the party What about flight yokes, or 'true' joysticks (like my Sidewinder), or other gamepads XNA is built on DirectX, which can read these devices readily.. and XNA is the proclaimed successor ...Show All
.NET Development .Compute method can not find column?
Hello, I have this code but in the last line it says that Cant find column [rows] dt.Columns.Add( "[carros]" , GetType (System.Double)) Dim custRow As DataRow = dt.NewRow With custRow .Item( "[carros]" ) = 1 End With dt.Rows.Add(custRow) Dim custRow2 As DataRow = dt.NewRow With custRow2 .Item( "[carros]" ) = 4 End With dt.Rows.Add(custRow2) dt.Compute( "SUM([carros])" , Nothing ) If I remove the brackets it works perfectly but I need to put brackets on the column names Please help. ...Show All
Smart Device Development RasEnumConnections not work with Mobile5
Hi, I am using VS2005 VC++ to detect the cradle USB connection, below is my code: DWORD lpcb; DWORD lpcConnections; RASCONN rasconn; bool _returnvalue = false ; rasconn.dwSize = sizeof (RASCONN); lpcb = sizeof (RASCONN); LPRASCONN lp = &rasconn; DWORD ret = RasEnumConnections(lp, &lpcb, &lpcConnections ); CString _a; _a.Format(L "ret=%i" ,ret); AfxMessageBox(_a); _a.Format(L " lpc=%i" ,lpcConnections); AfxMessageBox(_a); if ((ret == 0) && (lpcConnections > 0)){ for ( int i = 0;i< ( int )lpcConnections;i++){ CString _entryname; _entryname.Format(_T( "%s" ),rasconn.szEntryName); if ((_entryname.CompareNoCase(_T( "`USB" ))) == 0) _returnval ...Show All
Visual Studio Team System Need a silent mode for MSTest to run unattended.
Is there some (undocumented ) way to run mstest silently from the command line Currently if a test raises an unhandled exception, mstest will open up an "Unhandled Exception" dialog box. This essentially prevents me from being able to run unattended through a list of tests via the command line. Can you give us some details on how you ran into this issue What type of test were you running when the error pop up What is the test supposed to do What are the differences between this test and other tests that were passing in the same run I don't think the exception from vstesthost can be handled in the test code, as the unit test itself runs under it. Thanks, Christine ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar Starter Kit - Fullscreen
In the Spacewar Starter Kit, how do I get the Fullscreen working on the first run Thanks all Ronan I`ve placed the code: graphics.IsFullScreen = true; in many places, but still can't make Fullscreen work. In the SpacewarGame.cs there is these tow codes, private bool justWentFullScreen; and private void ToggleFullScreen() that I think should be the ones responsible for the Fullscren, but, still, I got no idea how and where I`m suposed to make the changes. Plz help Ronan ...Show All
Visual C# creating a sprite from a file picture
I have spent over 4 hours trying to figure out how to create a sprite from a picture. I have a programming background of turing I know a little bit of visual basic. I can't understand how to load a picture. Any help is appreciated. Also, if you do have the file under bin\Debug, use an escape sequence. Image image = Image.FromFile(@"\image.png"); TIP: If you are going to use an image over and over, use this: using System; namespace Project1 { Image image1; public Form1() { image1 = Image.FromFile(@"\image.png"); } public void NewMethod() { button1.Image = image1; } } ...Show All
Visual Studio 2008 (Pre-release) ListBox/ItemsControl DataTemplate issue
I have a ListBox with a DataTemplate as follows: < ListBox x:Name = " procList " ItemsSource = " {Binding} " > < ListBox.ItemTemplate > < DataTemplate > < TextBlock Margin = " 10 " Text = " {Binding Path=Identifier} " /> </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > This works fine, i.e. the DataTemplate is applied to my items as expected. However, if I use an ItemsControl instead of the ListBox, i.e.: < ItemsControl x:Name = " procList " ItemsSource = " {Binding} " > < ItemsControl.ItemTemplate > < DataTemplate > < TextBlock Margin = " 10 " Te ...Show All
Visual Studio 2008 (Pre-release) Peer Channel Chat Sample - Not working for me
Hey guys, I've been searching the forums but haven't found any answer. Here's the deal, I have .NET 3.0 on my laptop, and I installed the WCF samples. I can successfully build and run the Peer Channel Chat application, however, when I send a message, it does not send to the other clients. :( So it's not working... what do I have to do to get it to work I did not change any of the code. What are the necessary steps needed to take before I can get this specific sample to run I noticed the links to the "One time setup for WCF samples", but all those steps were for IIS hosted services over http. This app is tcp only, if I have read the code correctly. So what is needed to get just this sample to run I installed it on my wo ...Show All
.NET Development How does the web service uses the App_Code.dll
I have noticed that the App_Code.dll is missing from \Bin directory when debugging a web service using VS 2005 but it does appear after publishing the web site. I'm using a web project that has been converted from VS 2003. My question is - how does the CLR run the web service code in debug mode without using a dll I guess the IL is being stored somewhere... Thanks! Gil, The DLLs as well as the PDBs are there.... but not in the bin folder. ASP.NET 2.0 uses a dynamic compilation feature and it now puts the DLLs in the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files instead of in the bin folder. Take a look at this folder you will find the missing files.... When y ...Show All
