ctssoms's Q&A profile
Visual C++ C programming
Hi, Everyones I do hope this question aren't getting bored at all .... Well, recently I typed some short C program that's require to include assembler code, and I got confused how to figure out the assembler editor on V S.net Does anyone know how to tackle this problem and I do hope too you are guys out there could drop me some source code or an example about that .....other question is how to use Clrscr() == in C : I had found ESC[2J but it won't work as Turbo Pascal compiler.....please show me.... Thanks.... Malvino..... Malvino wrote: by the way what is the #include <header file> must be put it regards to _asma and system(cls);, I do hope you would show me again ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Memory Leak?
Heya, I've been working on this 2d game for about a month and a half. A space shooter with a ton of animations. But thats not the problem the problem is recently as the amount of Images has increased I've noticed that the memory usage never stops going up as the game progresses. I know there is some kind of flaw or redundancy in the way i store textures now since the release of beta2 and the content manager. However What would cause memory to keep adding up until the game begins to stutter The structure for storing textures was done before the content manager so it is just a Dictionary class that loads and gets textures loaded via the content manager. The UnloadGraphicsContent method in the game unloads the content mana ...Show All
Visual C++ include XML file into a class at compile time
Hi All, I have an XML file that must be included (or linked) into a class object at compile/link time. Basically, we cannot send this file along with the product and read the data from the file into memory at runtime. My question is, is there a way to tell the compiler to read the content of the file into a CString, or a string buffer at compile time My project file is a VC++ ATL project and does not use .NET framework. Thanks And this may sound very stupid, (I haven't done MFC/ALT for a long time) but how do you add a compiled resource (*.res) into the assembly any way. I have two projects: One is the *.exe, and the other is a static library. The resource file is in the static library projec ...Show All
Visual Studio Express Editions Saving ALL of the installer to disk
I downloaded and installed VC++ express and love it. Unfortunatly I will be getting a new computer that is seperat from my internet computer which I will do my programming on. Also, I would like to keep the install files backed up. So my question is, Is there a way to download the files that are downloaded by the installer and put them in a temp folder to install off of a CD or from a hard drive on a PC without the internet Or is this mentioned somewhere else and I'm just being dense You can download a complete ISO CD Image of VC++ Express and make your own CD from it. Then you can reinstall and alter an installation whenever you want. I recommend this approach for anyone who is able to do it this way. The same holds for th ...Show All
Windows Forms Help starting "excel like" app
I first started programming with VBA in excel and am having a hard time going from that to VB express by itself. Can anyone give me advice on how to start creating an app that works like excel I want to create a layout like excel and enter information into the "cells" and then store that info into SQL. what is the best way to get started, (datagridview, etc...) thanks for any help. Jeff indeed, a datagridview is what you would require to have that kind of a cell grid view, where you can add/remove/edit data and finally update the database for example with the use of a dataset/datatable as a binding source and with a dataAdapter. I hope this gets you started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7538 ...Show All
Windows Live Developer Forums How to extract Lat and Long values from map.GetCenter();
Hi, I need to extract lat and long from map.GetCenter(); as separate values but I'm not sure exactly how, or if it is possible at all. The following returns "undefined": var ctr = map.GetCenter(); var lt= ctr.latitude; alert (lt); As well, is there any way to identify lat and long values of the corners of the map I need at least one long value... Any suggestions much appreciated. ..and for the corners of the map, use map.GetMapView(). It returns a VELatLongRectangle object, which has 2 properties: TopLeftLatLong and BottomRightLatLong. ...Show All
Visual Studio Express Editions no subject
can anyone give me an example as to how to connect and control something from a serial port.....something really simple like a light bulb..... hey maybe this..... I have a teddy bear which runs on batteries when you squeeze his foot he snores.... I would love to connect and control him by the pc any ideas...please There are two ways: 1) You can make a communication link by means af a UART and a microprocessor in the teddy bear. Then you can do anything you like, but it requires some hardware e.g. in the form of a microprocessor evaluation bord and of course some microprocessor programming - usually in assembler or C 2) You can utilize the modem control signals DTR and RTS from the PC and DSR ...Show All
SQL Server Field names must be unique within a data set?
I am moving reports from a 2000 db to a 2005 db but for now I am staying on RS 2000. The reports I built some time ago now do not work. Now I am getting an error that the field names must be unique in a dataset. This was not the case in 2000. The error message is below: More than one field in the data set ‘DRSTracking’ has the name ‘NewCommit’. Field names must be unique within a data set. (rsDuplicateFieldName) More than one field in the data set ‘DRSTracking’ has the name ‘CancelCommit’. Field names must be unique within a data set. (rsDuplicateFieldName) More than one field in the data set ‘DRSTracking’ has the name ‘NETCommit’. Field names must be unique within a da ...Show All
Visual C# when i do a range.select in get a hresult exception HRESULT : 0x800AC472 or 0x800A03EC
hi , i am using excel in my application in that i get an error in my range.select command ,the range i have selected is worksheet.get_range("A1","A1") and i got the above error any suggestions. Thanks Prasad Sethuramalingam No i am having excel only in one tab in my whole project I have seven or eight tabs when i load the sheet the range command executes smoothly but when i switch between tabs (for your information i am loading a word file in the other tabs) and come back again to this excel tab and suddenly click over other excel sheet named tabs inside excel i get this error. Any suggestions ,are you able to get my problem or else you need more clarifications i am having it since 2 weeks ...Show All
Visual Studio Team System How to refresh and / or publish a filtered list of work items?
Hi, It appears that the 'Get Work Items' function on the team menu in MS Project is only there to 'create new tasks' in Project. Is it possible to refresh work items in MS Project for a filtered list of work items from Team Visual Studio For example: I would like to exclude tasks in project from being refreshed with a state of 'Closed'. This not only overcomes feature shortcomings of the integration between these 2 systems but it also addresses performance/ speed issues. Thanks. Samar Hi Samaro, For the function of team menu in MS Project, it allows you to view/edit work items and edit the link/attachment. Meanwhile, MS Project itself can help you schedule your project, which you can publish b ...Show All
Visual Studio Team System Error TF50632 Removing User
Hi! While removing a user from the group of valid tfs users I get the Error: TF50632 : An error occurred removing the group member. There is no group member with the security identifier (SID) The problem is that the user is a regular domain user and should be fine. I can remove other users without problem. Thanks for any help Uli The "Team Foundation Valid Users" group is special - you don't manually add or delete users from it. If there's a user in that group, it means that they have permissions in some other group inside TFS - if you're trying to remove all their permissions, you'll need to find the other permissions they have assigned and remove them. ...Show All
Windows Forms Datagridview and ID field
Hi all, I am experiencing an annoying problem with a bounded DatagridView. I'm using an MS Access (.mdb) database. I have a simple table (named, for example, "Products") with an ID field (counter) and two text fields. If the "Products" table has at least one record, when I try to add new records into the DatagridView, the ID field is automatically increased and correctly displayed. But if the "Products" table is empty, DatagridView ID field shows "0" and it is not correctly initialized. If I save the added record, I close the form where the DatagridView is in and I re-open it, the ID field displays a correct value (not equal to zero). This is a problem for me because also after adding the first recor ...Show All
Visual Studio Express Editions Help with "Concentration" Game
I am a student studying VB for the first time and I've run into a snag programming as assignment. It's a matching game consisting of 8 pairs of matching words randomly assigned to 16 labels. When a label is clicked, the word currently assigned to it will display. If two labels are clicked and the words match, the labels are disabled and change their color. This is done until all 8 pairs of words are found, after which a message box is displayed indicating the game is over. I am confused as to how I can randomize the list of words and assign them to the labels, as well as how to check for matching. Any help would be appreciated. you could but wouldnt recommend it. If I understand correctly, you want the cli ...Show All
Visual Basic Drop Down List Help Needed.
okay... here it is... I finally got the ddl working to select the correct selectedvalue in my earlier post... now i am having problems again.... My OpCenter DDL is set to post back... when i pick a Opcenter it then needs to query in the database for only the contacts that have the same company as the opcenter selected. this would narrow the list of Contacts to only those in the OpCenter... How would i go about doing that... do i make a data set stored procudure ... or can i get it done with SQLCommands.... I am lost... I know how to make a DDL Fill in a text box with the right values... and a DDL choose the correct item in a list.... but now i need it to not choose anything only limit the choices.... here is the code that does work with t ...Show All
Visual C# C# 3.0 in Windows Vista
I have heard something about it. Do anybody know when is it coming and is it going to be in Windows Vista Thanks, Timo Hi; A RC of net 3.0 was released on the 8th. On the site you will also find the SDK for Vista. I haven't used the .Net3.0 for quite a while. I used the WCF last year when it was still called Indigo for a demo. There are usually new releases every 3 month. The last CTP waqs released in July 2006. http://www.netfx3.com/blogs/news_and_announcements/default.aspx Regards Shivam ...Show All
