SonAsylum's Q&A profile
.NET Development Building an internet usage appliaction
Hi, I was wondering how I could make an application that tells me how much internet time each user has used. I would also like it to have the ability to start off with a certain amount of money for each user and when they have used up there that set budget they have to pay to get more time. Thanks Aspire Development Team Hmmm... This is a kind of involved question. How much "Internet time" is a very tough question to answer. I suppose you can measure the time the TCP connections are alive. What if the user is browsing a bug downloaded document with no further internet activity ...Show All
Smart Device Development Memory insufficient on Mobile 5.0 emulator
I try to debug an application on windows mobile 5.0, however there is a low memory on the emulator. I am try to reconfigure the memory size for the emulator however the part was being disable. Please advice I not really understand about that, i have downlaod the program n run it,got something prompt out but not manage to capture it. It come out very fast and end it. ...Show All
Smart Device Development GPRS connection in real device
Hi,everyone.I wrote an TCP client to connection the public network.I tested it successful in emulator. But when I tested it in real device,it failed.Then i added the connection manager,it seems that I can attached GPRS successful,but the tcp client can't connect the public network,can anyone help me Here is the code: ConnMgrEstablishConnectionSync//establish an Internet channel successfully tcpcilent.connect("220.34.24.48",9999) tcpclient.sendData() Thanks for your help. I have found the error.I opened the wrong connction. It seems that no matter what connction you open, the icon shows that it is a GPRS Connection ...Show All
Windows Forms FillBy doesn't populate BindingSource for relations
I have an application which heavily uses relations and bindingsources. It works great as long as I fill all the tables with the tableadapter fill method. However, if I use a FillBy query to reduce the records returned, none of the bindingsources based on relations show any records. I have verified that all the tables are populated. In this case I have Fill by client ID methods for each tableadapter. All the tables get filled and all are related on clientid. Is this simply not supported Must I use the Fill method to use relational bindingsources Thanks for any help in advance. Mike Wang, It was an application problem. I had to change my bindings, and still don't understand why it would work ...Show All
.NET Development Need help using HTTP.SYS to host a web service
Hi Friends, I've been working on a system that's been developed by another person who's already left the organization. This is a web server kind of application built using HTTP.SYS as the stack. Currently, my server listens on the following URI - http://cpepr1.westell.com/0001/CWMPv1-0/api.asmx , where /0001/CWMPv1-0 is the virtual directory set during http-listener configuration. Now, I need my server to respond to the following URI as well, http://cpepr1.westell.com/Activation/WT087Api/api.asmx , where the virtual directory needs to be different. The prefix that is currently added to http-listener config is - https://+80/ Questions: 1) Can I achieve the desired objective If yes, how can this be done. 2) If i ...Show All
Visual Studio Team System Performance Counters in Load Test
Hi, I am trying to run a load test on a webservice (.asmx request) to track the performance counter sets on a remote computer. Here is a list of metrics I get Requests Executing in ASP.NET applications is 0 transactions per second in ASP.NET application is 0 Requests current in ASP.NET is 0 Requests in application queue in ASP.NET Applications is 0 Requests succeeded for both total and LM_W3SVC_1_ROOT is 106,611 on average total transactions per second is 0 Request execution time is 1msec Requests rejected is 0 Requests queued is 0 The total load used is 5 constant userload with 10 sec sampling rate for 5 minutes. The total requests shown in the summary window is 305. Requests/sec is 1.02 Why does it show the requests succeeded somewh ...Show All
SQL Server A problem about ADO!
i visit db with ado interface, but now i hava a sql like below: select * into #t1 from measureInfo; select * from #t1; drop table #t1; it can't execute with ado. Does Ado not support sql operation like this thks Yes.. You can do this...execute the below query it will work.. Set NOCOUNT ON; select * into #t1 from measureInfo; select * from #t1; drop table #t1; ...Show All
Visual C++ CRichEditView::OnCreate
I am using MFC single document with base class CRichEditView. I want to display some text on my editor when the editor first opened. I tried this way but the folowing fragment does not set the editor text on start up int CMyView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CRichEditView::OnCreate(lpCreateStruct) == -1) return -1; // TODO: Add your specialized creation code here GetRichEditCtrl().SetWindowText("Hello World"); return 0; } what do u think is the problem. is there any function call that will reset windows text after call of OnCreate. Maybe you should set the text in OnInitialUpdate handler void CMyView::OnInitialUpdate() { ...Show All
SQL Server Multi Parameter with Boolean Field
Hello, Can anyone say me how i can make a Report with Parameter Boolean field,and as Default Value true and False. ( Both ). With Multivalue and in the Query = Field in (@BoolPara) have i a Error in the Query. Thanks Hi, It is not possible to have a Both clause by default. Although, here is a workarround: In case of using a Bool report parameter, I use an integer report parameter and set its available values as follow: Both -1 True 1 False 0 Defaultvalues: 1 In the were clause set the format as below: SELECT * FROM SampleBoolTable WHERE (BoolCol = ABS(@BoolParameter) OR @BoolParameter = -1) So when you now render your report, you will see the options True, ...Show All
Visual Basic Printing in a specific position
I’m new at this, so maybe this is a very easy one. I need to print a string on a selected position on the sheet (Letter size). The user have to select the position. Any help Try something like this: Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawString("Nobugz waz here", Me.Font, Brushes.Black, _ Single.Parse(txtXPos.Text) * 100.0F, Single.Parse(txtYPos.Text) * 100.0F) End Sub The user would enter the string position in inches. You need to add error checking... ...Show All
Visual Studio Express Editions Visual Basic 2005 Express
Hi I can't create a new project in Visual Basic 2005 Express Edition ! ! The error message "The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)" appears.... Does any know how to rectify the problem. Thanks!! Possibly this will help: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=183843&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) Learn XAML website
.Net 3.0 is here so i think it is time to share with you my site www.xamldev.com hope it can help you learn XAML and WPF. All comments will be really appreciated Regards Ruben D. Sanchez www.xamldev.com ...Show All
Architecture Localication - Numbers/dates - Responsibility of UI Tier or Business Tier?
Hi forum I'm developing a business tier/layer for a web based UI. I would like the UI to be able to run in any culture but I'm guessing that I need to store dates and numbers one way. My business tier can be located on another server. (via remoting). I understand that it is the CurrentCulture on the thread that affects for formatting of dates and numbers. I would like to make it possible for both dates and numbers to be formatted when displayed in the browser - based on the browser language setting. How do I store these numbers and dates Should the UI do some handling before sending the dates or numbers to the business tier or is it the responsability of the business tier Should I just make sure that the thread on the b ...Show All
SQL Server Display a KPI need the same Dimension on its Value and Target?
I mean, I have a KPI, it's value is set to a measure of a measuregroup based on a facttable A. and it's Target is set to a measure of another measuregroup based on another facttable B. Now I want to display the KPI, with a given dimension's slice. My question is, is it needed that the dimension I chose must be shared by both the measures of KPI's Value and Target For an example, If I dispaly the KPI with the Promotion Dimention, and the Promotion Dimention has a relation to the KPI's Value's related measure(There's a PromotionKey column in facttable A; ), but it has no relation to the KPI's Target's related measure(There's NOT a PromotionKey column in facttable B). Could I do so Thanks! that's what i am looking for! Th ...Show All
Software Development for Windows Vista DelayActivity behaves strangely with persistence turned on
I have a WhileActivity within which I have nested a CodeActivity followed by a DelayActivity. The code within the CodeActivity outputs a timestamp, the DelayAcitivty delays for a few seconds and then the loop is repeated indefintely. With persistence turned off, I get the expected behaviour when the delay timeout is set to 10 secs: Executing codeActivity1_ExecuteCode 28/02/2007 12:41:59 Idled Executing codeActivity1_ExecuteCode 28/02/2007 12:42:09 Idled Executing codeActivity1_ExecuteCode 28/02/2007 12:42:19 Idled Executing codeActivity1_ExecuteCode 28/02/2007 12:42:29 Idled However, when I turn on persistence I get the following output. In the following, the LoadIntervalSeconds is 10 secs and the DelayActivity timeout is set to 20 secs: ...Show All
