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

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

adi151478

Member List

ranadheer mac
Vasile
OmegaMan
Christina853
yvz
DQM
ThisSummer
Spider-link
mitasid
canaux
Chicken Leg Willy
Hanumanth Reddy
MiteshSura
USJOHN
Mark The Archer Evans
RoobyDoo
DMillerNCR
zeljko62
ram888
RobZeilinga
Only Title

adi151478's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Problem with DirectX and Visual Studio 2k5

    Hey,    I've noticed something very wierd. I am using Visual Studio 2k5 for sometime but I've never tried to complile my previous Direct3D relelated projects on this release of Visual Studio, maybe because it never occured because the machine that I was developing them had 2k3. Now for the Problem if you create a Win32 default application with MFC support (or not) that you try to write the following stuff you get linker errors and sometimes complier errors. I've never had them before and I don't know why they are occur. I checked for the Project Properties, altered some stuff (such the use of precompiled headers etc with no luck :S). The DirectX samples compile fine but I don't know the cause of the pr ...Show All

  • .NET Development tool for winapi

    Is there any tool that can map the .Net functions with the winapi functions ie when i select the method File.Open(path) to see the api functions that are called. The source code for the base classes (like System.IO.File), the CLR and the compilers is available as a download from MSFT. For extension classes like those in the Windows Forms namespace, you can use the excellent free Reflector disassembler . ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How similar is this to DirectX?

    I started Windows programing two days ago...but I'm used to programming on other systems. Anyways, the lack of docunation for the xna framework sucks and I was wondering how similar it is to another doc so I can work with that Could I be able to read tutorials online dealing with DirectX and apply them to XNA Kind of. XNA is obviously driving the same underlying hardware as native DirectX, and many things are identical because of that (for instance the functionality of the various renderstates, and the HLSL shader programming language). So tutorials for things like "how does the graphics card work" and "how do I write shaders" will be very applicable. But our API is quite dif ...Show All

  • Software Development for Windows Vista Missing Windows component

    Hello, On Vista RC2 without Flash, after I close my app, I get this message titled "Program Compatibility Assistant": ... "This program requires flash.ocx, which is no longer included in this version of Windows." I don't want this message to appear. My app detects whether Flash is installed or not. BOOL IsFlashInstalled() { SafeOleInit(); // return AfxGetThreadState()->m_bNeedTerm || AfxOleInit(); CLSID clsid = CFlashActiveXControlBase().GetClsid(); CComPtr<IClassFactory> pFactory; return SUCCEEDED(CoGetClassObject(clsid, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, NULL, IID_IClassFactory, (void**)&pFactory)); } If Flash is not installed, the function above properly returns FALSE, and Vis ...Show All

  • Visual C# Iterations through a Dataset/datagrid

    I am new to C# and dataset/datagrid processing. When saving any changes, I need to know how to iterate through changed rows to evaluate column contents for validation. The information I have at my disposal does not show any examples. Any help would be greatly appreciated. Yep, the value in currentRow[currentColumn] is getting assigned, but still failing on the INSERT saying that the value is NULL. Should I be assigning the value to the Bind variable somehow It is almost like the column is not getting set to the bind variable of :CLIENT_CD. The insert statement associated with this data adaptor is something like this insert into tablea (client_cd) values (:client_cd). Client code is null ...Show All

  • Software Development for Windows Vista Configuring MSDTC on Client PCs

    I have an application which uses an implicit transaction using Transaction Scope when edits are saved to the SQL 2K server. MSTDC must be enabled on the client PC. Can someone please provide me with an example of how I can programmatically configure the client PC MSDTC settings for them Right now users are instructed to manually perform the MSDTC configuration steps from the Component Manager in the Control Panel. Thanks! Corey I actually discovered what I needed was to modify the registry. Here is the code I used. Hope someone finds it useful. Imports Microsoft.win32 Module SampleModule Friend Sub ConfigMSDTCSettings() Dim readRegKey As RegistryKey = Registry.Loc ...Show All

  • .NET Development How to maintain responsive UI while doing thread-safe calls to controls?

    The program that I'm currently working on is supposed to download several files from a server and to display the name of the currently downloading file with a label, aswell as the overall progress of the batch download and the progress of the current file in form of two progress bars. At the moment, I'm doing the downloading in a background thread using the BackgroundWorker component. To update the progress bars and the label, I use the ReportProgress method and the ProgressChanged event of the BackgroundWorker component. Therefore, I pass a custom structure to the ReportProgress method which I evaluate in the PrgressChanged event handler to determine what the UI should do (for example, do one step on ProgressBar1). As far as I know ...Show All

  • Windows Forms Understanding the differences between DataGridView and DataGrid

    I am attempting to understand the differences between the .Net 2.0 DataGridView control and the predacessor (the DataGrid control). In doing so I created a sample application that uses the northwind database to display information from the customers table. When using the DataGrid control I can sort and filter the data from the table, as shown here-- private void Form1_Load( object sender, EventArgs e) { this .customersTableAdapter.Fill( this .nwindDataSet.Customers); DataView dvCustomers = new DataView (nwindDataSet.Customers); dvCustomers.Sort = "ContactName" ; dvCustomers.RowFilter = "Country = 'France'" ; customersDataGrid.DataSource = dvCustomers; } W ...Show All

  • SQL Server Processing Mining Models & Structures via SSIS

    Still new to DM and SSIS...anyand all help is greatly appreciated! In SSIS they say that you can use the Analysis Services Processing Task to process a mining model/mining structure, however, I do not see where you can give it a relational table to work off of. I know that I can use a data flow to do this but I wanted to go a different route if I could to process my models as I don't really necessarily need the data flow as what I am tring to do is pretty simple. That brings me to a more general question, what is the best method for training your models using SSIS I am building a new model everytime the package runs using some variables and the DDL task, running a query on it, and destroying it at the end of the package but I am ha ...Show All

  • Visual Basic COM Exceptions bypassing exception handler

    Hi, I have some interop issues with a flakey, third-party, COM dll that causing me tons of grief. I’ve wrapped its primary functions in managed calls with built-in exception handling and retries like this: Do Try 'Do risky work here. blnSuccess = True Catch ex As System.Runtime.InteropServices.COMException intTries += 1 If intTries > 10 Then Throw New System.InvalidOperationException("Failed 10 times to... ", ex) 'Wait and try again System.Threading.Thread.Sleep(miRETRY_DELAY) End Try Loop Until blnSuccess However, occassionally, the exception seems to bypass the COMException handler and propagate up unhandled. It’s still a COMException and I can tell from the stack trace where it’s co ...Show All

  • Visual C# questions about begininvoke

    I am updating different windows forms on other threads than the UI. I'm using BeginInvoke with a thread pool to do the updating. But my question is when i call the control is there a difference when i use this.Begininvoke instead of Label1.begininvoke. The other thing is that is it i'm not sure if using the Control.begininvoke is what i should b using and not the delegate.begininvoke. can someone provide me with an explination on the 2 I've been looking them up but can't find a distinct difference on the 2. Thank You In short... not really. In long.... the Control class provides the BeginInvoke() method to all inheritors which include the Label and Form classes. Internally BeginInvoke() c ...Show All

  • .NET Development Selecting / Update records - Concurrancy

    I'm new to Visual Studio 2005 (Visual Basic). I'm an Oracle guy but I do allot of development in MS Access. I don't want to use ADO.NET's generic behaviour for record locking, etc. What I'd really like to do is to have the same behaviour as Access has where if a user changes a field, the database locks the record. I was wondering if you had any sample code that would allow me to set up a form that has a combo box on the top of the form where the user selects a record. Then the database fetches the row and displays the data on the screen. If the user changes the data, the form locks the record. What's the best way to accomplish this I've heard that this can be accomplished using transaction control but I haven't found any form / ...Show All

  • Visual C# Same KEY & IV for TripleDES Encryption as well as Decryption in 2 different Win Services.

    Hi, I want to encrypt as well as decrypt a file using TripleDES. My problem is that I am autogenerating the KEY & IV while encrypting the files. As per my project requirement, I have to keep both Encryption & Decryption parts in two differents windows services. Can any one please guide me how to supply same KEY & IV for both I am using the following coding for encryption & decryption: //.......................... private static void EncryptData(String inName, String outName, byte [] tdesKey, byte [] tdesIV) { //Create the file streams to handle the input and output files. FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read); FileStream fout = new FileStream(outName, ...Show All

  • Visual C# referencing and using an assembly in different folder than App

    Is there a way to that an application could make use of assemblies that are not located in the same folder or in a subfolder of the main executing assembly Can I direct the probing for a referenced assembly to that different folder somehow Or could I load and use the the assembly using reflection you can load assembly using reflection but then all referenced classed should be used in your code with reflection which is not very comfortable. As far as I understood you want to store all shared assemblies in shared folder (not in GAC) and to point applications to search there Locating the Assembly through Codebases Codebase information can be provided by using a <codeBase> element in a configuration file. This cod ...Show All

  • Windows Search Technologies Last Accessed Date affected?

    A quick question I'm hoping someone has a quick answer to... When WDS searches a file, does it reset the Last Accessed Date I tend to use this to identify older files than can be archived. ...Show All

©2008 Software Development Network