saleyoun's Q&A profile
SQL Server Failure to open SQL Server with given connect string.
So, I have a Server running Windows 2003, windows firewall offline, with Sql Server 2005 and SQL Server 2005 Mobile Edition. This server is running behind a firewall. When I try to PULL data with RDA from the internal network, all work's great! But when I try it from the exterior, internet, I always receive this message: Failure to open SQL Server with given connect string. [ connect string = Provider=sqloledb;Data Source=<MY INTERNET IP>,11433;Network Library=DBMSSOCN;Initial Catalog=testdb;User Id=sqlceuser;Password=test; ] On my firewall, I unblocked port 80 and 11433 and mapped them to my internal server IP with port 80 and 1433. I use port 11433 on internet because my ISP block the 1433. How can I solve this pro ...Show All
Visual C++ class destructor not operated.
Hello, I have a question about destructor in a class. In the below code I was expecting the destructor part of the code to be executed and the message printed out. However, I only see the constructor message. This is the output: "We're in the constructor with arguments Press any key to continue . . ." Why is the destructor message not printed #include <iostream> using namespace std; class Point { public : Point( float f_x = 1.0, float f_y = 1.0, float f_z = 1.0); ~Point(); private : float x, y, z; protected : }; Point::Point( float f_x, float f_y, float f_z) { cout << "We're in the constructor with arguments" << endl; } ...Show All
Visual Studio Express Editions highlight text in text box
I'm writing a search and replace method for a text box. I can set the SelectionStart, SelectionLength properties, but I can't see how to highlight the selected text, as normally occurs when selecting by dragging the mouse over some text in the text box. Any ideas on how to achieve this Thanks. Best wishes, Ray Change the HideSelection property of the textbox to false and give it a try. ...Show All
.NET Development PageBreak Issue
Hi, I am trying to create an excel xml using xslt and am having an issue with adding certain xml input components after the pagebreak. As an e.g ..here is my input file : <ROWSET> <ROW> <SECURITY_NAME>AUD/USD 07/19/2006 DEUTB-L</SECURITY_NAME> <TRANSACTION_TYPE>BUY FORWARDS</TRANSACTION_TYPE> <TRADE_DATE>06/14</TRADE_DATE> <SHARES>92400</SHARES> <COST>69348.97</COST> <PROCEEDS>68063.23</PROCEEDS> <GAIN_LOSS>-1285.74</GAIN_LOSS> <GPS_TXN_ID_CODE>200606150E1P0001</GPS_TXN_ID_CODE> <REPORT_NAME>CHCLM</REPORT_NAME> <ACCOUNT_CODE>250</ACCOUNT_CODE> <ACCOUNT_NAME>STRATEGIC GLOBAL FUND: P ...Show All
Windows Forms Concurrency violation help me please
hi i use vb.net 2005 and an access database i connect to one table and change many things on the table and then save it again i use the disconnected mode i disappointed i try to solve the concurrency violation like the msdn said (get a fresh copy of the table and merge it to the worked one)but it sometimes save and sometimes not !!!!! although im one user for the database help me thanks in advance. Hi, Concurrency exceptions only happen if the data in the DB doesn't correspond to data in the DataSet's "Original" version. So, either the "Original" version of the data is changed in the DataSet, or the data in the DB is changed by some "external" action. I know Access DB's don't support triggers, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch can't be created
After migrating all of my code to Beta 2, everything seemed to work on on one of my desktops. On my other desktop, it seems that I can't create a SpriteBatch object. The device and everything will create and I can watch it run through a blank screen forever. But i can't create any kind of spritebatch object. Everytime i try to create one, the program crashes. Anyone have any ideas about how I can fix this At what point are you trying to create the spriteBatch When I ported my code from beta1 to beta2 I had to move some creation code from the game constructor (where I shouldn't have put it in the first place) to the Initialize function. If you try to create the spriteBatch before the Initialize function ...Show All
Visual Studio 2008 (Pre-release) How to use constructors or methods of data object with WCF service
I have some questions regading how to use of data object using WFC Service. For example I have an object called Student (see codes below), and property IsOver25 this is readOnly property. However, if I do not put set { ;}, it's won't compile . What I need to do here in order to get rid of set { ;} statement. Another problem is using contructors and methods of data object. Since we don't put [ServiceContract] on the data object, I could not use the override ToString() version of Student object on client side. So the question are: 1. What should I do in order to use the constructor of data object 2. What should I do in order to use the methods on data object ( will not many but somes) Regards, John dang using System; using Syste ...Show All
Visual C# Controls without a user interface
Hi, I would like to develop C# components without a user interface, you know just a service you can use on forms, that sit in the bottom area of the form designer, but I'm unable to find the way to do it in the documentation. Do you have any good ideas Thanks for your help. Cheers, Mikael ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawableGameComponent: GraphicsDevice
i could be being really dumb, however i have a DrawableGameComponent and i try to access the GraphicsDevice but i get not an instance of object error any help guys if somone has written a basic drawablegamecomponent if u could post it would be ace i work well from examples when im stuck :) thx Yes multiple sprite batches is inefficient - well unless you only need a total of 5 sprite batches for your particular game, in which case don't worry about it. You could make a spritebatch in your game class and set it as a property on your component - then call batch.begin/end eitehr side of the base.Draw() in Game.Draw(). That starts sounding a bit of a hack job though. In general I would think that one batch per compone ...Show All
Visual Studio Express Editions keydown
I've got a trouble with my code in Form1_Keydown. If I rule my program (just that code) everithing works perfect. But when I add buttons and Trackbars in my program. Just adding, I don't use them in a code. The program doesn't work any longer! Is there someone who can explain me why, and how I can solve it Thx ...Show All
Windows Forms DataGridView - stop changing current row - when using the 'Enter' button
Hello, I have a small datagridview (datagridview1), which on this form has only one editable field. The issue I am concerned with, when editing the data in the only column/row in datagridview1 and hitting the 'Enter' button, it forces it to the next row. How do I stop this Thanks You will have to make a new control which inherits from datagridview. Here is sample Imports System.Data.SqlClient Public Class Form1 Dim WithEvents dg As New DGV Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load dg.Location = New Point(20, 100) Me .Controls.Add(dg) Dim dt As New DataTable Dim strConn As String = _ "Server ...Show All
Visual C++ convert string to double
i have a problem i need to convert a string to double in c++ i used double xxx = atof (yyy ); but if yyy = 5 , 5 the returned value is 5.0000000000000 and if yyy = 5 . 5 the convert is ok and retur 5.500000000 how can i resolve this problem Sarath. wrote: The function stops reading the input string at the first character that it cannot recognize as part of a number. That's happened here. but if yyy = 5,5 the returned value is 5.0000000000000 In the above case the output is correct. because the string contains a "," which is not used in numerical representation. Not exactly. In many European countries 5.5 is written as 5,5 mido19 wrote: double x ...Show All
SQL Server Running job error in schedule
Dear All, I set the scheduler to run a stored procedure and it casyes error. Failed to run the stored procedure but when running it manually from the query analyser it works just fine. This is the error. SQL Server Scheduled Job “Job ABC” (0xE708F39963C95A4390BC3C99E6A029AC) – Status: Failed – Invoked on 2006-12-10 03:00:00 – Message: The job failed. The job was invoked by Schedule 7. Could anyone please advise what should be the problem Regards, LG Can you please explain the job process and also where & when it is failing. DLG007 wrote: Dear Satya SKJ, Thanks for response. Actually the job run 20% successfully. We run the calculate and update the tables and o ...Show All
Windows Forms Background Worker Trouble
I'm having trouble with a Background Worker. I have a few textboxes on my form, they are populated from a dataset. So I have a function that creates a generic list from some lines in the dataset (based on what is checked in a checklistbox), then I copy the list to the Lines property of the textbox (simplified explanation) Right now, when I select certain criteria in a checklistbox, it calls the Background worker. Let's say I select different criteria before the last call was finished processing... How would I go about handling this If I cancel the first request, I have to wait until the background worker is finished canceling before I can call it again. I thought about creating a new instance of a background worker each time ...Show All
.NET Development Need help in making xsl file to transform My given xml file to my needed xml file
I want's to need help in creating an xsl file to transform My current xml file data which is following < NewDataSet > < Table > < Title > MyFirstTitle </ Title > < ExtraColumn1 > 2007-01-12T10:14:00+05:00 </ ExtraColumn1 > < BookNumber > 1181013 </ BookNumber > < CompanyName > TestComany1 </ CompanyName > < ZipCode > 91006 </ ZipCode > < City > Arcadia </ City > < State > CA </ State > < Country > US </ Country > < Description > TestDescription1 </ Description > < ExtraColumn2 > See Book Description </ ExtraColumn2 > < ExtraColumn3 > MyFirstTitle </ ExtraColumn3 ...Show All
