Alvin Kuiper's Q&A profile
Visual Studio Express Editions Matrix implementation problem
Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All
Visual Studio Express Editions I Want to simulate the button clicks on a desktop icon.But I can't get the right position of cursor.HELP!!!
My code is: #include "Windows.h" void main() { POINT pos; GetCursorPos(&pos); SendMessage(HWND_BROADCAST, WM_RBUTTONDOWN, pos.x,pos.y); SendMessage( HWND_BROADCAST, WM_RBUTTONUP, pos.x,pos.y ); } Hmya, that code is not going to work. The best you can hope for is that every running program is going to pop up their context menu. What exactly are you trying to accomplish ...Show All
.NET Development XML variable problem(small question)
Hey, In this code: XmlTextReader theReader = new XmlTextReader ( Application .StartupPath + "\\options.xml" ); while (theReader.Read()) { theReader.MoveToElement(); if (theReader.LocalName.Equals( "Fontbar" )) { string value = theReader.ReadInnerXml(); if ( value = "1" ) { toolStrip2.Visible = true ; fontBarview.Checked = true ; } else { toolStrip2.Visible = false ; fontBarview.Checked = false ; } } } I am having the program in it's load event check to see if it should have the Font Toolstrip(toolStrip2) be visible or not...but on the line of code I highlighted red I get this error: Error 1 Cannot implicitly convert type 'st ...Show All
Visual C# Compiler Error CS0570 from C++ defined property
Compiler Error CS0570 Does anyone understand error CS0570 'class' is not supported by the language This error occurs when using imported metadata that was generated by another compiler. Your code attempted to use a class member that the compiler cannot process. The code being called was written in Managed C++ paraphrased like so: public ref class FilePath { ... [MyPropAttribute] property int Name { const int get(); } ... }; The attribute [MyPropAttribute] is defined like so: [System::AttributeUsageAttribute(System::AttributeTargets::Property)] public ref class MyPropAttribute: public System::Attribute {...}; When I try to use the property in C# code I get CS0570, but see no document on how to get around t ...Show All
Windows Forms GraphicsPath on Transparent Bitmap
I've recently migrated over from VB6 to VB.Net and C#. I decided to rewrite a fairly simple program that drew lines onto a semitransparent form and then made the form completely transparent once the drawing was complete. The problem that I've found with C# is that after I call Bitmap.MakeTransparent(), I cannot use GraphicsPath to draw on the form. Is there some way of setting the bitmap back having a solid background after calling MakeTransparent Any help would be greatly appreciated. Will Vandergrift Wilz Modz It is not clear how the bitmap and drawing on the form interacts. Show us some code please. ...Show All
Visual Studio Tools for Office VSTO 2005 SE Runtime Installation in MetaFrame Environment
I would like to deploy a VSTO 2005 SE Word Add-In in a Metaframe Environment. The administrators asked me to check, whether the runtime can be installed in a Metaframe Environment and what the costs of resources are. I couldn't find any information in the install instructions so far. Does anyone have any experience with this issue thanks for your help. We've tested VSTO 2005 SE running on Windows Terminal Services, which is related I believe, and that's fine, but we don't know anything about any Citrix MetaFrame specific configs. ...Show All
Smart Device Development Debug Services.exe
Hi, I have developed a pocket pc service to test the battery level. But I am unable to debug that dll. Can any one tell me how can we debug the Services.exe You can attach the VS 2005 debugger to services.exe using Debug-> 'Attach to Process' This article should help: http://www.pocketpcdn.com/articles/services.html ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3/4 Perspective in a 2d game
I have been working on a fairly simple, fairly silly, Zombie game that is purely in 2D "straight on" perspective right now. I'd like to do a 3/4 view like that of many of the Zelda games, or perhaps a pseudo-3d side scroller like Golden Axe/Double Dragon/Castle Crashers. I am completely new at this so I really have no idea where to begin. Is creating a 3/4 perspective or something like Castle Crashers just a matter of changing how you draw sprites or can you adjust the viewport to give this kind of view without having to draw sprites specifically for that perspective Just to be clear, I'm not really intersted in creating a 3d game, I want it to stay 2d, I just want to know what my options are for creating perspective with 2d art ...Show All
Windows Live Developer Forums Any "Team BritBot" winners?
The Team BritBot competition ended 2 weeks ago, and according to the rules, the winners should be notified by e-mail: "18. Prize winners will be notified by e-mail by 15th September, 2006." I didn't participate (I'm not from the UK unfortunatly) so I don't know if the e-mails were indeed send out. Any participants here, or maybe even winners Mess.be anounced the winners (I wonder where they got that information), but as you can see the InsideMessenger bot indeed won, and the 2 other winners are The Winning Bot and the YachtBot . Congratulations to all the winners! ...Show All
Smart Device Development How to make the application start with system
Hello,everyone: I want to make my program run when the system boot. So how can I do that by code Any APIs or sample codes Kenneth Yang wrote: hello: I think you can add a key in register, when initial, you can get the register key value, if 0,you continue run the program, if 1, return. Best Regards, Kenneth Yang That means my program have to run every time when the system boot in case of get the register key vlaue,and decide to continue or not Am I right Well,somehow I dont feel it reasonable.Still, thank you very much for your help. ...Show All
Software Development for Windows Vista Error 0x8004D00E on SQL Server 2000 + Windows 2000 SP4
We have an ASP.NET application running on Windows Server 2003 whose database backend lives in a different machine which runs SQL Server 2000 and Windows 2000 Server SP4. Whenever we try to use System.Transactions we get errors. We are almost sure that the problem is related to MSDTC refusing network connections. We tried to run the same thing using Windows Server 2003 in the backend server, and we were able to make it work by configuring MSDTC security using the COM+ console. However, we still need to support Windows 2000 for the backend. There is apparently no GUI for MSDTC security on Windows 2000, and the registry settings we have tried so far did not work. We think this should be a very common issue, but we have ...Show All
Windows Live Developer Forums Can't Sign in Either and the new profile didn't work
I have had all the same problems and did all the re-installs as well to no avail. I created a new account and tried various other things with no progress. This is the buggiest release of software I have seen in a while...anyone have any ideas to eradicate this problem This forum is dedicated to discussions about developing software with the Windows Live (or MSN) Search service. The best place to get help on consumer issues with Messenger is in the messenger newgroup at microsoft.public.msn.messenger. You can access this newsgroup through your Web browser here . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I draw a flat Sprite in 3D space using transparency/alpha layers?
Hello XNA community, I am currently working on a level editor that renders in 3D for a 2D game (think New Super Mario Bros). I am using DrawIndexedPrimitives with 24 vertices to draw cubes, wedges, and other simple shapes that make up individual tiles in the game. When I use a similar technique to draw a 2D sprite in 3D space (let's say, a PNG file with transparent space in some areas of the file), the transparent parts of the image file end up being a dull ugly white color when pasted onto an indexed primitive in 3D space. How would I be able to draw these in 3D space with transparent elements (for effects like grass, trees, mountains, etc) Please note that I do know how to use a SpriteBatch to draw 2D elements in 2D space. Once again, I ...Show All
Visual Studio Tools for Office ListObject Headers
Is there away using the listObject to have the column headers not show at all It appears when I take the list from the dataset and paste it into my cells it takes up two rows instead of 1 and I dont want the headers to show at all as I am using a template that has to be exact. I have searched and searched for this and have not been able to find anything on getting rid of the column headers from the dataset. Thanks Stokh I wish I didnt have to show the rows but the excel template is actually a locked template from my client and I need to get the data in it without unlocking it if you get that one! Totally off the wall but thats what I have to do and I have gotten it all figured out and I can manually do what I need to d ...Show All
SQL Server Custom Task: How to access/modify the variables of a package
Hi, I'm trying to simplify the deployment process of my project. I already had some troubles with the config files but lets say I solved that issue. I'm going to read a flat file and set the variables of my packages from this file. I was thinking to use a Script Task to do that but I will need to copy this task in every package (I have at least 30). So if I want to make some change this will be painful. Then, I came up with the idea of creating a Custom Task called Config File Task. I'm working on this but I got stuck trying to get the variables from the package that is running my Config File Task. This is the code I had in the Script Task: Dim streamReader As New StreamReader(Dts.Variables("ConfigFilePath").Value.ToString) ...Show All
