naylouvar's Q&A profile
Architecture Serviced component architecture issues (State management/ OOD).
I've seen serviced components abused and misused due to inherent limitations in how COM operates and now I’m looking to architect a web based, OO, n-tier system and wish to avoid the same mistakes. In my system there are two architectural problems: Much of the data is common across users, complex and potentially quite large, which leads to a large number of objects when using standard OOD (not so good for COM as I understand). Some (but not all) update requests need to be processed in serial, all others concurrently. I’m considering a windows service application that can hold all the user independent dat ...Show All
Visual FoxPro [noob questions] Arrays..
Aaaaaaaaaaaaaaaarrrrgggghhhhhgadsfhasdjhf 1. Is foxpro incapable of returning an array from a function by using the return statement 2. Does foxpro have a function that merges 2 arrays 3. How do you pass an array as an argument to a function in a class when the array is a class variable For example: define class test as Custom dimension Arr(1) procedure asdf(tmpArray, tmpString) * do stuff endproc .. etc etc How do I call the procedure asdf (from some other procedure in this class) using Arr as a ...Show All
Visual Studio Express Editions how to add new users with SQL Server Management Studio Express CTP
hi, someone maybe can help me how to add new users, that they could connect to my MSSQL 2005 server, i trided myself, but i didn't make it.. thanks This probably should have been posted somewhere else being that this is the Installing and Registering forum but here is how to add a new user for SQL 2005: 1) Connect via Management Studio 2) Expand Security 3) Right click Logins and select New Login From there you can configure that new user. Remember to set the authentication mode for the server. It's set to windows authentication by default. ...Show All
Visual Studio Express Editions SerialPort
Hi im tring to send AT command to my gsm modem using serialport. but its not working properly. Reading event not working!. please help me to doing this. ----------------------------------------------------------------- #region Namespace Inclusions using System; using System.IO.Ports; using System.Windows.Forms; #endregion namespace SerialPortExample { class SerialPortProgram { // Create the serial port with basic settings private SerialPort port = new SerialPort ( "COM1" , 9600, Parity .None, 8, StopBits .One); [ STAThread ] static void Main( string [] args) { SerialPortProgram sp = new Se ...Show All
Visual Basic threading problems
Hi, I'm a total newbie at the forums I'm not even sure how to explain this but I'll give it a shot. I have created an app that launches an external program. Like so: global scrope Dim WithEvents proc As Process in a sub Dim si As New ProcessStartInfo(strProgram, strArgument) Before I launch the app I add a new handler AddHandler proc.Exited, AddressOf ProcessExited now comes the tricky part. I have this sub Public Sub ProcessExited( ByVal sender As Object , ByVal e As System.EventArgs) 'remove the handler to avoid being added more than once RemoveHandler proc.Exited, AddressOf ProcessExited Me .lbl ...Show All
SQL Server SSIS: Inserting unknown members from fact table
Looking up surrogate keys in a dimension table and adding these to your data flow is easy when there is a match in your dimension table for every key in your fact table. However, I am puzzled by how to manage the data flow when no match can be found for a specific key in the fact table when doing the lookup AND I then want to insert this unknown key as an unknown/inferred member in the dimension table. The problem is further complicated by the fact that when I have inserted the unknown member in the dimension table and it has been assigned a surrogate key there, I want to add this surrogate key to my fact table - just as if there h ...Show All
Visual C# Increase Memory Pressure for Garbage Collection
Dear all, I would like to ask if any API or efficient way for making GC run more frequently, without calling GC.Collect() What I am doing is I am checking if the objects are referenced by other objects, by using weak references. Unfortunately, it was found that as the latest made forms had not been garbage collected yet, and the Target in the weak reference still showed the object. I tried to increase the memory pressure by composing new garbages, but not successful. I found some posts saying that it is possible to increase CLR memory pressure for acheive this Is it right If yes, how to implement Thx a lot! Gabriel ...Show All
Microsoft ISV Community Center Forums What is ISV
Im sorry.. can somebody open that what ISV is sorry for that silly question : ) thank you Yeah that would be great to have an community day in Turkey like this. Last week we had something meeting of Microsoft. but it was such a small. have good time. and thank you ;) - Doga Oztuzun - UnquaLe ...Show All
Visual C# Raise event from IE hosted windows user control and catch it in the Web Form that’s hosting the control
Hi. I have a web app that uses a IE hosted windows user control. I would like that, somehow, lounch an external event from that hosted control that I could catch in my web form’s code behind. If possible, please send me a small sample project ( bozesan_mihai82@yahoo.com ). But, of course, I would appreciate any suggestions! Thanks in advance! I can't find any ButtonToPush property in IHTMLElement! ...Show All
.NET Development regEx (relate to what you've found)
Hi there, how can I relate to what my regEx has found In PERL, you have some standard-vars. So just mit the stuff want to relate to in brackets and there you go! string: "say=helloWorld" PERL regEx to get helloWorld: \w+=(\w+) found: $1 => helloWorld Is there something like that in C# I know, this is a pretty weak example, but with m.Value you just get the whole Value your regEx matched to... Thanks, Finch. edit: s1 = "time=11:23:21" s2 = "date=Monday, 01.01.2005" in PERL: time=([\d:]+) //I can tell what the string looks like at the beginning, without relating to that part in C#: I'm not entirel ...Show All
SQL Server How to present Time Series Chart on the Web
Help me!! 1. Can you tell me the way to present Time Series Chart on The Web by ASP.Net 2.0 2. I have a Time Series Mining Model. Its structure is: (Month datetime key time, Sales continous predict) When the query runs: select Flattened Predict(sales,5) from Model_Name The result is Month and sales in the future. But i wan also retrieve Month and Sales in the past . Tell me the way Thank alots!!!!!!! Check out this article on MSDN. It does a little more than you want (e.g. forecasting on the fly at report rendering time), but you can change it to just produce the ...Show All
Visual Studio Express Editions form.showdialog problem
i can get the OK message return when i press the OK Button in form frmChooseItems, also get the CANCEL message return when i press ESC If the focus on the control datagridview on frmChooseItems, when i press the enter, i cannot get the message "OK" return. I want to know how to : when i press the "Enter" on the datagridview on frmChooseItems, i can get the result sames as i press the OK Button. frmPI CODE Dim frmChooseItems As New frmChooseItems If frmChooseItems.ShowDialog = Windows.Forms.DialogResult.OK Then MsgBox("OK") Else Msg ...Show All
Visual Studio Express Editions No sound using My.Computer.Audio.Play and Win98
My app plays sounds when it is running and works fine on my WinXP machines but when I use it on a Win98 machine it doesn't produce any sound. The sound files (.wavs) are distributed with my app and stored in a folder in the same directory as the .exe Are there any limitations with using My.Computer.Audio.Play with Win 98 There are no limitations on using these functions on any computer with the .NET framework 2.0 installed on them. Do other sounds work fine on the Windows 98 machine - its not something as simple as the sound drivers arent setup correctly or mute is on on this machine. ...Show All
Windows Forms Draw on the screen itself
Hello, Is there a way to draw a pixel or a graphic out side of my form so maybe even though my form (200px by 200px in size) is placed on 400,400 on the screen... But maybe I would like to draw a pixel on 10,10 on the screen, NOT the form... so that the pixel will be OUT of the form.. If any answers are available, it would be very appriciated! Thank You Keehun Nam Yes there is, but I would discourage you to use it. Use a p/invoke to GetDC with NULL as parameter. Like this using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Wind ...Show All
SQL Server How to stop a package
Hi, In one of my packages, I have a script component to do a transformation and I am inserting the output to table. Within that script component, if the data does not match my requirement, I have to stop the job. For that, I am using 'componentmetadata.fireError' to raise an error. The problem is, now even when an error is raised, the job completes by loading the remaining records and then aborts. But I want to abort the job as soon it raises an error. How to do this Thanks. HI, sorry to jump in. But I looked in books online and did not found a way to stop the package in the dataflow using the system cancel variable. Is there a w ...Show All
