ChrisMcV's Q&A profile
Visual Basic How do I declare a string and pass it from a Visual Basic GUI to a C++ DLL?
How do I declare a string and pass it from a Visual Basic GUI to a C++ DLL Now I am debugging successfully. I can debug either on the Visual Basic end or I can debug on the C++ side by using the DLL's project file and declaring the compiled VB code as the launching executable. I have narrowed the problem down to the way that I am declaring and passiing the string variables. It depends on how the function is declared. Check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconConsumingUnmanagedDLLFunctions.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcn7/html/vaconC ...Show All
.NET Development TimeSpan or Stopwatch not as accurate as Environment.TickCount
Can someone, maybe preferably from Microsoft, confirm a behavior that I'm noticing concerning the lesser accuracy of using TimeSpan and the Stopwatch object to time something in milliseconds versus using Environment.TickCount. Specifically, I'm noticing that in my Ping class that when I use Environment.TickCount to measure how long a host responds to my message, the result in milliseconds is accurate compared to the results when I use Ping.exe from the command prompt. However, when I measure it using either TimeSpan or the Stopwatch class, the results are off about 100 to 200 milliseconds (more). Here's pseudo code of how I'm ...Show All
Visual Studio 2008 (Pre-release) How to force a custom panel to accept only specific children
What is the mechanism to force a custom created panel to accept only specific custom controls For example <myNamespace:myPanel> to accept only <myNamespace:myControl> as children and to throw an exception when a different type is added in markup. I have looked into IAddChild but with no avail. That is an excellent idea. For my scenario I also need to store the "order" of the children (which is not the same as the order of the collection) so I can use the custom UIElementCollection for this purpose. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex buffer best practices for particles
Hi, I'm trying to create a simple particle system demo. Presumably, each particle will be represented by an ellipse or some other primitive. Would it be advisable to have a separate vertex buffer for each of these ellipses, or would it be better to create some sort of massive vertex buffer to store all the particles Given that particles have finite lifespans, it would seem easier to just create a separate vertex buffer for each one, but I have a possibly irrational fear that this would be horribly inefficient. Any recommendations Thanks! I think the best way is to use a dynami ...Show All
Visual Studio Team System I can't find the button of "start selected test projcet without Debugger".
I can't find the button of "start selected test projcet without Debugger". Where can I find that I am using Visual Studio 2005 Beta 2. There is the button of "start selected test project with Debugger." I would like to see the result of code coverage. Hello, If you are using Beta2, this command may not be available to you. Does the following workaround work for you 1) Set the desired test project as the Startup project. 2) Press Ctrl + F5. Thanks. Winnie ...Show All
Software Development for Windows Vista Registry Access in Managed Form Application
Hi, I'm developing a C# .Net 2.0 application that requires read/write access to the registry. I'm using the following code: using Microsoft.Win32; ... regkey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE", true); regkey = regkey.CreateSubKey("MyCompany"); On Vista the new permissions lock down, I get the registry access denied exception. How do I elevate the permissions level so that the user at least is prompted to allow access Thanks, Mike Well I've worked out that I need a manifest file to let Vista know that the application requires elevated permission ...Show All
SQL Server FTP from a mainframe (z/os)
Being that this issue first surfaced September 2005 and it's now six months later (March 29, 2006), has the problem with recognizing VMS datasets (not requiring a '/') been addressed One solution is to use IIS and go VMS -> IIS. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=317604&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) How to run a VB script file to control WPF controls at run time.
Challenges: I need sample code on the scenarion mention below. "How to run a VB script file to control WPF controls at run time." Please guide me in this aspect. i wiil be grateful if i get guidance on the same Thanks. shruthii You can build VB/XAML applications. Install VS "Orcas" preview after Visual Studio or VB Express and you will see the VB Project templates. Using VB you can control WPF controls at runtime. VB Script is something different. VB Script is an unmanaged script engine. I'm assuming you are not really asking for VB Script support, but ...Show All
Visual Studio Refreshing PLKs
Hi, We recently obtained a set of PLKs, but need to refresh the information due to some changes (need to switch from VS 2005 to VS 2002 as minimum level) and obtain a new set. How would we go about achieving that Maybe that is the case. That would, however, imply that there is no way to retain a product's name beyond a single version, no For example, how would you go from version 1.0 to 2.0 of the same plugin if there is no way to refresh the PLKs ...Show All
Visual Studio Express Editions VStudios Install Problems
I have attempted to install Visual Web Developer several times. This is the first install. I do not have any previous (Beta) installations to remove. I do use .NET 2.0, however it does not appear to be a Beta version. In any case, I have attempted installation once after removing it with no difference and no success. Removing .NET 2.0 does play havoc with OneCare. The only other anomaly might be that I am also using the Beta Release of IE. In all cases, the result is a process that hangs with the setup ribbon at the end ultimately failing to respond and requiring setup be terminated with Task manager. Suggestions would be appreciat ...Show All
Visual Basic Reading a string from binary file results in "string
I sure hope I can get help with this. I seem to have a simple problem. I wrote an entire program without a single problem with Visual Basic 2005 Express but now I'm having a little trouble. When I read string data from a binary file I get "string (no closing quote) This presents a problem when I do a string comparison or when I try to put string1 and string2 on the same index line of a listbox. (You only see string1). I've tried so many different things including using fixedlengthstring but that simply caused more problems. Lets say I want to read a string that is 19 letters long starting at location 1 in the binary file, how do I do i ...Show All
Visual Studio 2008 (Pre-release) What happened to EventTrigger.Actions --> BeginAction?
I'm sure you used to be able to do something like... <EventTrigger RoutedEvent="Blah.BlahBlah"> <EventTrigger.Actions> <BeginAction TargetName="Blah"/> </EventTrigger.Actions> Looks like this has been removed from WPF. Whats the new recommnded way of achieving the equivalent of the above I think you're looking for BeginStoryboard ...Show All
SQL Server Implicit conversions using UDTs
I've written a CLR UDT that basically wraps a COM FILETIME. While using and testing this UDT, I've come across some unusual behavior that I can't seem to track down. My question is this: When I make the T-SQL statements DECLARE @ft dbo.MyFileTime SET @ft = 0x0123456789ABCDEF What's happening within the SET statement My first surprise was that it succeeded. Then I thought, "The hex value, I understand, is implicitly a BINARY or a VARBINARY. Underneath, with those attributes, MyFileTime is also implicitly a Binary or a Varbinary. Maybe it's simply performing a direct assignment " MyFileTime is prefaced by ...Show All
SQL Server SSIS not detecting Oracle Stored Procedure failure
Hi, I figured out a way to execute an Oracle Stored Procedure from an Execute SQL Task by using Declare Begin SomeStoredProc( , , ); End; with an OLE DB connection using the Oracle Provider for OLE DB. The parameters are getting passed in and the procedure executes but if for some reason it fails SSIS is painting the task green and keeps processing. I'm guessing that's because the outer Declare/End statement completed sucessfully. I couldn't get it to work as a function with a return value. :( Is there another way to execute an Oracle stored procedure that I missed Can you call an Oracle stored procedure from a Script Ta ...Show All
Visual C# Designer.cs error
I am getting the following error on a build: Warning 1 The name "Description" is already in use by another component. K:\fms\admin.Designer.cs 2151 0 ok, so I check around in the Designer.cs file and see the following: this .descriptionDataGridViewTextBoxColumn1.Name = "Description" ; // this is the only other line using "Description" this .descriptionDataGridViewTextBoxColumn.Name = "Description" ; /// this is the line erroring out This stuff is all genereated by VS 2005 (C#)....so why the error The textbox columns are different names used in different gr ...Show All
