papadi's Q&A profile
Visual C++ Finding currently visible desktop
Hi there, how can I find the currently visible desktop By calling EnumWindowStations and EnumDesktops I get a list of all available desktops. But is there a way to figure out which one of them is currently visible I've tried to find the visible desktop by comparing the desktop handle, returned by the OpenDesktop function, to the desktop handle received by calling OpenInputDesktop. The result is that the default desktop is always the one currently receiving user input. But by using the default desktop my window always shows up at the desktop of the first user logged on to the system after reboot. No matter if this desktop is currently visible or not! What am I doing wrong Or what is the right way to search for the currently vi ...Show All
.NET Development Quick way of determining a date from a string?
Hi all, I have a .NET 1.1 application that needs to be able to very quickly determine if a string is a date. I can not use Exception handling here (i.e. as you would using DateTime.Parse) as it is expensive and there is only a 1% chance that the string will be a date with potentially tens of thousands of strings being checked. Do you guys have any suggestions Regards, Stephen. Catching the exception would be cheaper than regex imo catching the SPECIFIC exception type would also speed things up than catching a general exception although you are more guarenteed to find the date string pattern in Regex ...Show All
Visual C# Issue copying to a network share
I have a windows service that is responsable for copying files to a network drive at certain times. I use the IO.File.Copy() method to do this. everytime I run it with the network path I get this error: The network path was not found. I even tried a network path without spaces (my test share has spaces in the name) which gave the same. the share can be read and written to by everyone with full control to admins. The service runs under the system context. Any suggestions Thanks, Quilnux Sorry to take so long getting back to you. It's been a busy holiday for me. Since the project has been pushed to a release I have had to put this on hold for now. I will try the net share suggestion as well as the fil ...Show All
Smart Device Development What kind of server required?
I am a newbie in WM5 application. I have a problem: My company needs me to setup an application so that the smartphone can constantly access the server and retrieve data... I have explored many about WM5, but it said little about the system archeticture... I may need to retrieve data from database and file... What kind of server do I need Is Microsoft Server 2003 suitable Do I need to install IIS Is Web Service the only method for the mobile to retrieve data from server What hardware / software I need to pay attention Pls advice... I have been hunting this for weeks but seldom found... Thx, I will try the 2 examples. My boss just shown up and said he targets to use the PUSH technology... I dun ...Show All
Windows Forms ClickOnce and third-party library updates
Hi, I created a small in-house application that I am successfully publishing to an internal server using ClickOnce. It seems to me that if I get an update from a third-party library and then create a new version of my software using the update, ClickOnce no longer works for the app. The file name of the third-party control changes, so it seems like ClickOnce doesn't realize to use the new component file names instead of the old ones. Do I need to do something special when I upgrade third-party libraries Otherwise, ClickOnce works just great for me. Thanks in advance... -Eric ...Show All
.NET Development To Learn RegEx
Hello, I will be working with text from files and manipulated them. Thus, I need to learn about RegEx. I know the HELP in visual studio has it and it even has examples, but those examples are not explained....all I see is a bunch of symbols that work together to get their results....They do not explain them So, if anyone knows where I can go for better explanation of regex, that would be great. I am working on c# visual studio 2003 .net Hi, http://www.regular-expressions.info/ looked like a great place to start for me years back... Also, look at this tool for easy regex creation... If you like it, Roy also other keeps his other tools there, including Regex Debugger Visualizers.. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
Visual FoxPro Copy File Error in Visual FoxPro 7?
When a COPY File Command is executed and a space is in either a folder name or a file name, the instruction is unable to handle it. I have tried a technique to put in " quote marks in the manner '"<path><filename>"' but then it gives me a syntax error. Is this a bug or am I entering the full path and filename wrongly If this is a known bug, is there a patch for it If not, how do later versions of VFP do with this "bug" Thanks Andy. I believe that I tried the solution you mentioned, but it failed to work. It may have been further impaired by the fact I was using macro variables for the path filename and I don 't believe the quotes got through to the final command The par ...Show All
Windows Forms What is BindingSource?
I know it is a broker between your datasource and your databound controls, provides a level of indirection between them and it is introduced in Framework 2.0 but what does Binding Source do What additional capability it provides compare to Currency Manager, Binding Context and Binding manager base One thing that a BindingSource does is it allows you to connect multiple DataGridView tables to a single data source. (Something not previously allowed before) This lets you do several things: Bind a parent table and display (in the second datagrid) the child table bound to the parent. Bind several datagrids to a single data source. You can display available records in one datagrid, display ...Show All
Visual Studio Express Editions connect to database
Hi People! Please, HELP ME! I use Visaul Basic express edition and I want to connect to remote microsoft access database. 192.168.54.106 with computer about this IP I want to connect Data Source=C:\software\software.mdb This code work con.ConnectionString = "Provider=MS Remote;" & _ "Remote Server=http://192.168.54.106;" & _ "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\software\software.mdb;Persist Security Info=False" but later appears exception sql = "SELECT System FROM software" da = New OleDb.OleDbDataAdapter(sql, con) da.Fill(ds, "software" ) exactly here that, there is no connect T ...Show All
.NET Development Read Records synronous (with Blocking)
Hi! Is there any way to create an SqlDataReader which returns the Rows as they are added. It shall block until new Rows are added. Like: cmd.CommandText = "SELECT * FROM xyz WHERE Timestamp > LastTimestamp"; using(SqlDataReader r = cmd.ExecuteReader( )) { while(r.Read){ Console.WriteLine("New Row!"); } } I would like to implement a kind of Event-Notification without polling. Maybe I need a part of the logic running on the Server. This would be no problem. There must be a way to do this. The "sp_trace_getdata" System Stored Procedure works this way. And it can be used without anything unusual in ADO.Net. Any Ideas GP ...Show All
Visual Studio SandCastle, Msbuild, and H2Reg
I have updated to the Oct 17 version of sandcastle and update msbuild scripts for the changes in this version. I am successfully building an hxs and can view it correctly with h2 viewer. However, when I register the collection to integrate it with Vs 2005 only the index items appear but nothing shows in the content window. I have search the fourm and can't find anything similar to this issue. Anyone have any clues why the collection looks fine in the viewer but not content in content window in vs2005 thanks, Don Eddleman Thanks Don - two more questions: 1) are you installing this on the same system you are building the .hxs files on, and 2) do you have an .hxt file defined for your collection an ...Show All
Visual C# Data Class question
I am trying to create a class where i have some property values and i assign those property values to data elements so i can call it in my windows form from my sql server db but it seems that when i try to create my data object the intellisense does not work and when i try to path out to my connection string in my app.config file it doesnt seem to recognize it...I can do it in VB7 just not in c#...is it something i am missing Hi, Better check your namespaces. Be sure that its included in your using statements to enable the intellisense to see your class. Also, it would be of very much help if you can post the part of your code where your intellisense seems to fail. And also the declaratio of your class... cheers, Paul J ...Show All
Visual Studio 2008 (Pre-release) I am not able to install Orcas Technology Preview for .Net 3.0 on top of .NetFx 3.0 RC1
I am not able to install "Orcas" Technology Preview for .Net 3.0 on top of .Net 3.0 RC1 . I had installed .Net 3.0 RC1 and Win SDK 3.0 RC1 but was working with June CTP using msiexec /i vsextwfx.msi WRC_INSTALLED_OVERRIDE=1 mentioned by Rob Relyea on his blog.. http://rrelyea.spaces.live.com/Blog/cns!167AD7A5AB58D5FE!616.entry/ I have tried uninstalling everything and installing everything back again but the install programs would not run and complains of missing .Net3.0. How can I solve this nightmare Any leads.. Windows Vista RC1 (Customer Preview Program, MSDN and TechNet Subscribers) .NET Framework 3.0 RC1 Windows SDK RC1 Visual Studio &qu ...Show All
Visual Studio Express Editions DHTML controls
how do i get the copy, cut and paste controls to work with the DHTML box I really recommend against using that control as it has been deprecated. In no longer supported. The control you want to use us the current Webbrowser control. The old DHTML control had an SDK as of a year ago it was available on the net and you have no documentation and you will be able to find very few people to help you with it. If you use the current WebBrowser control, there are LOTS of people that can help you with it here and there is lots of documentation and abundant examples in all of the VB fora. If you weigh all of those factors, I think it very clear that the webbrowser control is the very best way for you to pr ...Show All
