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

Software Development Network >> shekhar saran's Q&A profile

shekhar saran

Member List

zoujing
Edwardvb
Daniel Danilin
Hi_i_am_Amit
Amir.S
iGary
DanielMcN
raghu_grdr
cpurick
dmouser
Robert Lelieveld
ihd4me
Prince17
Deuce BOI
TonyCapps
mpswaim
ajliaks
MoP73
SHISHIR WAHI
Lucas Pasquali
Only Title

shekhar saran's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Sprite is not transparent

    Ok I finally got the game to work but I have a new problem...my texture which I made transparent in DirectX, doesn't have the transparent background when I run it. Is this due to my graphics card & me adding that line of code to make the program work Sorry I can't remember the exact line but it's been floating around the forums, I think we all know what it is. I've read that bmp files created in Paint with magenta backgrounds(255r, 255g, 0b) are automatically transparent as magenta is ignored by the renderer. I haven't tested that yet. I've used very simple single color images so far so it has been easy to create the image, then create a mask image by reversing the colors and combining the two with ...Show All

  • .NET Development Socket Send - Multiprocessor Data Corruption

    I have an application that sends out large packets over a tcp socket. If smaller packets are sent, the packets reach their destination without corruption. However, the tail end of larger packets are corrupted. If I run the application on a single processor machine, the large packets are not corrupted. This problem only seems to happen on multiprocessor machines. I print out the packet before and after the send, and the packet seems to be correct in both cases. What about the Socket.Sent (c#) could be causing the data corruption The application is single threaded. I'm not using a shared buffer. The buffer is passed by value into the send function. I print the buffer out before and after the send, and they ...Show All

  • SQL Server Where can I locate and see my connection string of my databas?

    Hi, as the subject suggest. Thanks in advance Whats the use of the '@' Example: string connectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\sample.mdf;Integrated Security=True;User Instance=True" ; ...Show All

  • .NET Development Parsing a SQL query

    I am trying to parse a SQL select query. The idea is to pull out the field names in the query to use them in a lookup to get the units for each field. The problem is that I need to put units on the columns, but do not know in advance which fields are being queried. People can type in a free hand query using the field names, “as”, “sum(field)”, “count(field)”, etc. I am new to regular expressions. Has anyone done anything like this, or could point me to an example that I could use to get started Any help would be great. Thanks. David Adam, This is an interesting idea. Unfortunately it will not work in this case because they can use "select .... as .. ...Show All

  • Visual Studio Express Editions NEED HELP with this piece of code !

    HEY GUYS i am developing a program while learning Visual C# so here what i am trying to do .... getting htm links from the database ( access ) and view it in the WebBrowser Control and, i have a button to the next link in that database to get it and view it in the WebBrowser so here is the code for that button but it doesn't work :(  when i click on it this is the function i am using when button is clicked   private void Next(string lesson) {   string StrConnection1 = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\anything\database.mdb" ;                         &nbs ...Show All

  • Windows Forms DetailsView and Visible Property problem

    Hi, I have a field in a details view that I want to be Visable = false. So I make the field false and run the code and insert a record, it tells me the following error: "Cannot insert the value NULL into column 'ShipKey', table 'System.dbo.ShipCartonRecord'; column does not allow nulls. INSERT fails. The statement has been terminated." So how come this happens, how can i resolve this problem so people cannot see the field but the code will allow it to process when invisable. Tdar I know what you are saying here and that has nothing to do with it, what I suspect is causing this is the fact that I fill in the field during postback due to the functionality I need and i used the following ...Show All

  • Visual C# Events in C# are declared in different way from VB

    Why don’t we have in C# events declared with “Handles butError.Click at the end After the Sub butError_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) like we have in VB. Here is what I mean: In VB events re declared like this: Private Sub butError_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles butError.Click But in C#, it s like this: private void butError_Click(object sender, System.EventArgs e) Without handles …..etc Thanks Different design goals, I'd guess. In the case of C#, MSFT probably needed to make the language syntax as familiar as possible to Java, C++ and 'C' programmers with an absolute minimum of new language keywords to learn. In th ...Show All

  • SQL Server Using Many-many relationship in SSAS

    Hi, we have built a cube implementing many-many relationship within. will it have any effect on the performance if a many-many relationship is used within a cube with large volumes of data. This is SQL Server Integration Services newsgroup. Please post your Analysis Services related question in SQL Server Analysis Services newsgeoup @ http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=83&SiteID=1 Thanks, Loonysan ...Show All

  • Visual Studio 2008 (Pre-release) PixelFormat: why is the difference?

    Hi Everone, I have a question about the bitmap functions in GDI+ and WPF. I have a jpg file called "photo.jpg" in my E drive. This first line use WPF System.Windows.Media.Imaging BitmapImage bmpimg = new BitmapImage ( new Uri ( "E:\\photo.jpg" )); the bmpimg loaded has a pixelformat of "Bgr32". If you copy the bitmap data to a byte[], you'll see it's in "BGRABGRA..." format, each pixel consists of 4 bytes. This next line uses GDI+ System.Drawing namespace, loading the same jpg file System.Drawing. Bitmap bmp2 = new System.Drawing. Bitmap ( "E:\\photo.jpg" ); the bmp2 loaded has the pixelformat of "Format24bppRgb". If you copy the bitmap data to a by ...Show All

  • Visual C# GlobalHotKey help - newbie programmer.

    Hello! I'm new to c# and programming in general. I'm trying to create an app that will use global hot keys (only the F1-12, function keys) to display text where-ever the cursor is. For example, if 'F1' is pressed by the user when on MSN messenger, "asdf..or whatever" is displayed. I'm trying to use the RegisterGlobalHotKey function I found on a website for my app, but I have a problem. It takes an extra parameter... modifiers. void RegisterGlobalHotKey( Keys hotkey, int modifiers) { try { string atomName = AppDomain .GetCurrentThreadId().ToString( "X8" ) + this .Name; hotkeyID = GlobalAddAtom(atomName); if (hotkeyID == 0) { throw new Exception ( "Unable to generate un ...Show All

  • Visual Basic Is it possible to change the method body of a parameter's methods (SET or GET) within the current assembly.

    I would like to change the method body of a parameter's methods (SET or GET) within a class defined in the same assembly as my application program. Is this possible Sorry for the delay in replying. I've been trying to 'get into' WPF since I didn't even know of its existance. If I did my homework right, you're referring to .Net Framework 3.0 Presentation Foundation. The problem is I don't have it at work and it raises many doubts. Can I use it with 2.0 for example since everything I've done so far is in 2.0. I would also need to integrate the tools in VS2005 and would therefore need to know if it will have an adverse effect on my current applications. And all this... to intercept property read and writes before they occur on a class! ...Show All

  • .NET Development WebRequest what's being send

    Hi, I'm looking for a sample code which gets the information that being send from a web site when post (HttpWebRequest). I'm working on a windows application that uses Httpweb classes or WebBrowser control, sends logon credentials to a secure aspx website (https) , after successful logon, post some data with all cookies and gets result. I've tried lots sample codes without any success. so now i'm looking for a way to snip what's being send with webrequest. Please give some sample code. Thanks, Antony You can use ethreal or any other Network monitorng tool to trace all this! Search Google for Ethreal, download, install, run it and see what captured data looks like. It'll show y ...Show All

  • Visual C# How can I set the C# compiler to issue an error for missung XML documentation

    I usually set the project properties to generate XML documentation. I would like the compiler to generate an error/warning if I forget to document a public member. I think this was the case with Visual Studio 2003. The only warnings issued with VS 2005 are those concerning invalid XML syntax. Is there any way to tell the compiler to check more strictly Thank you Burkhard Burkhard, The warning for missing comments on public types still exists (CS1591) in VS 2005. You can set it to an error in the properties pages (Build tab). The trick with this warning is that it's only reported if you're actually generating the XML doc file (so /doc is set, or the "Generate XML documentation file" i ...Show All

  • .NET Development trouble installing the .net framework 2.0

    when I try to install the .net framework 2.0 I get a message saying"Error creating process <C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\Install.exe> Reason: C:\WINDOWS\system32\advpack.dll" I've tried all the ways mentioned on the forum so far and I keep getting the same error. It appears I do have a 32bit OS. I ran dotnetfx.exe, and it 'repaired' .net to its 'orginal state' (I'm not sure what that means). Through that process many things were installed on the computer, but there was no setup window that appeared at all. Normally installing any program has a setup procedure, and then I have the options of making a shortcut to it from the desktop and all. I really don't know what is going on. ...Show All

  • Visual C++ ExitWindowsEx() Question

    Hi again, Simple question: will the function ExitWindowsEx() restart Windows Server 2003, Windows 2000 Server without user actions. I think what you want is to force the windows to restart. In that case use the EWX_FORCE flag. ExitWindowsEx(EWX_FORCE | EWX_REBOOT, 0); einaros wrote: I don't believe it's guarranteed to, especially so if an application is hanging. In either case, direct such questions to the platform sdk newsgroup, http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.platformsdk.shell&lang=en&cr=US . This forum is for language related questions only. See the "scope" sticky post :) Oh, come on. If we answer all the question in this manner people will st ...Show All

©2008 Software Development Network