Mike Green's Q&A profile
Visual C++ Convert Unmanaged code to Managed code
Hi all, I have a source code written in C++ unmanaged code (OpenCV), but i'd like to use it in my C# program, is there any hint to convert those unmanaged code to managed code (i don't want to use DLLImport) Thanks in advance. Wrap the code you have in a managed wrapper and then just add the binary as a reference to your C# application. Take a look at the the following past post that deals with similar issue: http://forums.microsoft.com/msdn/showpost.aspx postid=73778&siteid=1 Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Express Editions rand() --- its ALWAYS 41!!!!
I have this code: #include <iostream> #include <cstdlib> using namespace std; int main () { int number; int guess; int count; number = rand(); for (count = 1; ; ++count) do { cout << "Guess your number: "; cin >> guess; if (guess == number ) { cout << "Wow, you guessed it right!\n"; cout << "\n the number was: " << number << "\n"; cout << "You found the number in " << count << " times!\n"; system ("Pause"); return 0; ...Show All
Windows Forms How to identify the acutal row ?
I have an dataset with some tables in it. I'm binding one of the tables ("Accounts") to a ListBox, set the DisplayMember and ValueMember. Everything works fine. When i klick on the Listbox, i change the Itemindex and maybe somewhere the actual row of dataSet1.Accounts.Rows ... my question is, is ist possible to find somewhere in the dataset the (in&nbs ...Show All
.NET Development SQL SecurityException, but only when debugging remotely?
Hi All, I'm having trouble remotely debugging a console application. The application will run on my server, but I am developing it on my desktop machine. I am using Visual Studio 2005 and C#. On both machines (server and desktop) I am logged in with my domain account that has administrator rights on both machines. When I run the executable on the server it connects to the SQL Server 2000 instance without problem and starts accessing data. However when I try to start the executable by remote debugging from my desktop machine I get to this line of code: unfetchedPhotosTableAdapter.Fill(photoDataSet.UnfetchedPhotos); ...Show All
Visual Studio VS2005 keeps trying to check out shared project
We have a project that is shared between to different solutions. Ever since we started using VS2005(w/VSS2005) one solution has opened up fine. The other solution keeps trying to check out the project files of a select number of projects that are shared between the two solutions. When we save these project files to see what changes the offending solution makes we see the following: (EXAMPLE ONLY) Original: SccProjectName=""$/Development/PROGRAM/Shared/BASE", FSBFAAAA" Diffed Version: SccProjectName=""$/Development/PROGRAM/Shared/BASE", BFAJFFFF" As you can see it wants to chnage tho ...Show All
Visual Studio 2008 (Pre-release) WPF is going be absent in First Vista Release
Hello all, I am reading on some news groups that WPF is not going to be there in initial release of windows vista. Does anyone knows more about it I cannot imagine vista without WPF. Any thoughts from experts Thanks Basav Jonas Beckeman wrote: This is troublesome news, if it's true. Please, MS, shed some light on this. It would seriously affect my commitment to WPF if it's not pre-installed on Vista. I had hopes that WPF would be a viable platform for some of my products within 2-3 years, but maybe I should think more like 5-10... I really need to know about the plans f ...Show All
Visual Studio Team System How to migrate VB6 source code in VSS to VSTS2005
We are planning to migrate more than 400 forms and 1000 class from the VB6 in VSS to the VSTS. After the migration, can the development team still work in VB6 or they have to move to VB.net Besides that, pinning and sharing of the existing project will be broken after migration. Somebody mentioned that some freeware software can help out on this issue. Do you know the name of the software. OR. You have better solution for that Tim Wong Tim HK Wong wrote: We are planning to migrate more than 400 forms and 1000 class from the VB6 in VSS to the VSTS. After the migration, can the development team still work in VB6 or th ...Show All
Visual Studio Installation of Visual C++ Express Edition
What I'll do for install Visual C++ Express Edition if i have not the service Pack1 of windows server 2003 because i have a problem whith this service Pack. The setup will block you from installing if you dont have the prerequisites. Contact MS support if you can't install the Windows 2003 Server service pack. ...Show All
SQL Server dling xml file over SSIS possible?
i need to download a file over HTTP and get a xml file then upload it into SSIS. Only 2 methods are available in SSIS: FTP and web method. How come there is no HTTP transfer task in SSIS pretty strange. then i found a script at http://www.sqljunkies.com/howto/49e823fd-d126-4134-893d-1fd8bd3bd3ba.scuk What kind of SSIS tasks do i need to perform this operation I got the script above but I don't know where to key it in. ok i did the script task but how do i pass the variables remoteuri and the local filename to store to the script task ...Show All
SQL Server Failed to prepare query - Designer Report with Model as Datasource
SQL Server Reporting Services 2005 Problem: I'm trying to create a report in Visual Studio 2005 using a data souce to an existing model that I deployed earlier. When I drag some fields on my report then click run, I get the error below. screen shot: http: / / www. webfound. net/ reporterror_ model_ designer. JPG TITLE: Microsoft Report Designer ------------------------------ An error occurred while retrieving the parameters in the query. Failed to prepare query. ------------------------------ ADDITIONAL INFORMATION: Failed to prepare query. (Microsoft.ReportingServices.DataExtensi ons) ------------------------------ http: / / ww ...Show All
Visual Studio Outline Pen Width
Hey Guys, I have a quick question: How can I change the pen width for the outline of a shape Thanks in advance Pablo Hi Pablo, It works the same for all of the shape types. In the current bits, you'll need to write some custom code to change the pen width. To do so, you need to override the InitializeResources method for the shape classes that you want to change. And then, use code like the one below: public partial class ExampleShape { protected override void InitializeResources( StyleSet classStyleSet) { base .InitializeResources(classStyleSet); PenSetting ...Show All
Visual Basic ControlDesigner vb.net express
Hi, Is System.Windows.Forms.Design.ControlDesigner unavailable for VB.net 2005 express I am having problems finding it. It's available. It's part of the .NET framework, not part of Visual Studio. http://msdn2.microsoft.com/en-us/library/sycctd1z.aspx Have you added a reference to System.Design.dll Best regards, Johan Stenberg ...Show All
Visual Studio Team System Make the process fit the project: A minimal methodology template
Does Microsoft have any plans to produce a minimal methodology template for people who want to produce their own process I would like something with perhaps just two roles (developer & customer), some work items (bugs, tasks, story), one activity (report bug), one workstream (team build) and one work product (source file). Lots of people seem to be spending a lot of time stripping down the existing templates to get to this sort of minimal state. Will You're not alone in wearing many hats; product manager, program manager, developer etc. Most people in software development seem to do the same. Even big companies usually o ...Show All
SQL Server Cannot connect to SQL Express Remotely
I have SQL Express April CTP (from VS Beta 2) installed on machineA, but I cannot connect to it from machineB using the command "sqlcmd -S machineA\sqlexpress -E". This command works just fine from machineA. I have enabled the TCP/IP protocol for the SQLExpress instance through the configuration manager, and turned off the Windows Firewall on machineA. Any ideas on what I'm doing wrong Hi, I have the same problem, I cannot connect remotely to sql server express I have done all the steps in that article http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx http://support.mi ...Show All
SQL Server Freeze Panes
I have created some reports in RS that contain alot of information. The problem I have is that at the top of the list it is fine, but when you start to Drill Down and then scroll down the list, the column titles disappear. So the question is, how can I freeze the horizontal and vertical panes, or should I say, can I freeze those panes Regards You can accomplish this within a Table. Include all the info that you want to stay on the screen in the Table Header and set the FixedHeader property to False. Then when you scroll down, the table header remains at the top. You will probalby want to change the background color from transp ...Show All
