Hans1982's Q&A profile
.NET Development Big-endian & small-endian
Hi Am writing a simple application in vb.net that connects to a unix server over the tcp port. Have to figure out how can i send data to the server in a big-endian format and the response that the server is giving is in big-endian format, how do i convert is back to small-endian. Please help Thanks Sankalp See System.Net.IPAdress.HostToNetworkOrder() and NetworkToHostOrder() . ...Show All
Smart Device Development DataReceived/SerialPort Troubles
I am building code for the PocketPC to interface with a chemical sensor to poll and report on chemical agents in the air. I am having a devil of a time getting the DataReceived event to pass content (through an Invoke) to the main thread. When I write an "N" to the device, it is supposed to send back the following string to the UI, which represents the chemical sensor types that are housed in the unit: "CO VOC H2S LEL OXY" When I send an "R" to the device, it is supposed to send the current readings for each of the sensors as a string that looks like this: "00000 00000 00000 00000 00207". I have all of this working successfully as a WIN32 application, but it doesn't port cleanly to the .NET 2 ...Show All
Visual Studio Team System BUG: specifying different collations in different configurations causes mixing of collations!
I have a database, which must be deployed once for Latin1_General_CI_AS and once for Croatian_CI_AS. As you see below, the various build-configurations set the collation appropriately. Trying to deploy in VS causes the DB collation to ALWAYS be scripted to Latin1... (no matter which value I set for DeploymentCollationPreference) and also all tables and columns to bescripted to Croatian... - actually for latin1 I wanted to have NO collation scripted at all, only for croatian deploy. this seems to be a bug in RTM of db-prof. Here the dbproj file (excluding the file-ItemGroups): <Project DefaultTargets="Build" xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <PropertyGroup> <C ...Show All
Visual Studio Team System Deploy windows users to different servers
Hi All, I have an issue with deploying a SQL 2000 database project to different servers, each using windows authentication. I have a user against in the database project called "User1". This has to be tied into the login "COMPUTER\User1", where computer will be the name of the server I am deploying the project to. The problem is that creating a user using sp_grantdbaccess requires a login name, but the login name can't be determined till deployment time because the login name will change based on the server name. So I keep getting the error 'User1' is not a valid login or you do not have permission" . Does anyone have a work around for this Other then blogs and this forum are there any good online resources for D ...Show All
.NET Development scrolled controls location - relative to what's currently in view?
I'm finding this a bit perplexing. Here's the situation. I'm making a control which has a dynamic # of buttons (named B0, B1, B2). Each button has an imagelist assocated with it (LV0, LV1, LV2). At any one time only one listView is visible, the location for the list view is imediatly below it's corresponding button. If you've ever used MS Visio, it's the behaviour of the stencil toolbox. ( http://www.inspired.org/assets/images/Visio.jpg ) for what I'm talking about. So for our example, 'Button1' is the current active one. So ListView1 is showing, other listviews are hidden. [Button0] [Button1] [ListVIew1] [Button2] if you were to then click Button0 you would expect it to render like this (colored red, black, blue to make it mor ...Show All
Community Chat Microsoft and its 'new' Halo: Wars RTS Game, and Derelict Studios
Well, as most have probably heard, Microsoft has come out with a 'new' Real Time Strategy game called Halo: Wars, a game to be made for the X-Box 360. I quote 'new', because it is not a new idea, nor shall all the credit go to those people who work in Microsoft. A Modification for the game C&C Generals, called Halogen, was a mod in the works for approximatly 3 years, where people from the community pitched in numerous hours of work and labour for the good of the community, and a playable release was soon to come for those of us desperate to download it. Microsoft came in close to before the release and forced the memebers of Derelict Studios to close down Halogen and halt all progress on the game, and close down the ...Show All
SQL Server Rules and defaults
Hi, Can any one provide me information on creating rules and defaults in SQL Server2005, when i tried right clicking rules or defaults in management studio instead of new option i'am getting only refresh option. This feature was working smoothly in sql2000.....I'am trying this on Microsoft SQL Server2005 Standard Edition. thanks in advance Mat Rules and defaults are deprecated in 2005. You should now use constraints, which you define in the table designer. Rules and defaults are still supported, but you have to create them manually by writing the code yourself. You cannot create them in Management Studio because you should not be using them any more. This comes from the 2000 documentation "Rules are a backward-com ...Show All
Visual Studio Team System Q on conditional Rules- how to delete content of field on every CTRL+S
Hi, I customize my WI to have new text field caled - assignment notes, I use this field on every stage(state) The thing is that I want that in every Ctrl+S the field content will become empty (the content will be save in the history) so that in the next state I will have this field empty with <REQUIRED> attribute There is a way to do it I couldn’t find any trigger for Ctrl+S action. Thanks in advance, Shmulik. Hi I am not sure about events/triggers. You mentioned that " I use this field on every stage(state) ". By this do you mean, everytime if the state is changed apply this If yes, ...Show All
Visual C++ Export/Import a Bitmap to a DLL
Hi: I want to export a bitmap to a DLL. Then I want to import it from it. Do you have any idea Thank you... Hi: Thank you for your answer. How can I do if I want to load the bitmap from a file to a DLL when I compiled my program, because the resource editor of MS does not support hight resolution images. ...Show All
Visual C++ Pointer dereferencing causes crash, only in Release mode, x86 Assembly related
Hi. My application reads a file and suddenly it crashes when executing an x86 assembly command. The assembly command dereferenced a word pointer and suddenly crashed. The error message from Windows is : The instruction at "0x00421121" referenced memory at "0x041db000". The memory could not be "read". The instruction is a simple one : movd mm3, [esi] where mm3 is used to hold temporary values and esi is the offset of a DWORD within the file. If the application is build using Debug profile, it does not crash. Only when built with Release profile with optimizations does it crash. My guess is that the value of [esi] is 0xFF and when in Debug mode, this value is automatically replaced with 0x00 while in Release mo ...Show All
Windows Forms Urgent... Stuck in iimplementation Custom Save File Dialog
Hi All, I want to implement my own custom file save dialog. I have 2 options : 1) Use WinAPI and use GetSaveFileName API. 2) Inherit commondialog and make it according to requirement. I am using Windows API. GetSaveFileName. and implementing HookProc in that. I m getting every message in that. But I have problem in that. First problem is lparam value for particular event like folder up and back to folder is not constant. Second is even if I return nonzero value Folder doesn't ignore the message. actually it should according to documentation. Below is a sample code. public class DialogHelper { #region Private Variables public delegate int OFNHookProcDelegate( int hd ...Show All
SQL Server VS 2005 Report Designer
Somethings seems to have happened to my toolbox items. Under Report Items they all say "Toolbox". How can I correct this Thanks, Trish I fixed it: (with the help of another forum post) I had to delete the hidden toolbox items in the following folder: C:\Documents and Settings\<profilename>\Local Settings\Application Data\Microsoft\VisualStudio\8.0 VS had to be closed when I did this. Then reopen VS and it will reinitialize the toolbox items. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how much should xna...
how much space should microsoft xna have cause my microsoft xna folder has just ~ 10 MB. pls answer cause i'm really desperate. If your wondering where all the other data went (As the download is much bigger) it's in various folders for Visual Studio and other parts of the installer. The bulk of the size comes from the Spacewar starter kit, but please if you were looking at this because you have a problem, let us know what it is. ...Show All
Architecture a good book for me
Hello everyone, Well, now I have grown in my company and I will have a few more responsabilities, I will be project leader of small projects, and I would like to ask you for a good book for me. Perhaps one about methodology, agile or XP, about team system, or perhaps about enterprise patterns or something. Well, waiting for your suggestions Thanks in advance. I want to recommend you a similar book about architecture patterns, but with a plus: .NET implementation of all of them Enterprise Solution Patterns Using Microsoft .NET Hope it helps ...Show All
Windows Forms c# 2.0 dataGridView
Hey guys, I have searched and there are loads of suggestions but I cant seem to apply any of them to my situation so here goes: I download an XML file from the web(server list), and go through each node and then add a row to the dataGridView, I want to show every rows backcolor red for each server that is down: Heres some code to help: System.Net.WebRequest myRequest = System.Net.WebRequest.Create(rssURL); System.Net.WebResponse myResponse = myRequest.GetResponse(); System.IO.Stream rssStream = myResponse.GetResponseStream(); System.Xml.XmlDocument rssDoc = new System.Xml.XmlDocument(); rssDoc.Load(rssStream); System.Xml.XmlNodeList rssItems = rssDoc.SelectNodes("sessionlist/server"); string servername = ""; string serverip = ""; string st ...Show All
