Penicillin's Q&A profile
SQL Server possible bug regarding single line comments in SQL Server Management Studio
I don't know if this is a bug or something I've messed up in my settings. I am using SQL Server Management Studio with SQL 2005 service pack 1 installed, and I've been using it successfully ever since SP1 came out. All of a sudden, any time I have a query with a single line comment (i.e. using dash dash -- ), the rest of the query is ignored as if the single line comment is really a multi-line comment without the closing */ An example: select top 100 * from myTable -- this is a comment where myTableID = 1234 This would normally return exactly one row, but instead returns 100 rows ( as if the where clause did not exist). If I move the where clause above the comment, it works as expected. Any ideas In trying to fix t ...Show All
Visual C++ Download Windows Crossbow Beta
I can debug it but can't able to deploy it. here are my errors 1>------ Build started: Project: ATL_Dummy_DMO, Configuration: Debug Windows Mobile Crossbow Beta for Smartphone SDK (ARMV4I) ------ 1>Linking... 1> Creating library Windows Mobile Crossbow Beta for Smartphone SDK (ARMV4I)\Debug/ATL_Dummy_DMO.lib and object Windows Mobile Crossbow Beta for Smartphone SDK (ARMV4I)\Debug/ATL_Dummy_DMO.exp 1>Build log was saved at " file://c:\Documents and Settings\satyam\ \hameed proj\Mycket\ATL_Dummy_DMO\Windows Mobile Crossbow Beta for Smartphone SDK (ARMV4I)\Debug\BuildLog.htm" 1>ATL_Dummy_DMO - 0 error(s), 0 warning(s) 2>------ Deploy started: Project: ATL_Dummy_DMO, Configuration: Debug Windows Mobile Cr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Newbie question
Hi all, Having some issues building the default "My Space War" project in XNA. It builds fine but dies and gives me an error prompting me to send the information back to MS. Any ideas about why this might be Thanks! It could be that your graphics hardware can't support the shader levels necessary to run XNA, and in particular the shaders required by Spacewar. XNA requires at least Pixel shader 1.1 support, and Spacewar requires Pixel Shader 1.1 and Vertex Shader 1.1 support minimum. ...Show All
SQL Server package configurations
Hi, i keep struggling with dtsconfig. i have 4 packages which all have the same datasource based on the global-datasource. is there a way i can save that global-datasource, instead of configuring all 4 packages to use a config-file I think I have the same question. I want to set my connection strings from a config file. Is there some way to configure the Global Datasource to use an expression to set the connection string It seems the only way to set it from a config file is to add a connection to the connection managers from the Global Datasource, then set the expression for the connection in the package itself. Thereby making the use of the Global Datasource useless in this instance, ...Show All
Audio and Video Development Pause\Play on 1 button on my popup menu
I have a popup that I want to have 1 button that is "pause" when he movie is playing but after pressed it turns into a play button...I know how to animate its state so that it shows "play\pause" graphics but in my script I need to know a good if\then command for this button. Case "menu_1" player.playlist.pause(); thats what it is right now and it pauses the video and switches to the "play" graphic for the button...just need a good if\then script for Case "menu_1" Thanx in advance! I've used this: var playing=1; //put this line outside of function if(playing==1){ Player.playlist.pause();   ...Show All
Smart Device Development Plug-in code issue with CF 2.0
I'm trying load a plug-in and I'm using CF 2.0 The path is: C:\NewIntel\MCU\Plugin1\bin\Debug Interfaces.dll which does load Interfaces.dll but not Plugin1.dll which is in the same path for the Storage Card running the emulator. Look at FindPlugins function for the code that does Assembly.LoadFrom("Plugin1.dll"). This code works fine for for the Desktop framework 2.0. What can I do to fix it Error... System.IO.IOException was unhandled Message="File or assembly name 'Plugin1.dll', or one of its dependencies, was not found." StackTrace: at System.Reflection.Assembly.LoadFrom() at PluginServices.FindPlugins() at WCEMCU.frmMCU.frmMCU_Load() at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms. ...Show All
Visual Studio Model Namespace
Hello, is there a default 'value' of a domain model that i can access from within my T4 templates if i need a decent namespace I guess i am searching for a namespace that is build from the folder hierarchy. Just like when a new class file is added to a project; The namespace in that file is updated according to the folder branche the file lives in. I hope such a default value exists somewhere in the depths of domain models (or maybe the template architecture itself). I really dislike accessing ProjectItems to get such a value in the design i am currently implementing. Thanks in advance, Peter Vrenken Another approach you can use is to take advantage of the heavily undocumented feature in the DSL Tools of adding a custom "pr ...Show All
SQL Server Move VistaDB tables/data to SQL Server 2005
Is there any way to import a VistaDB database into SQL Server From what I can tell, there is not... Please advise. Thanks, MC Try asking this in the Data Access forum . I think once you have a way to access the data, you can start working with SSIS. Or work with the VistaDB folks... :) If you can get data out of VistaDB and into files or something, then SSIS can help you. Even better if there is ODBC or OLE DB access. ...Show All
Windows Forms form designer compile error between 2003 & 2005
Hi I'm trying to upgrade our code base to 2005. We need to keep 2003 running for another month or so. Everything worked great except for 1 thing in VS 2005 I was getting a compile error on event handlers and needed to use full scope resolution like this &PSEditor::ColorPicker::exactColorBox_Paint. I did this but now when the form designer for VS 2003 compiles it considers all those event handlers as Invalid Objects. The project itself compiles and works fine this seems to just be a form designer compile issue with 2003. Here is what the code looks like when it compiles correctly in each. In 2003 this->exactColorBox->Paint += new System::Windows::Forms::PaintEventHandler(this, exactColorBox_Paint); In 2005 this->exa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. metronome using directSound or directMusic
hey. i want to code a program that includes a metronome using c++ and directSound and/or directMusic. this metronome should raise an event periodically, it should be as precise as possible and i need to change the tempo at runtime. now what i need is something like the StartTimer (UINT TimerDuration) onTimer(UINT nIDEvent) killTimer() functions in VC++ but with a higher resolution than milli-seconds and with a way to affect the duration between the timer events at runtime, as mentioned above, thus without having to stop and restart the timer... is there a way to use directSound / directMusic in order to achieve this perhaps sth with IReferenceClock:: AdvisePeriodic or does this problem not really have anything to do with ...Show All
Visual C# Shutdown.exe problems
Process shutdown = new Process(); shutdown.StartInfo.FileName = "C:/WINDOWS/System32/Shutdown.exe"; shutdown.StartInfo.Arguments = "-s -f -t 20 -m \\deruu"; shutdown.Start(); I can get it to log me out using argument -l only, but with that I only get a "Frozen" cmd window titled "Shutdown.exe" and nothing happens. try this: Process shutdown = new Process("shutdown"); shutdown.StartInfo.WorkingDirectory = Environment.GetFolder(Environment.SpecialFolder.System); shutdown.StartInfo.Arguments = "/s /f /t 20 /m \\deruu"; shutdown.Start(); you may want to try to take out the /f switch just in case and see what happens, it could be the fact t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Magenta sprite color comes up transparent?
This seems to be a new behavior in Beta 2, is it a feature or a bug When I draw a sprite with SpriteBlendMode .AlphaBlend that contans the color (255, 0, 255) that color shows up as transparent. Is this to allow an easier way to create transparent regions in your sprites Bill Just as an artist creates images with lines, shapes, the presence and absence of color, etc, etc, a programmer creates games with a slew of tools as well, such as TextureProcessors, GameComponents, and Vectors. After all, a color is simply a varying combination of red, blue, and yellow, as a Vector is a combination of floats. Compare the use of the default ContentProcessor (SpriteTextureProcessor in this ca ...Show All
Windows Live Developer Forums Article - Loading your pushpin popup content on demand
The next in my series of little articles I look at loading the content inside your pushpin popups on demand: http://www.soulsolutions.com.au/Articles/PopupContentonDemand/tabid/98/Default.aspx Full working code for improvements here at the wiki: http://viavirtualearth.com/Wiki/PopupContentonDemand.ashx John. John, everything coming from your mind sounds very interesting. The article is great, short but 100% useful. I knew nothing of mapping technologies, but i was able to put on production my first mush up thanks to this forum and your articles and code examples. Keep on like this!! Dario ...Show All
Smart Device Development regarding the smartdevice development
hi , i have been in developing application in smartphone using c# .. i am using visual studio 2005 .... for my application i have loaded the resoueces using the following code ... Stream s ; Bitmap img_btYellow; s = this.GetType().Assembly.GetManifestResourceStream("Widgets.res.avblue.png"); img_btYellow = new Bitmap(s); s.Close(); i have loaded 8 '.png' images through the above code using the same stream ' s ' . the application is running fine in emulator .... but it is showing out of memory exception in the exe created inside the bin folder ... even i tried using singleton object for all the classes , that i have used .. but it s still showing the same exception .. could anyone help me in resolving this issue . ...Show All
SQL Server How to Get the Output Column in OLE DB Command Transformation
Hi, I am writing a Dataflow task which will take a Particular column from the source table and i am passing the column value in the SQL command property. My SQL Command will look like this, Select SerialNumber From SerialNumbers Where OrderID = @OrderID If i go and check the output column in the Input and output properties tab, I am not able to see this serial number column in the output column tree,So i cant able to access this column in the next transformation component. Please help me. Thanks in advance. Merge Join worked for me. I did right outer join. Thank u Jamie and donald. But still my question is, we cant get the output columns in OLE DB Command Compone ...Show All
