Software Development Network Logo
  • Audio and Video
  • Windows Forms
  • Microsoft ISV
  • Visual FoxPro
  • SharePoint Products
  • Visual C++
  • SQL Server
  • Visual Studio
  • .NET Development
  • Game Technologies
  • VS Team System
  • Windows Vista
  • IE Development
  • Visual C#
  • Smart Devicet

Software Development Network >> My Vizai's Q&A profile

My Vizai

Member List

Willian Leite
Boulderdude
hazz
LonelyPixel
helsingfors
1nsane
jrp210
Yuki Chen
Ntc
Ayukawa
DDisco22
qrli
vagrant
jackline
Joseph Moraise
IamHuM
Jademobile
root85
jkirk
imanish11111
Only Title

My Vizai's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. using DXUTTextHelper to output a string

    I'm extremly new to Directx programming, and i've tried everything to get a std::string to output onto the frame. Hopefully you guys can help. I have it so std::string GetDetails() {...} returns a string (constructed with ostringstream, if that really matters) and returns oss.str() at the end. but I can;t figure out the conversion between std::string and wchar_t or WCHAR*. any help would be amazingly (thats right) helpful. Thanks. Use wstring instead or convert the string to a wide character array using a wchar_t array that can hold the data MultiByteToWideChar(CP_ACP, 0, wideString, -1, charString, stringLengthPlusNULL); wideString[stringLengthPlusNULL-1] = 0;   ...Show All

  • Windows Forms Looking for an editable control that will give the same functionality as the listview

    I have overridden WndProc for a listview to prevent the columns for resizing. When the form is loaded, the cursor changes to the "hand" icon. How do I retain the normal cursor You prevent the WM_SETCURSOR message from reaching the control. That prevents the proper cursor from being selected. As an alternative, try implementing the ListView's ColumnWidthChanging event: Private Sub ListView1_ColumnWidthChanging(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnWidthChangingEventArgs) Handles ListView1.ColumnWidthChanging e.Cancel = True e.NewWidth = ListView1.Columns(e.ColumnIndex).Width End Sub That prevent the columns from resizing (you could be selective about it!) but sti ...Show All

  • Visual C# Help! The server committed a protocol violation. Section=ResponseStatusLine

    I've been working on my first project un C# a simple podcast downloader for RadioPirate (an internet french Radio and also now on XM 172) I know the code is not great (hey that's my first project ;) ) so it just download the XML file that contain all the information and export the url field and the file name in another file (CC.RPc) read the link to download the file the first file always complete successfully at the second file at this particular line ( WebClient.DownloadFile(input2, destination); ) it crash with this error code A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll The thread 0x8d4 has exited with code 0 (0x0). A first chance exception of type 'System.ObjectD ...Show All

  • SQL Server Help with setting Algorithm Paramteres

    I was walking through the Text Mining example - which at one step required me to set Algorithm Parameters - MAXIMUM_OUTPUT_ATTRIBUTES=0. When I tried that the project would not build giving an error - Error (Data mining): The 'MAXIMUM_INPUT_ATTRIBUTES' data mining parameter is not valid for the 'XYZ' model. I was getting the same error when I tried to set it for Microsoft_neural_netowrk - Hidden_Node_ratio. When I do a properties from "set Algorithm Properties" from Mining Model, I do not see these properties set as default. I have installed SQLServer 2005 Standard Edition Microsoft SQL Server Management Studio 9.00.1399.00 Microsoft Analysis Services Client Tools 2005.090.1399.00 Any help would be much appreciated. Thanks Ra ...Show All

  • Visual Studio 2008 (Pre-release) how can we save the conent of rich textbox to an xml file

    hi there, i am wondering how can we save the conent of rich textbox to an xml file. i have many richtextboxes but i need to save all those to one file. thanks prasanth You can save the content of RichTextBox into xaml: using ( FileStream fs = new FileStream (filename, FileMode .CreateNew)) { TextRange textRange = new TextRange (myRichTextBox.Document.ContentStart, myRichTextBox.Document.ContentEnd); textRange.Save(fs, DataFormats .Xaml); } Sheva ...Show All

  • Visual Studio Express Editions C# vs ASP?

    Hey guys, maybe you can clear this up for me what is the difference between C# Web Projects and ASP.NET I am a little confused, I thought c# was for desktop apps and ASP.NET for web. Is this incorrect Thanks. ASP.NET is a web platform really where you can use C#/VB.NET as code behind. Both languages (C#/VB.NET) can be used for either desktop or ASP.NET development. The only difference is the "platform" - one is desktop client and the other is web (ASP.NET). You can use both or one or the other language in ASP.NET or even desktop client applications. ...Show All

  • Smart Device Development How to determine if phone has SMS capability?

    Hi. I am using VS2005/VB.Net and CF2 to write applications for Windows Mobile 5 Smartphones. I'm developing an application that relies on the phone having the ability to send and receive SMS message. I believe (but I could be wrong) that in some countries, and/or with some network providers, that the ability to use SMS is something that must be "turned on" by the network provider and/or setup within the phone. Therefore, I would like my application to be able to confirm that SMS is enabled and working on the phone, and if not, inform the user appropriately, rather than the user thinking that my application isn't working as intended. So, is there a way to programmatically determine if the Smartphone has the ab ...Show All

  • Windows Forms interacting text boxes & events question

    hello: I have a user form in vb.net 2.0. When a user enters a price in one of 10 price fields, their corresponding percent fields and dollar fields(which are read only fields) are computed based upon the change in price. These computations involve a cost and a quantity field also on the form. In addition when either the cost or quantity fields are changed, all read only fields of the 10 price fields must change since these computed fields involve cost and quantity. So I have an event each time a price is changed to compute that price's read only fields, and I have an event to change the read only fields of ALL the prices if the cost or quantity fields are changed. I was thinking of putting these in the validating event routines ...Show All

  • Commerce Server CS 2007 OrderGroupCollecion to PurchaseOrder with BizTalk2006 - best practice

    Hi I am querying CS 2007 with an OrderQuery from within Biztalk 2006 and this returns a group of Purchase orders. My question: As i only want to process 1 Purchase order at a time should / can i envelope the OrderGroupCollection within a receive pipe or should i use a looping map once the message has arrived in the Orcastration Thanks in advance Simon Hey Glyn, How and where are you splitting the OrderGroup collection Are you splitting on the "<PurchaseOrder>" node It "sounds" like you are splitting it at the OrderForm level and BizTalk is trying to resolve that message against that schema, which doesn't exist out of the box. If you are splitting against the PurchaseOrder schema then you ...Show All

  • SharePoint Products and Technologies How to get the corresponding english error message text?

    Hi, I'm getting a german language error message on a german installation of MOSS from a listview web part. I can't find any topics in google et al. with this message, but trying some translated words didn't help either. How can I get the corresponding english message Do I have to install the english language pack Thomas I doubt if that will help because as far as I know the error messages are based on the language of the installation rather than on the language of the language pack. In other words (if the above is true) what you should be doing is installing the English language version of MOSS 2007 (for the "correct" error messages from KB article and Google use) and then in ...Show All

  • Visual Studio 2008 (Pre-release) Data Binding and element serialization.

    Hello, I would like to achieve following behavior: 1) I would like to set binding to some element property at runtime; 2) After that I would like to serialize the element to XAML and still have the binding available there; I.e. after setting a binding to property "Height" of the StackPanel element and serializing the element, I would like to have output similar to this one: <StackPanel Name="StackPanel1" Height="{Binding Path=MySourceProperty}" ... /> I already tried several ways: 1) Binding binding = new Binding(); binding.Path = new PropertyPath("MySourceProperty"); BindingOperations.SetBinding(StackPanel1, StackPanel.HeightProperty, binding); Serialization produces o ...Show All

  • Windows Forms Creating custom extended Calendar control

    I need to implement a Calendar Control in my application so that it can be used throught the aplication. I have searched the internet and have found some but those are just calendars and we can select a date. But if we wnt to go to some year say 2011 then we have to go on clicking the next month navigator until the required year and the month comes up. So I want to implement two dropdown lists on top of the calendar which signify month and year and we can select from the dropdowns. This can also include the navigation icons for the months and years. I want to implement them in an .ascx file. Can some one give me some suggestions or provide any helpful links to create the calendar control. The calendar control needs to be implement ...Show All

  • Visual Basic I can't edit my project in diff machine

    I have a project using VB 2005 in my computer but when I'm editing it on another PC using VB 2005. It doesn't update. And the debugger said that the original code is not the same. How can I do the edit in different machine. One in my office and one in my home. That's what Iam doing. I'm saving it in a flash drive and trying to edit it in my home. I have a lot of changes and I notice that it didn't apply when I run my project. It's the same old code the VB is kept reading. ...Show All

  • Visual Studio Unable to create a new DSL project from Visual Studio

    I have reinstalled Visual Studio and the latest SDK and I start to experience problems while creating a new Domain Specific Language Designer Project. At first, after the project is unfolded I get the error message box saying “ The method or operation is not implemented” . When I press OK, I can work. I still need to run the text template manually because it probably fell before it could complete it. However, the problems are not over yet. When I run the solution, I get an error inside the experimental hive saying: “ The following files were specified on the command line: ..\..\..\Debugging\Debugging.sln. These files could not be found and will not be loaded.” Btw, I have no problems opening DSLs I develo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Alpha Level Question?

    Hi all, Below is my programming, ======================= renderer.Device.RenderState.SourceBlend = Blend.SourceAlpha; renderer.Device.RenderState.DestinationBlend = Blend.DestinationAlpha; renderer.Device.RenderState.AlphaBlendEnable = true; ======================= i can use this code set my material Alpha. How to set Alpha level For Example, iwant set alpha 70%. Best Regards, That is not the proper way actually. Frame buffer alpha blending is done with this formula: Final Color = ObjectColor * SourceBlendFactor + PixelColor * DestinationBlendFactor Blend.DestinationAlpha means read the alpha value from the existing pixel on the frame buffer, which is not the right option for setting material translucency.. ...Show All

©2008 Software Development Network