ysrini's Q&A profile
Visual C# How to convert C++ struct to C#?
I’m currently convert VideoDriver class in TightVNC (VideoDriver.h, VideoDriver.cpp) to C#. I met a problem when convert some structs type to C#. C++ -------------------------------------------------------------------- typedef struct _CHANGES_RECORD { ULONG type; //screen_to_screen, blit, newcache,oldcache RECT rect; RECT origrect; POINT point; ULONG color; //number used in cache array ULONG refcolor; //slot used to pase btimap data }CHANGES_RECORD; typedef CHANGES_RECORD *PCHANGES_RECORD; typedef struct _CHANGES_BUF { ULONG counter; CHANGES_RECORD pointrect[MAXCHANGES_BUF]; }CHANGES_BUF; typedef CHANGES_BUF *PCHANGES_BUF; typedef struct _GETCHANGESBUF { PCHANGES_BUF buffer; PVOID Userbuffer; }GETCHANGESBUF; ty ...Show All
Software Development for Windows Vista I don't think this is a Video Driver or Bios Problem.
I'm having a problem with Windows Vista Ultimate 64 bit edtion on my HP laptop, when i close the lid but i have set up what windows does when i close the laptop to do nothing, but when i close the lid, and re open it, the screen is off/black, cant shutdown it properly and must do hard reboot. Laptop is HP Pavillion dv9000nr AMD Turion 64x2 Nvidia GeForce GO 6150 1gb memory Exact same problem with a Sony Vaio VGN-FE590P. How in the world did such a widespread bug make it through Microsoft's 'extensive' testing over the last year I installed Vista and noticed this on day two. Also using new nvidia drivers. I've also noticed if I put the notebook in standby the screen doesn't come back on un ...Show All
.NET Development How can I save dataset as an xml file???
Hi I am trying to save the dataset as xml file (one row from the table).Saving xml is fine but it look like the following (the below is flat xml file without root nodes and child node) But I want the data to go under xml Root Node, child node, children node and so on. My question is How can I save the dataset as xml file with Root Node, child node, children node and so on Please help !!! Urgent!! < xml version="1.0" standalone="yes" > <MS> <SDLTID>1</SDLTID> <UTRN>303783jMJ</UTRN> <TransPropertyType>01</TransPropertyType> <TransInterestCreated>FP</TransInterestCreated> <TransEffectiveDate>2006-04-05</TransEffectiveDate> and so on..... ...Show All
Visual Basic populate Word-Docvariables via VB-Code and set their values dynamically
Hi, i hope i find a answer on this way. Let me describe my little ( i hope so...) problem: I would like to have my code figure out which fields are on the document and populate only those. I realized this with the following code: Sub sendToWord(DokPath, DokName) Dim strPfad As String strPfad = DokPath On Error Resume Next Dim objWord As Word.Application 'search instance of Word Set objWord = GetObject(, "Word.Application") If Err.Number = 429 Then 'no instance found Err.Clear Set objWord = CreateObject("Word.Application") 'create instance On Error GoTo Fehler ElseIf Err.Number = 0 Then ' nothing Else On Error GoTo Fehler End If With objWord .Visible = True .Wind ...Show All
Visual C++ I know VC++ 2005 .NET. Should I trash it?
Before Studio 2003 came out I would use VB for my GUI front ends. Now, VC++ is just as powerful in the GUI department as any .NET language. So, I thought I could say ‘audios’ to VB, and stick with my multi-platform C++. But then at the same time C/C++ developers on Linux have grown to become a growing threat to Windows, and so I see Microsoft backing away from C++ as evidenced from its developer certifications (all must use non-standard, mono-platform languages). Certainly, the language is still evolving at MS, but its probably just momentum. So paradoxically, Im thinking now I should say ‘audios’ to C++ instead of VB. Or, should I just replace C++ with C# Thanks for any advice! I agree. Its for .Net, no ...Show All
SQL Server 64 bit silent Installation
Hi: Is it possible to install a 64 bit SQL Server 2005 silently . I am wondering what are the command options that are needed to do a quiet Install of Enterprise Edition of SQL Server 2005 (x64) on a x64 OS. Any info is appreciated. Thanks Ankith The 64-bit command line parameters are the same as the 32-bit parameters. Since your install configutation options are so vast, my suggestion would be to open up template.ini (found on any SQL install media) and take a look at the numerous silent install examples in that file. Or search Books Online for silent install instructions. If you have specific questions, let us know. Thanks, Sam Lester (MSFT) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PC project -> 360 (including Game Library)
Hello, I just wrote a little puzzle game (Windos Game Project) and now I want to build the 360 version of it, but I have a little problem (probably PEBKAC *g*) I wrote a content-processor for instanced rendering (overriding ModelProcessor) and implemented a new ContentItem called 'Font'. It reads the *.fnt files from AngelCode Bitmapfont Converter. Because I want to reuse this, I put it into a "Windows Game Library" and everything works fine.. Now, if I try to put my custom content stuff into a XBox 360 Game Lib, the build process told me, that there exists no "TargetPlatform" enum - which is needed for the serialization methods. After thinking about it, I realize, that I wouldn't make sense that th ...Show All
Visual Studio 2008 (Pre-release) WSDL Export Error on Fault Type in XmlSerializer format
I wrote a simple service contract that has one operation (with one fault) that uses xml serializer format as shown below: [ServiceContract(Namespace="urn:MyXmlSerializer.Namespace")] [XmlSerializerFormat(Style=OperationFormatStyle.Document, Use=OperationFormatUse.Literal)] public interface MyContract22 { [XmlSerializerFormat(Style = OperationFormatStyle.Document, Use = OperationFormatUse.Literal)] [FaultContract(typeof(CustomerNotFound))] [OperationContract()] Customer GetCustomer2(CustomerSearch2 searchInfo); } [XmlRoot(ElementName = "customer", Namespace = "http://Raghu.Intercepted2.Schema/WCF.Service")] public class Customer { ... } [XmlSchemaProvider("GetSchemeI ...Show All
Visual C# DateTimePicker.ValueChanged event
I am trying to build some code in this event. The idea is to open an ODBC table and populate a DataGridView with a limited subset. All records in the table are dated and the grid will contain records (schedule) for one date only. The problem I have is that if I go back a few months then every time I change the month with the tool button on the top (the left one) the event fires and the date I get is not the one I need. E.g. today is 10/06/2006 and I need to select 01/25/2006. Then on my first click it will fire with the date 09/06/2006, then 08/06/2006 etc... then finally on 1/06/2006 and after I selected 01/25/2006 in January I will get my date. In the meantime the gridView will get updated needlessly. MouseDown event does not fire ...Show All
Visual Studio Express Editions Using VB Express to connect to Access Database
Hello there; I'm still new to the VB express program, and I am having some problems connecting to an Access Database. From what I've read, the information is not being clear as to how to handle to following situation: I have a form that has 5 fields on it that the user enters data into. I have set up the DataSet.xsd to be able to access the Access 2003 Database. Once the information has been entered, I have a CommandButton that I would like the information to be sent to the database to be stored. The problem that I have is that according to one source, All I needed to do was set up the Dataset.xsd and then drag the Database fields onto the form and they would be entered. But from what I've read here, it seems that I need to add some ...Show All
Visual Studio 2008 (Pre-release) Opening .xaml file using ImageBrush in IE
Hello, I wrote a .xaml file using ImageBrush to texture a rectangle. The ImageBrush imports a localy stored .gif file. Here's what it looks like: <code> <Canvas xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' Height="1000" Width="1000" Name="DrawingPane" Canvas.Left="0" Canvas.Top="0"> <Rectangle Width="200" Height="100" Stroke="Black" StrokeThickness="3"> <Rectangle.Fill> <ImageBrush Stretch="Uniform" ImageSource="C:/my folder/pattern0.gif" /> </Rectangle.Fill> </Rectangle> </Canvas> </code> The ...Show All
SQL Server Database Mirroring - 'NT AUTHORITY\ANONYMOUS LOGON.' failed
Hello, I have set up 3 servers - Primary, Mirror and Witness. When I run the database mirroring wizard all my endpoints are configured, but when i start the mirroring service i get a 1418 error - in the logs in says - Database Mirroring login attempt by user 'NT AUTHORITY\ANONYMOUS LOGON.' failed with error: 'Connection handshake failed. The login 'NT AUTHORITY\ANONYMOUS LOGON' does not have CONNECT permission on the endpoint. State 84.'. [CLIENT: 10.20.1.5] I have looked through the BOL and can't find anything helpful. - I'm pretty new to SQL server, so any help is very much appreciated! Thanks Kerpoise This is not a SQL problem but an authentication issue. The right approach is to follow the guidance ...Show All
Community Chat ImageListBox Control
Hi, i hope i played this post right, if not i am sorry for that. I have written a little or more complex control called "ImageListBox", it has a more complex definition of an item than a normal ListBox. So every item can contain an image, header text and normal text. I wanted a much more attractive version than a normal ListBox, so i wrote it. I would like to hear your opinions about it and some bugs that maybe someone will find ;) http://www.thunder-development.de/typo3/index.php id=55 (Unless i dont know what to do exactly with it, it contains a "Demo" string, please dont get angry by this) CU Thunder2002 Yes shareware would be good, with either some option limitation or, i think t ...Show All
Visual Studio Error 1706.No valid source could be found for Visual Studio .NET
I tried repair/reinstall of my Visual Studio .NET (2003) with the MSDN disk (2435.5, September 2005), and got the following in vserror71.txt: [06/28/06,11:17:16] Visual Studio .NET Enterprise Architect 2003 - English: [2] ERROR: Error 1706.No valid source could be found for product Visual Studio .NET Enterprise Architect 2003 - English. The Windows installer cannot continue. [06/28/06,11:17:16] Visual Studio .NET Enterprise Architect 2003 - English: [2] ACTION FAILURE: Action ended 11:17:16: InstallFinalize. Return value 3. See MSI log for details. [06/28/06,11:17:28] Visual Studio .NET Enterprise Architect 2003 - English: [2] ERROR processed; exception was thrown for retail build Developer Comment: Action Start message out of order Bui ...Show All
Game Technologies: DirectX, XNA, XACT, etc. visual C# express edition and directx
what is required to set up an empty directx aplication in vc# ee that i can use as a template later to code You could use the Managed EmptyProject sample in the DirectX SDK as a starting point, or modify one of the Managed Tutorial projects. Hope that helps. Happy Holidays ...Show All
