oilyneck's Q&A profile
.NET Development Object List in C#
Hello, coming from C++ and using a lot of MFC stuff, I wonder what object exists in C# which does the job of a CObList in C++ I mean being serializable and being able to stock different types of runtime class objects. Thanks for any further information ... Best regards MMM Binary Serialization is effeicient way to serialize some object. Its fast and a serialized object takes lesser space in memory on the other hand XMl Serialization / Soap Serialization takes more memory and is not much efficient like Binary Serialization. One other thing, Binary Serialization is preferred one your system is .Net based, both serialization and deserialization because you not to have same assembly to serialize and deserialize the obje ...Show All
Visual Studio Express Editions Issues using the keydown event
I am new to visual basic 2005 Express Edition (I learned in Visual Basic 6.0). I have been creating a tetris game for fun to learn the new modifications on the visual basic language. I have run into a problem concerning how to use the key down event to register when the user presses an arrow key. I used the help function and came up with this: Private Sub frmTetris_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown Select Case e.KeyCode Case keys.right etc etc. End Case End Sub (I left code out) I cannot get it to respond to my keystrokes, and i cannot figure out why. At one point it did respond, but i corrected an error in my ...Show All
.NET Development .NET security and network drives - how to turn it OFF?
How do I TURN OFF .NET security so I can run applications on network drives without getting SecurityException's I dont think you can really - you may need to strong name your assemblies to be trusted to run (I think) Take a look at this: http://west-wind.com/weblog/posts/275.aspx http://support.microsoft.com/ kbid=832742 (the last part will be the most useful) http://www.c-sharpcorner.com/Code/2003/March/StrongNamedAssemblies.asp http://msdn2.microsoft.com/en-us/library/zdc263t0.aspx http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vstechart/html/vbtchSecurityConcernsForVisualBasicNETProgrammers.asp ...Show All
Visual C++ Whereis the merge module for VS2005 SP1 x86 VC dlls?
I checked C:\Program Files\Common Files\Merge Modules\, the MSM files for x86 are still old ones come with RTM. Hi, Are you trying this of the final build of SP1 or beta build The final build of SP1 does update MSMs for all versions of Visual Studio. If you see them not updated, please check installation log for possible failures and open a bug with a log file and description of your machine setup on http://connect.microsoft.com/VisualStudio/ Thanks, Nikola ...Show All
Windows Forms How do I change DataGridViewTextBoxColumn to DataGridViewComboBoxColumn
Hello, The following doesn't work: Dim Col As New DataGridViewComboBoxColumn Col = datGridView.Columns("FKID") With Col .DataSource = datTable .DisplayMember = "Name" .ValueMember = "ID" End With I tried: Col = CType(datGridView.Columns("FKID"), DataGridViewComboBoxColumn) But it gives me a conversion error: "Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.Windows.Forms.DataGridViewComboBoxColumn'." If anyone can give me an example of an explicit conversion syntax of the first example. But PLEASE don't give me examples of datagridview.columns.add(cbo). I'm NOT trying to add a combo column at the end of the grid. I want a bound datagri ...Show All
.NET Development Share the first authenticated Token
Hi,all I have got an authenticated UserNameToken using UserNamePasswordValidator.Also I've already established the security conversation. My answer is that how can all of my web servises can share this Token, in other words every single service needn't be validated at the first time. Thank you in advance! Hi Noel, Are you using WCF or WSE . Both frameworks keep the authenticated SecureContextToken in the service proxy instance (In WCF, the proxy instance is the channel). So, if you want to reuse the same token, the easiest way is to reuse the same proxy instance. Reusing the token in different proxy instances requires more work, and both framework have completely different ways to impleme ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ID3D10Counter usage
I'm trying to test Counters, with some problems. Here is a code snippet: const int nCounters = 5; const D3D10_COUNTER type[ nCounters ] = { D3D10_COUNTER_GPU_IDLE, D3D10_COUNTER_VERTEX_PROCESSING, D3D10_COUNTER_GEOMETRY_PROCESSING, D3D10_COUNTER_PIXEL_PROCESSING, D3D10_COUNTER_OTHER_GPU_PROCESSING }; int Value[ nCounters ]; ID3D10Counter *Counter[ nCounters ]; for ( int i=0;i< nCounters ;i++) { D3D10_COUNTER_DESC d = { type[ i ], 0 }; HRESULT h = pDevice->CreateCounter( &d, &(Counter[ i ]) ); if (FAILED(h)) throw i; } The counter creation failed when the third counter is created (I tried permutations) with the following error: First-chance exception at 0x767edde0 in ezDXUT2console.exe: Microsoft C++ ex ...Show All
SQL Server Problem passing columns as parameter!
Dear friens, I need to pass a column as a parameter in my query. I did this: ALTER PROCEDURE [dbo] . [GD_SP_GET_UsersByDIR_COD] @Direccao nvarchar ( 11 ), @prmFieldName nvarchar ( 25 ), @prmFieldValue nvarchar ( 25 ) AS BEGIN IF @prmFieldValue = '*' OR @prmFieldValue = '' BEGIN SELECT TOP ( 100 ) PERCENT dbo . ADServico_User . UserID , dbo . ADUser . UserName AS Nome , dbo . HARDWARE . New_Computername AS Computername , dbo . ModeloPC . MOD_ModeloPC AS ModeloPC , dbo . Monitor . MON_Monitor AS Monitor , dbo . Status . StatusNome AS Status , dbo . HARDWARE . Migrada AS Intervencao , dbo . HARDWARE . MigraViaChange AS [Migrada via Change] , dbo . HARDWARE . S ...Show All
Visual Studio Express Editions Compiling Boost in VC++ 6.0
I would like to know how to compile Boost Library in VC++ as there are only header files(.h files) provided and no implementation files (.cpp files). As almost all of the Boost library is template based it is usually just defined in header files. So all you need to do is to just include the header file you need. Note: trying to use Boost with Visual C++ 6.0 can be a real pain as the support for templates in Visual C++ 6.0 is poor. If you wish to use Boost I would upgrade to at least Visual C++ .NET 2003. ...Show All
Visual Basic Vb language API doc
Hi, Is there any thing in vb or .Net reference/doc that is similar to java jdk api doc It's hard to see in MSDN what related to what in the big picture. Thanks for your answers. roisaonua ...Show All
SQL Server How to transfer or export dbf file to SQL server 2005 express edition?
I need to transfer dbf file to sql server 2005 express edition with some periodic interval. Can any one please recommend which is the easiest and efficient method to do . Like polling every 5 to 10 seconds transfer data to sql server 2005 ex edition. Is it recommend to do it visual basic program , how to do it. pls help Hi Stephen, In SQL 2005 you can set up a linked server, a stored procedure, and a recurring job to run the stored procedure. I'm assuming you want to import only new or changed rows from the DBF and the stored procedure would allow you to do this before you update your main table. I don't usually work with SQL Express, and I see that you can set up a linked server, but SQL Server Agent is not available to s ...Show All
Visual FoxPro rounding bug in vfp8?
I have found what seems to be a rounding bug in VFP8. Any ideas how I can get around this please I was doing some testing when I found that I was a penny out on digging deeper it seems that when lnValue = 0.57500000000000, Round(lnValue,2) gives 0.57!!!!! when it should give 0.58. This is causing my validation to fail. Is this a bug The strange thing is that Round(.575000000000,2) gives 0.58 but the extra 0's in the scenario above are causing the difference. Thank you Andy for your full explanation and suggestions. In case anyone else is following this thread I think In practice you might be able to get away with shortening that slightly by removing the round altogether as the STR & VAL combi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How control Sound range that can be listen in XACT tool ?
How control Sound range that can be listen in XACT tool for example, Some Sound can be heard in 0.5 mile. but Another Sound can be heard in 0.1 mile. Of Course, Volume is controled by distance.(close big, Far small) and If Distance between Emitter and Listener go over the range, Volume value is 0. I want to control Emtiter's range to be heard In XACT Tool. It it possible to modify Code.(by force control the volume according to Distance) But May be It's not correct rule.. Thanks for any reply... Hi Henzrake, Thank you for your post. Let me try to answer for two possible scenarios: 1) Suppose you want a single sound to get quieter with distance. For this, you can create a runtime parameter control preset (" ...Show All
Visual C# TreeView.NodeMouseHover question
This is really puzzling. I copied this code from the VS Online Help. It will display the TreeView.Node Path when the mouse hovers over a node. But, the display won't appear until I move the cursor over another node, when I do that , the information shown is for the first node. For example, my TreeView is a list of members in a group as shown below. When I hover the mouse over a node, nothing happens until I click then move the mouse to another node. In this case, I've just clicked on node "C" to open it and then moved the cursor to hover over node "B"; when that happens, the information for node "C" is displayed. What did I miss from the Online Help site + Name List + A + B - C ...Show All
Windows Forms Image problem(simple problem)
Hey, I found this place online( http://www.vbdotnetheaven.com/UploadFile/scottlysle/WordProcessor09122006234320PM/WordProcessor.aspx ) that told you how to make a simple RichText program, so Ic hecked it out and it had somthing in it that I needed help with in my program, adding an image to the Rich Textbox... So this is my code from the code on that page translated into C#: private void imageToolStripMenuItem_Click( object sender, EventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); openFileDialog1.Title = ( "Insert Image" ); openFileDialog1.DefaultExt = ( "rtf" ); openFileDialog1.Filter = ( "Bitmap Files|*.bmp|JPEG Files|*.jpg|GIF Files|*.gif" ); openFileDialog ...Show All
