PedroCGD's Q&A profile
SQL Server XML Bulk Load
I am trying to load data from two different elements to the same database table but keep getting errors. It appears that the sql:relationship is not defined properly but I am unable to find anything explaining how to define the relationship. Would someone please help The xml data is: <billers> <biller Key="8279" > <billerInfo> <billerId>0062599175</billerId> <billerName>AAA Hawaii Insurance</billerName> <billerClass>Insurance</billerClass> <billerType>Core</billerType> <currency>840</currency> <preNotes>0</preNotes> <guarPayOnly>1</guarPayOnly> <reqAdndaRev>0</reqAdndaRev> <country>USA& ...Show All
SQL Server Error installing SQL Server 2005 editions on Windows VISTA
There are numerous posts regarding this error when installing SQL Server 2005 on Windows Vista RTM thus I am starting a new thread in order to get resolution one way or another: SQL Server Setup failed to execute a command for server configuration. The error was [SQL Native Client]Windows user or group "\USERNAME\SQLServer2005MSFTEUser$USERNAME$MSSQLSERVER" not found. Check the name again... The error occurs when installing SQL Server 2005 Developer Edition, SQL Server Express SP1, SQL Server Express SP2 CTR (with or without the SP2 Toolkit package installed beforehand). The error occurs with or without UAC. The installation then fails. Please advise if you have any insights. SQL Server Express SP2 CTR was announced as a workable v ...Show All
Visual Studio 2008 (Pre-release) Tools for WCF
First off, let me say, WCF is a dream come true. Its everything I've been wanting to develop distributed apps. Now that wcf is live: http://wcf.netfx3.com/blogs/news_and_announcements/archive/2006/11/08/We_2700_re-done.-WCF-is-live.-.aspx#comments I'm wondering how I should develop applications to take advantage of this new framework In general, I do not think its a good idea to run code developed using beta/ctp's in a production environment (licensing/support etc.). There are a few exceptions to this, but in general, I like to sleep at night, knowing that I'm running code developed using supported tools in the event that something does go awry. And to be honest, I cannot make the pitch to my boss saying we should run beta/ctp ...Show All
SQL Server Client Render broken after upgrade to Win2K3 Enterprise from Standard
First off, any suggestions are welcome here as we're lost. We have a farm of 2 Win2k3 (standard) servers that had a couple GB of RAM. We then installed 16GB of RAM and upgraded to Win2k3 Enterprise to handle the upgrade. Prior to the OS upgrade our reports rendered as expected. Post upgrade, they do not. Some background on how we render...we open a PDF rendering of a report in a popup via JavaScript. Also, we have 3 environments running the same code base. The only difference between the 3 is that one environment is the one we upgraded to Win2k3 Enterprise. Again, any suggestions are much appreciated! Scott Of course, I forgot to add what's probably the biggest key. Only clients have thi ...Show All
Visual Basic ActiveX VSFlexGrid upgrade problem
I used the Upgrade Wizard to upgrade a VB6 project to VB2005 that uses the ComponentOne VSFlexGrid ActiveX control (ver 7) and found that during the conversion the methods of the VSFlexGrid that take optional parameters no longer show as optional. For example, the "Autosize" method shows in VB6 as: VSFlexGrid.AutoSize Col1 As Long, [ Col2 As Long ], [ Equal As Boolean ], [ ExtraSpace As Single ] which in VB6 I call with 2 parameters: flxDisplay.AutoSize (0, flxDisplay.Cols - 1) But after the conversion the 2nd, 3rd and 4th parameters are no longer optional and VB2005 flagged my code with an error saying that the "overload resolution failed because no accessible "AutoSize" accepts this number of argum ...Show All
Visual Studio 2008 (Pre-release) Simple arithmetics in XAML
Hi everybody. I am wondering, if there is an easy method to use simple arithmetics in XAML without the need to go into code-behind for every simple calculation. I.e. I would like to write things like this: Width = " {TemplateBinding ActualWidth} *1.1 " or Margin = " - {TemplateBinding ActualWidth} *0.1/2 , - {TemplateBinding ActualHeight} *0.1/2 , 0, 0 " Is this possible in some way Thanks, Michael. Thank you very much for this info, Doug! I did not know yet, that there was a possibility to write custom converters. The arithmetic converter works well for me and solved my problem. Marked as answer. Just for example reasons I have also tried to make it work with the Margin ...Show All
Visual C++ Trying to use function pointers in a class
Hi all, i'm having a bit of a problem understanding Function pointers, but i think i might be able to put them to a good use here. I have a class ( CCanCCM3 ) that stores data internally. It gets that data from other classes ( CCanRcvMessage ) that get their unpackmessage called by an external manager, upon data ariving on the bus it is listening to. What happens now, is that for each message that can come in, they inherited it and only changed the message for which to listen on the bus, and the function that should get called when that message is received on the bus. I would like to create a derived class that gets that message ID passed to it in the constructor, and also a function pointer to the function it needs to call. Could ...Show All
Windows Forms Hiding tab pages
I have gone through the threads available on this subject and have tried the suggested solution. But they don't seem to work. I have design my tab pages with the TabControl using the visual basic 2005 express. I have 4 tab pages on my application, each with a datagridview thing which have connections etc. coded for each. Is this the reason why the tabcontrol.tabpages.remove() way is not working or is it due to the limited capability of the IDE please enlighten this cofused and blurred student.... thank you. All right, I have managed to get it working. It seems that my hunch about the g variable seems to be true. I tried this line and it works the way I want it to work: If g3 = Nothing Then ...Show All
Visual Studio Team System Project/Solution Hierarchy
I am in the process of migrating our code from VS6 to VS2005 with Source Control going from VSS to TFS. We are building separate DLLs that form our overall products, but I regard each DLL as a separate product. This means that we have lots of shared source files in the existing projects, where the sharing is handled by VSS. Moving to TFS means that Sharing is no longer an option - so I want to just copy all of the shared source files to a single location and re-link the solutions to those as I port them from VS6. Unfortunately, my directory hierarchy isn't allowing me to do this. For example, our solution for Socket communications component is at: Claricom/Transport Layer/CLSocket but the Common Files folder is at: Claric ...Show All
Visual Studio Express Editions Setting TextBox.Visible = true not taking effect.
Visual Basic 2005 Express: When the user presses the "Send" button to send an email, there is a long delay until the MsgBox("Email Sent Successfully!") message appears. So, I added a text box to the form with text = "Sending . . . .". and I set it's visible propery to 'false'. The first instruction in the 'SendButton' subroutine is SendingTextBox.Visible = true. But, the TextBox does not become visible until the MsgBox("Email Sent Successfully!") message appears! Try putting a Application.doevents immediately after the textbox.visible = true. This should force this Command to occur prior to it continuing on with the code. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game effects .FBX/.x vs Sprites
My previous experience with game creating/modding has led me to believe that most effects from my previous expereince were actual models, with a birth, stand, and death animation. In the games that used models for effects there was a use of sprites, but it seemed mainly for lighting or for streaming lines of fire or whatnot. Is this a general rule of thumb when creating effects to use models with simplistic animations to achieve the desired effect and to use sprites when creating streaming lines of lighting effects I know it ultimately up to the developer, but if anyone is expereienced in this area and could enlighten me with a general rule of thumb I'd greatly appreciate it. Is it that if using sprites is capable of achieving the des ...Show All
Windows Forms Need Help getting image to show up in PictureBox
I have a program that has an openFileDialog and some pictureboxes that I want pictures to show up in according to the images you choose in the openfiledialog from the local harddrive. But I don't know what to type in the GetThumbnailImage(); private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image.GetThumbnailImage(); } Hi, Please try this. private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image =Image.FromFile(AddPic.FileName); } ...Show All
Microsoft ISV Community Center Forums NUMBER GENERATOR HELP NEEDED
Hi, I'm looking for a letters generator from a to g. Or a numbers generator. 1 to 9. I have a scoring system for a horseshoe game I created in excel 2007 beta. I need the letters in column d3 to d13 to update once a round is completed. Which happens ok. But once a team is eliminated. I dont want a letter assined to the cell. If anyone could take a look will understand my issue. I will email you the workbook if you think you can help me out with this. I don't no vba yet but am trying to understand it. my email is trobert672@comcast.net Hi, To produce random integers in a given range, use this formula: Int((upperbound - lowerbound + 1) * Rnd + lowerbound) Dim upperbound As Integer upperbound ...Show All
Visual Studio Express Editions Link
For a link label, on click what's the code to make it launch the link I have a linklabel.text set but when I click it, it doesn't launch. Hi Goat Spirit, ahmedilyas' solution will work; unfortunately it suffers from a couple of issues. One, it only uses IE and ignores the user's default browser setting. And two, it causes your UI to block until the browser is properly loaded--which could take several seconds, leaving your UI unresponsive and unable to paint correctly if you switch to another application and back (or another application pops-up). A pattern I use is to use a BackgroundWorker object to use a background thread to spawn the browser. To make it more complex, Process.Start doesn't support exe ...Show All
Windows Forms What am I missing to install a windows service?
I'm attempting to construct a setup/installation package for a windows service, thus far I have completed the following steps: 1.) Added an 'installer project' by right clicking -> "add installer" on the service1.cs file. This added a ServiceInstaller1 and serviceProcessInstaller1. 2.) I set the ServiceName to the name of the project (MonitorWebSite), the startType as Automatic, and put appropriate entries in the Description and DisplayName variables of the serviceInstaller1 object. 3.) Added a "Setup Project" via File -> Add -> New Project. 4.) Defined the startup object as MonitorWebSite.Program in the solution properties. I'm now instructed to first: "Add the output from your service proj ...Show All
