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

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

Blake01

Member List

Rob Ski
MaggieChan
R.Tutus
AsifHameed1
prog.gabi
AndyMc
MichaelJHuman
curiousNovice
Brandt
KitWest
AlexBB
Andrew Zhou
Luis Esteban Valencia Muñoz
João Cunha Lopes
SD Diver
JGP
Arunkumar.B
MarkNi
davidacoder
Kzin
Only Title

Blake01's Q&A profile

  • Software Development for Windows Vista Problem with regsvr32 in vista

    Hi, My OS is Vista 64bit. And I've tried to write a native 32-bit COM DLL and use regsvr32 to install it, and the succeed message showed up. however, I found nothing was added in the registry. How to fix the problem By the way, I know there is both "system32\regsvr32" and "SysWOW64\regsvr32", and I've tried both. help me!! many thanks!! Thanks for the reply. It is true that I am trying to register a DLL that have a CLSID. Although it fails to add anything in the registry via Regsvr32, I can manually add the key into registry via Regedit (and everything works). However, it is too bad I can only add the key manually. I don't understand why the Regsvr32 works pretty well in Windows XP and 2003(3 ...Show All

  • .NET Development PropertyInfo.GetValue[need help]

    Hello firends, I m trying to create a generalized objectArray sorting function whose prototype will look like this public object[] Sort(Object[], strPropName) The reason for creating such a Function is that I call some WebMethods of a webservice. Each webmethod returns an object[] but ,whose type differs. and i need to sort those object[]. i tried this public object [] SortObjectArray( object [] objectArrayToSort, string propertyName ) { int size = objectArrayToSort.Length; Type type = objectArrayToSort[0].GetType(); Object tempObject = System. Activator .CreateInstance(type);// this will act as temp obj for swapping during sorting for (int i = 0; i < size; i++) { for (int j = i + 1; j ...Show All

  • Windows Forms Custom ToolTip wouldn’t show content

    Dear Experts, I have been using a piece of sample code to show Tooltip on data grid. The last page of this link has the sample: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/wnf_custDatagrid.asp . Here is my modified code. It worked in the last couple of days. Now it refuses to show any thing. I could see the correct data been loaded to the tooltip control if I uncomment those two msgboxes. Thanks! Public Class MyMain Private hitRow As Integer Private toolTip1 As System.Windows.Forms.ToolTip In MyMain_Load Me .hitRow = -1 Me .toolTip1 = New ToolTip Me .toolTip1.InitialDelay = 300 AddHandler Me .d ...Show All

  • Visual Studio Express Editions Serial Port: Writing Codes in HEX, not in ASCII

    Msgbox ("Hello World") :) I have some troubles with my serial Port. This time, I am adressing a DLP Projecotor. (PJ). The PJ listens only to commands it receives in hex format. The command 02h 01h 3e 03 makes the PJ switching on. When I write ComPort.Write("02H" & "01H" & "3E" & "03H") to the PJ, my Serial Port Monitor(monitoring HEX) says 30 32 48 30 31 48 33 45 30 33 48 Thus I wrote some ASCII to the PJ and the Oj does nothing. When I write ComPort.Write(Chr(2) & Chr(1) & Chr(122) & Chr(3)) my portmonitor is saying: 02 01 7A 03 and the PJ reacts correctly. It is quite long winded changing the decimal 122 to hex 7a. Now we come to my question: Is there a chance of ...Show All

  • Visual Studio Team System BVT's without Team System Tester Edition - Possible?

    I'm trying to create a Team Build that will run all my unit tests as part of the build. The problem is though, when going through the wizard it allows me to select the vsmdi file, but there is no test lists available in the drop-down (and since I don't have team tester edition I don't think I can create new test lists). We can still run the tests in our Team Software Dev Edition, is there a way to make a Team Build that will also run all the tests as part of the build process without purchasing Team Tester Edition I tried doing this in my TfsBuild.proj: < MetaDataFile Include = " $(SolutionRoot)\ShopFloorTeamBuild\ShopFloorTeamBuild.vsmdi " > <!-- <TestList>BVTList< ...Show All

  • Windows Live Developer Forums Activities Menu Unavailable

    I've noticed a number of instances with users not being able to access our P4 application because the Activities menu is consistently unavailable.  I have witnessed this situation myself over several  home broadband connections and the Activity list comes up with the following message: "List of games or activities is temporarily unavailable. Please close and try again later." I initially thought this was due to a restriction on the client machine's network, but this has happened to me in my own home after a recent move.  I've changed nothing...even my provider is the same, but the Activities menu is inaccessible from home. Any thoughts I have the same issue. but if i create a new passpor ...Show All

  • Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints

    Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " I was having the same issue. Thank you Long Xue. I del ...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 Studio 2008 (Pre-release) ContextMenu propagation using HierarchicalDataTemplate?

    Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects Best regards, Henrik Dahl Henrik, For a comprehensive overview of what to return/throw from ConvertBack, I suggest you read the second section of this: http://www.beacosta.com/2006/07/how-do-i-encode-xaml-using-value.html ...Show All

  • Smart Device Development ComboBox Control DataSource DataSet/DataTable

    Hello, I am developing a Smart Device Application using Visual Studio 2005 for Windows Mobile 5.0. I have placed a combobox control on one of my Forms. I have written the code that sets the comboBox DataSource equal to a dataSet returned from a private method. Question: whenever I run the application the comboBox is not populated with any data and is blank. I checked my code and everything is correct. I walked through the application in Debug mode and the DisplayMember and ValueMember property of the comboBox are properly declared. After a couple hours of wondering what was wrong I changed the DataSource of the comboBox to a DataTable and the comboBox is now populated with the data. I was under the impression that a DataSet and DataTabl ...Show All

  • SQL Server shrink tempdb

    I have a sql2000 server that has a 24 /7 uptime. The tempdb size is increasing rapidly. it was 4 Gbs and i restarted the sql server to shrink the tempdb size which worked fine. but now after 1 week then tempdb size is almost 1.5gbs. Is there anyway that i can shrink the tempDb without restarting it. Asking the users to stop using for a certain timeframe after every month or so seems like a hassle for the users. Yes I have already had a look here. As I mentioned my db requires a 24 by 7 uptime. The first option in this doc requires a restart. The other 2 options require that no uses are using the Tempdb. How can I know that no users are using tempdb. Since its heavly used, i dont think there will be a mom ...Show All

  • .NET Development asp.net 2 assign queryresultset to array

    I have a query that returns all values from one field for the req_id specified I need to put the result into an array so that I can then assign individual values to textboxes. There will never be more than 8 values. Tried using dbreader but that would only take one value from field. I see, this line dbReader2.Read() reads the first value then the while loop takes over and reads the rest. I initalised the datareader to soon. While dbReader2.Read Request(index) = CStr(dbReader2("request").ToString()) index += 1 End While Thanks for your help, all values now getting displayed. ...Show All

  • .NET Development C++ data types and .NET CTS

    Hi All, .NET has a common Type system (CTS). And .NET have classes for these common types in its System namespaces. Am I right And If I am right untill now, then how can we use the data types of C++ while we are writing managed code in VC++. Ashish DT is right, modern languages all pretty much agree what a native data type looks like. Having a 32-bit CPU and FPU around for the past 15 years pretty much set those into stone. There is no such agreement for "compound" types such as struct, array or string; you'll find the System.Runtime.Interop filled with classes and attributes to translate these between implementations. Just to give you an idea how completely ingrained these native data types are: MSFT 6 ...Show All

  • Visual Studio Express Editions Getting and displaying the build version

    Hi, I am semi new to VB.net and am building a program that actually works! What I want to do is to display the build version in my form that VB gives the form automatically. How do I do this I dont want anything fancy just build:1.0.0.1 or what ever it is at the time. Thanks Add the label somewhere on your form, name it Version and put the text value to something like: Version Then in the code you should have the 2 things: Private Sub YOURFORMNAME_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Version.Text = String .Format( "Version {0}" , My .Application.Info.Version.ToString) End Sub Private Sub Version_Click( ByVal sender As System.Object, By ...Show All

  • Visual Studio Disaster Recover Features?

    Has VSS 2005 introduced ANY features to support disaster recover requirements Systematic data replication to a duplicate database instance as one example Unfortunately not. VSS is remaining to be a simple SCC program with file based database Analyze tool was significantly improved for fixing errors in the database. Overall reliability of working over the network was also improved. However new tools to create systematic the backup of the database were not added. These functionality is still expected to be provided by other tools. ...Show All

©2008 Software Development Network