heist_rulz's Q&A profile
Visual Studio Express Editions SerialPort 101 for a beginner
Hello, I have spent a lot of time trying to use the serial port command in the toolbox but i was unsucessful. I looked at the samples posted online but i always get errrors. Can anyone explains what are the steps needed to have a sucessful communication (read and write) from and to a serialport.If you can post the code it would be great...Please help Thank you Well you can use an arraylist and just "add" the data read, so globally you would have: Dim theDataItemsRecieved as new ArrayList() then in your DataRecieved event, just "add" the data recieved: Me.theDataItemsRecieved.Add(SerialPort1.ReadExisting()) you dont need to "check" if you are recieving data, the DataRec ...Show All
Windows Live Developer Forums MSAJAX 1.0 conflict with V4 API. Sys.InvalidOperationException. V3 API is fine.
Hi Guys, Been trying to use the new V4 API in my application but I get this error when I call the LoadMap method function GetMap() { map = new VEMap( 'myMap_myMap' ); map.LoadMap( new VELatLong(53.278353017531821 , - 2.153320312500008) , 5 , 'h' ,false ); ***** Get the error here when I call LoadMap. Microsoft JScript runtime error: Sys.InvalidOperationException: Object Microsoft already exists and is not a namespace. Can anybody please help me to find the problem. V3 of the API still works fine without any problems. If I remove AJAX references from my page the error goes away. Unfortunately, I make heavy use of MS Ajax 1.0 and can't get around it. thanks, SoS ...Show All
Smart Device Development Receiving SMS Problem?
Hi, I want to give notification for received messages through my applicaton. I tried the following code which did not work on all emulators. . using Microsoft.WindowsMobile.PocketOutlook.MessageInterception; private void Form1_Load(object sender, EventArgs e) { // MessageInterceptor interceptor; // This instance will go out of scope if defined here interceptor = new MessageInterceptor(); interceptor.InterceptionAction = InterceptionAction.NotifyAndDelete; interceptor.MessageReceived += new MessageInterceptorEventHandler(OnSmsReceived); } when I run my completed code with Pocket PC WM 5.0, It works properly. But when I run with with Pocket PC 2003 or Treo7 ...Show All
SQL Server can't install a CLR stored procedure
I have written 2 CLR stored procedures. I have a local copy of our database to which I was able to successfully deploy them. When I changed the connection string to our production database, it fails when I try to deploy. It gives me an error... EXTERNAL ACCESS ASSEMBLY permission denied on object 'server', database 'master'. I've logged onto the database server and set trustworthy on for that particular database. I also tried... CREATE ASSEMBLY UpdateJobAdSearch FROM 'I:\DLL\Candidate.dll' WITH PERMISSION_SET = EXTERNAL_ACCESS Candidate.dll is the stored procedure dll. I also read on http://msdn2.microsoft.com/en-us/library/ms345106.aspx about doing something like.... USE master GO CREATE ASYMMETRIC KEY CandidateKey FROM EXEC ...Show All
Visual Basic Help needed on defining Event Handlers via Function
I am having problems associating event handling with Menu Item clicks. My application has many screens and I need to ensure the same "look & feel" for the Menus on each screen. I have created a function that can be called during a Form Load routine, that will add standard Menus & Menu options to any screen form. I need to be able to associate an appropriate Event Handling routine with, say, the Click Event for each Menu option but the Event Handler must be a different one for each Form so that it can deal specifically with the dataset displayed in that screen. I can't use WithEvents as the actual MenuItem objects are created via the public function and just added to the screen form menu I get the this exception from the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox360 to PC Comparison
Does anyone have an idea what performance I can expect from the Xbox360, I am writing my game purely for the console because I dont want to have to write a load of code for dealing with different spec machines (throttling the number of creatures, etc) and different types of input. The game I am porting is this (original is in vb.net and MDX) - http://www.entombed.co.uk I have managed to port the models, parrallax occulsion mapping shader and per pixel lighting. But I dont know how the Xbox360 is going to perform. My PC is this spec ( cr@p ish) - Intel P4 2.4 (400 FSB) ATI X800 XT PE 768 MB AGP x4 I am receiving an excellent frame rate from my PC and wondered what I should expect from the console, will it be twice as quick or mo ...Show All
Visual Studio 2008 (Pre-release) Why BitmapEffects are Slow ?
Hi! I want to make a photo gallery application that displays the groups of pictures like Phodeo. Each group is composed from a grid which contains a ScrollViewer and a TextBlock to show the name of the group. I want that around the grid a shadow to appear, so I use the ShadowBitmapEffect. What I found is that animations are very,very slow when I use the BitmapEffect Why Aren't the effects rendered in 3D And another question: which is the better way to modify, for example, the size of an object. It's better to set manually the properties (Width,Height), or to use a ScaleTransform Thank you! Well said, Jer! Ditto! I think folks easily forget some of the tricks (a.k.a., hacks) they've had to use to ...Show All
Software Development for Windows Vista VC++ Built in fuctions 64 bit compatibiltiy
i want to know whether the vc++ built in function createProcess() is 64 bit supporting ,and which are the 64 bit compatible functions in VC++ ...Show All
Smart Device Development how can i convert my CF1.0 app to CF2.0
Hi, I've created an app in VS2003. Now i want to upgrade to VS2005. I tried to do the same, but the upgradation wizard is converting the app to a version of CF1.0 app in 2005. This is not sufficient for me because i need to make use of the new features available in CF2.0 in my app. Is there any possibility to do this. If its not possible, then theres no point in converting the app to VS2005. Please suggest! - Hari Hi, To use the power of .NETCF 2.0; upgrade wizard is not a right solution. to do so follow the following steps 1. Create a new solution in .NETCF 2.0 2. Create new forms in .NETCF 2.0 and paste the logic from your ...Show All
SQL Server How run "DBCC CHECKDB" on all databases on a server?
I can run that command easily for a single DB and then manually copy/paste that command (and change the database name each time) but does sql have a way to loop through all databses on a server TIA, barkingdog Both answers are great. But in the last one instead of While @dbid < @hidb I think it should be While @dbid < = @hidb Barkingdog ...Show All
.NET Development WPF Eng - Real New to Security
Hey everyone, We are building a WPF app that will dynamically (reflection) load WPF user controls. AppDomains are out. For the sake of argument say I wanted to completely dissuade user controls from using any disk I/O at all. Could I require that the following attribute be used [assembly: FileIOPermission( SecurityAction.RequestRefuse, Unrestricted = true )] We don’t find the attribute, we don’t load the control. My tests show this works but security is too wide an issue for me to know for sure at this point. I’m not sure there isn’t a programmatic method around this. Obviously there are many permissions and we might have to require lots to really know the control won’t be mischievous. Thanks in Advance Ted ...Show All
Visual Studio 2008 (Pre-release) Im-Memory Bitmaps & Animation
Hello, a question on in-memory bitmaps: How do I generate an in-memory bitmap for the arbitrary visual and apply a scale animation to it Has any1 tried it already An idea is to animate an in-memory bitmap as oppose to the real visual... Does this approach have any obvious drawbacks Thanks You want to use RenderTargetBitmap . That will get you a Bitmap which you can then assign to an Image which you can then scale, rotate and otherwise transform to your heart's desire. :) HTH, Drew ...Show All
Visual C# Array of Threads
Hello, Beginner question... i want to use an array of: ThreadStart [] job = new ThreadStat ... Thread [] thread = new Thread ...... so i will have lets say 10 threads that i can start/sleep, and to decide when to run each of them. how do i write this down All of them will run the same method. so i need to define an array of 10 threads and how do i start each of them Thank you! Does this help Thread[] theThreads = new Thread[ Number ]; for ( int counter = 0; counter <= Length ; counter++) { theThreads[counter] = new Thread( new ThreadStart( MethodName )); } ...Show All
.NET Development ResolveEntity for File Entities
So the gist of what I want to do is copy an xml file like: < xml version="1.0" encoding="utf-8" > <!DOCTYPE chart[ <!ENTITY XAxis SYSTEM "XAxis.xml"> ]> <chart> <chart_data> <row> <null /> &XAxis; </row> </chart_data> </chart> The copyed file would contain: < xml version="1.0" encoding="utf-8" > <chart> <chart_data> <row> <null /> <number>1</number> </row> </chart_data> </chart> After looking around the web and experimenting this is what I have: XmlValidatingReader reader = new XmlValidatingReader(new XmlTextReader(@"")); XmlTextWrite ...Show All
Visual Studio 2008 (Pre-release) Xml Data Binding Performance Issue (Re-post)
I am running the .Net 3.0 RTM and have come across a performance problem with data binding. I am data binding XML which is updated once per second to a ListView/GridView . I have noticed that cpu utilization increases rapidly as the number of items in the ListView grows. For example, on my IBM Thinkpad 43p, if I have 3 items, cpu utilization is 8%. If I have 6 items cpu usage grows to 30%. At 12 items it is approaching 100%. As the number of lines of XML grows, the performance gets worse. In the code behind, I have a single XmlDocument that I set to the data context of the ListView: XmlDocument doc = new XmlDocument (); instrumentList.DataContext = doc; When new Xml is available, I do the following: doc.LoadXml(theX ...Show All
