JGP's Q&A profile
Visual Studio Upgrading VS6.0 Add-in to VS2005
Hi, I have a Add-in (written in VC++) that works fine with VS6.0 We are now upgrading to VS2005 IDE and this Add-in does not work. It does not even build well. There used to be a directory "Objmodel" in the VS6.0 installation. The Add-in uses this directory. This directory is no longer present in VS2005 installation. How should one upgrade 6.0 Addin to work in 2005 I thought merely opening 6.0 project in 2005 would do the needful, apparently it is not all that easy. I can share my code if someone is willing to help, it is just 15 classes. Thanks in advance, -Shrikant Thanks Carlos. At this moment I am going through your site. Does VS2005 allow using MFC I think it will have to be unmanaged code ...Show All
SQL Server Displaying values in list from Left-Right instead of Right-Left
Hi, I want to display values in a listbox from left to right instead of top to bottom. Instead of displaying values like this D001 D002 D003 D004 .. .. .. I should display D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 D004 D005 D001 D002 D003 I also should restrict the length of the listbox. Maximum of 20 values only should displayed per row. Is there any way to acheive this Either using Table or Matrix dataregion Or concatinating string in a textbox Regards, I have done something similar for a mailing label report. i had to create a list box for each section L ...Show All
Windows Live Developer Forums WLM Showing as Offline all the time
My friend has a problem with his MSN. When he signs in as Online or any other status, it shows him as Appearing Offline all the time. He has tried installing different versions of MSN too, and still it didn't fix it. He has tried logging in from a different computer and still had the same problem. But, he registered a new account and the problem was gone... so it's just a problem with his main MSN account. Does anyone know what this might be, and how to fix it :) Congratulations, PiaMaria . You have solved the issue for me and probably many people in the future. Let's hope the WLM team can come up with a quick fix for this Yahoo! Messenger problem. Many thanks. Is what I would have said if it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need Help with Opening Scene
I would like my game to come up to the opening scene, and when i press the spacebar it goes away and my game starts. I have tried something like this in my program: void _startGame; { using (Blank game = new Blank()) { game.Run(); } } But when i press spacebar it gives me an error. Thanks, for the help! Everything seems to work, but when i hit space it always throws an error (only when i try to run the game inside the already existing loop), how can i make a screen that shows up and when spacebar is hit it will close and the actual game will begin. So if i hit space this screen disappears and then my actual game appears and i can start playing it. Thx for the feedb ...Show All
SQL Server Where can I check Edition Information?
Dear all, Do you know which file or command I can use to check what is the Edition of Reporting service that we have installed We install it on a separate server from the Database. Thanks in advance. Regards, Terry Just a simple way to find the edition is to go to the following folder where reporting services is installed: usually it is C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles and open any of the log file in .txt extension and search for the word "edition". You may find the text "INFO: Catalog SQL Server Edition = Enterprise" if the edition is Enterprise. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Wireless GamePad in windows exceptions
Working on a SpaceWars mod, with a wireless GamePad connected using the new Wireless GamePad for windows receiver. I notice that: Y button presses are not being picked up & getting errors in Right Thumbstick 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightX' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' 'XInputHelper.GamePads[PlayerIndex.One].ThumbStickRightY' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' anyone else come across this I'm going thru the GamePadHelper.cs class, and it looks consistent for Y with the other keys that work. Looks like a bug in SpaceWar star ...Show All
Audio and Video Development Can I create byte stream from network source?
I want to create IMFByteStream instance using source resolver. When I use files on disk as the source URL, all is fine. But when I use network source ("mms://streaming_server/file.wmv") as source URL, the resolver's CreateObjectFromURL method fails with error code MF_E_UNSUPPORTED_SCHEME. I tried using "http:", instead of "mms:", but that fails too. Is "mms:" or "http:" scheme not registered with MF by default ~ UK The MF Source Resolver should be picking up http://, mms://, and rtsp://. What if you try: IMFSchemeHandler *pSchemeHandler = NULL; MFCreateNetSchemePlugin( IID_IMFSchemeHandler, (void**) &pSchemeHandler ); pSchemeHandle ...Show All
Windows Forms Drag and drop outlook contacts
hey howzit its easy to import contacts from outlook in code...but what i wanna do is be able to drag an outlook contact straight from the running Outlook Application itself into my running C# application...can anyone help So far I am able to drop random files into a listbox using this tutorial: http://www.csharphelp.com/archives2/archive365.html but its still doesn't provide me will the ability described above There are a couple of things you have to do: - Handle the DragOver event of the control you want to use as a dragging target... and set the e.Effect to the correct DragDropEffects (eg: e.Effect = DragDropEffects.All); - In the DragDrop event: string text = (string)e.Data.GetData("Text", true); string[] item ...Show All
Visual J# Console J# IF problems
Hi I have this code that runs but the problem that it does not properly go to the if statement. It starts with the check for male but then does not go into the high requirements. I was wondering if anyone could look through and check what the problem was package Lab4; import System.*; import java.io.*; import System.IO.*; import System.Data.*; /** * Summary description for Class1. */ public class Class1 { public Class1() { // // TODO: Add Constructor Logic here // } /** @attribute System.STAThread() */ public static void main(String[] args) { //test code, replace with variable to test //Console.WriteLine("\n" + name); int counter = 1; Console.WriteLine("\tWelcome to Nasa Space Credential A ...Show All
SQL Server xquery question
I have imported the contents of a xml file into a xml data type. If I then want to return the values of a particular node as a relational data type, how do I do it I'd want to return every value for that element in the data type. Therefore multiple rows/elements. Therefore in the following xquery : DECLARE @x xml SET @x = ' <Root> <row id="1"><name>Larry</name><oflw>some text</oflw></row> <row id="2"><name>Joe</name></row> <row id="3" /> </Root> ' SELECT T . c . value ( '@id' , 'int' ) as id , T . c . query ( 'name' ) as NAME FROM @x . nodes ( '/Root/row' ) T ( c ) GO it ...Show All
SQL Server SP Compilation Confirmation Message?
How can we say whether the SP is successfully compiled or not if we are compiling it on the server as a part of the TSQL script since it does not throw any message like ORACLE does. In oracle, system will let you know whether the the procedure is successfully complied or not Thanks/ Hi, In the moment of you execute one stored procedure do you not see in log or any output. Can you see the compilation or recompilation start a trace in SQL Server and choice the events. Regards, ...Show All
.NET Development Expression Building - Access 2003
Good Evening All: The Scenario: I am running a report from clients that have sales reported daily, weekly, monthly and so on. I need to put an extra calculated field in the form in Access that determines the next time the client needs to report data. Example: Client "A" sent in data today and they report every day. Client "B" sent in sales today, but reports weekly. I need to add an expression to determine if client A sends today and they are a daily reporter, then the calculated field would display the next day. Same for a client that reports on a weekly basis. The field would calculate if they sent data in today, then 7 days from now would be the next time they would need to send data. Here is what I have so ...Show All
SQL Server Errors / warnings after deleting variables & Connection Manager objects
Hi, As I was developing my SSIS package, I created several variables and tasks ( FTP, WMI Reader Task ). I am now cleaning up, deleting unwanted variables and connections in the design window. I save and build the package and when I load the package, I get warnings that these variables are referenced but can't find them and errors that the WMI connection is not found. When a package calls a sub-package, it stores the absolute path of the child package in its dtsx xml file in a Connection String property. How annoying !!! . When I deploy this to another machine with a different file structure, it becomes a problem. Why can't it store the path relative to the parent package, which would be typically in a sub-directory under the paren ...Show All
Visual C# intersection between 4points(2lines)
Hi, I want to calculate an intersection between 2 lines. those two lines are drawn between 4 points. I now how to make the y=ax+b expression but the problem is that there is always an intersection between to lines if they don't have the same slope(a). So i need to find a formula which returns a bool when the intersection is between the 4 points and not over whole the line. Grtz Annihil8 I don't believe that C# has anything common with your problem. Your problem is strictly trigonometric and you should consult some Math book for this. What you need to search is cross point between two lines that are passing those two points each and find if that cross point is between their two points of both ...Show All
Visual Studio Express Editions form design error
Hello, I 've got a problem, when I try to open in design a form, an old or a new, I've got this error : One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. No data is available. Hide at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.Win ...Show All
