Malleswar's Q&A profile
Windows Forms Defining 'bound' column for datagridview with no datasource
Hello, I am building a winform with a dataviewgrid. I am not defining a datasource declaratively; I plan to populate the DataSource property at run time with a reference to the Dataset (the 1.1 way of doing it I guess). I do not want the grid to generate it's own columns, so I have defined columns with meaningful names and friendly headers and have specified their bound column names that will be in the populated dataset to be bound at run time. This leaves me with the datagridview on the design surface but no definition in the partial class file and the program will not build. If I (foolishly) place a definition in the partial class file, make the designer surface the top windoe in VS 2005, modifies the partial class and I have no ...Show All
Visual Studio Request some cool materials for debugging Windows Messages
I'm stuck at some Windows Messages related issues these days. It's hard to debug them, you know. Then I wanna find some cool materials to help me out. Can some guys direct me some good papers to read THx in advance. Actually, remote debugging is a good idea, and further I can filter some specific message out. But, since some messages are totally controlled by Windows, that means, emitted and routed by Windows. Debugging these types of messages is very difficult. Recently, I got a problem that a specific message had gone away in unknown situation. I counldn't find any way out. :-( So I gotta find some advanced technique to help my debugging. ...Show All
Visual C++ Windows Data Type
Hi everyone ! I would like to know if it is possible to use a Windows Data Type such as : WORD, HANDLE, PFLOAT ... in a Windows Form Application environment (Form1.h for example). I'm working in C++.net (VS2003). --------------------------------------- Thanks, Nick I'm not exactly sure I understand ... 'Cause when I tried, all sorts of warnings and errors popped. Actually, it goes in a WinDef.h and WinNT.h files. It's like it can't use those files (in the form namesapce). ...Show All
Visual Studio Tools for Office VSTO for office 2007
inVSTO for office 2003 the version of office should be 2003 Pro. Any idea about this issue with VSTO for office 2007. You have to be careful comparing VSTO and VSTO :-) The full VSTO 2005 version for Office 2003 is restricted to the Pro and stand-alone versions of Word and Excel. The VSTO 2005 SE (second edition) that is a free download provides support only for creating Add-ins (just Add-ins, no document-level customizations). And that support is for Office 2003 as well as 2007. These Add-ins can be created and run against any "flavor" of Office. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Core 2D game engine, book recommendations?
Hi all, I am looking for a decent book or two on game development for someone with fair OOP programming experience. The book should give guidance on the the following subjects: * What to do in the core game loop * Handling animations (in the core game loop). * Handling events, or triggered events. * Something about artificial intelligence --> Path finding. * Ideally, some tips about multiplayer integration. * Going about with various exceptions (which makes the game). * Working with tilemaps. * Enemies moving on a tilemap + pathfinding. * All of the above in a OOP approach. * preferred is the main focus design of above, with code examples. Basically a book which can ...Show All
Visual Studio Team System Users / Logins (CTP7)
I'm experiencing some issues regarding users and logins in the CTP7 version. The story: At first, there's no database or login available in the SQL2005 instance When I create a user named testuser in the Schema View , it is nicely added to the users folder as testuser.user.sql . Since it is created without login , I change the piece of the script to for login [testuser] In the Pre-Deployment folder I change the Logins.sql script to create a login if it does not already exist. Why is the testuser sometimes included correctly sometimes included with without login (although the script says for login [testuser] ) sometimes excluded when building the database project Also, I'm not able to just create a login with password=N'wachtwoord' ...Show All
Software Development for Windows Vista CPU Usage more then 50% all the time!
All, I created a very simple workflow and has only a delay activity. One thing I noticed whenever I start my console application, CPU goes up to 50% and stays up untill I close the application. It stays constent 49-50% even when I dont have any instance running. Has anybody experienced that TIA TIA, I could not repro this when running a 15 delay. If you run this within the VS Designer, I can see this. However, if you run this within a CMD window from the cmd line. the CPU does not appear to increase. ...Show All
Windows Forms menustrip on form resize
Hi Techies, I am using menustrip on my windows application, i have created user control as header control for all forms. Inside that header control i have menustrip. While resizing the form,some of the menu is getting disappeared. For that menustrip should show the >> button like all other windows application, to see all those hidden menus. How can we do this. Thanx Hi, looks like overflowing doesn't work with MenuItems, which is weird. You can try setting your MenuStrip's Layout property to Flow to make your menu items stay visible even if form shrinks... If I find a better solution, I'll post here... Andrej ...Show All
SQL Server Programmaing with SSIS Object model
Hi there, Can anyone point me to some sample source codes or any articles that describes how I can programmatically create a package which will import data from a flatfile (csv) to Sql server database. I know there is some example that describes exporting data from sql server to flatfiles. Anyway I have failed to accomplish my goal by following those examples. If anyone have a code snippet to do that please help me with that. Thanks in advance Moim Hossain If you want, post the code you have already to build the SSIS package (or a link to it). This response is not the code snippet you're looking for, but it sounds like the package builder code you already have (from the other post), is not far from working. ...Show All
Visual Studio Team System Compare directories
How do I do a directory comparison with TFS. i.e. compare a directory on my machine to a folder in the version control of TFS Try this Option; Install power tool for TFS on your dev machine. Can be downloaded here ...Show All
Visual Studio Out Of Memory Exception in Sandcastle
Hi, I'm getting an Out of Memory Exception with Sandcastle when generating documentatin for a larger project. The size "reflection.xml" is about 216 mByte. The error seems to occur with the HTML Compiler when trying to generate the .chm file. Sorry, the error occurs in "ReflectionToChmContents.xsl". The message is: Unhandled Exception: OutOfMemoryException. .... The command "C:\Programme\Sandcastle\ProductionTools\XslTransform" /xsl:C:\Programme\Sandcastle\ProductionTransforms\ReflectionToChmContents.xsl" reflection.xml /arg:html=Output\html /out:Output\test.hhc" exited with code -532459699. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. compiling a program in a program
I've created the .cpp source file. I've included the vcvarsall.bat and the correct mspdb80.dll file, yet when I used the "system("cl ash.cpp");", it said that I had not included the path for my include files. and that some tools were missing or not able to be used... How do I include the path in the program The ultimate objective is to make one program create another. Here's the source code: #include <iostream> #include <string> #include <fstream> #include <cstdlib> using namespace std; //works fine except for the compiling int main(){ ofstream fout( "newprogram.cpp" ); if (fout.is_open()){ fout<< "#include <iostream> ...Show All
SQL Server BCP Out each result of a query in a saperate file
hi, i am trying to BCP out the result of a query to a seperate file. i am trying to create a seperate file for each record. could somebody please help me out Pankaj Sorry for the late answer, it's busy times ;o) It seems a very odd request from your customer... In a query, how many rows are you expecting to do this on /Kenneth ...Show All
Visual Studio VSTA Document-level add-ins and dynamic object model
Hi, I've been through almost all VSTA tutorials but I haven't found the description of how to create add-ins to be load at the document level. My question is: Do we build document-level add-ins the same way we build application-level add-ins For example, with the Shape application sample, we can imagine that the user can create a new drawing (which is the document). Then, the user wants to enhance his drawing by code (because he wants to perform some operations the GUI does not provide). This means that he needs to access to the instantiation of the object model (his drawing) and not with the object model itself. It seems to me that the add-in mechanism allows you to create a new document but does not allow you to enhance an ...Show All
Game Technologies: DirectX, XNA, XACT, etc. getting started
hello, im new to game developement (and these forums), and have a questions. first, im only in highschool, and want to get into game programming. obviously i really dont have the expierience (or patience) to learn all those languages and databases, but i want to know a good place to start, since one day i want to be a pro. i have been messing around with flash and stuff but is that a good way to start, since when im an adult i want to be ready for the next gen systems what should i start learning first Yes, there are many ways to start out learning DirectX. Basically, it's a good idea just to jump in and start learning something, and then you can get your bearings. You should download Visual C ...Show All
