mrbelk's Q&A profile
.NET Development Need some advice on how to approach this problem (web service calling C# application methods)
Hi everyone, I've been working on a solution to this project I was assigned, and after working on it for a couple days I thought maybe I was approaching it the wrong way. Basically what I need to do is to get a web service to access an a method or two on a locally running C# Windows application (Like for example have the web service send a string to an int method on the C# application). The way I have approached it thus far is by having the application register itself with the ROT, and then attempting to grab it via Monikers, etc. I've moved along pretty far with it thus far, but then thought that it could possibly be easier by creating a COM server/client type thing, with the C# application being the server and the web service being a "te ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can i obtain extra information from a File using Content importer?
How can i obtain extra information from a File using Content importer Now i already have made a content importer for my ownfile format, that is ok because i se the importer to extract the texture Infromation from my file... But the problem Is that i have very valuable information in my file format in addition to the texture infromation, This is the code that i use to import the texture content from my files (jki Files): /// <summary> /// Importador de archivos JKI al XNA Content pipeline /// </summary> [ ContentImporter ( ".jki" , DisplayName = "Imagen De Multiples Frames JKI" , DefaultProcessor = "Procesador para arc ...Show All
Visual C++ Reverse Engineering from VC++ 2005
Hi, I have a project in VC++ 2005 and I am looking for a way to reverse engineer so that I can get the class diagrams. I read here - http://msdn2.microsoft.com/en-us/library/ms182014(VS.80).aspx - that it is possible to do so by using the project->Visio UML option in VS 2005. However, I do not find any such command in the project menu. I have VS 2005 Professional and Visio 2003 Professional SP2 installed in my machine. Does anybody know how I can do the reverse engineering from VC++ 2005 Thanks, Vijay. P.S.: In the page referenced above - http://msdn2.microsoft.com/en-us/library/ms182014(VS.80).aspx - they talk about Visio for Enterprise Architects. Is it the same as VS Professional A search for 'Visio for Enterpris ...Show All
Windows Forms app control using only keyboard
Hi! I'm working on an windows form application that has to be controlled only with keyboard. I have a form on which a have some controls (2 rows of 3 controls) similar to buttons. What i would like to do, is to move with cursor keys between these controls and when a cotrol is currently selected it should highlight and when i press enter it should execute a piece of code. The problem is that i can't capture the cursor keys. It seem that i can only move between controls by their tab property. It seems like the form is handling the cursor keys by it self Best regards, Nec Private Function FocusedControl () As Control Dim TheControl As Control = Nothing For Each c ...Show All
SQL Server Encryption problem
Hi All, Currently for a project for the company I work for, we are looking to migrate from SQL Server 2000 to 2005. As part of the investigation I am looking at the some of the new features in 2005. Looking at the encryption facilities which we are looking to use I have come across a problem (or perceived problem) I have the following test table (where in production we will replace CardNo with the CustomerID) //----------------------------------------------------------------------------- USE [Encryption2] GO /****** Object: Table [dbo].[Cards] Script Date: 11/13/2006 11:42:44 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Cards]( [CardNo] [nvarchar](50) COLLATE Latin1_General_CI_AI NU ...Show All
Visual Basic [Help] - getting CRC of a string (converted from C to VB)
Hello, i recently need a way to get a crc (32) of a string. I found an example http://www.zorc.breitbandkatze.de/crctester.c and i converted it Module test '//CRC parameters (default values are for CRC-32): Dim order As Integer = 32 Dim polynom As ULong = &H4C11DB7 Dim direct As Integer = 1 Dim crcinit As Long = &HFFFFFFFF Dim crcxor As Long = &HFFFFFFFF Dim refin As Boolean = False Dim refout As Boolean = False '// internal global values: Dim crcmask As ULong Dim crchighbit As ULong Dim crcinit_direct As ULong Dim crcinit_nondirect As ULong Dim crctab(256) As ULong Sub generate_crc_table() Dim i As Integer = 0 Dim j As Integer = 0 Dim bit As ULong Dim crc As ULong For i = 0 To 255 Step 1 crc = CULng ...Show All
Visual Studio Express Editions Thread Pool
Hi All, i want the different between ThreadPool.RegisterWaitForSingleObject And ThreadPool.QueueUserWorkItem what are the appropriate position to use this. in my case i want to upload certain details in MB to multiple site. right now i'm using ThreadPool.QueueUserWorkItem(new WaitCallback(UploadDataToDevice), "hhtp://myweb.com"); wat is need of using thread.sleep(1000); for uploading to 100 different site simultaneously...... am i right orelse plz make me correct Thanks and Regards Amjath You should use QueueUserWorkItem if you want multiple request to be processed simultanously. You can use the ThreadPool.SetMaxThreads() method to set the maximum number of threads used. ...Show All
SQL Server How can I know if the query optimizer within SQL Server 2005 use any index or not in response to query?
Hi, all, Would please any expert here give me any guidance and advices for how can I know if the query optimizer within SQL Server 2005 use any index or not in response to a query Thanks a lot in advance for that. With best regards, Yours sincerely, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XBox 360 hard drive question for MS staff - semi off topic
With all the great new offerings out or coming soon for the 360: XBox Live Video Marketplace, XNA game creation, and the recently announced IPTV, the poor little 20GB hard drive's days look numbered. Is MS planning to release a larger hard drive for the 360 I'm pretty sure that many people (including myself) would be very interested in one. I don't want to replace my box either. I wish we could write to external USB hard drives and flash drives rather than using them read only. The more we can comfortably store, the more we might buy... ...Show All
Windows Search Technologies No permission to use WDS!
Here's the situation: I'm using WDS with an ASP.NET application. In order to make this work, I call the ExecuteQuery method inside a STA Thread. While debugging, everything works fine. When I deploy it, I get "Access Denied" in the ExecuteQuery method. I printed out the current user name in several moments of the code and I found out that before calling the thread, the user is IUSR_xxxxx. But inside the thread, the user is ASP.NET. I tried using impersonation in the web.config. Before the thread the user I set in the web.config file is impersonated, but when the thread starts, it changes back to ASP.NET What can I do Hello Themeros, I'm not completely clear on what you're doing, but I can say ...Show All
SQL Server Dimensions within Excel Pivot Table
Hi I have a cube that has dimensions such as year, company, customer, statustext, employee etc. In the Browse in Analysis Manager - all the dimensions look fine. When I access the same cube from Excel after dragging and dropping the dimensions during analysis the dimensions in the Page section are not what is show when dragged to the row section. For example - i have a display Customer as rows, years as columns. I drag the statustext next to customer and shows customer. The filter in the page section for statustext is correct. I have tried moving the dimension back to the Field List and re-adding, refreshing from the cube makes no difference. The only solution I have been able to come up with is rebuild the Pivot table - not wh ...Show All
Visual Basic Answer data to array or dataset????
I have a win form (visual basic) with a datagridview I fill the datagridview with the query filltoday Query filltoday SELECT dbo.T_Employee.FirstName + " " + dbo.T_Employee.Name AS "Full name", dbo.T_TimeRegistration.EmpId, dbo.T_MachGrp.Description, dbo.T_TimeRegistration.StartTime, dbo.T_TimeRegistration.EndTime FROM dbo.T_MachGrp, dbo.T_ProdBillOfOper, dbo.T_ShopDoc, dbo.T_TimeRegistration, dbo.T_Employee WHERE dbo.T_MachGrp.MachGrpCode = dbo.T_ProdBillOfOper.MachGrpCode AND dbo.T_ProdBillOfOper.ProdHeaderDossierCode = dbo.T_ShopDoc.ProdHeaderDossierCode AND dbo.T_ProdBillOfOper.ProdBOOLineNr = dbo.T_ShopDoc.ProdBOOLineNr ...Show All
Visual Studio Install error VSS 2005 on Vista
Hii, I want to install VSS 2005 on Vista Business but i got the following error: The installer has encountered an unexpe cted error installing this package. This may in dicate a problem with this package. The error code is 2337. I have already install the same VSS 2005 on Win Xp so the package isn't corrupt ... I use Visual Studio 2005 Prof, dotnetframework 3.0. "I'd try running the installer elevated (right click the exe, say Run as Administrator)."This was the solution! Now VSS is installed. Thank you for your support! ...Show All
Windows Forms Closing ChildForm in an MDI Application
Hi, I need assitance in closing a child form under certain circumstances. What I need to accomplish is when the child form opens it checks a value in the registry, if this value is absent I need the form to stop loading and return to the Parent from. How can I acheive this Here's my code so far.. <Code> namespace Mort { public partial class frmFuneral : Form { public frmFuneral() { InitializeComponent(); } private string myPath; private void frmFuneral_Load(object sender, EventArgs e) { CheckRegKey(); } private void CheckRegKey() { RegistryKey myKey = Registry.LocalMachine.OpenSubKey("Software\\Mort", true); string myPath = (string)myKey.GetValue("DBP ...Show All
SQL Server Chart to WORD
How to export chart to word.Please help me. Thanks for your suggestion Adam.But I can't tell this to my client.Is there any another method ...Show All
