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

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

laoer

Member List

Sumit Chawla
Ted.
chaza
steveareno
Andrew Stanford
Smealum
Fritzenhammer
Rick Hill
MaggieChan
Ned Rise
jennifer xiao
Tim Ward
Inetcor
Vikash Sharma
wolf777
arsonist
CharlieRussell
Xadja
karande23
Raniel
Only Title

laoer's Q&A profile

  • .NET Development for IBM Tivoli Storage Express

    How TSM backup the local client & how to restoring a file I am sorry that I do not believe that this is the right forum for an IBM Tivoli Storage question. Perhaps http://www-306.ibm.com/software/tivoli/ would be a better place to start ...Show All

  • SQL Server the cost of security auditing

    has anybody investigated the cost of turning on AUDITING for the SQL servers I am talking about enabling the entire C2 Security Audit mode. How much impact the auditing has on the database performance Is auditing for SQL 2005 any better, meaning less impact on performance Any sample, test, and/or numbers to support the arguments Please share any findings that you have or know. Thanks If it is a OLTP (frequent updated) 24/7 based application then it will have impact during the database maintenance jobs and other bulk load jobs, if any. Also you need to take care of disk free space in any case, otherwise the server will have other issues. I suggest you to turn on on the test platform to see what kind of process it follows ...Show All

  • .NET Development convert mp3 file to stream and convert again to file

    hi i want to put binary file content to stream and transfer it as i need or leave it alone and then convert back to file how can i do that thanks in advance. This code sample supposes that u have an sqlServer database (test) with a table (mp3Table) that have two columns : ID (nvarchar(50)) and MP3 (binary(8000)). Be sure that the MP3 column length is enough to store the binary file. The maximul length allowed by sql Server is 8000 bits. I think it's not enough to store MP3 files. Anyway. ------------------------------------------ Inserting to the database ------------------------------------------ void InsertMP3(string name, string filePath ) { try { FileStream streamInput = new FileStream( filePath , Fil ...Show All

  • .NET Development Where is the SqlContext.GetConnection method ?

    I want to use SqlContext.GetConnection method from System.Data.SqlServer namespace, but there is no SqlServer namespace anymore. I've read that all code was moved to System.Data.SqlClient namespace but GetConnection method vanished. I want to return rows from C# dll library (sql server assembly) to application written in Delphi. I use SQL Server Authentication. Is there any similar method Regards KonRi. Regarding the authentication, please be clear about the concept of context connection. Context connection lets you execute SQL in the same context that your code was invoked in the first place (usually, it's your CLR stored procedure or function). The SPID (SQL Server session identifier) is the same a ...Show All

  • Software Development for Windows Vista Sample code needed to understand the UIA

    Hi, I am planning to use the UIA in our environment. Can anybody post a sample code to automate a simple GUI application (notepad) Basically i am looking for how to invoke the notepad application and enumerate the menu items in it using the UIA TIA, ~JK Executing an application programmatically is not part of UIA. Once you have Notepad running, you can certainly use UI Automation to enumerate menu items. There is a great deal of sample code in the SDK that should help you learn the basics of finding UI elements and their properties. You might start at http://msdn2.microsoft.com/en-us/library/ms752331.aspx . ...Show All

  • Visual FoxPro multiple database locations headache

    Hi, I have an application which has a dev and testing environment. Each environment is on the same server, ie \\dataserver\application\dev\data and \\dataserver\application\test\data Unfortunately, I am having major problems with the DEV environment accessing the test (and vice-versa)!!!. Each table is opened with its full path name but the wrong table is opened. This is also true for remote views etc. If I rename the test (whilst running dev or vice versa) area then all is well. I have noticed that the header of the dbfs hold the absolute path to the database and not a relative on. I have even striped all absolute references to tables in the forms out. I am using VFP9 with SP1. Any help would be appreciated Regards ...Show All

  • Visual C# removing program from startup

    how can I remove programs from my startup menu I don't want them to run when i start windows. But I bet, whatever way he wants, He is master now to do it with any method; whether manually, through programming or through direct Registry Editor Have a nice time ;) ...Show All

  • Visual C++ error C2065: 'PCACTCTXW' : undeclared identifier

    I did convert an application from vs6 to vs8 and then i got this error (seems a little like the DWORD_PTR thing...) Where could be the problem ------ Build started: Project: HydrotelKernel, Configuration: Debug Win32 ------ Compiling... [ ... ] // i'm skipping this part of the building... way too long AdoDatabase.cpp  WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) AdoRecordset.cpp d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2065: 'PCACTCTXW' : undeclared identifier d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2146: syntax error : missing ')' before identifier 'pActCtx' d:\program files\microsoft visual studio 8\vc\atlmfc\include\ ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Texture2D SetData to make a circle?

    Anyone have any ideas on how I would modify the following function to color this solid texture as a circle public static Texture2D CreateCircle( GraphicsDevice device, int radius) { Texture2D texture = new Texture2D (device, ( int )radius * 2, ( int )radius * 2, 1, ResourceUsage .None, SurfaceFormat .Color); Color [] texData = new Color [( int )radius * 2 * ( int )radius * 2]; for ( int  j = 0; j < texData.Length; j++)     texData[j] = Color .White; texture.SetData< Color >(texData); return texture; } I'd like to set the pixels outside of what would be the circle to black. Not sure if this is exactly perfect, but it sho ...Show All

  • Windows Forms Datagridview unbound computed on bound...which event to use?

    Okay, I've spent the day trying to get this right, and not quite there yet. So much for rapid application development. Please advise My datagridview control has bound columns and unbound columns. I want the unbound columns values set based on a computation against the bound columns. Say my boundcolumn value is a date Sep 20 2006, so I want my unboundcolumn value to be assigned "Wednesday". I can do that fine in various events, but not immediately after the initial databinding...my unboundcolumns are remaining blank until my user starts selecting cells because I haven't solved which event when the datagridview is first loaded to use to calculate the unboundcolumns. Any ideas I've tried after the rowsadded and databindco ...Show All

  • Windows Forms Calling a method in form1 from form2.

    Ok this is my first post on these forums so go easy with me please Ok as you can see from the threads title im trying to call a method in form1 from form2. This i have managed to do but what im trying to do is when calling the method from form2 i need it to add some text to a textbox in form1. For some reason this will not work, but if i add a simple messagebox to the method this gets called and the messagebox pops up Now i've only been coding in C# for a few months and im new to this so please go easy with me. Here's what i have so far... Form1... namespace CallingMethods {     public partial class Form1 : Form     {         public Form1()      &nb ...Show All

  • Visual C++ Unicode & TextBox in VC 6.0

    Hi. when I try to type persian language in Textbox (VC 6.0), I see the unmeaning characters. ( my keyboard language is Farsi in this Mode) but I haven't this problem in VC.Net 2005. I have very little information about " Codepage " , " Charset " and " Unicode ". what should I do How can I start ( about "Codepage","Charset" and "Unicode" ). thank you very much. hello Re: Unicode & TextBox in VC 6.0 I read an article the day before that trying to cover the minimum knowledge a programmer should know about unicode and character set: http://www.joelonsoftware.com/articles/Unicode.html Since you already have those keyword, this is a good place to start with, searc ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. how to fill D3DFMT_R32F texture's data

    I create a floating point texture ,and I will use it to store Z value in pixel shader. LPDIRECT3DTEXTURE9 g_pFristMap ; DXUTGetD3DDevice()->CreateTexture( Frist_MAP_SIZE, Frist_MAP_SIZE, 1, D3DUSAGE_RENDERTARGET, D3DFMT_R32F, D3DPOOL_DEFAULT, &g_pFristMap, NULL ); Now I want to initial texture's every texel data as 1.0f ,for my pixel shader to compare the Z value form ttexture and current pixel Z value ,keep the small Z value,how should I initial this texture LPDIRECT3DSURFACE9 g_pFristSurf; g_pFristMap->GetSurfaceLevel( 0, &g_pFristSurf ); D3DCOLOR color = 0x0010000f; DXUTGetD3DDevice()->ColorFill( g_pFristSurf, NULL, color); is it right thx all ;) The hex value to use is 0x00FF000. Actu ...Show All

  • Visual C++ How can a C++/CLI library catch unmanaged C++ exceptions from an unmanaged library without breaking the C++ stack unwinding?

    I have a static C++ library, built with VS2005, that is used by multiple projects. The library throws C++ exceptions (derived from std::exception) from its public interface. One project that uses the static C++ library is a .NET class library that is written using C++/CLI. What I have found is that when the .NET class library calls into the unmanaged C++ library and an exception is thrown from within this library, then the application immediately jumps to the .NET class library catch clause without calling unmanaged C++ destructors during stack unwinding. This of course breaks the RAII idiom and is creating a large problem for me. My questions are: Is this expected What is the best solution to work around the problem Many thanks f ...Show All

  • Smart Device Development equivalent of Control.CreateGraphics() for Compact framework 2.0

    Hello i need to convert a control.CreateGraphics() for my app. VS2005 gave me a runtime error saying that it's not supported for Compact framework. Is there anyway to bypass that You need to store the colors that you want to change in UpdateCircle() in member variables that will be used by the Paint event handler. For example: Brush circleBrushes[] = new Brush[ 8 ]; Pen circlePen = new Pen(Color.Blank); //... presumably in constructor for(int i = 0; i < circleBrushes.Length; ++i) { circleBrushes[ i ] = new SolidBrush(Color.Wite); } private void panel1_Paint(object sender, PaintEventArgs e) { // ... Debug.Assert(Circles.Length == circleBrushes.Length); for(int i = 0; i < Circles.Length; ++i) ...Show All

©2008 Software Development Network