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

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

Bandile

Member List

Frederik Vantroys
killfr0g
Pammyy
MarkC1162
andyhull
Virtual Reality
pat_seo
Florian Storck
parvezkhan
maqadri
LMSmith
Jitusj
Mahesha
arogan
Seidel1
EBeckers
Beuls
IvanBi
Joao Pinto
mamrg
Only Title

Bandile's Q&A profile

  • Smart Device Development how to create shortcut , and read a shortcut target ..

    hello .. please i want to ask about , how can i create a shortcut file , and read an old shortcut's target .. if i can do this in pocket pc please help .. i am using vb.net 2005 regard . thanks alot .. i just made some changes and fixed some wrongs then the code works perfectly .. :) what about this sub Public Sub CreateShortcut( ByVal FilePath As String , ByVal Target As String ) Dim sw As IO.StreamWriter = IO.File.CreateText(FilePath) Dim strLink As String = Chr(34) & Target & Chr(34) sw.Write(strLink.Length & "#" & strLink) sw.Close() sw = Nothing End Sub thanks alot .. regards ...Show All

  • SQL Server Query VS Stored Procedure problem

    Hello. I am having a strange problem with SQL Server 2005. I have written a SELECT query that contains unions, joins and group functions. when the sql query is run using t-sql statements, the query completed execution in about 10-12 seconds. When the same query is written in a stored procedure without making any changes in the SELECT query (only adding a date parameter), it does not generate any result. I waited for about 1 hour for the stored procedure to give me the result but it did not. Can anyone help me out with this problem Thanks in advance. You are using between to compare a string. This NEVER works. Try this: WHERE ( sim . TRANSACTION_STAMP BETWEEN CAST(CONVERT ( CHAR ( ...Show All

  • Visual Studio 2008 (Pre-release) XBAPs = This application type has been disabled.

    Whenever I try to run an XBAP I get "An error occurred in the application you were using", with details: "This application type has been disabled." Any ideas on how to "enable" it This is with .NET Framework 3 June CTP, IE7 Beta 3, Windows XP SP2. I was also getting the same error "This application type has been disabled" with IE6 before I installed IE7. Thanks... Are you running IE7 as another user If so, it may be that you haven't logged in as that user. Alternately, can you delete the IE cache, the ClickOnce store and try again ...Show All

  • .NET Development .NET 2.0 breaks .NET 1.1?

    Hi! I just heard that there is a problem with something in .NET 1.1 when .NET 2.0 is installed on the same computer.. That there is some logic in .NET 1.1 that fails. Does anyone knows what this problem is And if so any workarounds I have tried to search around but did only find this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=171977&SiteID=1 which didn't say that it was a problem with both 1.1 and 2.0 on the same computer. Thanks for any answer, --Rune in my expirince noo the is noo issue... i am working side by side... there is no issue...but one of my frd found an issue... all the time frame work run was 2.0. he unintaled and reinstal 2.o now now probs... ...Show All

  • Visual Studio Express Editions Removing Class Designer was a bad decision

    Hi I just wanted to drop my 2 cents after previewing the Express Edition. I beleive it is a very good move but not quite there yet. If there was a chance for VS to be the "Academic" IDE’s of choice, it would be the class designer power to visualize the whole project. See, there are many tools to visualize you project in Java for instance and even editing it - which are very helpful to understand the concepts for beginners. It is hard for me to beleive the acadcemics actually make the effort to switch to Express edition ( changing slides, materials,...) when there are no real advantages. In my opinion removing class designer slows down the development process and it just confirms the mere competetion forced you gu ...Show All

  • .NET Development Fastest way to find the position of a record?

    Does anyone know a way any faster to find the position of a record that using the COUNT statement and count all the ones less that that records key The "position" of a record is a very database dependant feature. Some database systems like SQL Server do not have a concept of a record position, so you can use COUNT to get an approximation (but what happens if someone deletes records for example after you get the position but before you use the position). With SQL Server you can also use server cursors to position on a specific record. Oracle has the concept of ROWID that can be used to get the position of a record. Microsoft Access has some ISAM like features you can use to position on a re ...Show All

  • Windows Forms DataBound ComboBox

    Ok, I have a form with a datagridview and a details view next to it for each record. This datagrid is bound to DataBinding1, let's say. In the details pane, one of the controls is a ComboBox that is bound to a customer list / customer ID (DataBinding2). The customer name is the display member, and the customer ID is the value member. The data populates fine, and the ComboBox in the details view changes appropriately as you scroll through records. HOWEVER, when you change the value of the ComboBox, it fails validation, as if it is trying to store the display member (the name, not the numeric ID). I can type a simpe id that exists in the Customer database (i.e., 1), and it will pass validation and store the changes. Any ideas why it is not s ...Show All

  • SQL Server OLAP Connectivity

    Hello all, We have Analysis Services 2000 with an OLAP cube. The cube has a role allowing access to all Windows domain users. From my development workstation we can connect to the cube, using Excel or a HTML page with the Office Web component, logged on as any user. However, from any other computer in the domain, and logged on with the same users, we cannot create a connection; the OLAP server is not visible! The client computers are all the same: Windows 2000 Pro and the users all belong to the domain. Why can we not connect Has anybody ever experienced this sort of problem We need to solve this by Monday, our deadline to show our OLAP application to the users. I would really appreciate somebody's help. Thanks in advance, J ...Show All

  • Visual C# Generic Multi-Dimensional Arrays Comparison

          Hi,     I need to compare multi-dimensional arrays in a function which takes 2 multi-dim arrays which can be any type(int, double, bool...etc). Comparison is done by Object.Equals() of each value in each index of the arrays. As a result, Generic and  Multi-Dimensional is what I need to combine. Any idea I compare 1 Dimensional-arrays with the below code of mine: public static bool AreArraysEqualByVal<T>( IList <T> src, IList <T> dest) { if (src == null || dest == null ) throw new ArgumentNullException ( "source or destination array is null." ); if (src.Count != dest.Count) { Debug .WriteLine( "Array lengths were not equal." ...Show All

  • SQL Server alternate colors

    Hello all, I am using sql reproting 2000. I have areport which spans a number of pages...say for every radio station, the report starts with a new page. On every page, I must have alternate row colors(white and gainsboro). It was easy to do that. The issue is, for every new page the report renders for every new radio station, the first row must be white. Say...Radio Station 1, the alternate row colors will continue...i.e white and ganisboro. But for radio Staion 2, the first row should be white again. I hope I have explained it clearly enough. For alternate row colors, I use either an expression - IIF(RowNumber("ds_LineUpByFeedDetail") Mod 2, "White", "#dddddd") OR a VB Function in CODE window. ...Show All

  • SQL Server Errors in the metadata manager

    Good afternoon, I'm having the following error when I run my mining model. Errors in the metadata manager. The dimension with the ID of 'TMP ~MC-ID' cannot be found in the '' database. I think the error is in caseprocessor.cpp at the ProcessCase method. There's a code snippet below: The intention of the following code snippet is to run over the attributes of a case and put them on a vector that holds all the cases. for (UINT iAttribute = 0; iAttribute < _cAttribute; iAttribute++) { if(iAttribute == 0) continue; if(iAttribute == 1) continue; if(iAttribute == 2) continue; if(iAttribute == 3) { vet_termos.push_back(rgdmstatevalue[iAttribute].ch); continue; if (iAttribute == 4) vet_dados. ...Show All

  • Visual C# Index out of Range Exception

    I am searching for a prticular character in a string using IndexOf() method. But i am getting a Index out of range exception . Can anyone tell me why this exception is coming . Please help me out . Thanks in advance a common error is that your for loop is running 1 time too many... for (int i = 0; i < MyString.Length; i++) // good if you run the loop to <= MyString.Lenth, you will have gone 1 character too far.. ...Show All

  • Windows Forms Error calling Application.SetUnhandledExceptionMode()

    Hello, I receive the following error when trying to call Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException) in my VB .NET app. System.InvalidOperationException was unhandled Message="Thread exception mode cannot be changed once any Controls are created on the thread." Source="System.Windows.Forms" I have looked at a couple of C# examples online and they seem to be calling this function before calling Application.Run() in the Sub Main(). However, I couldn't find the Sub Main() in my application. So I wrote the following in the same file as my form: Namespace My Partial Friend Class MyApplication Private Sub MyApplication_Startup( ByVal sender As O ...Show All

  • Visual Studio Menu item in Debug menu?

    Hi, I've looked in all the ctc files of the inc folder but I cannot find the correct group id for the debug/window menu. Thanks for your help, Charles Hi "cverdon", You are correct that these are not defined in the current SDK, and this is, unfortunately, a bug. These files will be included in the November 2006 CTP of Visual Studio SDK V4 which will ship in about 1 month. In the meantime, if this is blocking you, please contact me via http://blogs.msdn.com/aaronmar and I'll see if it would be possible to privately ship you these files out of band. (It may not be though....I'll need to get approval from the right folks inside Microsoft). Thanks, Aaron Marten ...Show All

  • .NET Development Binary Read

    I am looking for a way to read double data in large binary chucks using the ReadBytes command from Binary Reader. I have tried to define a StructLayout since unions are not supported in Managed C++ as shown below: [StructLayout(LayoutKind::Explicit)] ref struct read { // data array for vector [FieldOffset(0)] double * data_array; // data_bytes from file [FieldOffset(0)] array < unsigned char >^ data_bytes; }; And read the data like: read Test; Test.data_array = new double [numrows]; Test.data_bytes = binReader->ReadBytes(numrows); However the program does not like the "array <unsigned char>^ data_bytes" defined in the StructLayout and crashes at runtime wit ...Show All

©2008 Software Development Network