sticksnap's Q&A profile
Visual C++ Project organization
I find myself against the wall. I am at a place where I have never gotten beyond because I do not understand the organization of projects. In the past I have done top-down programming. I've gotten fairly proficient with it, even though I have never gotten deep into the system with it. An example of the type of coding I am familiar with is here . While I can understand the concept of classes and objects, the organization of object-based projects throws me. As example, the app I'm writing. Using windows forms I created this project. It has 2 header files (Form1.h and stdafx.h) and 3 c++ files (AssemblyInfo.cpp, ProLite.cpp and stdafx.cpp). So far,all of the code generated by the designer is going into Form1.h. All of it. I know that I am ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A box wasnt shown
Hello everybody ,I`m new with DirectX can you guide me that,What dont the box wasnt shown thanks a lot. public Form1() { this.SetStyle ( ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque , true ) ; InitializeComponent(); } private bool InitializeGraphics() { try { PresentParameters presentParameter = new PresentParameters() ; presentParameter.Windowed = true ; presentParameter.SwapEffect = SwapEffect.Discard ; device = new Device ( 0 , DeviceType.Hardware , this , ...Show All
SQL Server Address field problem.
I have a number of text boxes (one on top of the other) to display the addresses in my report. I have Address_name, Address1, Address2, Address_city, Address_State, Address_PostalCode - Each with its own text box except for the city, state, and postal code for which I just combined the fields. However, I have many who do not have any data for Address2 and don't want an empty line in the address. Is there an expression I can use to display the next line or move/shift up the remaining parts of the address Would the iif and isnothing expressions be helpful, and if so, how do I write it correctly I see, thanks for the info. I will try this in about an hour or so, I'll post back and give you an update. Than ...Show All
Visual C# Creating Taskbar icon
Hi. Your help is very much appreciated. I am writing Win App using C#, framework version 1.1. My app starts with taskbar icon. By clicking theicon, the main window will show. The main window SHOULD NOT be available unless the icon is clicked. My problem: the main window is ALWAYS available. I tried to hide it, but by using Alt+Tab, the user can still see it. (In my code I used the .NET's notifyIcon component). Any ideas Thanks Roy Thanks for the reply. I tried to do what you suggested, but the hidden form is still visible through Alt+Tab ...Show All
Visual Studio Is there any MSBuild Interface available?
Hi all, Has anybody had call MSBuild via api interface from win form application Currently, I'm able to call msbuild.exe from win form using process.start() method; however, I think it would be nice if I could call msbuild directly from api interface. Best Regards, There is object model for MSBuild that you can use (see MSDN for reference). What you probably need is Engine object to build you projects. Hope that helps. Regards, Eugene ...Show All
SQL Server Black server reports after installing SP2
After installing SQL Server 2005 SP2 all of our server reports are being rendered with a black background and white text, which needless to say is reversed of how they were being drawn before installing SP2. This only happens when the report viewer is displaying the report in “Print Layout” mode. Normal mode shows the report as expected. Has anyone else had this problem or suggest a solution Thanks in advance. Thanks for the feedback on this Michael. I thought this might work but afer replacing the ImageRendering.dll I get the following error: "An attempt has been made to use a rendering extension that is not registered for this report server." Did you get a similar result when you rep ...Show All
Visual C++ The applications configuration is incorrect...
I recently delelted pretty much ALL of the files in my SxS folder... since my computer has gone fucking brain dead... I've since gotten all of the files back from the other computer in the house.. I can still get to my desktop and my screensaver even works... Some programs actually work... but mostly I just get the error report saying the configuration is incorrect. PLEASE SOMEBODY... ANYONE. Anybody know how I can fix my computer without losing everything I've looked through a bunch of forums about the SxS folder.. but nothing has really helped.. Anybody with any help please e-mail me. Let this be a lesson in not touching files in the Windows directory unless you really know what you are doing. One other thing to try is ...Show All
Visual Studio Team System creating work - item. is attribute refname just a qualifier?
hi, i want to create a set of work-items to replace our existing requirements-database. these are 12 classes. therefore i had a question. in the xml-definition of a work-item i do see often the attribute "refname". a value of this attribute is " Microsoft.VSTS.Build.IntegrationBuild". is this just a qualifier or is there more semantics behind this refname if it is just a qualifier it should be possible to define something like this: <FIELD name="CustomerID" refname="ProjectPweb.CustomerID" type="String" reportable="dimension"> <HELPTEXT>something</HELPTEXT> <SUGGESTEDVALUES> <LISTITEM value="None"/> </SUGGESTEDVALUES> </FIELD> is this assumption correct what do i have to consider when usin ...Show All
.NET Development Windows Vista x64 Conexant Audio Driver Problem
I Have a gateway Laptop, Model number MX6437. AMD Turion64 processor, ATI Radeon Xpress 200m Graphics, 1 Gig of Ram (upgraded from 512). I Downloaded The Windows Vista Beta 2 x64 bit Version. It installed ok, but I have Found I have no Sound driver. I have Tried Windows Update, no luck. I Have Also Rebooted my pc and pressed f8 and turned off the Assighn digital signiture. Rebooted, Still no sound. I have tried Drivers that people on here have recomended but still no luck. Even the ati south bridge driver. every time i do an install on thier recommended driver they say worked for them, i get an error message saying: error installing software. The specified file cannont be found. I still have a red x in the sound icon. I have a conexant aud ...Show All
Smart Device Development Ad Hoc Wifi note exchange
Hi - i'm playing around with an app that allows myself and a friendto exchange notes between our wifi-enabled devices, connected ad-hoc. The devices both use Windows Mobile 5. I have done various things with Bluetooth, but this is my first real attempt at Wifi. Does anyone have samples (in C#) that demonstrate how to connect an ad-hoc network dynamically (well, with least user intervention as possible). I'd also like to see something that shows how to send a file between the devices - although i'd imagine that you don't have to do anything wifi protocol specific - this is done at a higher level right many thanks, steven. ...Show All
.NET Development Validating Xml document, XmlReader reports only one error at a time
Hi, I've swapped from the deprecated XmlValidatingReader to XmlReader.Create(...) On validating an Xml document, I now receive one error at a time in my ValidationEventHandler, and no line number, line position information. When I used XmlValidatingReader I could validate an Xml document and get all errors reported in one go with line number and line position info. How do I get the same behaviour as before Ken Hi I do not throw an exception in the ValidationEventHandler, I collect the e.Message and set a valid flag so that I can report any validation errors, after validation is complete. Ken ...Show All
Visual C# Windows Services
Hi. We want to install two instances of the same windows service. We have already installed the first one but when we can't install the second one. What should we change in the setup project to allow the second installation Thanks a lot. I was afraid you'd ask that question. Personally I'd recommend that you encode it in your uninstall string during installation. During installation you should create a separate Add/Remove option for each instance that you install. When the uninstall string is created you should append a value indicating which instance to uninstall. During uninstall you'll need to fetch this value. If you want to have only one Add/Remove option for all instances then you'll need to d ...Show All
Visual Basic Tableadapter.update with auto-increment on SQL column problem
Hello, I'm using databound textboxes to display data from a database on VB.net 2005. I have an "add new" button, which does this: BindingSource.AddNew() - and then once the user has entered the details, they click a button that updates the database: Try Me.ChildrenBindingSource.EndEdit() Me.ChildrenTableAdapter.Update(Me.Main_databaseDataSet.Children) Catch ex As Exception MsgBox("Update failed") End Try I have a primary key field on the database (I'm using MS SQL express) called "ID". I've tested all the above with the user entering their own ID, and all works fine, but I want this to be auto-incremented instead. So, I set my MS SQL "ID" column up with these pr ...Show All
Smart Device Development Is it possible to subclass Menu?
Hi, Is it possible to subclass Menu in Compact Framework In full Framework it is, but in CF I get "The type 'System.Windows.Forms.Menu' has no constructors defined" compiler error. Tia, Jman I'm using CF 2.0. "Error 9 The type 'System.Windows.Forms.Menu' has no constructors defined" and this points to the constructor header public class MyMenu : System.Windows.Forms. Menu { ..... protected MyMenu ( MenuItem [] items) : base (items) { } } ...Show All
Visual Studio Express Editions Subform appears behind pictureBox?
Newbie alert! :) I built a main form and set the property IsMdiContainer to true and then have a subform which works fine. I added a pictureBox to the main form but the sub forms appear behind the pictureBox. Any ideas why private void openToolStripMenuItem_Click(object sender, EventArgs e) { SubForm1 sform = new SubForm1(); sform.MdiParent = this; sform.Show(); } Hi Yes, it work like that. If you want put any other controls to MdiParent form so that those controls and child forms are side by side you must dock that control to some edge. Of course this change your Image size and mayby it's better use container (Panel) behind it. Yours Markku. ...Show All
