moggel's Q&A profile
Smart Device Development can VS2005 beta 2 work with SQL server 2000 to create mobile applciation?
Hi there, i would like to know can VS2005 beta 2 work with SQL server 2000 instead of SQL server 2005 CTP to create mobile application. Do SQL server 2000 support mobile server anyone can answer my question...thanks !! I mean connecting directly to the server. Just like how it is been done for windows applications. However as hard as I tried I can never do that. DOes that means it can only be done through data synchronization or RDA ...Show All
Visual Basic Code a new paragraph!!
I have an application which loads or writes a configuration file, but up till now it can only store one variable (i want a new variable on a new line rather than an entire line of variables seperated by '&'). EDIT: I have load and save the configuration file through an invisible richtextbox called 'txt_editor'. Its multiline, and written to via code. This is why i can't have new paragraphs until i get help. The following example shows how i set the richtextbox to read the variable and then saves it. I want it to read: location= defaultdir= but the following code only writes 'location=' because i dont know how to write parapraphs. P ...Show All
Visual C# Loading .pvk file
Dear all, I want to use digital certificate file and the correspoding private key file instead of using 'KeyContainer' things which all the sample code of MSDN for signing and veryfying data. There are some methods loading digital certificate (.cer, .der) file and make new instance of X509 object but, I didn't find the method for loading .PVK file for getting private key data. Does anyone knows how There's no direct framework support for this, but with the help of a bit of CryptoAPI, you can still take advantage of the X509Certificate and RSACryptoSer ...Show All
Windows Live Developer Forums Connection problems in game/app
Hi I've been testing my game since it got approved and I've found that I cannot play with my contacts. My game is hosted in my own web server running in the same subnet as the computer from where I'm connected. I could play with my contacts using msgrp2p.xml file, but from the page it never calls the Channel_OnRemoteAppLoaded function. I think it has something to do with connectio speed to the server, since I can get faster from here to it. I've tried to delay the Initialize function call 1 or 2 seconds when the user comes from the subnet but it doesn't work. Any idea Thanks L I've got it. It was a prob ...Show All
.NET Development Why doesn't this work?
Create a console app, add an App.Config, add this element: <connectionStrings> <add name="test" connectionString="string in config" providerName="" /> </connectionStrings> // console app using System; using System.Configuration; // add reference namespace ConsoleApplication1 { class Program { static void Main( string[] args ) { ConnectionStringSettings css = ConfigurationManager.ConnectionStrings["test"]; Console.WriteLine( css.ConnectionString ); css.ConnectionString = "modified"; // run time error here - why Console.ReadLine(); } } } ...Show All
Visual Studio Express Editions making a default button
Hi!! I’m writing an application that the user write a number in a textbox and then press a button to process a sub. I want the user write in the textbox and when ends press Enter and call the same sub. Is this possible Thanks for the help. Well, You could do something like this (I'm sure there is probably an easier way): Public Class Form1 'Global Variable for checking for Enter Private enterEntered As Boolean = False Private Sub TextBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown ...Show All
Smart Device Development How to get the IMEI of a smartphone (WM5)
Hello, I need to get the IMEI (or serial number) of a smartphone in order to use it for security matter. I don't need to make phone calls or whatever but I want to compare it with a number written in my application. Do you have any clue for this Regards, Agnes I'll give it a try... I've done some testing on this (without success) on a "Windows Mobile 2003 for Pocket PC Phone Edition" machine (Symbol MC9062) using TAPI. The logic behind my test was that everything that was supposed to work with the Phone hardware was supposed to be supported by TAPI or exTAPI (or at least by RIL). What I was using was lineGetGeneralInfo() to ...Show All
Visual Studio Express Editions relate an extension to my application?
Hi. How can I set windows to open a type of files with my application. like a file.doc will be opened directly by Word. I want that my file.ext will be opened by MyApplication.exe can anybody give me the code to do that... Thanks This is something that needs to be done during installation, and unfortunately it isn't supported by ClickOnce deployment, the only deployment technology supported by Visual Basic Express. If you have the full version of Visual Basic you can specify file associations in the File Types editor for a Setup and Deployment project. The following topic shows how: http://msdn2.microsoft.com/en-us/library/4fcx9 ...Show All
Visual Studio Team System problem backup the tfs database
i wanna to backup the team foundation server content database. therefore i created a job. by executing this job, i get the following error: Date 02.12.2005 11:22:31 Log Job History (Backup STS_abc_1) Step ID 1 Server abc Job Name Backup STS_abc_1 Step Name STS_abc_1 Duration 00:00:00 Sql Severity 16 Sql Message ID 3013 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message Executed as user: abc\tfsadmin. The backup of the file or filegroup "sysft_ix_STS_abc_1" is not per ...Show All
.NET Development why does this crash it's too small to crash? :)
CultureInfo * ci = new CultureInfo(S"en-US", false ); NumberFormatInfo* nfi = ci->NumberFormat; double __gc * m1; if (Double::TryParse(Form1::m1->Text, NumberStyles::Any, nfi, m1)) {g->DrawLine(penblack, 100, 0, 0, 100);} Heeeeeeeeelp pleeeeeeeeease, does it have to be this hard to convert a string into a real duh, how could I be so slow :( ok now the only thing is that if the string in my text box isn't the proper format it skips my exception and throws one of it's own: float f = 0.0 ; try { f.Parse(Form1::m1->Text); } catch ( char * e) { MessageBox::Show("Invalid Real ...Show All
Windows Forms Tab Key 2.0?
Ok you could get away with doing this in 1.1 but now in 2.0 its a no go Any help would be great Thanks Joe 'Size Group 5 Leave with Tab Click *** Private Sub cboBU_SizeGroup5_Leave( ByVal sender As Object , ByVal e As System.EventArgs) Handles cboBU_SizeGroup5.Leave Dim k As Keys If k.Tab Then If cboBU_SizeGroup5.SelectedValue > 0 Then cboBU_SizeGroup5.SelectedValue = cboBU_SizeGroup4.SelectedValue End If End If End Sub That's pretty much the way you have to handle it. The only missing item here, I think, is no consideration for Shift+Tab. You co ...Show All
Visual Studio Team System Install Done, what's next?!
Hi everyone, I installed Team Foundation Server on my windows 2003 standard server and everything went well .. but now what There is nothing in the Start Menu talking about it, no icon on the desktop, nothing! I mean, how can I add new project to it create portal for each project where can I read about all that Thanks TFSSERVICE user looks like it won't have the permission (by default) to edit server-level information. However, if you have a user who is in the Administrators computer group on both AT and DT, it should have the permission to add you to the TFAdmin group. Best of luck! Edit: Belay that- the Service Accounts group looks l ...Show All
.NET Development My Typed Dataset is Serializable, a single Row isn't?
.NET 2.0 beta 2 Hello Community, I have a .NET Service which is able to return a whole list of Articles (Typed DataSet: ArticleDS including a DataTable ArticleDS.ArticleDTDataTable ) which works great. I have another Service Method which will return all Article Details when i pass in the selected Row (of Type ArticleDS.ArticleDTRow ) - which contains some columns i need to obtain the Details, i get a System.Runtime.Serialization.SerializationException telling me that ArticleDTRow is not marked as Serialized. The exact Message: System.Runtime.Serialization.SerializationException: Type "TransConnect.ArticleDS+ArticleDTRow' in Assembly ...Show All
SQL Server Yukon SP performance issue
Hi all, I'm using the next-to-latest Yukon Enterprise beta. I have an SP with a complex query and have discovered a strange performance issue. My query includes: * 8 variables, 3 from the SP parms and 5 locally defined * a .NET UDT I have a fairly simple schema: 9 tables of which four are accessed in the query. When I call the SP, it takes ~16s to execute. However, if I replace the parms with static values, it takes ~0.1s! What's going on Please help. Rod O. In general, using local variables in a query condition causes the optimizer to guess selectivity rather than use accurate estimates. T ...Show All
.NET Development Parameters.AddWithValue Output parameter in ADO.NET 2
With ASP.NET 2.0, SqlCommand.Parameters.Add is depreciated and will no longer work. It is being replaced with Parameters.AddWithValue. Can anyone post an example of how to construct an OUTPUT parameter in .NET 2.0 Agree with David Sceppa SEGEAT! -- Simple, Easy and Great Technique! -- Bastari Senior .Net Developer CyberNet, INC ...Show All
