Janicita's Q&A profile
.NET Development Need help with building a Regex
Hi, I’m I want to build function that returns numeric Regex by few params: Allow Zero (the number can be 0) Allow Negative (the number can be negative like: -5) Allow floating point (the number can contain floating point (double) like: 7.6) Left to floating point (how many numbers can be in the left side of the floating point) Right to floating point (how many numbers can be in the right side of the floating point if there is a floating point) I build this function: public string GenerateRegExPattern() { int minLeftToFloatingPoint = 1; int maxLeftToFloatingPoint = LeftToFloatingPoint; string pattern = string .Empty; if (_allowNegetiv && !_allowZero) { // Numb ...Show All
.NET Development are xsl and xslt formats the same. can we trade one with the other and vice versa
(I never used them it s just that I find documents mentioning xsl while others mention xslt) Thank you for explaining to me the difference between the 2. Hi R. XSL is a family of recommendations for defining XML document transformation and presentation. It consists of three parts: XSL Transformations (XSLT) a language for transforming XML the XML Path Language (XPath) an expression language used by XSLT to access or refer to parts of an XML document. (XPath is also used by the XML Linking specification) XSL Formatting Objects (XSL-FO) an XML vocabulary for specifying formatting semantics An XSLT stylesheet specifies the presentation of a class of XML documents by describing how an instance of the cl ...Show All
SQL Server ---PULL replication with SQL Server Express, it is possible whether or not?---
Hello! Question of such plan, to documentation to Microsoft SQL Server 2005 Express Edition it is written, that the given product supports only PUSH replication, however in his{its} structure there is an agent replmerg.exe which description says: replication merge. Synchronization means, that the agent of merge transfers changes from the subscriber to the publisher, and then transfers changes from the publisher on the subscriber … And so the question if this agent is present at this edition, whether that is possible to adjust manually his{its} call, or through Windows the agent, for realization PULL replication or it is impossible and for what reasons Thanks. You can find replmerg.exe i ...Show All
Internet Explorer Development IConnectionPoint::Unadvise fails in IE7
Hello, We are testing our BHO with IE7 (7.0.5700.6). Upon browser startup, the BHO calls IConnectionPoint::Advise. At browser shutdown, it calls IConnectionPoint::Unadvise with the same cookie returned by Advise. Unadvise is returns CONNECT_E_NOCONNECTION. One observation is that if I call Unadvise immediately after Advise, then Unadvise returns S_OK. This behavior is not observed with IE6. Also, I had an earlier build of IE7 installed (not sure what build number, but I installed it around a month ago), and this problem did not occur with that build. Any ideas why Unadvise fails or are there any troubleshooting steps I can use to investigate this further Thanks, Roy Yes, IE has disconnected your connecti ...Show All
Visual C++ how to install/register a windows service programatically?
hi, I have created a windows service using ATL wizard in visual c++ 6.0. How do i register, start and stop the service programatically Is there any other way to create a service( not to be an exe) Hello Re: how to install/register a windows service programatically Such questions (on VC++ 6.0 programming) are outside the scope of this forum - for the scope of the VC Language forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789657&SiteID=1 For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual Studio Express Editions How to Plot a Line Graphic in the form?
Hi, how to plot a line graphic realtime in the form Anyway thanks a lot for the help!!! Update: Found ZedGraph, which is what I am looking for. http://zedgraph.org/wiki/index.php title=Main_Page ...Show All
SQL Server Problems with Poison Message Processing
I am getting the following Error and I can't find it in the Manual. Failure to send an event notification instance of type 'BROKER_QUEUE_DISABLED' on conversation handle '{5D273374-E84F-DB11-B3BC-0004239AB15C}' . Error Code = '8429' . I have checked the service name for the notification and it appears to be okay. Any ideas would be welcomed, Gary Thanks Remus, I will send the error from the log the next time I recreate it. It has rolled off of the log for now. Gary ...Show All
Visual Studio 2008 (Pre-release) Storyboarding an Opacity Animation
greetings and salutations. I'm trying to determine what I'm doing wrong. I have an image coded in XAML, along with a storyboard for an opacity mask from 0 to 1 over 1 second. Easy enough. The trigger for the event is Image.Loaded. My problem is, in my code, when certain events happen, I update the source of the image. But when this happens, the opacity animation does not occur. Should I be "wiring" to a different event SourceUpdated is not a RoutedEvent, so I can't wire to that. Any suggestions ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Displaying Videoframes with DirectX
I use a open source codec/video library (libavcodec). This lib exposes the video frames as 24_bit RGB bitmaps in memory. All I want to do now, is displaying those frames in a window as fast as possible. I tried a very naive approach: for ( unsigned int i = 0 ; i < Framenumber; i++ ) { Load->get_nth_frame( ID, i , RGBFrame ); DXDev->BeginScene(); Backbuffer->LockRect( &LR, NULL, 0); // [ memblit Copies RGBFrame pixelwise to Backbuffer , same function as //D3DXLoadSurfaceFromMemory ( Backbuffer, NULL, &SrcRect, RGBFrame, //D3DFMT_R8G8B8, Pitch, NULL, &SrcRect, D3DX_FILTER_NONE, 0);] memblit ( RGBFrame, (char*)LR.pBits, w, h, LR.Pitch ); Backbuffer->UnlockRect( ); DXDev->EndScene(); DXDev ...Show All
SQL Server SQL Update with id
Hi I have a Excel sheet in this i have to take out a id and then search in the SQL DB if there is a Id like this and update some fields. I have it allready in Access but i need to have it in SSIS i have everthing exept the Update itself. I take the Id from the XLS and then i go to the DB and look if there are some of this ids in there. i "Merge Join" then then there are some left (5-10) now i wanna say take this IDs and update it on the DB but i search for so long now. I'm sure it have to be easy. Yes this i did but what i do after if i want the marged data to be Updated in the Database. How can i use a SQL Update with joining 2 Tables in a WorkFlow ...Show All
SQL Server DDL is not valid
hello,everybody ,i use the AnalysisServicesExecuteDDLTask ,but it dap an error "DDL is not valid",i don't konw what is the problem and how to solve thank you! ...Show All
Software Development for Windows Vista Automatic Binding Validator
I was wondering if anyone knows how to retrieve click event from smart tag that is displayed on validation My activity has a property that requires to be bound in order for it to work. It could potential be bound to a property belonging to any one of a number of prior activities. I have made a validator that checks if this property is bound and shows a validation smart tag if it isn't (yep, standard validation). I would like the user to be able to click on that smart tag, displaying a form that list all the possible activities that can be bound to. Alternatively (probably even preferably) I would like to display multiple smart tags for each potential binding, then automatically bind once clicked. I'm sure that if I have a way of re ...Show All
SQL Server How to determine if a database is in use
I have a VB application that uses SQL Server 2000. I am adapting it to support both 2000 and 2005. I connect to the database using ODBC. My application has the typical backup/restore functionality. Before I do a backup or restore, I check to see if the database is currently being used by another application. In SQL Server 2000, I did this by connecting to the 'master database' and running the following query: SELECT COUNT(*) FROM SYSDATABASES WHERE DBID IN (SELECT DBID FROM SYSLOCKS) AND NAME = 'MyDatabase' If I get a count greater than 0, someone else is using the database. This of course does not work on SQL Server 2005. I have come up with an alternative. For SQL Server 2005, I connect to the database I want to backup or restore ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3Ds Max Texture Error
I'm having trouble getting textures to work in XNA with models that I've created myself. I went through the Space Tutorial and have no problems loading the provided models, or any other models i find elsewhere. However, when I try to use a model that I created and textured myself (in 3ds max, tried with Panda exported .X files, kW X-ported .X files, and .FBX files) I get a weird error. I do not think that the error lies in my code since it's a) basically straight off the tutorial and b) models other than mine work fine. The error points to this line of code: myModel = content.Load< Model >( "Content\\Models\\stripe2" ); It says: Argument Exception was Unhandled, Device does not support multi-level texture ...Show All
Visual Studio 2008 (Pre-release) TruncateExistingOrCreateNewTable
What that mean bros I hoping it is just what it is with no ill affects. Thanks, BillB If you are trying to sync table (T) and that table happen to exist in the client database and contains some data, then specifying CreationOption for T as TruncateExistingOrCreateNewTable instructs the sync runtime to delete the contents of T and reuse it (schema, indexes, constraints.. etc of T are kept intact). If T did not exist, then it will be created in the first sync based on the schema returned from the server. Thanks ...Show All
