Software Development Network Logo
  • Windows Vista
  • Architecture
  • VS Team System
  • SQL Server
  • Visual C#
  • Visual FoxPro
  • Smart Device
  • VS Express Editions
  • Microsoft ISV
  • .NET Development
  • Visual Studio
  • Visual J#
  • Windows Forms
  • Windows Live
  • Visual C++

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

PSSnyder

Member List

kmpradeepkumar
RFabian
MattP88
Steven Muise
Gopal Ramamoorthy
JPulham
michaelos
PSilva
Carla Nunes
shaul_ei
vcllvc
Ram Kinkar Pandey
Matthew McHugh
margaret lenins carter
Stevenriz
Tom Hallmark
cathalconnolly
Gil Shalit
Martin Hansen
Coder0xff
Only Title

PSSnyder's Q&A profile

  • Visual C# running two thread

    Hi. I need a sample code for running two threads simultaniously that each of threads fill own progress bar Here is a little self-explaining example: private void button1_Click( object sender, System.EventArgs e) { Thread thread1 = new Thread( new ThreadStart(FillProgressBar1)); Thread thread2 = new Thread( new ThreadStart(FillProgressBar2)); thread1.Start(); thread2.Start(); } private void FillProgressBar1() { while ( progressBar1.Value < progressBar1.Maximum ) { progressBar1.Value++; Thread.Sleep( 100 ); } } private void FillProgressBar2() { while ( progressBar2.Value < progressBar2.Maximum ) { ...Show All

  • SQL Server ODBC & Multi-threading

    I'm working on a C# (2005) app that requires shooting a large number of queries via Odbc, wait until the last one is done and then compute an overall result. Since the queries are not interdependent, I would like to get them to run concurrently on multiple threads. I did manage to get several queries run on different threads but the response time for the same query varies dramatically when another query is running concurently (even on a different ODBC connection). All is as if something was queing those queries regardless of the threads and/or the connection objects being used. Basically when I run a very simple query q1 (thread 1 c ...Show All

  • Visual C# Printing 'this' form...

    OK, I surrender... What I want to do is simply print the form (actually, the tabPage) that's currently active, just the way it looks on the screen. I've gotten into a lot of circular logic with DrawToBitmap and ...Bounds( ) and I'm sure there must be an easier way. If anyone can show me how to do this with a few lines of code, I'd be eteranlly grateful... Thanks in advance for any and all help! John F. There's a great example with code for printing the form here, in case anyone else has the some question: http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_csexpresscon/html/831ef528-7 ...Show All

  • Visual Studio how do i get the caret position in the native editor?

    hi, i'm trying to catch the event of the caret reposition on the native editor. only thing i found to try and get it is: IVsTextViewEvents ::OnChangeCaretLine() but... i cant find any kind of AdviseTextViewEvents(), like you can usualy find for such interfaces. what am i missing any kind of sulotion will do, even if it's only good for VS 2005. thanks. For posterity, here's how I got OnChangeCaretLine events in C#. I reference the following VSIP assemblies: microsoft.visualstudio.ole.interop; microsoft.visualstudio.shell; microsoft.visualstudio.textmanager.interop.         c ...Show All

  • SQL Server Pre-installation problems

    Well, first i say pardon because my english is very poor. I need some help because i’ve got a problem. I install first the WindowsInstaller v3.1 and the install type that all is ok, but when i go to install Net Framework 2.0 i obtain an error that says don’t find the windowsinstaller.   I go to the administrative tools/services and see the WindowsInstaller Service is stopped and  if i try to start it give me a error 997. Can you help me to solve this problems.   Thanks a lot. Regards. Silverblade. Edit: The problem dissapears with the uninstall and reinstall the windowsinstaller and some of the secur ...Show All

  • Visual Basic How do I get a list of network drives and their status?

    Hi All, I want to get all Map Drive which is working not. Means if the network drive is exist but if it is not connected then its show disconnected. I want any function which returns statrus, shows whether its connected or not, Please help me out of this problem.......... "Manu Raj" OK Here's some code which should work for you. The following will check the drives and display there letter and status in a listbox Sub DisplayNetworkDrivesInList() ListBox1.Items.Clear() For Each drive As String In System.IO.Directory.GetLogicalDrives() Dim a As New System.IO.DriveInfo(drive) If a.DriveType = I ...Show All

  • Windows Forms LIB's in a Windows Form?

    Hi folks, I'm just wondering if it's possible to add a LIB to a Windows Form project I want to add Shlwapi.h, shlwapi.lib so that I can access the useful functions: PathAddBackslash PathIsDirectory PathRemoveFileSpec PathRemoveBackslash PathFileExists PathFindFileName etc.... Is it possible I can't seem to figure out how to add a LIB and just adding the .h causes a whole mess of problems. Any ideas Hi Blair. I would use the System.IO.Path class, but it just doesn't have the functionality I'm looking for - specifically the functions that I mentioned above. So, does anyone know how I could add a L ...Show All

  • Visual Basic VB equivalent of T-SQL's IsNull or Access' Nz

    Is there an equivalent function in VB 2005 of the above-named functions that will return a user-defined value if the field is null I'm trying to set the Expression property of a column in the Properties window for a datatable.  In particular, I'm trying to concatenate some address fields.  In Access, I'd do: Nz(SubDwelling & ' ') & Dwelling & Street & ', ' & Nz(Town, ', ') ... Barry IIf(IsDBNull(SubDwelling), SubDwelling.Text, "''" ) & Dwelling ,,,, ...Show All

  • Visual Studio Express Editions Truely a Newbie

    I am Very Raw at this. I have visually constructed a Windows App. But now I don't have the slightest clue how to "Tell" It what I want it to do. I have various text boxes for inputing numbers. I want to do math equations. Example...as an investment calculator and a mortgage calculator. I would like to hit the "Button" and run the calculations. I don't even know where to start. I know NO code at all and can't seem to find any online rescources to help. Thanks so much.... VB Versions: http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx ...Show All

  • Visual C# Jagged Array and GetType()

    Hi all, I see something odd when I call GetType() on a jagged array where one of the sub-arrays is multi-dimensional. Please look at this code and think about what you expect it to produce: int[][,] x = new int[3][,]; Console.WriteLine(x.GetType()); It's just that the CLR type name uses a different ordering. If you ildasm your code, you'll see that ordering is the same as the one produced by GetType. In a way, it makes more sense the CLR way. If you think of it as: Array of... Multidimensional arrays of... Int32 Then the most strictly logical orderings would be [][,]int or (as the CLR uses it) int[,][], depending on whether you w ...Show All

  • Visual C++ LNK problems continued

    Hard life in C++ lane, I'll tell you. Trying to compile code with unmanaged CAsyncSocket class I got LNK errors: Build Log     Build started: Project: SocketCplus4, Configuration: Release|Win32 Command Lines      Creating temporary file "c:\Documents and Settings\....\My Documents\Visual Studio 2005\Projects\SocketCplus4\SocketCplus4\Release\RSP00000E1064772.rsp" with contents [/OUT:"Release\SocketCplus4.exe" /INCREMENTAL:NO /MANIFEST MANIFESTFILE:"Release\SocketCplus4.exe.intermediate.manifest" /DELAYLOAD:"OleAcc.dll" /DEBUG /PDB:"c:\Documents and Settings\....\My Documents\Visual Studio 2005\P ...Show All

  • Visual C++ Interesting little problem

    I have a simple console app using C++/CLI: #include "stdafx.h" using namespace System; enum Values { ONE = 1, TWO = 2, THREE = 3 }; struct Params { public: int n; public: Values v; }; public ref class Foo { public: Params* p; public: Foo() { p = new Params; p->n = 42; p->v = ONE; } public: ~Foo() { delete p; } }; int main(array<System::String ^> ^args) { Foo^ f = gcnew Foo(); return 0; } The problem I'm having is that I set a breakpoint at: p->v = ONE; in the Foo constructor. It remains undefined. I can't seem to assign p->v when it's a native enum. Assigning p->n is no ...Show All

  • Visual C++ Problem In MFC AppWizard(exe) 2

    my code is like this: double kk; kk=1234.123; bb.Format("%d",kk); pOUTPUT->SetWindowText(bb); The output from the program above is not 1234.123. How come like this Is %d incorrect Please help me solve this. This control might help you out: http://www.codeguru.com/Cpp/controls/editctrl/maskededitcontrols/article.php/c3915/ Tom ...Show All

  • Visual Studio Team System Can anybody provide the code to delete the records in a database after the test is over?

    Can anybody provide the code to delete the records in a database after the test is over as I have the outline of the custom web test plug-in required for this purpose Here is the outline of the class. I need to fill in the code for deletion: using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualStudio.TestTools.WebTesting; using System.Data; using System.Data.SqlClient; namespace TestProj { public class WebTestPluginExample : WebTestPlugin { public override void PostWebTest( object sender, PostWebTestEventArgs e) { //put the delete co ...Show All

  • SQL Server Importing from Oracle 10g

    I am trying to import a variety of data from an Oracle 10g database. When I import the data using the OLE DB it takes a long time (100K records an hour). How can I improve the throughput of my import Is there a better driver I could be using Any input will be appreciated. db55 Some interesting reading for you: http://www.sqljunkies.com/WebLog/donald_farmer/archive/2005/03/13/8819.aspx http://microsoftdw.blogspot.com/2005/11/how-to-load-oracle-with-ssisfast.html -Jamie ...Show All

©2008 Software Development Network