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

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

gvraovc

Member List

mrshrinkray
Lil endian
Kenneth Gangstø
mark aoki
sabo
turczytj
Vantoko
DMillerNCR
Ramkumar Vijaychandran
mivecxtr
Evidica
shakalama
Shihan
imj
Divya Bhasin
steveareno
Keyu
Nagarajan Murugan
SnowJim
AshishGupta
Only Title

gvraovc's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. effect compiler, december release - wrong size for array parameter

    Given the following effect (very simple soft skinning): #define JOINT_NUM 32 float4x3 Joints[JOINT_NUM]; // 4th column is always (0, 0, 0, 1), so don't // waste a register for it float3 LightDir; struct VSInput { float4 pos : POSITION; float3 nml : NORMAL; float3 blendWeights : BLENDWEIGHT; float4 blendIndices : BLENDINDICES; }; struct VSOutput { float4 pos : POSITION; float3 nml : TEXCOORD; }; VSOutput VS(VSInput vsIn) { VSOutput vsOut; int4 indices = D3DCOLORtoUBYTE4(vsIn.blendIndices); float4 weights; weights.xyz = vsIn.blendWeights; weights.w = 1 - dot(vsIn.blendWeights, 1); vsOut.pos = float4(0, 0, 0, 1); for (int k = 0; k < 4; k++) { float4x3 mtx = Joints[in ...Show All

  • .NET Development System.AccessViolationException: Attempted to read or write protected memory.

    I have experienced much grief trying to figure out what to do about this error. I have a project that make exstencive use of the Shell. And while working with this shell project in a stand alone project it is perfect.. Works like a champ.. Now when i get ready to intergrate the shell project into my main project i start getting weird jit errors and memory not accessable errors.. My other controls in the main form even start throwing errors when this shell project is added... The only thing that i can think of is that there is a memory location is being overwritten while the address is in use by some other pointer. Here is one of the main spots in my code that this is a for sure error thrower when the _ItemActivate even event is ra ...Show All

  • Commerce Server UPDATING individual products through the Commercer Server adapters

    Here is a chronologically reversed conversation between me and Alan F on UPDATING individual products through the Commercer Server adapters. If anyone has any insights please respond.... Alan I tried both your suggestions, 1) Scenario 1 - I updated the lastModifiedDate (I hope this this what you meant by the Timestamp) 2) Scenario 2 – I took out the lastModifiedDate altogether (this did not appear in the ‘new’ message and the ‘update’ message) Note: the lastModifiedDate here is the //OrderGroupCollection/Catalog/@lastModifiedDate . Import mode is already "Incremental". … however I still get - Violation of PRIMARY KEY constraint 'PK_FolicaBase_CatalogH'. Cannot insert duplicate key in object 'dbo.FolicaBase ...Show All

  • Visual Studio Express Editions Whats the code for Shutting down logging off and othe similer functions

    Whats the code for Shutting down logging off and othe similer functions Here's the API declaration , should work in Windows 98/ME too... ...Show All

  • Visual Studio Team System Please do not RTM yet!!!

    My biggest frustration when using VSTS for Database Professionals is that you still have to select one item at a time to skip if you don't want to migrate all changes. For instance, the "dt_" stored procedures don't do any good in my test or production environment and I have to click each one, one at a time, to skip them when scripting the differences between my local development copy and the test or production environments. A check box for each item, so you could apply a change to all selected rows at once, would sure help. I know you've heard this before. I know there are a lot of other problems that were identified very early on that have not been addressed as well. I guess I am just a little frustrated with the product ...Show All

  • .NET Development boolean sorting

    I'm trying to sort on a boolean column in a dataview sort. Like I want all the false rows to be sorted before the true rows. Is this possible How would I go about doing it I map the datatable to a datagridview, but I think that doesn't matter. Is that type of sort possible One work around is I could use a string field in the datatable and do X or nothing to signify true/false. I'd much rather use a boolean though. This doesn't seem to be working (done is a boolean field in an xml typed dataset, true always seems to come first no matter what). DataView SortedInit = pccs.pccs.DefaultView; SortedInit.Sort = "done desc,init desc,dex desc" ; SortedInit[0][ "done" ] = true ; Debug .WriteLine(SortedInit[0][ "pcnpcs" ]); Deb ...Show All

  • Windows Forms Draw a set of lines to a Bitmap

    Hi Suppose you have a set of lines: (20; 20) - ( 20,30) ( 2; 45) - (342,40) (20; 20) - ( 20,33) ( 0;240) - (-60,65) To draw this, you have to translate the points to the origin. I do this by calculating the bounding rectangle, rec . The result is: (80; 0) - ( 80,10) (62; 25) - (402,20) (80; 0) - ( 80,13) (60;220) - ( 0,45) I now want to draw these lines to a Bitmap with a given resolution and line thickness. Hi again Another part of the team Im working with, work with drawings. These are in 600x600 dpi. My image-output they use as an "overlap"-image (to verify that their drawing is correct), and thus needs to be in the same resolution. That's why I need this resolution. Kind regards ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DXSDK vs. DX runtimes

    Hello,     The DX version we're supporting is DirectX 9.0c but if we compile using a recent  DXSDK (currently April 2006), it seems that some users are missing some dependencies (ex. D3DX9_30.dll) even if the installer properly detects that they already have DirectX 9.0c. MSDN entry: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/DirectXSetupGetVersion.asp It is possible to detect the version and revision but that only tells us that the user has a DX 9.0c runtime. What's the proper way of handling this during installation to detect whether latest DX runtime should be installed ugh, that link should be removed. Always use the DirectX End- ...Show All

  • Windows Forms Closing ChildForm in an MDI Application

    Hi, I need assitance in closing a child form under certain circumstances. What I need to accomplish is when the child form opens it checks a value in the registry, if this value is absent I need the form to stop loading and return to the Parent from. How can I acheive this Here's my code so far.. <Code> namespace Mort { public partial class frmFuneral : Form { public frmFuneral() { InitializeComponent(); } private string myPath; private void frmFuneral_Load(object sender, EventArgs e) { CheckRegKey(); } private void CheckRegKey() { RegistryKey myKey = Registry.LocalMachine.OpenSubKey("Software\\Mort", true); string myPath = (string)myKey.GetValue("DBP ...Show All

  • Visual Studio Express Editions some little question ;/

    how can i get an or in my if-construction (like if myint == 0 or myint == 5), i know it is some stupid question but somehow i cant find the answer ...Show All

  • Windows Forms ClickOnce Fails with "Value does not fall within the expected range."

    I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All

  • Visual Studio Express Editions pop and drop maximized forms across multiple monitors

    I'm looking to be able to easily pop and drop maximized forms across multiple monitors. Can someone help me mimic the behaviour of this product http://www.realtimesoft.com/ultramon/tour/windows.asp I doesn't have to be very elaborate. A simple "Send me to Monitor#" code will do... ...Show All

  • Visual Basic Multithreaded application not compiling.

    Hey just curious if anyone could tell me why my multithreaded application will not work, its my first attempt at coding a multithreaded application, everything in the program works except the starting of the thread where I get the error "Too many arguements to 'Public Sub New()' " which I get when declaring my new thread which would be this code: Connect = New Thread(AddressOf Thread.Connect) Anyways heres the entire application, its not overly complicated like I say I just can't figure out why the multithreading is not working. Imports System.Net.Mail Imports System.Data.SqlClient Imports System.Collections.Generic Imports System Imports EnterpriseDT.Util.Debug Imports EnterpriseDT.Net.Ftp Imports System.Threading Public Class ...Show All

  • Visual Studio 2008 (Pre-release) Clipboard Problem

    Hi there I seem te be having a problem when placing images on the clipboard. It only seems to be a problem when the code is executed on a Virtual PC and I suspect it has something to do with graphics memory, but I am not sure, and I was hoping that perhaps someone will know of a better way to accomplish this. Here is some info on the app. We have an avalon design canvas on which all kinds of objects are placed. Later on the user can then select an area of this design canvas and "grab" a bitmap image of the selection. This bitmap image is placed on the clipboard from where it can be pasted into other applications as normal images. Here is the code that takes, as input, a FrameworkElement, makes a bitmap out of it an retur ...Show All

  • Visual Studio 2008 (Pre-release) Create new instance of Database all the time, or keep around?

    With the access to the underlying data store being abstracted and relatively hidden from us, I find myself wondering how to manage connection pooling and scalability. I have a static utility class that provides all the methods that generate queries. At the moment, it creates a singleton instance of the Database class (e.g. MyDatabase() , the one created by Sqlmetal) (this is for LINQ to SQL, not EF). Should I be creating and disposing of the database instance within each data request method, or should I be trying to maintain the reference to the static instance of the db My gut instinct tells me to do something like this : public static List<MyData> GetSomething(params) { using (Database db = new Database()) { var x = from .... ...Show All

©2008 Software Development Network