Software Development Network Logo
  • Visual C++
  • Game Technologies
  • Windows Forms
  • Visual Studio
  • IE Development
  • Microsoft ISV
  • Windows Vista
  • Visual FoxPro
  • .NET Development
  • SharePoint Products
  • Visual Basic
  • Smart Devicet
  • Visual C#
  • SQL Server
  • VS Team System

Software Development Network >> ahmedilyas's Q&A profile

ahmedilyas

Member List

shivali.sadavarte
Andrew Westgarth
Ben Santiago
Jandost Khoso
Stephan Smetsers
Alex Michael Leonard Klein
Pavel Burianek
Jason D. Camp
cadouthat
youaredoome0
John12
osamaT
ukrutter
tyler2424
MaggieChan
ShadowRayz
Wysek
Indigo Cowboy
gilagila100
pschla
Only Title

ahmedilyas's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Saving screenshots

    Since SurfaceLoader has disappeared I tried to make this code work: Texture2D tex = new Texture2D(device, device.Viewport.Width, device.Viewport.Height, 1, ResourceUsage.Dynamic, SurfaceFormat.Color, ResourcePool.SystemMemory); device.CopyFrontBuffer(0, tex.GetSurfaceLevel(0)); tex.Save("C:\\screenshot.png", ImageFileFormat.Png); It throws an exception; and so does this: Surface s = device.CreateOffscreenPlainSurface(device.Viewport.Width, device.Viewport.Height, SurfaceFormat.Color, ResourcePool.SystemMemory); device.CopyFrontBuffer(0, s); Did I miss something or is this a bug --Michael Leaf. wrote: I'll put this into a component and stick it up on my website, if I ge ...Show All

  • Windows Forms need tool to search AD from a text file

    here is my situation -where in AD2003 scheme. -by boss gave my a list of 30000 E-mail (been able to reduce to 3000) -i need to take every alias and query the AD with "user manager" in the entire directory (any fiels under users: can be ANY PART of mail or username...etc.. any part of the user profile) -if i get a hit, i flag (append to a file or some output) , if not, i just pass From those 3000 alias, only 10% have hits. Doing this manually drive me crazy since i have litle time. Is anyone know of a tool or script where i could take my text file and do the query under the entire directory (please do not trow like to scripy... i'm poor in scripting) P.S. we have about 10 domain under our forest and the users container is not ...Show All

  • Internet Explorer Development IE 7 - scrolling jumps

    Is there a default setting I can change in IE7 that will stop the jumping when I try to scroll using a mouse wheel It's almost as bad as what I see when I'm connected remotely to another machine. Thanks, R. Hill Same problem here. But it isn't so much that the scrolling lags as it is that the scrolling continues after it should have stopped. It's not a delay like one would experience in PcAnywhere or VNC. I don't experience this problem in any menus or applications other than when scrolling webpages in IE7. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system

    Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All

  • .NET Development the age old problem of "the root element is missing"

    I've done a lot of searching for how to fix this error, and I can't find what's different between everything else and my code. Basically what I'm doing is connecting to a bizTalk .asp service, and its being sent fine, and is recieved fine. It uses streams to get back and forth, and if I were to write it out to a string, it works fine. If I pass the same stream into the constructor of another class that parses the stream to xml, it gives the error. Heres the code: Encoding encoding = new UTF8Encoding (); byte [] data = encoding.GetBytes(request); // Prepare web request... HttpWebRequest myRequest = ( HttpWebRequest ) WebRequest .Create( this .path); // connect to mustang WebResponse response; // POSTed response myRequest.Me ...Show All

  • Visual Studio Express Editions Error including file

    hello, i’m trying to use Java Native Interface(JNI), and i trying to compile a file .c in the console using " cl -LD HolaNativo.c -Fe libHola.dll ", but when i press enter, this error is show: HolaNativo.c(1) : fatal error C1083: Cannot open include file: 'jni.h': No such file or directory but i have include the path of jni.h in visual c++ 2005 and i don’t know what it’s happend. can someone tell me what can i do i have try but this happened: C:\fuentes\codigo>cl -LD HaloNativo.c /link /out:libHola.dll Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. HaloNativo.c ...Show All

  • Visual Studio 2008 (Pre-release) Create WCF Proxy Unit Test

    I wonder if the "Create WCF Proxy Unit Test" tool is working in the latest release of the Visual Studio 2005 extensions for WCF. The dialogue crashes every time I point to a metadata address and click "Get". I've addresses such as http://localhost:2000/myService.svc and http://localhost:2000/myServiceDrug.svc wsdl. Sorry about the intermission but where I can get that tool I'm using a manual aproach, creata a unit test, create the proxy adding a service reference, configuring the app.config of the Testing Project and run the test, but if that tool helps me with all that I'm really interested!!! ...Show All

  • .NET Development process.StartInfo.Arguments

    I am trying ot run this programm from a windows form application but at command line it stops with message: "Reading passphrase from file descriptor 0 ..." and nothing happens. Same program run fine on command line with follwoing line: C:\Program Files\GNU\GnuPG>gpg --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\Clock.gpg This is a command to decrypt the file using GnuPG encryption and decryption program. Any help is most welcome. Thank you. Bharat Gadhia. ================================= public void Decrypt() { string strArg = @" --passphrase-fd 0 < c:\gnupg\passphrase.txt -o c:\HIF\Clock.swf -d c:\gnupg\\Clock.gpg"; process.Start ...Show All

  • Software Development for Windows Vista DirectShow IMediaControl within WPF - anyone have a C# Sample for VS 2005?

    Hi, I'm developing a video playback application and really like the UI benefits of WPF. However, I prefer the video capabilities of DirectShow. Does anyone have a quick sample of how to control .avi playback with DirectShow inside a WPF panel There are a few WPF samples that show how to create Win32 controls using Hwnd. Trouble is, I've not had any luck converting these samples to use something like IMediaControl. Any help is greatly appreciated. Thanx, skigrinder Hi, We have a demo component that bridges DirectShow and WPF. Please take a look: http://wiki.medialooks.com/MediaElement_%26_DirectShow If you have any questions, please contact me. ...Show All

  • Visual Studio 2008 (Pre-release) how to bind to a dictionary (or something like that)

    I've got a dictionary<String,Object> and want to bind a xaml object to the key of the dictionary so it shows the corresponding value. So far I only found ways to bind to get/set accessors, or to attached DependencyProperties, but can't find a way to bind to the key of a dictionary. Is there any way to bind to something like this thanks, Sam I see now, I made a mistake: I forgot to include an example. Say I got a dictionary like this: Dictionary < String , String > row1 = new Dictionary < String , String >(); row1.Add( "No" , "1" ); row1.Add( "Name" , "Smith" ); Now I want a binding to 'No' and to 'Name'. I want to bind ...Show All

  • Visual C# How to design these classes?

    Hello all I currently have quite a large project that contains several classes that relate to various objects in a database. For example, the Orders class contains methods that have anything to do with orders. At the moment I think I've designed it in a very simple way, for example: public class Orders { public Orders() { } public int CreateOrder(int storeId) { // Code to create an order and return the ID. } public OleDbDataReader GetOrder(int orderId) { // Code to return the order record. } } Basically, to use any of the methods, I first create an instance of the Orders class, but this doesn't seem like a very good way of doing things. Would it be better to have static methods for things like CreateOrder() and non- ...Show All

  • Visual Studio Tools for Office UserProperties are disappearing on Appointment

    I'm having a problem where the UserProperties that I have set from a Outlook Add-In are being reset after the appointment has been changed in Outlook Web Access. I am creating a new appointment using my Outlook Add-in and setting 8 UserProperties against the appointment. If i view the appointment using OutlookSpy it says the UserProperties count is 8 (which is correct). If I go into Outlook Web Access, change something with the appointment and then go back into OutlookSpy and check the UserProperties count it still says 8. But if I go back into Outlook Web Access again and make another change, then go back to OutlookSpy and check the UserProperties count, it is now set to 0. It seems to always reset it after the 2nd change. Any ideas on w ...Show All

  • Visual Studio Tools for Office if birthday: automatic message made by outlook 2003

    hi, in my outlook 2003 contacts I've got about 70 contacts which - of cource - have their birthday once a year. This year, I'm really tired of always looking whether there is someone having birthday today or not!! Now: I want Outlook to search for ALL contacts having their birthday today and to send them a message written by me a few days before (it's an *.oft -file!). But I want Ourlook only to send this message one time!! how can I manage this how do I have to write this macro thanks! halfstone Hi, As this a general Outlook question, I have re-posted your question onto the Outlook news group. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&la ...Show All

  • Visual C++ what is the problem about following code?

    const int & ref(const int &a){ return a; } int val(int a){ return a; } int a=1; const int &b = ref(val(a)); thanks. You code is not safe, because you are returning a reference to a temporary object created within ref function's stack. It may be work fine in debug build but surely there will have some undefined behavior. ...Show All

  • Visual Studio Express Editions Making Drawing.Color by seting RGB values

    Hello, I'd like to know how to configure new System.Drawing.Color by seting RGB values. I need to make color from 3 ASCII converted chars. Following: sam = 115, 97, 109 to clolor is color.r=115 color.g=97 color.b=109 then I can set to the bitmap pixel with color made that way Now the only problem is, that r,g,b parameters are only readable :/. Is there any way to SET values of color.r, g & b Color.FromArgb method is very useful in this kind of situation. And I think that this works in the way you want it to.. :) Dim myColor As Color = Color.FromArgb(r, g, b) Regards, Timo ...Show All

©2008 Software Development Network