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

Software Development Network >> Natan Drozd's Q&A profile

Natan Drozd

Member List

sandyk - MSFT
LoSko
Phonics3k
WV John
malignate88
Leo Leys
Andrew Mercer
BilalShouman
Lovericky
ToN.x
fschaller
Tejas34
aamer4u
AlexBB
TrevorW
pkhannah
Deerhake44
ejschoen1
gregaug
zenkick
Only Title

Natan Drozd's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. HLSL Lighting vs FFP Lighting

    Hi there, I am trying to re-implement my fixed function lighting code in my shader effect. However, I am getting different results. They are similar, but not the same. Below is the code. FFP Code //material values this .mMaterial.Diffuse = Color .White; this .mMaterial.Specular = Color .LightGray; this .mMaterial.SpecularSharpness = 15.0F; //light values device.Lights[0].Type = LightType .Directional; device.Lights[0].Diffuse = Color .White; device.Lights[0].Direction = new Vector3 (0.8f, 0.0f, -1.0f); device.Lights[0].Enabled = true ; HLSL Code //global variables float4x4 g_WorldViewProjMtx : WORLDVIEWPROJECTION; float4x4 g_WorldMtx : WORLD; float3 g_LightDir; float4 g_LightCo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!

    Now go register!!   Actual contest details to come the week of Feb 5th U can't do it....U can't give wrong information, as it's violation of "terms of use": MEMBER ACCOUNT, PASSWORD, AND SECURITY If any of the Services requires you to open an account, you must complete the registration process by providing us with current, complete and accurate information as prompted by the applicable registration form. You also will choose a password and a user name. You are entirely responsible for maintaining the confidentiality of your password and account. Furthermore, you are entirely responsible for any and all activities that occur under your account. You agree to notify Microsoft im ...Show All

  • SQL Server Cursors - Curse or blessing?

    Could someone elaborate on or describe a circumstance when a cursor could be beneficial and when using a cursor would be a bad idea Adamus CURSE! Understand where I came from: I worked with Sybase before MS got the code and at one time the manuals were almost word-for-word identical. When Sybase came out with te release that included cursors my bosses boss mandated that we use cursors pretty much any place we could. Most of the developers in our organazation just blindly started using them. I started finding that they ran slower. About a year after all of this I started to look for a new job. MAN, I couldn't believe it, but in every single interview -- and I mean literally every one -- I got asked if I knew how to use cursors. ...Show All

  • Commerce Server Extending Commerce OrderForm

    We have extended the OrderForm with a Strongly-Typed property ("OrderType") via the OrderObjectMappings.xml file and run the tool to update the scripts and OrderForm table. We have created an inherited Commerce Order Form Class which inherits from the Microsoft.CommerceServer.Runtime.Orders.OrderForm Class. The skeleton of the class is as follows: protected CommerceOrderForm(SerializationInfo info, StreamingContext context) : base(info, context) { m_dtmOrderDate = info.GetDateTime("OrderDate"); try { m_strOrderType = info.GetString("OrderType"); } catch (SerializationException) { m_strOrderTy ...Show All

  • Visual C# can any body help me in reversing strings

    this fuction help me to convert the arabic words to hexa .. and it doing the job 90% because it convert it in reverse   this means that the true hexa for example is (062F0645) but the function returns it like this (0645062F) and this makes each word come in reverse order   for example ... I love you becomes uoy evol I   how can fix that     public string ArabicHex( byte [] b) { string temp,s="",h=""; int i=0; while ((i <= b.GetUpperBound(0))) { temp= "00"+b .ToString("x2"); h = temp.Substring(temp.Length-2); if (h == "000D") { h = ""; } s = h + s; i += 1; } return s; }   thanks in advance ...Show All

  • .NET Development Launching a seperate application

    Hello. I'm coding a launcher for a set of games that use the same program, but different parameters on the shortcut to launch the different games. Is there any way to code that to a button Any help would be greatly appreciated. It'd have to launch something like this: "C:\Games\game.exe" -game 1 "C:\Games\game.exe" -game 2 And so on and so forth for the rest of the games. Thanks in advice for helping me code this. The Process class will do the trick. Something like this: private void ClickEventHandler(object sender, EventArgs args) {     using (System.Diagnostics.Process process = new System.Diagnostics.Process())     {      ...Show All

  • SQL Server Replaceable parameters in Subscriptions

    I see when creating a subscription that you can use @ReportName and @ExecutionTime in the subject and comment areas. Does anyone know if there are other @ items that can be utilized (This question was posted by JackBoughson on 07-16-2006 but that thread went astray and the question was never answered). Scott Thank you, I understand. However, I am not looking to extend the behavior. I am looking for documentation on other built-in @Values - it is unlikely that there are only two. Scott ...Show All

  • Visual Studio 2008 (Pre-release) frameworkelementfactory grid columndefinitions

    hello, How do you define the columns and rows for a grid, when using a FrameworkElementFactory e.g. FrameworkElementFactory f = new FrameworkElementFactory(typeof(Grid)); f.SetValue(Grid.ColumnDefinitions, newNiceColCollection); except that Grid.ColumnDefinitions doesn't exist. FrameworkElementFactory has some custom logic for handling the ColumnDefinitions and RowDefinitions in a Grid. For those values, you treat them like children in the factory tree, for example: FrameworkElementFactory gridFactory = new FrameworkElementFactory ( typeof ( Grid )); FrameworkElementFactory columnDefinitionFactory = new FrameworkElementFactory ( typeof ( ColumnDefinition )); columnDefinitionFactory.SetValue(...); ...Show All

  • Windows Forms How to move keyboard cursor

    I have 1000 text in a textBox, initially cursor is on 2nd char of 1st line, I want when i click on a button the cursor move to end of text in textBox, how to do that using C# 2005 Thanks textBox1.SelectionStart = textBox1.Text.Length; textBox1.Focus(); ...Show All

  • SQL Server RPC Connection error

    Hello, when I try to connect to Integrationservices remotely I go thi s error TITLE: Connect to Server ------------------------------ Cannot connect to atlante. ------------------------------ ADDITIONAL INFORMATION: Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ Connect to SSIS Service on machine "atlante" failed: El servidor RPC no esta disponible. . ------------------------------ Connect to SSIS Service on machine "atlante" failed: El servidor RPC no esta disponible. . ------------------------------ BUTTONS: OK ---------------------- ...Show All

  • Visual Basic DES File encryption problem

    Hello everyone. I'm working on a project that performs file encryption. With DES and 3DES. However I've been having a problem encrypting compressed files. The code that I used was a snippet that I found in the MSDN, this code seems to work perfectly with text files. I even analyzed the text files on a binary level and everything was perfect. Now whenever I try to encrypt a *.rar or a *.zip file I always get a "The file "" header is corrupt" and/or "Unexpected end of archive" errors. This is the code for the encryption and decryption algorithms: Sub EncryptFile(ByVal sInputFilename As String, _ ByVal sOutputFilename As String, _ ByVal sKey As String) ...Show All

  • .NET Development Run 3 different queries using VWD

    Hi all, I need to Insert data into 3 different tables (access database). The problem is that they are not related so I need to run the queries independently after the user press "Add". Using VWD I don't seem to find a way of doing this. Is there any documentation I can use somewhere! Can someone help please! Thank you very much F ...Show All

  • Visual Studio Team System report designer don`t find all fields

    hi, i`m using report designer to create reports on my self-created work-items. but i did not find all fields and types in the selection in the report designer. i create a new report project. connect to the ms sql server 2005 analysis service. use the following conneciton properties: server-name: atvie-tfs01 database-name: TFSWarehouse i tested the connection and the connection is ok. in the query builder i choose the "team system" cube. and then i get the first problem. i added work item - System.WorkItemType to a filter with "Add to filter". in the filter i want to choose in the filter expression one of my newly created work-items. one is called ReleaseItem. but it is not available in the drop-down! but i imported alr ...Show All

  • Visual C# How can I parse: name="My Value" into a Dictionary? (or other collection object)

    Let's say I have a long string like such: string s = "value=\"Hello World\" value2=\"Hello Goodbye\""; How can I put that into a collection object (eg. dictionary ) so I can access "value" and it would equal "Hello World" (WITHOUT the quotation marks) So... value = Hello World value2 = Hello Goodbye I'd like to access it something like: obj.GetValue("value") and it would return Hello World no worries, in future, its best not to delete the topic (unless its a multiple post) as other users who may have a problem like you had, could find the solution here :-) glad you got it ;-) ...Show All

  • .NET Development How do I ensure async calls to a remote server are delivered in sequence?

    Hi there, I have a Singleton remote service object, and I'm invoking a method on it asynchronously from another process by using BeginInvoke. However, sometimes calls are delivered to the method in a different sequence than they were made by the calling process. Is there a way I can ensure that calls are delivered in the same order as they were made by the client, without having to make the client stop and wait for each call to return Thanks Alistair ...Show All

©2008 Software Development Network