Guwapo's Q&A profile
Visual C++ Matrix of managed garbage-collected objects
Hi everyone! How can I put in a double array some gc objects I mean, let's suppose we have some Foo objects (instances of the ref Foo class) and their pointers Foo^: if Foo were not a managed class, I would use the statements: Foo*** fooMatrix = new Foo**[elemNum1]; for(int index=0; i<elemNum1; i++) { fooMatrix[index] = new Foo*[elemNum2];} Instead, what have I to write if I use gc objects Something like Foo^^^ (but it doesn't seem to work) Thanks! What error exactly Beginning of this file is standard for Console application: #include "stdafx.h" using namespace System; ...Show All
SQL Server Changing flat file connection file name property
Hi, I have a task to traverse a folder of CSV files of same format and then populate into one sql server table. Is there a way where I can change the source CSV file name runtime using FOR EACH loop container for flat file connection manager any help would be much appriciated. Thanks, Furrukh Baig I'm assuming you're talking about the foreach loop container in the tutorial (ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/sqltut9/html/88a973cc-0f23-4ecf-adb6-5b06279c2df6.htm) Can you use a similar concept to loop thru xml files I have an xml source, 2 sorts and a merge-join. Whenever I change the input file, I need to open my sorts and click ok. How will that work if I need to iterate thru a directory of files ...Show All
SQL Server Deployment problem with protection level
Hi all, I have a problem while trying to deploy my packages that are configured in ProtectionLevel=EncryptSensitiveWithUserPassword I use the Deployment Utility to deploy my packages. I set the password when deploying and the deplyment works fine. But I run the packages I have the following error : " Failed to decrypt an encrypted XML node because the password was not specified or not correct." Did I miss something Sebastien Nunes wrote: Because I'm deploying to a Test Environment and the Data on the Test Env are different so sometimes I would like to debug on the Test Env which means I load the package in BIDS. What's wrong about using EncryptSensitiveWithUserPassword ...Show All
Visual C# Apply Button On Modal ShowDialog Form
Hi all, Let say I have two forms. One is the Main form. Another is the Options form. My Options form is called by the Main using ShowDialog() command. I have an apply button on the Options form that allow user preview / apply the Options that they had set without closing the Options form. The is another OK button on the Options form. The OK button will Hide() the Options form. Then, it will execute the "ANOTHER CODE REGION". That is what I wish to do without hiding the Options form. Is it possible with the ShowDialog() function frmOptions frm = new frmOptions(); frm.ShowDialog(); // ANOTHER CODE REGION that draw something on the main form. Thanks in advance. Thanks, Boban.S. I would like to se ...Show All
.NET Development .Diagnostics.Process Treats File URL as a Second Class URL?
I can't seem to get the System.Diagnostics.Process class to launch the default browser, load a local HTML file and advance to the bookmark in the HTML file. If I use a URL like: http://en.wikipedia.org/wiki/Abraham_Lincoln#Lincoln_to_1854 then it will open the browser and advance to the bookmark. If I use: file:///c:/FileWithBookmarks.html#The_FIVE then it will only open to the top of the page...it will not advance to the bookmark for local file URLs. Here's the code I'm using: System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(); psi.FileName = txtURL.Text; psi.Verb = "open"; psi.CreateNoWindow = true ; System.Diagnostics.Process.Start(psi); Can anyone see what is wrong with the ...Show All
Visual C# Help system like Windows 2007
Hi, Can anyone tell me which forum to go to get information abt creating a help system, like the one that comes with Windows 2007. I have Microsoft HTML Help 1.4 but i don't see any feature to create something like the new help in Win 2007. Thnaks pras most likely not possible yet as those features are unique to the platform and not released yet. I've also moved the thread appropriately, see if anyone else knows a way that I am un aware of ...Show All
Windows Forms Creating a printpreview layout
Hi, I'm writing a program that has to be able to print a label, now the user gets all the information that is intended for on the label as different panels on the right side of a bigger panel. The bigger panel contains in the middle a preview of the label, and the user has to be able to drag different information panels on the position they choose, so that they can manufacture a personalised label. Is this at all possible, or do I have to find another way ...Show All
SQL Server Saving a report built in Report Builder
I have built a report using Report Builder. When I try to save it I get and error, The name cannot contain any of the following characters: ; @&=+$,\*<>|", and cannot consist exclusively of dots or spaces. The name I am saving is cta. Any ideas I do not think so. Did you install anything special on the web server, like front page server extenstions or disable the firewall or open a port in the firewall. Did you just do a vanillla install of reporting services or did you add pieces on afterwards (don't know what these wou ld be) ...Show All
Visual Studio Team System TFS host name change problem
After changing Team Foundation Server host name from "foo" to "foo.mydomain.com" according to the procedure described in http://geekswithblogs.net/etiennetremblay/archive/2006/07/28/86542.aspx everything works fine except for one thing. When users are notified about changes in VersionControl through e-mails, the pages (for instance, http://foo.mydomain.com:8080/VersionControl/Changeset.aspx artifactMoniker=496&webView=true ) referred in the messages can not be displayed. After the initial investigation the problem seems to be in incorrect xml-stylesheet instruction < xml-stylesheet type="text/xsl" href=" http://foo:8080/VersionControl/V1.0/Transforms/changeset.xsl " > in the generated by Changeset.aspx ...Show All
Smart Device Development Problem-Connecting to sql server using pocket pc 2003 emulator..
Hi Folks, I am trying to connect my remote sql database using the pocket pc emu. 2003. I am getting the error "SQL Server does not exist or access denied.". The thing is I have ASP. net projects and I connect without any hassle. I have also tried connecting to an online database using the pocket pc '03 emu. and it works....I just don't understand why it isn't working remotely.... Can someone kindly help OK, I change my computer's name to the IP address that my computer has..while it is connected to the internet and it works... . I could only hope it works tomorrow... . But I don't understand why it is giving me all of this trouble...but..I can only accept it..and try to find solutio ...Show All
Visual Basic Classic triangle program
Could you help me write a program that requests an odd number, and display a triangle similar the image with the input number of stars in the top row. The computation should be carried out in a Sub procedure. ~output at the listbox~ THX~~~~ MattDe_MS wrote: I'm sure whoever gave you that nice screenshot would be willing to tell you how he developed the program. Not if the screen shot came from the teacher who assigned the project!! ...Show All
Visual Basic simple string manipulation pda
I've got a string "6/78=12.34" i need to get the value to the right of the = sign how would I do that Mitch Dim s As String = "6/78=12.34" Dim index As Integer = s . IndexOf ( "=" ) s = s . Substring ( index + 1) Dim d As Decimal = CDec ( s ) ...Show All
SQL Server Connection problems
Hi, I am trying to connect to a simple cube in SQLAS2005 from a Webpart "SQL Server 2005 analysis filter" in SharePoint 2007. I have entered a reference to the cube in the sharepoint connection library, but when I try to configure the filter webpart, just before selecting dimension and hierarchy, I get the following error: The connection either timed out or was lost The inner error from the sharepoint logs show this: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host I have tried to give permissions to both myself and the sharepoint server as admin in both the sql server 2005 and created an admin role in the analysis server 2005. The firewall is turned off. Nothing wor ...Show All
Windows Forms how to pass searching for updates if the publishing location is down
when starting published application, it tries to get the updates from the publishing location, if he can't find the location then error message will appear and user can't start the application. how can i force the application to start using the previous version of the application if the location is down thankfully waiting for reply ASAP. I was pretty sure apps should be able to start if they can't get to the web server. Hopefully someone from the ClickOnce team can jump in. One thing you can do is to change your settings when you publish so that updates are checked in the background. This will allow the app to start. THe downside is that if you have an update available, without some code in your app to handle ...Show All
SQL Server DCOM error
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of: The request failed with HTTP status 400: Bad Request. One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5. The new ReportServer VD appears to work (althou ...Show All
