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

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

stswordman

Member List

NoNameHere
lcj
Ryan Carlson
Ashish.Net
Bernd Wechner
Noorul Ahmed
lancasm
SPWilkinson
Matias Saguir
Muhammad Azeem Azam
arcliner
Jason D. Camp
RubenPieters
Walker Boh
Seppe001
gumtoo
Hass Khan
anru
DaveKStl
Rob Davis38041
Only Title

stswordman's Q&A profile

  • Visual C++ Which function change from Unicode to Ansi ?

    Which function change from Unicode to Ansi Thanks you very much. Sarath. wrote: You can also make use of W2A ATL conversion macro Macros such as OLE2A , W2A and the likes cause Stack Overflows when used in loops . have a look on the Following Link http://www.codeguru.com/forum/showthread.php t=337247 ...Show All

  • Visual Studio Express Editions Having difficulties with a timer and an if-then statement

    Hi, been spending a lot of time on timers and they finally make some sense now. In my program there's this button. When it's clicked a shell command is executed and right after that the program needs to wait until some folder is created (by an external process). It enabled the timer and the timer2_tick sub is executed... But the other process keeps running as well. I need to figure out how to pause everything except the timer that checks every 5 secs if a folder exists until the folder actually exists... Many thanks! Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick ICounterCount = ICounterCount + 1 MessageBox.Show(ICounterCount) If System.IO.Directory.Exists(HomeDirec ...Show All

  • Visual Basic how to print screen

    I have a menustrip with the print button on it, what is the code to make it print only the text in the window take a look at the Printerclass in .NET http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.print.aspx ...Show All

  • Visual Studio Express Editions Exception error, how to solve or handle it?

    Hi, could someone tell me whats the meaning of the error and how can I solve it. Thanks. here my code: public static void ReadData() { string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\FYPproject.mdb" ; string queryString = "SELECT Sample_Number,Pump_Speed FROM 2Pumps" ; using ( OleDbConnection connection = new OleDbConnection (connectionString)) { OleDbCommand command = new OleDbCommand (queryString, connection); connection.Open(); OleDbDataReader reader = command.ExecuteReader(); <<Error on this line while (reader.Read()) { MessageBox .Show( String .Format( "{0} , {1}" , reader[0], reader[1]) ...Show All

  • Visual Studio Express Editions Msvcp80d.dll error on other machines

    I am using Visual C++ 2005 Express Edition to make a simple application that must be run on multiple windows machines. Most of the machines are either Windows XP or 2000. When I run my application locally, it works well. When I transfer my debug or release version *.exe to a usb drive and run it from another machine, I am always hit with this msvcp80d.dll missing error. I have already tried the FAT32 Work Around option in Project Properties and this did not fix the problem. Thanks for any help, J I am a little confused as to what the post is suggesting I do. Do I need to copy the msvcp80d.dll file to the same directory as my *.exe file in order to run it on other computers Will I have to copy this f ...Show All

  • SQL Server Installing SSIS with SQL Server 2000

    Hi All, I have installed SSIS on server running SQL 2000 but I don't see the Business Intelligence or SSIS. I could see the SSIS service is running but do not see VS or BI version of VS. Any ideas Thanks in advance. Bader Cheema wrote: That was my understanding too but after installing SQL 2005 client tools and Integration Services, I don't see the BIDS. Under Start->Programs->Microsoft SQL Server 2005 you don't see SQL Server Business Intelligence Development Studio ...Show All

  • Visual Studio 2008 (Pre-release) Shouldn't XDocument.ToString() output declaration?

    Shouldn't the ToString() method of XDocument output the document's declaration It doesn't. Here is some code and output: XDocument xDocument = new XDocument( new XDeclaration("1.0", "UTF-8", "yes"), new XElement("Root")); Console.WriteLine(xDocument.ToString()); This code outputs: <Root /> But, that actual XML document could be output as UTF-8 if created by something other than .NET, such as unmanaged C++ or java, correct You are saying that only because in .NET a char is 16 bits, it is possible the data could need UTF-16 But in my case, with this particular document, UTF-8 works just fine, correct ...Show All

  • Visual C++ read last character of a string

    I need to read the last character of a String and if its not a backslash "\", i need to put a backslash there. Can anybody clue me in on an easy way to do it Thanks!! In my opinion you also can try the PathAddBackslash function: #include <shlwapi.h> . . . CString s = . . .; PathAddBackslash(s.GetBuffer(MAX_PATH)); s.ReleaseBuffer(); I hope it helps. I think you should give more details about which kind of strings you are using (simple, MFC, STL, etc.). ...Show All

  • Visual Studio Unable To Debug

    I have several projects that I used to be able to debug/run. Now when I try running/debugging, it states in the status bar that it is, "Ready", "Building", and then back to design mode. I can not get it to run. What is going on Thank you. Hello Bnjeer, Could you please provide more information so we can assist you with this problem.  The following information would be a great start: What version of Visual Studio are you running   (include any service packs you may have installed) What language are you using a code sample would work here as well. What are your exact steps right before you see this problem Thank you, Liz &nb ...Show All

  • Software Development for Windows Vista MSDTC, Vista, Oracle 10g Client: TransactionScope usage throws Error ORA-00161

    Hi all, I have a strange problem on Vista reg. TransactionScope usage with System.Data.OracleClient against 10g Client / 9i Server. The transaction aborts and Oracle error ORA-00161 is issued: "ORA-00161: transaction branch length 86 is illegal (maximum allowed 64)" The same, unmodified code works fine on XPSP2 machine. I do believe that this behavior has something to do with vista changes reg. MSDTC. I'm stuck in here - any help appreciated! Thanks, Ilker Hi Jim, thanks alot for your explanation. I know fully understand what is causing this issue. You just gave me more evidence in my assumption that Oracle is being the cause, although issue arised by changing MSDTC code ...Show All

  • SQL Server Permissions to See Server Logins/Create Database Users

    Our company has 2 Database Roles (DBE and DBA). The DBE creates database schema, performs SQL Server Administration, and manages server security. The DBA writes data access, ETL, and manages database security. In 2005, we're struggling with how to allow the DBA to see all of the logins on the server in order to add them as users of their database. What permissions does the DBA need to select from any of the logins on the server to add them to their database Michelle Note that to add a user to a database, the dba does not need to be able to see the login's metadata - he only needs to know the login's name. To see the information about a login, you need VIEW DEFINITION permission on that login ...Show All

  • Visual Studio Express Editions reflection - createInstance on an object which doesn't have parameterless constructor.

    Hi, I am using reflection to all the class in a dll and their methods. While invoking some of the methods, my call to Activator.CreatorInstance fails since the class didn't have a parameterless constructor. Is it possible to find the constructors (with the parameters) and then create the object with those parameters Ignatius You can use Activator.CreateInstance(Type, Object[]) to automatically invoke the right constructor. For example: using System; public class Test { public Test(bool arg) { Console.WriteLine("bool constructor used"); } public Test(int arg) { Console.WriteLine("int constructor used"); } public Test(string arg) { Console.WriteLine(" ...Show All

  • Smart Device Development Hello, i have a question about list view

    Hello, i want to know how use list view to display the item in duel line(like the today page). Is it possible to do that If the list view cannot do that, is there any way to do that . Sample code will be perfect. Thank you Or you can use the ListBox2 from SDF: http://blog.opennetcf.org/ayakhnin/PermaLink,guid,40f8d4c0-26ae-4d02-af0b-0c80de605288.aspx ...Show All

  • Visual Studio Connector inheritance problem

    Hi, I got problems with connector inheritance (i'm using the RTM bits). Suppose I start from the Task Flow template. I add a connector MasterConnector that becomes the base class for the CommentConnector. When I create an instance of the CommentConnector (I associate a comment to a task), save the diagram and reopen it, the instance of the CommentConnector has doubled (two lines appear instead of one). Has anybody noticed the same problem Thanks! Mike Thanks for the workaround, it works fine! Just for your information, it doesn't work if the base class is abstract. Mike ...Show All

  • Visual Studio Express Editions If and Buttons

    After quite a bit of searching I have yet to turn up anything. So I was wondering if anyone here knew the answer. What I did was create a button. What I basically want to do is create it so if that button is pushed it'll go to a certain method. Basically the method is a different screen and if the button is pushed on the next screen it'll go to another method. I also have a few other buttons for splits that are deactivated when not in use. So can I do this through if statements or is there another longer path that I have to go through Yes the toggle button idea works however. I'm still not sure what the code is. The only way I learned how to do something like that is put in the checkbox/toggle button then ...Show All

©2008 Software Development Network