Warren LaFrance Jr's Q&A profile
Smart Device Development HttpWebRequest GetRequestStream throwing exceptions
Hi, I posted for some help on this in another msdn forum, and got some replies that my code was fine, but after a lot of debugging I am still stuck, so I would appreciate your help once more. I am pretty new to the .NET world, getting started on C# after learning a little Java. I am working on a handheld application that simply launches a browser and uploads some GPS data. The app used to work fine but after returning to it from a couple weeks on another project it seems to be completely broken. The problem is in the HttpWebRequest's GetRequestStream() method. It seems to always return an exception on the PPC, but the same code in a WinXP development environment executes it flawlessly. At first it seemed to be a simple web exception, but a ...Show All
Windows Forms Appending textbox outside of Form Class
I want to append text to a textbox on my Windows form from a class outside of the Form1 class. I tried this: Form1.textbox4.AppendText("text to be added"); However, I get the compiler error: "An object reference is required for the nonstatic field, method, or property" I'd appreciate any suggestions you could offer. Robert Hi Robert, In it's simplest form you can do this: 1) Add a property to your form code that modifies the text box for you (your text box is protected and therefore can only be used within the context of the form class code). public string MyTextboxText { set { textbox4.Text = value; } } Now you can append the text from you ...Show All
Visual C++ Matrices of constant data
Why is it that the compiler can convert from 'int *' to 'const int *', but not from 'int **' to 'const int **' An example is included. Any thoughts would be appreciated. #include <stdio.h> int main() { int A[] = {0, 1}; A[0] = 2; const int * X = A; // ok printf("%d\n",X[0]); int B[] = {1, 2}; int C[] = {3, 4}; int * D[] = {B, C}; D[0][0] = 5; const int ** Y = D; // not ok //int ** Y = D; // ok printf("%d\n",Y[0][0]); return 0; } Mike Danes wrote: int A[]; is actually int const* A; Whether or not the [] form is used for the D pointer makes no difference in this case, the standard forbids the conversion either way. ...Show All
Windows Forms Pushing data into winforms clients.
Anyone have any advice on pushing data into winforms clients I need winforms clients to listen for changes made to a sql server 2000 database and automatically update itself. Is this possible Perhaps using .net remoting I was thinking about how to do this, and my line of thinking is this: I would write a c# service which would have a list of all connected clients and methods which would be called to update the database. So the client applications wouldn't call sql server directly, It would call methods on the service letting the service know it wants to update something on the database and if successful, notify all connected clients. Does that sound correct How do the big boys make apps like instant messengers, games, etc. ...Show All
Visual Studio Team System Limit Assigned To values based on user?
I'd like to have different values for the "Assigned to" field based on the user. In other words, testers will only be allowed to assign bugs to a tech lead, but developers and project managers will be able to assign to any developer. I have these groups set up in Team, and can use them in cases like "<READONLY for="MyCompany\TESTERS" />", but can't figure out how to change the values based on who's logged on. Is it even possible If not, is there a way to default to a certain user or value and not allow some groups to change it >> I assume that means a PM and DevLead can also assign a new bug to any dev Yes. And for what it's worth, we could live with the new bu ...Show All
Visual C++ MSVCR80.DLL Unable to locate component
Hi, I am trying to use Visual C++ 2005 to build the project which was create by Visual C++ 2003. When I run the code, an error message pops up. "MSVCR80.DLL - Unable to locate component" who knows how can I fix this problem Thanks a lot! Yang Hi George, I compiled with the Microsoft Visual C++ 2005 express edition, commandline compiler apache2 on windows. After successfully compiling for Release and the debug version I receive the following error on my screen that the msvcr80.dll file is not found. I am not using the IDE to compile the application, I used the commandline. 1) I run the environment variables: C:\Programme\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" "c:\Programme\Microsoft Platfor ...Show All
Visual C# extracting data from comma delimited string
hi, im using c#, have a comma delimited string and i wish to split it. string example is: john smith, freddy, mark/,jones, john i don't wish to split where a comma is backslashed. any ideas thanks. andrej, your latest code gives me this: TechRepublic.com CNET.com News.com Builder.com john/ smith GameSpot.com any ideas ...Show All
SharePoint Products and Technologies Login/Logout of Sharepoint Portal 2007
I am new to Sharepoint 2007. I noticed when testing with different userids that if I login with userid 'A' then switch to userid 'B', close the browser, open a new browser session, the userid 'B' is still logged in. Is there anyway that a user can be logged out of sharepoint when they close their browser Ultimately If I opened a browser from my machine (userid 'A') I would want it to log me into Moss but not if I login from another machine. Thanks What type of Auth are you using (my guess is NTLM). If so, IE has a setting to automatically provide auth based on the current user. Check this setting. I can say that the log on/off process IS a bit flaky. ...Show All
Visual Studio Team System Reuse of Schema & Data Comparisons?
Hello there, Is it possible somehow, to save our schema and data comparisons Even in details I mean, that not only the connection parameters, but the synchronization properties, directions also. Situation: I have 3-5 databases with the same schema, but different data content. I know, that several data (even some records in a table) different, but will not be synchronized with the master instance, other data will. Is there a possibility to save these once-it-had-been-set-up-why-to-set-up-again comparisons Thanks in advance. Hi Mairead, I'm asking, that individual, one-on-one schema and data comparison session can be saved. 1 on 1 comparisons are OK, I don't think that 1 on N comparisons are needed. The data compare session ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cg Shaders?
I am reading the Cg Toutorial book right now and it states that Cgfx file extension is .fx. Can these shaders be used in XNA. I am confused at the difference between Cg and HLSL. Can anyone explain what is the difference between these languges Should I read a book on HLSL instead Actually, the original version of Cg and HLSL are identical -- they were designed by the same people. However, Cg and HLSL have evolved in different directions (I believe Cg has interfaces now, for example), so later code might be harder to port. ...Show All
Visual Studio Dynamic Requests Issue
Hi, We have a problem with reports using dynamic requests. These reports have beeen made by another team. These dynamic requests are multiline, for example : ="SELECT FirstName, LastName, Title FROM Employee" & IIf(Parameters!Department.Value = 0, ""," WHERE (DepartmentID = " & Parameters!Department.Value & ")") & " ORDER BY LastName" ...instead of... ="SELECT FirstName, LastName, Title FROM Employee" & IIf(Parameters!Department.Value = 0,""," WHERE (DepartmentID = " & Parameters!Department.Value & ")") & " ORDER BY LastName" This does not compile with our workstations (we have SQL Server 2000 (the client only), Studio .NET 2003, and Reporting Services installed separatly because it was not with the CSL Serv ...Show All
.NET Development read xml from internet
Hi, I want to read an xml file from the internet. The file is provided by a web site and is a result of a query. More precisely, this link http://www.localcallingguide.com/xmlprefix.php npa=250&nxx=423 produce an xml file. How can i get it in .net I have tried a webrequest and I always get a timeout exception. Thanks There is nothing XML can do if you can't read the file with WebRequest. You can provide your file to XmlReader.Create(uri) or XmlDocument.Load() and it will create WebRequest for you and read XML from this URI. ...Show All
Microsoft ISV Community Center Forums how to convert excel to tiff file using api or vba
hi friend, i have a requirement where i have to convert excel file to tiff file by programming. since there are about 100 files to do with , it is hard to go with manual process. pls help on this. any suggestion will be appreciated. thanks stefen ...Show All
Visual Basic How to sort a TreeView numerically
I have a treeview with each of it's nodes starting with a 6 digit hex number. I want to be able to sort the trees nodes so that the lowest numbered node is at the top and the highest is at the bottom. I do not want the nodes children to be rearranged though. I notice the tree has not a sort method (that I could find). Thank you for any help, Troy I just ran into a worse version of this problem that I hacked through this way: /// <summary> /// Used to prevent sorting of certain nodes in the TreeView. By /// default, will peg the node to position 0; /// </summary> public class FixedPositionTreeNode : TreeNode { public FixedPositionTreeNode() : base () {} public FixedPositionTreeNode( string ...Show All
Visual C++ Outlook, Word instantly shut down (Office 2003, 2005)
I created a program that makes an outgoing http get or post message and it works fine. However if Outlook or Word are running on the machine where this program is running, those apps instantly shut down completely without any prompting to save and no save happens - basically ripped right out of memory. I don't have the option of trying another port number either. Any ideas For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups where folks will be familiar with similar topics. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
