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

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

TheQuietShadow

Member List

CalinMac
Ntc
mcnamaragio
dag.loraas
Celios
prozac11
GoDaddy
lvance1611a
KristianH
Degremont
spattewar
sumit kr
Jerryk
cplusplus1
mbr_rptusr
Fabriciom
steveareno
mexy
Kalaivani Prakash
xshua
Only Title

TheQuietShadow's Q&A profile

  • Visual C++ search for value not greater than another in a jagged array of structures

    I was tinkering with the idea of a class that had a reversible memory value array, and its first incarnation was to have for each "location" an array of structures that had values clock k and value v. Is there a way to adapt an array binary search to look at a structure value k which is stored sorted or do I really need to write my own alg for this in function readx: #define AML 0x100 #pragma once ref struct md { unsigned int v ; unsigned long k ;}; ref class rvd { public : rvd( void ); public : unsigned long inc_ks( unsigned int ); public : void dm( unsigned long k0); public : unsigned int readx( int loc, unsigned long k0); public : unsigned int read ...Show All

  • Visual Studio 2008 (Pre-release) My MembershipProvider + ReliableSession issue

    I have a service that uses UsernameAuthentication with a MembershipProvider and it also has ReliableSession enabled and OrderedDelivery = true (I’m not sure if OrderedDelivery has anything to do with my problem).   When a valid username/password is sent then everything works great.   The problem is that whenever an INVALID username/password is sent in the message the ValidateUser method in the custom MembershipProvider gets called repeatedly until the clients SendTimout expires, at which time the MessageSecurityException is thrown by the service proxy.   If I disable ReliableSession and then send the invalid username/password in the message then the MessageSecurityException gets thrown immediately by the service proxy as I’ ...Show All

  • SQL Server problem with foreach loop container and excel files

    well i am trying to follow the example of msdn help on how to loop through excel files and it doesn't work. the variables have the project scope. what can i do All I have done in that example, is just to get the xls files in c:\temp, assign each file name and print the variable to a message box. you still have to do data flow task. Thanks Sutha ...Show All

  • Visual Studio 2008 (Pre-release) Template Trigger and 2 ore more Properties?

    Hello, Sample: In a Listbox is the Backcolor from the selected Item Blue. But when the Listbox has not the Focus, the Backcolor from Item is gray. How can i do that Is it possible to write a Trigger that has two Propertys, or is it the wrong way Thorsten   ListBox uses MultiTrigger to do this.  http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.multitrigger.aspx   ...Show All

  • SQL Server Finding the last record

    Hi, I need some help on generating a set of results from few tables. T1 has CHKID , ChkDate, DriverID oneDriverID can have more than 1 check. how can I find the last check ID of the drivers. Any help is appriciated. Thanks, -VJ hi, use the max() function   it returns the maximum value in the expression. example: use northwind --select * from orders order by customerid  -- uncomment to see orders select customerid, max(orderdate) FROM ORDERS GROUP BY CUSTOMERID ORDER BY CUSTOMERID ...Show All

  • Visual Basic Refresh the Winows OS from within Visual Basic

    I've made some program in Visual Basic 2005 that works with changing files and folders. After I've finished it, the main problem is to refresh the Windows OS. I mean the same thing as when we press F5. Than everything refreshes and if we have made changes, they are immediately shown. Could someone help me with this matter A possible solution or maybe an idea how to do that   Thanks,  Excuse me, but something is wrong. We don't understand each other. Suppose that you see in front of you the Windows XP Desktop and you press F5 or from the menu with mouse right click you choose Refresh. That refreshes the screen. Or in Explorer the same happens. THAT is what I want to do. Not reboot the computer. And, refresh i ...Show All

  • Software Development for Windows Vista passing object to workflow

    I have several objects which I want to pass in to the workflow at runtime and be available to any activity run in the workflow. For example, I have a data managment object which the activities should use for database interaction. (I don't want to create a new instance in the activity). Is this possible Yes, you can add a property to your workflow and assign it at creation time. Later any activity in the workflow can access the property. Please, see SequentialWorkflowWithParameters sample under Samples\Technologies\BasicWorkflows Regards: Jesus ...Show All

  • Visual Basic Count property

    I need to code a click button procedure that displays the total number of items in a list box. I can't figure out what to do. Any help is appreciated cmazur wrote: Try this... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim count As Integer = 0 count = Me .ListBox1.Items.Count Label1.Text = count End Sub Hope this helps... Or this Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Me .ListBox1.Items.Count.ToString() End Sub ...Show All

  • SQL Server SQL Server Agent node doesn't show up in Management Studio

    Background: Windows 2000 SP4 Upgraded SQL 2000 to 2005 Standard. SQL Agent Service is running. Issue: While using SQL Server Management Studio Express, the SQL Agent node doesn't show up when logged in as 'sa'. Facts: msdb is running at SQL Server 2005 compatibility level 90 User 'sa' is sysadmin Unable to set database role membership to SQLAgentOperatorRole. Get the following error: "Cannot use the special principal 'dbo'. (Microsoft SQL Server, Error: 15405)" Right click on Maintenance plan and only thing that shows up is "Refresh", no Wizard or anything else.  Also, the maintenance plan itself isn't visible in the right pane. I tried creating a new database user called "testuser", assigned it a server role of 'sysadmin' which shoul ...Show All

  • Visual Studio New MPLex and MPPG tools in latest VSIP SDK

    First of all, thank you for finally integrating these important tools into the MPF world. I can finally (hopefully) bring my language tools out of the unmanaged world. I'm running into a few issues, and I couldn't find any documentation on them in the help files. First is that mppg doesn't seem to create an output file, it just spews text to the console. It could be that it is failing silently before it gets to the point where it is supposed to create a file. If I do mppg parser.y > parser.cs, then it spits out a mostly complete cs file. I'm not sure if that is supposed to work that way or not, but MPLex seems to spit out a file without the need for output redirection. So if I bring my parser.cs file into VS, and after I found the ...Show All

  • .NET Development Send Access Data to SQL

    Hi! I'm using .Net 1.1, Access 2000 and SQL 2000. The Access 2000 is a local database, in daily use by multiple users. The SQL is webhosted and needs to be updated, typically at night but sometimes during the day. I'd like to insert, update and delete the records in various SQL tables based on realtime (or close) changes in the Access database and would like to do it with a VB.Net windows app I have running on the local server as a localhost service. Is there anything like a "best practices example" for making 2 concurrent connections to different kinds of data, how to loop, concurrency issues, etc Use datasets or stored procedures Thanks for any help. Jo Since the SQL Server databa ...Show All

  • SQL Server How to select all columns except one column from a table ?

    Hi I can't figure out how to do this and hope you guys can give me a hint.... I want to select all columns from a table except one column: For example, A table has 20 columns : {1,2,3.....20} To select all of columns in a table, i could use select * from table; However, I want to select only column {1....19} I do not want to type the column names in one by one in the SQL query, is there a way to achieve this in a short form of Select Thanks, One trick I use to get that may columns name in SQL Server 2005 is: 1.From Query tab, go to Design Query in Editor and Select your table of interest from Add Table window, click Add; 2. Check the *(All Columns) checkbox from your table window and click OK and You will ...Show All

  • SQL Server order by partial field

    How can I "Order By" the second + third characters of a 7 char field Sample data looks like: LCA - L LCB - L LCF - M LCE - M LCE - A LCA - A LCB - A If I order by the whole field I get: LCA - A LCA - L LCB - A LCB - L LCE - A LCE - M LCF - L LCF - M What I want is: LCA - L LCB - L LCF - L LCA - A LCB - A LCE - A LCE - M LCF - M I'm still at the stage in this project were I can 'split' the field (if I have to) into first 3 and last 1. But the sort order of the last 1 is not alphabetic (I want 'L', 'A', "M"). Can I substitute a custom SortOrder some way (I've done that with mainframe Cobol). All suggestions appreci ...Show All

  • Visual C++ Command Line Parameters with Dialog Based Applications

    I'm creating an MFC dialog based application and I need to be able to pass command line parameters to it. Is this possible with a dialog app From MSDN: You can get the command line argument by GetCommandLine function. To convert the command line to an argv style array of strings, call the CommandLineToArgvW function. ...Show All

  • Visual Basic Unregistering HoyKeys

    I have a question about unregistering a hotkey from a listener application. If I don't unregister a hotkey will this be stuck in windows so I do not need a listener application (meaning I can execute the application without a lister application) I have an unregister hot key sub listed below. What I want to do is execute an application based on a hotkey without a listener application. Is this possible Thanks Again! ' unregister a global hotkey Sub UnregisterGlobalHotKey() If Me .hotkeyID <> 0 Then UnregisterHotKey( Me .Handle, hotkeyID) ' clean up the atom list GlobalDeleteAtom(hotkeyID) hotkeyID = 0 End If End Sub Your 'unregi ...Show All

©2008 Software Development Network