Joe Buys's Q&A profile
Visual C++ set<String> in Visual C++ .NET
How do you use a set of Strings If I say set<String> *st; String *s = S"FOO"; st->insert(*s); I get an "illegal use of managed type" message. thanks Well it comes down to this: is a set of String (NOT string) a valid concept, or not If it is, how is it used JK ...Show All
.NET Development IIS Worker Process message box
Application Error Event 1004 appeared with this in the event log: Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module unknown, version 0.0.0.0, fault address 0x00730061. Not sure why this is occurring, but have been unable to find any solutions about this on the newsgroups. I have seen other posts, but no answers. Hey, I also just started having this problem this morning. Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module davex.dll, version 6.5.7651.60, fault address 0x00067922. Has anyone came up with a solution to this Thank You ...Show All
Visual C++ sizeof(main)
hi, i searched a lot to find the answer for this question before posting.... i am not getting proper answers. . my questoin is wat is sizeof(main) alot of ppl say dat sizeof doesn't take function name ... .. but a fucntion name is a pointer like .. cout<<func; wiil print the address this means that its a fucntion pointer like object..... so the sizeof a function name shud equal to sizeof a pointer variable..... . . my question is why it does.nt take a fucntion name.... plz reply soon manish............. From MSDN: The sizeof operator cannot be used with the following operands: Functions. (However, sizeof can be applied to pointers to functions.) Bit fields. Undefined classes. T ...Show All
Windows Forms datagrid not showing source
Pretty new at visual basic and actually advance programming in general. I am trying to make a button open up a connection to a MS Access database and fill a datagrid with information from a table called "stock". I have this code linked to a button click: DBSave is a text box and ListView1 is a datagrid. Dim DBPath As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBSave.Text Dim DBConnect As New OleDb.OleDbConnection() DBConnect.ConnectionString = DBPath DBConnect.Open() Dim DBAdap As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter( "SELECT * from Stock" , DBConnect) Dim DBset As DataSet = New DataSet( "Stock" ) DBAdap.Fill(DBset) ...Show All
Visual Studio 2008 (Pre-release) WCF UserName authentication
HI, I'm trying to implement username authentication for a WCF service (hosted in ServiceHost, not IIS) and once service starts it gets to Faulted state if i specify: tcpBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; Here's the piece of code where service is being started (all settings, e.g. endpoints, behaviors are set in code - there is no app.config in the project): //////------------------------------- urlService = "http://localhost:8000/MyService" ; host = new ServiceHost(typeof(ServiceLibrary.service1)); host.Opening += new EventHandler(host_Opening); host.Opened += new EventHandler(host_Opened); host.Closing += new EventHandler(host_Closing); host.Closed += new EventHandler(host_Clos ...Show All
Windows Forms Filling a column with Null in VSC# 2005 (Windows Application)
Hi, I'm trying to fill one of my columns with Null Value using the following code: MyDataSet.Tables[ "myTable" ].Rows[myTableBindingSource.Position][ "Column1" ] = DBNull .Value; this .Validate(); this .myTableBindingSource.EndEdit(); this .myTableTableAdapter.Update( this .MyDataSet. myTable ); But it doesn't work. Am I doing something wrong Thanks, Mathew Hi,Mathew1972 Have a look at my sample: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace Samples { p ...Show All
Visual Studio macro to build MSI project - get popup when I set Version property
OK, I've written a macro to build a MSI project, incrementing the version and setting the productcode GUID. However, as soon as I set the Version property I get a popup saying "It is recommended that the ProductCode be changed if you change the version. Do you want to do this ". I run this macro from the command line as part of an automatde build but this popup stops the build. It didnt do this in VS2003, but it does in VS2005. Any solutions: ways to suppress popups, or anything else Order doesnt seem to matter (ie version before ProductCode or after) Code: Dim prop As EnvDTE.Property Dim propVersion As EnvDTE.Property ' get the project version property propVersion = GetPropertyByName(proj.Properties, ...Show All
SQL Server Upgrade from 2.0 to 2005 Notification
I'm trying to upgrade from Notification services 2 to 2005 and am having some problems. I have run: nscontrol upgrade ..... and the system reported a successful upgrade, however when I run: nscontrol status... I get: Database version: 2.5.0.1 Assembly version: 9.0.2047.0 I'm under the impression the upgrade did not work. If I try a nscontrol export, I'm getting the error that the instance can't be exported because the database version does not match the assembly version. Any ideas thanks! After performing the nscontrol upgrade, you will need to run nscontrol update before the upgrade is considered complete. Please see the instructions for the upgrade process in Books Online. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch.Draw() - what does layerDepth default to?
If I call one of the SpriteBatch.Draw() methods that doesn't take layerDepth as a parameter, is it given a default value under the covers If so, what does it default to Thanks, Bill ...Show All
Audio and Video Development Tee node and custom media source
I used the WavSource MediaSource example and I used it in topology using a tee node. When I do that, an errors occurs after starting the session (0x8000FFFF). If I dont use a tee node everything works fine. I tried setting the MF_TOPONODE_PRIMARYOUTPUT and MF_TOPONODE_DISCARDABLE but that did not change anything. Marc I just tried out your test application and, well, WAV files play just fine for me. Since you're most likely talking about RC1, and I'm running a newer build, I'd like you to try this again with the next SDK version that comes out and let me know if you're still running into this problem. Becky ...Show All
Visual Studio Dates Changing to mm/dd/yyyy
I've got a report that i've done which has a formula that calculates the last sunday of each month. When i run this report in Crystal Reports XI:R2 the date displays as dd/mm/yyyy But when the report is run from an ASP page only that formula date changes to mm/dd/yyyy Any Ideas why it does this Have you checked the "regional and language options" settings in Control Panel (the icon that looks like a globe) Go to "Regional Options" tab -> "Customize" button -> "Date" tab -> and "Short Date Time" format. You might have different datetime format settings for your local machine and the server machine running ASP pages ...Show All
Visual Studio Express Editions Change visible content
I need to know how to change the current content so that when I click the Next button the content changes. This would allow me to make more options available. This is just like when you install something and you have to click Next to view all the options and such. This is very important for my project and any help would be GREATLY appreciated. Dang, thought I had it. I still dont understand how to make the actual pages tho. A simple working example would do. Right now it says that Page1, Page2, Page3 are not defined, tried using panels but no luck. ...Show All
Software Development for Windows Vista How to append data?
I'm trying to write two sets of files to a data disc in separate recording sessions. I'm getting an IMAPI_E_IMPORT_MEDIA_NOT_ALLOWED error from IFileSystemImage::put_MultisessionInterfaces the second time I try to write files, but I'm sure I'm not doing something correctly. (The media is DVD-RW). What is the correct procedure for appending files to a data disc So how do you actually append data to supported media (CD-R/RW, DVD-/+R) I'm assuming you have to call IFileSystemImage::put_MultisessionInterfaces; but how do you get the SAFEARRAY list of multi-session interfaces in the first place Do you call CoCreateInstance to create a IMultisessionInterface object first and then build a SAFEARRAY from scratc ...Show All
Visual Studio 2008 (Pre-release) DirectionalLight and different materials
Hi! I am trying to make an animated 3D model of the solar system. I am having problems with lights and materials. Is it possible to make a object that emits the light (directional) For now I am using only sun and earth. I am using DirectionalLight to make earth visible but I don't want the sun to be enlightened by that light. If I use only EmissiveMaterial for the sun it looks OK, but when the earth should go behind the sun it appears in front of it. Is this a bug It looks like a bug. If I change only the material of the sun the earth goes behind it as it should. But DiffuseMaterial is enlightened by directional light and it does not look like the sun any more. Does anybody have an idea how could I achieve the proper li ...Show All
Software Development for Windows Vista Regd SubType for 48-bit RGB
Hi All I'm now working with Source Filters.Direct Show Filters support bitcounts upto 32.There is no support in direct show to handle Images of bitcount greater than 32.I need to handle TIFF Images of BitCount 48. I did the code to output the stream of Image data to Transform Filter/Renderer Filter.But it doesn't work b'cos there is no subtype to handle 48-bit RGB. Can anybody tell me how to make a Transform/Renderer filter to handle 48-bit RGB OR Any other possible ways to do it. With Regards, Jeno The general way to create new media types for existing FourCC's or D3DFORMATs is to replace the first 32 bits of the media base GUID with the FourCC or the D3DFORMAT. The media type base GUID is { xxxxxxxx- ...Show All
