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

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

crp2k4

Member List

hwiz
jeusdi
Kenny1815
Yogendran
Tom Janssen
Juvraj
damnhippie
persistence99
Johan Nyvaller
Bingo Boy
DVD_SH
JFoushee
Dave12349
Rafael (Live Butterfly)
Gordon F
hingos
ArizonaJoe
Le Saint
Steven Tolson
Doriak
Only Title

crp2k4's Q&A profile

  • Visual C# sleep for microsecond

    hi i search for program that execute one command (such as read or write that not important) each more microsecond. i found the function in unix that do this and it's usleep() . i found that this can be execute in win platform from here: http://www.digitalmars.com/rtl/time.html#usleep but i don't know why this don't execute and when i run this example an error say that (errorc2371 time_t redefinition different of basic time ,error c2011 tm structure type redefinition! from file time.h) if any one have time.h that conatin of usleep or run and use this example plz help me with thank's hi, In C# and .net framework, use System.Threading.Thread.Sleep method. If you are not using C# a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Console a la Quakes?

    I'm wanting to add a console like in the quake series, a simple dropdown... but no text/command entering yet! Just simple "debug" output so i can have detailed information on the game while it runs... how would you guys suggested handling the messages a simple buffer or array Anyone have a link to some code that does something similar to this (not specifically xna, just anything c or c++ i could translate over) Any help is appreciated! Sugrhigh Download debugview from http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx . This will give you a separate window, filtering etc. Doesn't appear to work for code running on the 360, though. Cheers. ...Show All

  • Silverlight (formerly WPF/E) Getting the id of the hosting WPF/E control

    Hi, The new CTP contains the GetHost method but how can I get the id of the hosting control Lets say I have 2 WPF/E controls on the same HTML implementing the same click event. I need to identify which control was clicked. Thanks, Keren Personally, I couldnt' figure it out. However, I think I figured out a viable workaround. The workaround is as follows: I used the "SourceElement" property of the WPF/E Control to store the id of the hosting control. This approach is probably not optimal, however, because the SourceString and Source property values take precedence in loading XAML content, the approach has worked fine for me. In addition, the "SourceElement" property is just a string and it doe ...Show All

  • SQL Server To get only required records - select query help

    I have records which are like below. create table testedit ( editid int ,Tguid varchar(20) ,ttime numeric(4,2) ,numApp int ,numOrg int ,custid varchar(1) ) INSERT INTO testedit values(1,'ABC',12.52,40,11,'Z') INSERT INTO testedit values(2,'ABC',12.52,500,33,'Z') INSERT INTO testedit values(3,'ABC',12.53,500,33,'Z') Out of this records I would like to select only the 1st and the 3rd record. ie. My result should only have the below rows 1,'ABC',12.52,40,11,'Z' 3,'ABC',12.53,500,33,'Z' Any help SELECT a . editid , a . Tguid , a . ttime , a . numApp , a . numOrg , a . custid FROM testedit a INNER JOIN ( SELECT Tguid , numOrg , numApp , custid , MAX ( ...Show All

  • Visual Studio Tools for Office How do you disable the Close (X) button on a Word application?

    Hi, Can anyone tell me how to disable both the close button (X) and the File->Exit menu option on a Microsoft Word application from .NET,  using c# Thanks, Philip This forum is specifically for the VSTO technology, and C++ is not part of VSTO. You need to ask this question in a newsgroup that supports C++. Since the code in this thread uses the Windows API, it should be relatively straightforward for C++ experts. When you post, be sure to mention the development environment you're using. Choose the appropriate group from the Windows Development/Windows SDK listing in this interface http://msdn.microsoft.com/newsgroups/default.aspx ...Show All

  • SQL Server Strange behaviour with Sequence Container task

    Hi everyone,   Our VB application throws .dtsx on-demand by using Threads. Everything's fine but a little detail: when it goes to launch a SSIS package with a only task, concretely a Sequence Container task (empty, without tasks inside) fails Prevalidate method.   Attach you the snippet of code:     pkgResults = pkg.Validate( Nothing , Nothing , EventsSSIS, Nothing ) -- pkgResults returns me Failure {1}   If pkgResults = DTSExecResult.Success Then .. ..   Validate method, as usual, do EVENTSSSIS.PreValidate event and after that, returns instead of follow raising events.   Perhaps it's mandatory to set one task as a minimum, I don't get the point at ...Show All

  • Visual C# What is "\n"? Any difference from "\r"?

    I know "\r" indicates a sentence break. Then what about "\n" HtmlText = HtmlText.Replace( "\r\n" , "\r" ); HtmlText = HtmlText.Replace( "\n" , "\r" ); HtmlText = HtmlText.Replace( "\r\r" , "<p>" ); HtmlText = HtmlText.Replace( "\r" , "<br>" ); In the above line, since "\r" is to changed into "<br>", why should not directly change "\n" and "\r\n"directly into "<br>" http://west-wind.com/weblog/posts/1499.aspx The 1st statement replaces a DOS end-of-line to a \r, the 2nd replaces a Unix end-of-line to a ...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

  • Visual Basic Problems with inheritance

    Hi! I found some problems with vb using interface, abstract classes and classes. It's the code: 'ITop.vb Public Interface ITop Function doSomething(ByVal someParam As Object) As Object End Interface 'TopWithValue.vb Public MustInherit Class TopWithValue Implements ITop Private _value As Integer Public Property value() As Integer Get Return _value End Get Set(ByVal value As Integer) _value = value End Set End Property Public MustOverride Function doSomething(ByVal someParam As Object) As Object Implements ITop.doSomething End Class 'EndClass.vb Public MustInherit Class EndClass Inherits TopWithValue 'Error 3 'Public MustOverride Function doSomething(someParam As Object) As Object ' cannot s ...Show All

  • SQL Server SqlBulkCopy and Context Connection = T

    I have created an assembly which I load into SQL 2005. However, if I set my connection string = context connection = true... I will get an error saying something like this feature could not be used in this context... So I changed my function to insert each row.... Now the issue I have is the transfer takes 4X as long.... Before I made the change I was using the bulkcopy by specifying the actual connection string....but I also had to specify the password in the string...and since I wanted to get way from this specification...I attempted the context route. So...is there any other way of using the bulkcopy feature or something like it using the context connection Private Shared Function BulkDataTransfer2( ByVal _tblName As String ...Show All

  • Visual Studio Express Editions Transparent BMP

    I would like the user to be able to click on one (or more) colors in a .bmp image, which would cause that color (or those colors) to become transparent in the image. The only transparent .bmp color code I have seen is where the programmer specifies that a certain color in a .bmp image will be transparent, which doesn't help to solve my problem. I am very new at this, and any help will be greatly appreciated.   The board add line feeds when it wraps introducing syntax errors until you remove the linefeeds. Andreas Johansen and I looked at this problem in depth tonight. It looks very simple until you consider the many, many internal formats of images and then the problem becomes quite complex. ...Show All

  • Smart Device Development SQLClient and Pocket PC 2003

    Hi again!! I'm developing an application in Pocket PC 2003 to conect into a DB in SQL Server. Im using SQLClient class. when i create a conection string an instances a sqlconnection to connect to my DB it returns me an "SQLException: The source doesn't exists or cannot be accesed" or something like that. The case is that, I use that connection in so many others application and it's not possible it doesn't exist. I use the same Connection String in other application and works perfectly, Someone knows what can be My connection and the string Private sqlcon As SqlConnection Dim cs As String = "Data Source=1 0.0.1.0; Initial Catalog=Prueba;User Id=fadmin;Password=;" sqlcon = New SqlConnec ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to use GamePadType?

    Okay, maybe I just missed it but I can't figure out how to tell what type of controller the user has via GamePadType . Can anyone give me a clue [ Note: I searched for the term "GamePadType" in the forums but got no results. ] Console .WriteLine( GamePad .GetCapabilities( PlayerIndex .One).GamePadType.ToString()); or: if ( GamePad .GetCapabilities( PlayerIndex .One).GamePadType == GamePadType .GamePad) ...Show All

  • Windows Forms Deployed install wont run application

    Hi folks; I've built a data application in VB 2005 which uses sql 2000 on a remote server. I've created a setup and deployment project in the solution folder for the app -- as explained in the help files walkthrough -- added the dependencies and all the required steps as explained. The application installs and runs perfectly on my development machines, but after installing to a client machine, the exe (or short cut) simply will not initiate the application -- no errors or log info -- when we try to run it.  We get an hour glass icon for a second or 2, then it simply stops without any kind of other behavior. I am using some 3rd party controls, and the latest version of Crystal 11.5. It's also important to note ...Show All

  • Windows Forms TabControl how to remove default tabPages

    Hi, when i add microsoft tabControl to the winform, then is created tabcontrol with two default tabPages (TabPage1, TabPage2).Is here anybody who knows how to remove these default tabPages from initializeComponent() method I have created own tabPages and tabControl. public class MFTabControl : System.Windows.Forms.TabControl public class MFTabPages : System.Windows.Forms.TabPage {..} This MFTabControl works with mfTabPages but still contains two default tabPages . Designer generates this in InitializeComponent() >> this.dTabControl1 = new GUIControlDataGrid.DTabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage(); ...Show All

©2008 Software Development Network