Rafael Mores's Q&A profile
.NET Development win32 api ref & pointer wierdness
Could someone shed some light on this if I define win32 api function with ref parameter - it fails: string device_input_buffer = "some_device_data"; return DeviceIoControl(this.mDriverHandle, IOCTL_CMD_A, ref device_input_data, (uint)(fdibptr.Length*2), null, 0, &returnedbytes, 0); but if I were to define it with void* instead of ref - it works. string device_input_buffer = "some_device_data"; fixed (void* fdibptr = device_input_buffer ) { return DeviceIoControl(this.mDriverHandle, IOCTL_CMD_A, fdibptr, (uint)(fdibptr.Length*2), null, 0, &returnedbytes, 0); } shouldn't the two be identical in one case i'm the one doing the pinning, in the other - the runtime (as per "ref&q ...Show All
Visual Studio 2008 (Pre-release) The project type is not supported by this installation.
After having installed all the RC1 parts, including "Orcas" and try to create a new project in VisualStudio 2005 (Windows Application, XAML Browser Application or Custom Control Library) I get an error message: "The project file '.....' cannot be opened. The project type is not supported by this installation." I've tried reinstalling everything but it's still giving the same error message. Could it be because I'm running a swedish version of Windows XP Although I haven't had this problem with other releases. Hello we would like to investigate this issue to understand what might cause you to see this error message. Can you please help elaborate more on your installat ...Show All
.NET Development DataSet to Txt file
I have a DataSet and I need to write each row to a text file. How do I do it There is no built-in functionality for it. There are several ways. 1. You could use WriteXML method of the DataSet to persist DataSet as XML into the memory stream and apply XSLT transformation to it to make it some sort of delimited file. 2. Loop through the rows and columns of each DataTable inside of the DataSet and output values one-by-one. 3. You could find some components out there that do this staff for you. ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! No idea sorry. Guess you could do some trial an error to see if its your import images, number of points you marked etc. Best bet will be to email the guys that wrote it. I'm not sure they will ever find this thread otherwise. Sorry I can't be more help. I can say that for me using a PDF I had no issues. John. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA project hard freezes XBOX360
A game I have been developing works perfectly fine on windows, however, causes my xbox to hard freeze (all controls stop responding and the device can only be shut off from the power button on the xbox itself), which in turn detaches the debugger. This seems to happen after an arbitrary amount of time, and thus leads me to perhaps memory issues. I haven't been able to find anyone else with a similar problem, but if anyone has experienced similar problems, I'd be interested in knowing how you went about debugging and or solving this issue because I'm having lots of difficulty isolating the problem to any one block of code. At any rate, it seems odd that my managed code (no shaders either) would cause the entire xbox to freeze considering it ...Show All
SQL Server Duplicate Records
Hi, Not so sure how simple this question is but here is what happened. I installed SQL Server 2005 on a new Win Server 2003. I exported the tables and their data from the old machine to the newly established database on the new machine. It looks like all my records were duplicated. When I try to delete one of the duplicates it won't work because both rows are effected. I can't set my primary key now and if I try to create a new database with the primary key already set than the import fails. Any one run into this before or know what's going on Any help ASAP would really be appreciated. Thanks, Alice I think I might have found the answer to my question here: http://www.sqlteam.com/item.asp ItemID=3331 I'll try ...Show All
Audio and Video Development Sound card driver causes blue screen
I just don't know where to report, but i got beta for find and report bugs, so i do so. I installed driver for my creative sbpci 128 having ensoniq chipset, it works fine except if it is not disabled at boot vistabeta2 got blue screen, and reboot, if i disable sound card in safe mode, it boots fine, and if the sound card is enabled after boot it works, but i have to disable it before shutdown i also have a creative x-fi platinum with Vista Ultimate. i couldn't even install my x-fi since i put vista on. now when vista auto updates it tries to install the x-fi driver and then i get a blue screen. now that i've taken my x-fi out, my computer is running fine. vista recognizes the x-fi but.... what do i have to do to get this darn thing ...Show All
Visual Studio 2008 (Pre-release) Configuring Elementary Security
I'm trying to just get a service working from outside a domain and am getting nothing but headaches trying to get it going. Here's my configuration for now: < bindings > < wsDualHttpBinding > < binding name = " wsDualHttpBinding " > < security mode = " Message "/ > </ wsDualHttpBinding > </ bindings > This works locally, but I get an error on the client saying it couldn't work out the SOAP security. As I understand it, WCF uses Windows credentials by default for wsDualHttpBinding and this would make sense because it works locally, but not on the other computer. To get around this, I tri ...Show All
Visual Basic listbox items
How can program a list box so that when a certain item is inputed the font color changes You must have an Else condition which draws the item in a default colour if the other test conditions are not met, so if all items are being drawn with the same colour it is likely that conditions such as: If Hatlistproperties.Items(e.Index).ToString = "Mediterranean Avenue" Then are not being met. ...Show All
SQL Server A database with the same name exists, or specified file cannot be opened, or it is located on UNC share
I didn't get this bug In the debug mode when the application runs on localhost with some port number I am getting this error only when the application is deployed on default web site i.e is on localhost Can any body help me to solve this bug ...Show All
Visual Studio Team System NUnitASP Style Tests
How do I write NUnitAsp style unit tests with the UnitTesting framework There was an answer posted here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=10378&SiteID=1 but the code no longer seems to work. Or I can't find the namespace that these attributes are in <WebServerType(WebServerType.WebDev)> _ <WebApplicationRoot("/WebSite")> _ <PathToWeb(@"C:\WebSite")> _ Thanks Aeden Yes I do. I know because I wouldn't have access to HostType() & UrlToTest ( ) & AspNetDevelopmentServerHost ( ) and all that good stuff. Thanks for the quick reply. Cheers, Aeden ...Show All
Visual Basic Application has failed to start
Hello, I was hoping someone could help me out with an error message that I am getting in the following scenario: We use Syncfusion controls and I upgraded from an old version of Syncfusion to the latest and greatest version. Was a long process because I had to go into each of the 11 projects comprising my application and delete the old references to the old Syncfusion assemblies, and add new references to the new Syncfusion assemblies. That being done, I created a Wise Installer for my application, which I have done successfully many times before, but after the application is installed, I get the following message when I double click on the .exe to launch the application: The application has failed to start because the applicati ...Show All
Visual Studio Team System Build script
Hi! I have VSTS4DBPRO project (and bunch of other projects - SSIS, SSAS, C# - in my solution). And i need to create sql script wich should create database using my custom installation tool and supplied (by user of that tool) database server name, database name, physical layout (database files names and paths) options (assume that database has finite filegroups). Any workarounds how I must build my solution to achive desired result How could I get this by VSTS4DBPRO Andrey Makarov wrote: Jamie, Gert! Thanks for answers! As I intend above there is simple but little bit awkward solution - little prog that trims everything before creation of database objects. And I've just done with it. ...Show All
Visual Studio 2008 (Pre-release) Async CallBackContract
Is it possible to use the async pattern with callback contracts IContractCallback void CallbackOperation(); to IAsyncContractCallback void BeginCallbackOperation .... void EndCallbackOperation when you grab the contract from the operation context it is IContractCallback. How do i turn it into the IAsync version while preserving the back channel You need to ensure that the contract interface type used on the server side is one that has async methods in its CallbackContract interface. Then this will be the right type that OperationContext gives back. Below is a short sample (reading the code for the contracts is informative). (sorry about the formatting; lost the indents) ...Show All
Visual C# serialization demystifyied :)
Hello, can you advise me information about serialization in .NET Framework 2.0 on the web I imagine something more compact than actual MSDN docs are, focused on this topic. In MSDN I didn't found some info, for example: - why ISerializable implementation is not invoked using XmlSerializer and how to customize serialization of specific properties then - why ISerializable methods and any xml attributes do not seem to be required at all, although they're told to be required. - why, when serializing a hierarchy of objects, the contained types (extra types) do not output full type name and just the ending identifier, and how to solve that..(!!) I appreciate tips where to learn about, also if you can advise to this concrete pro ...Show All
