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

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

customization

Member List

Pooja Katiyar
Ed Lewis
engineer Ahmad
tee_user5
Bhupathi Venkatesh
Programm3r
Stuby085
JuanPa_EC
ccondit
Leonid B
Narayan Kulkarni
hailong1977
TianHon
nblankton
Rain3204
Olley
rlnd
NeederOfVBHelp
Mateusz Rajca
nsinghal
Only Title

customization's Q&A profile

  • .NET Development Execute Stored Procedure (and access output params) without a data table ?

    Hi all, I'm just getting my head around the .NET Framework in this area so apologies if this question is dumb. All examples in help and books relating to running a stored procedure seem to involve a database and the fill method. There must be numerous circumstances where you simply want to pass parameters into a stored procedure and let the database do the work, then access the output params. Can I define and run a stored procedure without a datatable OK - Thanks very much Jeff, much clearer. How are the output parameters accessed after the call Is this via the parameters array ...Show All

  • Visual Studio Express Editions How to transfer HBITMAP (C++) to Bitmap (C#) ?

    Dear Everyone, I have created the following codes to capture frame from a video using DirectShow in C++. It uses HBITMAP to hold the bitmap data. Now, I want to transfer the HBITMAP to C# Bitmap. How could I do Thank you. ====================== long size; hr = pDet->GetBitmapBits(1, &size, 0, width, height); printf("Size %i \n", size); if(SUCCEEDED(hr)){ char* pBuffer = new char[size]; if(!pBuffer) return E_OUTOFMEMORY; try{ hr = pDet->GetBitmapBits(1, 0, pBuffer, width, height); printf("pBuffer [%c] \n", pBuffer[3]); } catch(...){ delete[] pBuffer; throw; } if(SUCCEEDED(hr)){ BITMAPINFOHEADER *bmih = (BITMAPINFOHEADER*)pBuffer; HDC hdcDest = GetDC(0); void *pData = pBuffer + sizeof(BIT ...Show All

  • Visual Studio Express Editions what code do i use for key change

    ok i have this much i know if gose inbetween this Private Sub Form1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown End Sub but what code is it i use so that is i press the "a" key it will show "y" hmm you must be setting the text property somewhere else also. have you implemented any other key events such as keypress This works for me...   new form drag a textbox on it implement the form's keydown event   code: private sub Form1_KeyDown(byval sender as object, byval e as System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown    if e.KeyCode = System.Windows.Form ...Show All

  • SQL Server Database Subscriptions

    I'm working with SQL Server 2005 Developer Edition and am trying to set up a new subscription to a database I created using Management Studio. In the step where you are prompted to choose the Subscriber Type I only have two options: SQL Server 2000 and SQL Server CE. Why don't I have the options to choose SQL Server 2005 and SQL Mobile 2005 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox360 Threads, just interested ...

    I know that the xbox has multi cores and can run several threads concurrently, how do you write for a particular core on the xbox 360, or will the CLR choose when to use another core. Or maybe our code will only run on 1, can someone please enlighten me. Hopefully, it will be as easy as this - Thread myThread = new Thread ( new ThreadStart (myProc)); myThread.SetApartmentState( ApartmentState .MTA) myThread.Start(); and the clr does all the hard work. I am j ust interested thats all ... Dave Thread.CurrentThread.SetProcessorAffinity will this be available in the release version because I cant find it in beta 2 Unless I am being thick ! ...Show All

  • Visual Studio Express Editions Need Help

    Hi, I have a "guide" who talks to you in my program. When you put your mouse over a button, it does this: Dim mw As New SpeechLib.SpVoice mw.Speak("My Websites", SpeechLib.SpeechVoiceSpeakFlags.SVSFDefault) talk.Text = "" But, it basically freezes the button until he is done talking. then, you can click it. I want to make it so, while he is talking, you can click the button. Thanks! sounds like its blocking your main thread until its finished. You may wish to check the SDK that you are using on making it do it in ASync level, otherwise you could spin up another thread and let it talk from there without your main thread (UI) from hanging however threading can ...Show All

  • Windows Forms System.FormatException Formatted value of a cell has a wrong type

    While executing the following code I am getting an error like System.FormatException Formatted value of a cell has a wrong type I saw an example which was posted by somebody in this forum. After that Mark the Program manager gave a solution. But I am getting the same problem like that. I could not solve this. I need a help in this situation. Public Class FrmGridView Private Sub FrmGridView_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim ChkCol As New DataGridViewCheckBoxColumn Dim CmbCol As New DataGridViewComboBoxColumn Dim row As New DataGridViewRow Dgv.Columns.Add(ChkCol) Dgv.Columns.Add(CmbCol) Dgv.RowCount = 5 Dgv(0, ...Show All

  • .NET Development Time zone conversion problems

    Hi, I'm trying to parse a date time string that is always in ET time zone. The resulting time should be converted to local time. I could do that by backadjusting the ET time and converting to UTC. However, the issue is that I don't know if ET is currently in DST or not, so that I don't know how many hours I have to backadjust. Is there a framework built in way to get the UTC offset for any time zone Thanks, Tom Maybe I expressed myself incorrectly. The file contains values that are stamped in ET. The problem is that the system doesn't know when Eastern changed to DST so that I can account for the DST change in the offset calculations. ...Show All

  • Windows Forms Flicker using doublebuffer

    I created a UserControl which contains a Panel. I created an eventhandler for this Panel's Paint event. In this handler I draw a grid for the background and the a line which links to squares the user can move. Every time the squares are moved the panel is invalidated, in order to redraw the link. Repainting gives a lot of flicker. As in other controls I made, I tried to use doublebuffering in both ways, through SetStyle and the DoubleBufferd property. Flicker remains. I also tried to use one transparent panel over the panel with the grid. The grid needs to be painted only once, while the links are often repainted. So I tried to put squares and links in the transparent panel, but the grid panel is still repainted every time the transparent ...Show All

  • Visual C# file.Read statement in NPlot.

    Background: I downloaded a graphics C# package NPlot from a website. It is freeware. I included the whole set of files (4 demos and a library + dll) into my project where I intend to use NPlot as a part of my application. After a few snags it easily compiled. A part of it is running lready, however, here is the situation I cannot resolve: <This code is part of PlotWave function in PlotSurface2DDemo.cs > System.IO.Stream file = Assembly.GetExecutingAssembly().GetManifestResourceStream("NPlotDemo.resources.light.wav"); System.Int16[] w = new short[5000]; byte[] a = new byte[10000]; file.Read( a, 0, 10000 ); I get an error at the last statement during runtime (debug): 'Use the "New" keyword ...Show All

  • SQL Server MDX query with filter clause

    Hi, I have the following MDX query which is supposed to return the number of records with Actual time > TargetTime for each customer, location and editor. Actual Time and Target Time are measures on the Fact table defined in minutes and represented by integer values. The hierarchy I have created is Customer Name Location Name Editor Name The MDX query I have written is: Count ( filter ( Descendants ([DimCustomer].[Customer_Hierarchy]. CurrentMember ,[DimCustomer].[Customer_Hierarchy].[EditorName]), [Measures].[ActualTime]>[Measures].[TargetTime] )) But this query gives me the number of customers rather than the number of records with ActualTime > TargetTime for each customer, location, edit ...Show All

  • Visual Studio Express Editions Gzipstream Question

    I've searched in the msdn database for gzipstream stuff. It's really good working but I haven't figured out how to unzip more than one file out of a gzip. GZipStream doesn't deal with an archive with files, just a stream of bytes. You'll need a lot more code to parse the contents of the archive. Rather than inventing this yourself, try a freeware Zip assembly such as SharpZipLib ... ...Show All

  • .NET Development XML vs Database

    What is the advantages using xml to store information than using database ...Show All

  • Visual C# An object reference is required for the nonstatic field, method, or property

    I know you have all seen this one before, for which i am sorry. But I can't figure this out. I am not sure if what I am trying to do here will even work in the end but this is my first project and I am learning as I go, so please try not to laugh. I have a combobox of form1 that is bound to a data source and on form3 I have a report viewer that (I hope) will load using the text that is in the combobox on form1. This is where I have the problem! I have searched many forums but still don’t really understand!! (it is the WHERE SaveName = '" + Form1 .comboBox2.Text + "'" ;where the error occurs, as follows: (An object reference is required for the nonstatic field, method, or property 'Stock_Scan.Form1.combo ...Show All

  • SQL Server How can I attach AdventureWorks Database to SQL Server Management Studio Express?

    Hi all, I just downloaded AdventureWorks_Data.mdf, AdventureWorks_Data.ldf, AdventureWorksDW_Data.mdf, and AdventureWorksDW_Data.LDF files to the C:\Program Files\Microsoft SQL Server\MSSQL.1|\MSSQL\Data folder of my Windows XP Pro PC. I tried to attach the AdventureWorks database in my SQL Server Management Studio Express in the following way: I clicked on SQL Server 2005 Express=>SQL Server Management Studio Express=>Right clicked on Databases=> clicked on "Attach..."=> "Attach Databese" showed up. But I can not type in anything under the MDF File Location, Database Name, Attach As, Owner, Status, Message!!! What is wrong in my way of doing the attachment of AdventureWorks database (described above) ...Show All

©2008 Software Development Network