djmIV's Q&A profile
Visual Basic Ngenning and protecting the code in an image
I'm writing some code that I want to be secure. I have stored data that I need to be uber secure. It's not a problem to encrypt the data. But the problem is to protect the code that manages the secure data. If I use reflector to dissemble my code, the dissassembly is magnificent and everything is right there. Using a c++ dll is not a solution because I need to call clr functions and once I've done that, the code is wide open to disassembly. Ngenned code is supposed to be dissassemable. But ngenning leaves the original image around, I suppose to activate the code that is placed in the GAC by Ngenning. Microsoft uses ngenned assemblies in their products. VS2005 is installed and then ngenned. But they don't leave disassembable im ...Show All
Visual Studio Team System "TFS WorkItem Tracking" service does not match the trusted performance library information
Hi I have been receiving the following message in my application event log "The configuration information of the performance library "C:\WINDOWS\system32\netfxperf.dll" for the "TFS WorkItem Tracking" service does not match the trusted performance library information stored in the registry. The functions in this library will not be treated as trusted." Does anyone know how to resolve this It might actually need extensive troubleshooting to find the cause, and you might want to contact CSS by calling 800/936-5800 if from US (see <http://support.microsoft.com/> for calling from other countries) - They can help by spending a lot more time with various troubleshoot ...Show All
SQL Server Ordering data under a time calculations dimension
Hey all,. I have a time dimension which lists MTD , YTD, YTD Growth, Prior YTD. I have this set as columns and my customers as rows, for the data i put in sales amount, qty and rank, Question is, i want to sort this data only based on the sales figures from the YTD column. I am using an excel pivot table to generate my reports. Anyways in how i could do this everytime i set the customer dimension to sort based on the sales amount, it doesnt go in the correct order.. I would like to see the highest selling customer up the top, based on their YTD figure, but as well, see the values for MTD YTD Growth etc etc.. Ive been struggling to work out a way in how to do this Any help is much appriciated. Thanks Scotty ...Show All
Windows Live Developer Forums Get Coordinates onclick
I'm fairly new to javascript, and, as such, I have what I feel like should be a simple question. I want to get the coordinates (either pixel x, y or latitude, longitude will do) of where the user clicks on the map. I want to place push pins where they click, and, ultimately, I want to allow a connect the dots type drawing where the user simply clicks and a line is connected from where he previously clicked. I was hoping this could be raised as an event, but it doesn't look like it. Thanks in advance. Hi, I thought you might find this useful to get your coodinates. I used the following function triggered by the 'onmousemove' event in my <div> element to output the coordinates in the status bar. If you change the 'onmousemo ...Show All
.NET Development Merging custom config files
I am loading a custom configuration file at runtime using ConfigurationManager.OpenMappedExeConfiguration. I would like to be able to specify a MachineConfigFilename as well as the ExeConfiguration filename. This is so my client can create a "machine" config with most of the fixed settings and then specify a custom config at the command line. I know that when using a normal app.config settings from machine.config get effectively "merged" - with potentially app.config overriding some. Is it possible to achieve a similar behaviour using OpenMappedExeConfiguration or OpenMappedMachineConfiguration I've tried both but can't seem to get the "merge" to happen... Hi Can anyone ...Show All
Visual Studio Tools for Office [Excel][C#][Com Server][Bug]Bug: the result of formula is output in a wrong cell (using the Wizard)
The following bug write in another cell the result of a formula calculated using the wizard. Here is how you can reproduce the bug: - add a com server with MyFunction to an addin. - Write in sheet 2 !A1 the text "Foo". - Select the cell sheet 2 !A2. - Select the cell sheet 1 !A1. - Write in sheet1!a1 "=MyFunction(", then use the wizar (clic on 'fx'), and select the cell sheet 2 !a1. The cell sheet2!A2 is modified !!! Here is he function MyFunction , followed by some comments : public string MyFunction(Microsoft.Office.Interop.Excel.Range MyRange) { try{ // Removing these 4 lines does not change the problem: if (application.Ready == false) return "Not ready"; else Application.Vol ...Show All
Windows Forms Dialog buttons cut off when different monitor is used and resolution lowered.
I've created dialogs with buttons on them (using Visual Studio 2005 designer) on my machine and when I change the resolution to 800x600 all is fine. Everything shows up as it should. However, when I run on a different machine with a different monitor, and I set the resolution to 800x600 part of the right-side of my button is cut off by the dialog. Any ideas why this is happening How do I ensure that the buttons will be displayed correctly on different monitors Thanks, dougzhoez THANK YOU. That is the problem. Is there a way to ensure that the dialog shows up correctly no matter what the setting is ...Show All
Visual C# multithreading
I need to do multithreading. It is my fist attempt. It failed. This is the setup: There is a form with tabControl and a few pages. There is a progress bar on one of them. It is supposed to measure progress of file downloading. WIthout multhithreading it is dead while the files are downloaded and then in the end it jumps to 100%. This is what I did. Everything compiled but the progress never was activated even after the downloading was over. In other words my code actually made the things worse. In the main form I put in this code at the start of procedure that is handling the download: ThreadStart threadDelegate = new ThreadStart ( Work.DoWork ); Thread newThread = new Thread ( threadDelegate ); newThread.Start ( ); T ...Show All
Windows Forms One or more errors encountered while loading the designer
Hi, I was working on a simple Winforms C# project. I created a few of TableAdapters using the designer and attached them to datagridviews on my form. After realizing that i did not want one of the tables I went to the XSD designer and deleted it. After that the project still excutes ok but the form designer is unable to display the form in design view I get the following error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it. I am not looking for a response to this problem (creating prototype, kicking the ti ...Show All
Visual C# Commandline arguments question
I am starting a process after setting some command line arguments. Is there any way that I can see what actually executed on the command line along with all the arguments that were passed Is this information stored somewhere after the process is started The reason I'm asking is that I am using a companies command line FTP program and I keep getting told that I am using bad command line arguments. The arguments I'm passing are valid, but I want to check to make sure that is actually what is getting executed. Thanks in advance! Sure... //Commandline FTP Process FtpProcess = new Process(); FtpProcess.StartInfo.UseShellExecute = false ; FtpProcess.StartInfo.RedirectStandardOutput ...Show All
Visual C# C# webpage trough proxy
Hi, i need to view a page from my application using a proxy, i thought using the webBrowser control but i didnt fnd a property for set a proxy, so does anyone know how can i load a page in my app with a proxy mig16 AFAIK, the connections to access the internet are all down to the IE connection settings as the WB control uses IE as its core engine. you can use the HttpWebRequest/HttpWebResponse classes to get your webpage and supply it the Proxy server details, if this is of any use Probably the closest thing you can get. http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.aspx http://msdn2.microsoft.com/en-us/library/system.net.httpwebresponse.aspx http://msdn2.microsoft.com/en ...Show All
SQL Server insert simultaneously in 2 tables
Dear All, I am not an expert on T-SQL and I am trying out a small project to learn. I have encountered a problem, whereby I have 2 tables, 1 containing the header (header_id, header_file, admin_menu_id and admin_submenu_id) and then I have another table called header_details, where I am storing the language details for this header, with the fields being (header_details_id, fk_header_id, header_alt, header_caption and fk_language_id) Now I want to create a stored proc, first to insert the header and then the header details. I also want that if the header or header details already exist, I just do an update on these tables. I tried the following code but its not working:- ALTER Procedure [dbo].[INSERT_Header] ( @admin_menu_id int, ...Show All
Windows Search Technologies What to do with a ISearchQueryHelper?
I've got a ISearchQueryHelper. All looks good, but what does one do with it I can't find a .execute() method kicking around How does one run a query Have a look at this thread and let me know if it helps: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=640921&SiteID=1 Cheers. ...Show All
Visual Basic can Serial device data be transmit to web_page.aspx directly?
Hi there, Please help me. I have a serial WiFi device connected to a barcode scanner. Is it possible to create a "web_page.aspx" which can "talk" to the serial device to transmit the captured data to the "web_page.aspx" It's something like this... Barcode scanner (connected to serial WiFi device) --> [Transmit data via WiFi] --> "web_page.aspx" Previously i've used HyperTerminal (HT) to try out the connection. HT uses TCP/IP to connect to the serial device and the transmittion of data is possible. If it is possilbe to replace HyperTerminal with web_page.aspx, how can i do it That's pretty unusual. I don't know enough about it and you real ...Show All
Microsoft ISV Community Center Forums RAPI - Copy files to/from PPC with VBA for Access
Hi, I am looking for an example about how to copy files between PC and PPC using RAPI. All examples I could find yet involved VB.NET or C#. Is it possible to use RAPI through VBA Has someone a code sample Thanks, Yagmur Akgun Hi, writing a reply to my own message is actully boring, but I think that someone might find this info useful, so here it is: I've found a set of command line utilities free to download which can do file/registry operations and more with a PPC. I call them from my VBA code through shell and they work like a charm. I downloaded them from here: http://www.xs4all.nl/~itsme/projects/xda/tools.html Regards, Yagmur Akgun ...Show All
