XNA Rockstar's Q&A profile
Visual C++ How to PostMessage between 2 separate applications?
I'm trying to implement messaging between 2 different applications using PostMessage (HWND_BROADCAST, msg, 0, 0) in one, and setting a On_Message handler in the other. The idea to test this is that when PostMessage is sent from App1, App2 will receive the message with On_Message and call the appropriate handler function. Unfortunately, its seems that this setting doesnt work. I set the message ID to the same one for both applications (something like 9990) . I did a search thru MSDN and had a clue on RegisterWindowMessage but have no idea on how to implement this, especially when the messageID must be a constant for ON_MESSAGE to work. Is there any way around this problem See Windows SDK forum for Windows ...Show All
Visual Basic printing multiple paged documents
I am trying to print a list from 4 arrays with the code below. The arrays all have the same number of items so that their indexed values are printed on the same line. There are 50 entries for each array. I want no more than 35 lines per page. I have run the code below as well as some variations of it, and I can only get one page with the first thirt-five lines printed. I can’t get the second page with the remaining 15 sets of information to print. Can someone give me a clue as to what I need to do print the complete set of lines, 35 on page one and 15 on page two Here is the code. Private Sub PrintCashGiftsButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintCashGiftsButton.Click ...Show All
Visual Studio 2008 (Pre-release) Can someone explain how TCP endpoint connection pooling works?
Hi, I tried to use tcp connection pooling but can not get it to work. I made a sample host that looks like the following: class Program { static void Main( string [] args) { ServiceHost host = new ServiceHost ( typeof ( Calc )); host.Open(); Console .WriteLine( "Host open" ); Thread .Sleep(10000000); } } [ ServiceBehavior (InstanceContextMode = InstanceContextMode .Single,ConcurrencyMode = ConcurrencyMode .Single)] public class Calc : ICalc { #region ICalc Members [ OperationBehavior ] public int add( int z, int y) { return z+y; } #endregion } < system.serviceModel > < behaviors > < serviceBeh ...Show All
SQL Server To find out empty tables in a database
Hi all, I have a database which gets its daily feed from a ftp file. Now is there any way i can figure out the empty tables in the databese which doesnot get any data on the feed. Thanks in advance, the quickest way would be to run SELECT COUNT() against every table. The only limitation of this method is that your tables must be static otherwise you would have to write some dynamic SELECT COUNT() statements using dynamic SQL. I am sure there is a value stored in the system/dynamic tables as well but I dont know of it's location offhand. Derek ...Show All
Visual Studio 2008 (Pre-release) creating complex lookless controls
Hey, What would be the best practice for collecting events from the template controls for a lookless custom control. Say I have 3 text areas on the custom control whose text is bound to some properties. That part is easy enough to do, but say I want to know if any of these areas have lost focus, and which one lost the focus Since these controls that are holding the text are defined in the template I don't have an easy way of discriminating between them. I can handle previewlostfocus or whichever, but to determine which was the control that lost fous means to me I'm left with the rather unsatisfactory solution of relying that they have some identifier in their control name, or something of that nature. Is there any way of rerouting an even ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you delete the XNA Game Launcher from your Xbox 360?
It won't delete Hmm, I could say "Why would you want to delete it " but... You might want to report this over on the XNA connection . ...Show All
.NET Development c# SQL POCKET PC
Hi, I want to develop an application in c# (cSharp) that create a database and popolate it with some information. In my mobile device I have SQL Mobile Edition... I want a brief tutorial or example to start. thank you very much You may want to start with the below links: http://msdn2.microsoft.com/en-us/sql/aa336364.aspx http://msdn2.microsoft.com/en-us/sql/bb219480.aspx ...Show All
Visual Studio Mutilevel Crystal SubReport
I am converting an Access Report into .Net Crystal report and fail to convert a report having multilevel subreport. As per my knowledge, crystal report supports only one level depth for subreport. So, if anybody wants to convert some application into crystal report having such type of requirment, how he will do it Your suggestion is most welcome. ...Show All
.NET Development getting a 'duplicated declaration' error message
Here's my project: I have to build a strongly-typed dataset so that I can simply the passing of records and data to a remote system. 1. I have the remote system's DTD file. 2. I have transformed the DTD file into an XSD file via the program Trang (which preserves comments!) 3. When I feed the XSD to the xsd.exe program, I get the error that I have a 'duplicated declaration' of an element. The element in question is only declared once, but it gets referenced by another element (and only that element) that itself gets referenced in perhaps 3 dozen places. My question is two-fold: When an element declaration isn't duplicated, what does it mean when xsd.exe says it is And, how do I go about detecting where the problem is V ...Show All
Visual Basic Visual Basic 2005 Tutorial's?
I have visual studio 2005 and learned visual basic and wanna go to the next step now so i was wondering what kinda tut's should i start with or should i start with something else for intermediate level If you want more information then this stuff is not spoon fed to you - You need to find things that you want to accomplish - say better knowledge on deploying solutions and then start researching it. MSDN is obviously a great resource, with the forums, webcasts (which are great) and article. Listen to shows such as Dot Net Rocks http://www.dotnetrocks.com/ And they also have a video broadcast as well. www.dnrtv.com Join a local .NET user group. http://www.ineta.org/DesktopDefault.aspx They h ...Show All
Visual C# Strings and Forms
Hi there. I have created two forms, which the first one (Form1) has one textBox where the user writes down one string, named stringTest. Following, the Form1 is hidden and the other form is being loaded. Is there a way to use the stringTest string of the Form1 in the other form I would really appreciate any help of you. Thank you in advance.. NM Hi, This thread is on the topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1127522&SiteID=1 If there is any question or the issue is not resolved, please feel free to mark the thread as not resolved and we will look into it again. Thank you ...Show All
Microsoft ISV Community Center Forums military sites
When I was using internet explorer 6, I had no trouble viewing the military ako website that i use daily. Since I have downloaded internet explorer 7, I cant get to the website.It gives me the following message: Internet Explorer cannot display the webpage Most likely causes: You are not connected to the Internet. The website is encountering problems. There might be a typing error in the address. I can go to my wifes computer and bring up the web page because I have not updated hers to 7 yet.Being active duty military I need access to view the site at home, so I don't think I will be updating her computer to 7. Any help out there best place t ...Show All
SQL Server SSIS Data Flow task fails to load all text from flat file
Hi Guys, I have a flat file which is loaded into the database on a daily basis. The file contains rows of strings which I load into a table, specifically to a column of length 8000. The string has a length of 690, but the format is like 'xxxxxx xx xx..' and so on, where 'xxxx' represents data. So there are spaces, etc present in the middle. Previously I used SQL 2000 DTS to load the files in, and it was just a Column Transformation with the Col001 from the text file loading straight to my table column. After the load, if I select len(col) it gives me 750 for all rows. Once I started to migrate this to SSIS, I allocated the Control Flow Task and specified the flat file source and the oledb destination, and gave the output column ...Show All
SQL Server Dynamic modification of data flow objects
My idea is to read in source and destination values from a table and using these values within a ForEach loop dynamically alter the source, destination and mapping on the data flow within the package. My reading on SSIS leads me to believe that these properties are not available for modification at run-time. Has anyone any ideas on how to accomplish this task. I have data in over 200 tables to import every 4 hours so I'd rather have to maintain 1 package rather than 200. Peter G D wrote: I'm a little unclear on your solution. When you say "you read the data into a recordset" do you mean read it into an object variable . (I don't have a development background so I'm a little slow on these ...Show All
Visual Basic Automatic Namespace generation in VB
I've just finished a dll written in VB. I've never bothered with namespaces much until now, but this is a bit complex, so I've arranged it into sub-folders, with a top-level class, a few sub-classes (and base classes), and other classes that hang off some of the sub-classes. Every class has the same "Namespace Handler" around it. Looks garbage in the object viewer - every class is under the root namespace. When using the object however, it looks fine, i.e. you only see the correct sub-sub-classes hanging off the correct sub-classes, etc. However, one of my colleagues who talks C# had a look at my code, and commented that my namespaces were not declared properly, then we discovered that when coding in C#, the namespace line wer ...Show All
