51ChevyTruck's Q&A profile
Visual C++ How to get the size of a double char pointer?
Basically, I want to get the size of a double char pointer, EG char **x; Not the elements of the individual arrays, but the actual number of elements inside the pointer. I don't want to use vectors or Strings either, I know how to do it that way, but it looks ugly. So if I could get some feedback on this, it would be appreciated. :-) Not sure how you initialize this pointer. But if you do it like this: char **x = new char* [20]; it would have 20 (not yet initialized) elements. ...Show All
Visual Studio Team System Doc chm of FxCop 1.32 and Online Document with problems
Hi All, I'm having problems with projects where are more than 8 rules. My rules stop running and neither the debug runs anything. I am using fxcop 1.312. So, I tried to upgrade the program to fxcopy 1.32. But there are a lot of differences between those versions. So, I downloaded fxcop.chm from the gotdotnet site. But it is with erros in all windows when you try to read a topic of it. I tried to see online documentation of fxcop 1.32, but when you get the url in gotdotnet, the title is fxCop Documentation 1.312.0. Is it correct I am trying to understand what is happening with my rule project cause it runs only with a few rul ...Show All
.NET Development System.Threading.Monitor.Enter (under the hood)
What do the threads that are locked out do when they are locked out And does the Sleep call help get { if(dsUsers == null) { if(IsdsUsersLocked) System.Threading.Thread.Sleep(50); lock(UsersPadlock) { if(dsUsers == null) { IsdsUsersLocked = true; dsUsers = (3 sec call to the database server accross heavy network traffic); IsdsUsersLocked = false; } } } return dsUsers; } The sleep call appears to help when dealing with 100 or more threads but i don't know what really happends to the thread that are locked out. According to some thread states they say they are [sleepwaitjoin] when the sleep is on and [running] when t ...Show All
SQL Server Databound image in report header
After finding out that SSRS doesn't directly support databound items in the header or footer, I found the workaround from Microsoft yesterday at http://msdn2.microsoft.com/en-us/library/ms159677.aspx . The problem is that their solution only works for the first page of the report, so it's basically useless! Because this is an image, it also means the workaround of using a parameter doesn't work, either. Does anybody have any advice Is there a solution to this problem Robert, I am in the same fix regarding the databound image situation. I've used the hidden text box field inside the body of the rep ...Show All
Visual C# C# InputBox to use with a Console Application
Hi everyone, Anyone know of an InputBox that can be used with a Console application to practice coding C# I am looking for an InputBox, similar to the one in VB.Net, (or the Java showInputDialog) which would be analogous to an output MsgBox, where one could practice writing code using the console, compile, input variables with the InputBox, and get the output results using the C# Msgbox( ). Or could an InputBox, from one of the other .Net Framework languages be usable in such a situation Thanks. You can add a reference to Microsoft.VisualBasic assembly and then use method Microsoft.VisualBasic. ...Show All
Software Development for Windows Vista Replicating State Machine Workflows
I am wondering if it is possible to replicate n number of state machine workflows from within the state initialization activity. Thanks I don't think that solution would work, as the activity would be an InvokeWorkflow, not the child state machine workflow. From within the workflow, you can use 'this.WorkflowInstanceId' or from an InvokedWorkflow, you can use 'invokedWorkflowActivity.InstanceId'. Arjun ...Show All
Visual Basic XML comments
My group is attempting to standardize on XML commenting for all of our classes and methods. We like the "Insert comments" option in VS 2005 but would like to add an additional tag <history> to the comments section. I know that we could probably do this manually each time we add a new class, but I would like to be able to have this new section come up automatically when we insert the comment. Is there a way to modify the XML comment block that is produced when you use the "Insert comment" function so that the new <history> tag will be included in the text Hi, awperli, No ...Show All
Visual Studio VSS 2005 and SourceAnyWhere
For internet access, it seems SourceAnyWhere works much faster and more stable than VSS 2005. However, SourceAnyWhere as an add-on product for VSS costs nearly $300. I'm wondering if VSS 2005 production release version is going to be much faster than the current beta version. This is what I'm concerning. Hi Alfredo, thanks for your reply. VSS 2005 may be OK for basic scenarios. Actually according to our experience the checkin/out and other basic operations of VSS seems to be slow. For our large team of over 100 offsite users across the globe, high performance of internet access ...Show All
Software Development for Windows Vista RPC_E_WRONG_THREAD in Vista; but not others
RPC_E_WRONG_THREAD I am working at company that uses COM and DCOM to provide OPC data. Their application works fine on all OS (XP Pro requires some security tweaking to make the data server available externally). Vista throws RPC_E_WRONG_THREAD when I try to access the underlying COM data server. Is there a Vista patch or security setting to allow vista to do this. Windows 98, Windows 2000 Pro, Windows 2000 Server, Windows 2003 Server, XP Pro all run it! Can anybody shed some light Should be simple COM interface from VC++6.0 to VB6.0 dll. Works fine on the other platforms ...Show All
.NET Development TableAdapter problems
Error 8 C:\Inetpub\wwwroot\RECS LS\App_Code\DataAccess.vb(15): error BC30516: Overload resolution failed because no accessible 'Update' accepts this number of arguments. / Public Class DataAccess Public Function GetTrailers( ByVal Trailer As String ) As TrailersDataSet Dim trailersTableAdapter As New TrailersDataSetTableAdapters.TrailersTableAdapter Dim trailersData As New TrailersDataSet() trailersTableAdapter.Fill(trailersData.Trailers) Return trailersData End Function Public Sub UpdateTrailers( ByVal Location As String , ByVal Status As String , ByVal Commen ...Show All
Windows Forms All Green Lights and No Critters
I have installed 1.2 Terrarium on 2 machines of mine. (Behind a firewall, port 50000 opened and NAT support checked) All lights are green but i dont get anything coming into my terrarium. I have this thing running for at least 24 hours so i know it isnt just a shortage of critters. Something else has to be wrong, but nothing is showing a ...Show All
Visual Studio Express Editions GDI+ Mapping Question
I would like to map world coordinates to device coordinates, but I'm a little unsure on how to do it. Suppose I have world extents of (100,100 - 1000,1000) and device extents of (20,20 - 300,300). Page extents are in pixels and identical to device extents. Can someone give me a clue on how to do this. Thanks hi, i'm not sure what do you mean by that , what i know about this is that you don't have control on device coordinate http://www.bobpowell.net/coordinatesystems.htm do you mean scrolling best regards ...Show All
Microsoft ISV Community Center Forums Why Excel 2003 keeps PivotItems with zero record count after refresh?
After a pivot table is refreshed, if some pivot item is no long exist in a pivot field, the pivot field drop selection still show that pivot item to allow user to select. Selecting this kind of pivot item will lead to no data showing at all. This is no good. I perfer Excel will remove zero record count pivot item from the pivot field drop down selection box after a refresh. (I don't mind Excel keeping zero record count pivot item internally (this is good to preserve manual sort order of pivot item -- one refresh may return zero record for a pivot item, next refresh may have some records returned), but never show this pivot it ...Show All
.NET Development CLR Profiler for VS 2005 RC1?
Is there some place I can download CLR profiler for VS 2005 RC1 I tried CLR Profiler Beta 2 on RC1 applications, and the profiler dies with an exception. Searching on Microsoft's site only gets me to the Beta2 version of the CLRProfiler. Thanks Pawan Hi, Looking at the release schedule, I think only an updated version of the profiler for the RTM version will be made available after the release of VS2005 on Nov 7th. Regards, Vikram ...Show All
Smart Device Development How do I know what files are required?
I have a program that I have been working on for some time, and it is almost finished. The problem is that when I reboot the device (not a pocket PC), the program won't run any longer, and it gives no clues as to the reason. If I deploy through VS.net, it works fine, and continues to work until I do a reboot. I need this device to function by itself. How do I know what files I'm missing if the program doesn't tell me Note you can not deploy 'selected' files of NETCF. That won't work because it’s not enough to just copy files and that would be EULA violation. To preserve CAB file after installation please se ...Show All
