Oh2BaLuddite!'s Q&A profile
Visual Studio Can you publish a web application using MSBuild on the command line?
Hi, I tried doing it like a website: <MSBuild Projects="C:\MyTempWebsite.sln" Targets="Publish" Properties="Configuration=Debug; Platform=AnyCPU; PublishDir=D:\todelete\FINAL\; ApplicationVersion=0.1.0.0; PublisherName=my site; PublishUrl=http://localhost/MyTempWebsite/; InstallUrl=http://localhost/MyTempWebsite/"> <Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/> </MSBuild> But it tells me that its an unpublishable project... Thank you Fwank79 wrote: <p>Thanks guys. But as you already know, it is true that web deployment projects are for websites only.</p> That's strange, as I regularly use Web Depl ...Show All
SQL Server How to divide a row data to multiple row in one table by SSIS?
Hi, Experts, I have a data table from a old system. There are 10 data fields stored in one row at this table. How can I seperate those fields into another table to be 10 rows Any component in Data Flow can I use (I have tried several component...) by the way, the original table is a large table, contain 3,000,000 rows. Thanks for your all assistance. I now understand, and as I see it there are two ways. 1 Script as below, 2 Muticast into 6 flows and then union back together, but matching the numbered columns into one single output column. You should be able to do this by opening the Union editor and fixing the column matching, deleting the addditional columns. For the script version, the code ...Show All
Smart Device Development rapi.AcitiveSync-another question
How can i understand/control the failure of rapi connection from the code while developing a simple device application thanks... Before any remote application function, can I learn whether I am connected to system or not. For example , I am going to call CeCopyFile function, and before calling it I want to learn if I am still connected. Getlasterror() do not cover this problem I think. Is operating system do something automatically when connection is closed ...Show All
Software Development for Windows Vista Display an image
I am re-hosting the workflow designer, and i want to change the look and feel on the activities in the workflow. To make them look like blue rectangles I have added this code: (I am overriding the OnPaint method.) protected override void OnPaint( ActivityDesignerPaintEventArgs e) { base .OnPaint(e); Rectangle frame = new Rectangle ( this .Location.X, this .Location.Y, this .Size.Width, this .Size.Height); Brush frameBrush = new LinearGradientBrush (frame, Color .DarkBlue, Color .LightBlue, 45); e.Graphics.FillPath(frameBrush, RoundedRect(frame)); } Instead of showing a blue box I want to show an image. Is this possible Can anyone show me what code I need to add ...Show All
Visual C++ Junk values when build in Release mode
Hello Everybody, I am having a strange problem in one of my VC++ code. I am setting a value in the code, which is getting retrieved perfectly when executed in DEBUG mode. But when I try to execute the same in RELEASE mode only junk values are being returned instead. I am totally clueless. Could anybody be having some idea on this My code snippet is as follows: _bstr_t szStatus = _T(""); _bstr_t szMessage = _T("not available"); // the value that I am trying to set int retVal = -1; try { retVal = m_oSql.GetStatusDescriptionSQL(...); if (retVal == 0) { szStatus = szMessage; // the value is being assigned here } } catch ( CSQLException& e ) { return this->Error(CComBSTR(e.m_szMsg), IID_ICola, E_F ...Show All
Visual C++ C++/CLI crashes with a pure static C++ lib
Greetings, I was trying to use a static lib in my Windows Forms exe app, but as soon as I call any function from that lib, the app crashes with an assert from the CRT, and then I get this exception: ***** An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module. Additional information: The type initializer for '<Module>' threw an exception. ***** The debugger shows that CRT asserts on allocating memory for a global class instance declared in the static lib, because the heap used for that instance is not from the CRT heap. The project is compiled with /clr only. If I remove the global variable from the lib, everything works ok... Here is a sample program that demonstrates the problem: http://www. ...Show All
Visual C# Help in Execute Scalar
hi i creating a form in VS 2005. I want to have this error at execute scalar(). Invalid casting. Can someone please help SqlConnection conn = new SqlConnection ( this .ConnectionString); try { conn.Open(); SqlCommand cmd = new SqlCommand ( "Select sum(qty) from Inventory where prodNo = @prodNo AND qty <> @qty" , conn); cmd.Parameters.Add( "@prodNo" , SqlDbType .VarChar); cmd.Parameters[ "@prodNo" ].Value = prodNo; cmd.Parameters.Add( "@qty" , SqlDbType .Int); cmd.Parameters[ "@qty" ].Value = 0; int qty = 0; qty = (int )cmd.ExecuteScalar(); return qty; } finally { conn.Close(); } ...Show All
Visual Basic disabling some keyboard key
Hello, I created a VB8-Access program, im using ADODB as my connection. now i want to disable the " quote and ' single quote this is my vb6 code Dim keyascii As Short = Asc(e.KeyChar) If keyascii = 34 Or keyascii = 39 Then If keyascii <> 13 And keyascii <> 8 Then keyascii = 0 End If End If and my vb8 code, im missing some part (or maybe my codes are really wrong) If e.KeyCode = Keys.OemQuotes Or e.KeyCode = Keys.______ Then If e.KeyCode <> Keys.Enter And e.KeyCode <> Keys.Escape Then _________ = Keys.OemClear End If End If the first blank is i can't find the single quote then the second one, if i use the textbox unto it, it also didnt work t ...Show All
Visual Studio 2008 (Pre-release) CreateBitmapSourceFromMemorySection
Can anyone explain the System.Windows.Interop.Imaging.CreateBitmapSourceFromMemorySection(..) function to me From the name it sounds like you simply give it a pointer to an unmanged piece of bitmap memory, then what you get back is a BitmapSource pointed at that data. However when I try this, the function throws an exception: "The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))". So this obviously implies to me, that the function does not take a straight memory pointer, but in fact we need to provide a handle of some sort... but to what Does anyone know Information on the web seems to be scant. Hi, I'm trying to use this method to make a direct render, but it seem ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BasicEffect, adding a texture and redering it.
I'm trying to add a texture to a cube using the built-in BasicEffect class. Can't seem to get the BasicEffect technique to render the texture. How does one set the BasicEffect technique to allow rendering the texture Here is the cube set-up: public static VertexPositionNormalTexture[] MakeCube() { VertexPositionNormalTexture[] nonIndexedCube = new VertexPositionNormalTexture[36]; Vector3 topLeftFront = new Vector3(-0.5f, 0.5f, 0.5f); Vector3 bottomLeftFront = new Vector3(-0.5f, -0.5f, 0.5f); Vector3 topRightFront = new Vector3(0.5f, 0.5f, 0.5f); Vector3 bottomRightFront = new Vector3(0.5f, -0.5f, 0.5f); Vector3 topLeftBack = new Vector3(-0.5f, 0.5f, -0.5f); Vector3 topRightBack = new Vect ...Show All
Visual Studio Do Visual Studio 2005 Web Projects support template categories?
I'm working with a VS package targetting both VS2003 and VS2005. I have a custom editor defined for my document file type (call it ".foo"). When the "Add New Item" dialog is visible, I want a separate category for my particular template type. I've been using the [ProvideEditorExtension] attribute to my package, one attribute instance for C# and one for VB.NET projects. This works great for both C# and VB.NET projects. However, it seems this attribute is ignored when I create it for a Web project; indeed, the "Categories" pane in the "Add New Item" dialog doesn't appear in that case. How can I make my item template appear in a separate category when adding it to a Web Project ...Show All
Visual Studio Express Editions PS
Maybe it's not C#, but whatever it is, it's not familiar to me. What I want to do is to type in something like "ostream" and have it take me to an appropriate page. I did manage to naviagate to the MSDN help system (although I've already forgotten how I did that). But it did not come up with a search box or a useful index. Things are organized by categories, like input and output. I really am impressed with C++ Express. And the price literally can't be beat. But I must say, for a decade, every time MS improves a product, the help system becomes more difficult to navigate. I'll try that. Right now I'm re-installing the SDK because I thought, well, maybe that would help. Is there any way to define my own filter Right now ...Show All
Visual Studio Tools for Office Create a new style with VSTO
I'm looking for a for a way, if it is even possible , with VSTO after opening a word doc, to enumerate through all the styles in the document and if there is a specific style missing to be able to create a new style and insert it into the document Also is there a way with VSTO to extract all the settings for a specific style Hi Mike Nothing specific in VSTO for working with styles, so you're stuck with what the Word object model provides. Correctly, I should send you to http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en&cr=US And you should also mention which language you're working with (VB or C#). But let's see if a quick su ...Show All
Windows Forms Select treeview node with enter
Hi there, The event AfterSelect, does not allow the user to scroll through the nodes with the keyboard. It selects the first node it comes to. I have already utilized NodeMouseClick for users who prefer using their mouse. My question is what event would allow users to select a node with enter. One requirement is that I must be able to view the tag property of the node selected. Any code examples would be greatly appreciated as I am fairly new at this. Thanks a bunch, Daniel How do you mean "select a node with enter" Do you mean when they press Enter it should go to a "next" node Or, do you mean when they press enter the NodeMouseDoubleClick event should fire ...Show All
Visual C# Increasing an array dynamically
hey there, I want to declare a single dimentional array somewhere and then increase its size dynamically inside a foreach loop. e.g.: //declare array2 foreach int i in array1 { //increase size of array2 } About your question, here is a little example how to encrease the size of an array: Int32[] source = GetArraySource(); Int32[] dest = new Int32[]; foreach ( Int32 i in source ) { Int32[] temp = new Int32[ dest.Length + 1 ]; dest.CopyTo( temp, 0 ); temp[ temp.Length -1 ] = i; dest = temp; } ...Show All
