Anton__'s Q&A profile
Visual C# How to Create a URL syntax checker in C#
I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site. To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent. I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and I have included there 3 anti-phish tools. One of the tools is to check for URL syntax error. i have searched for such but has given me no good results that can be of any help to my project. I was hoping that some of the bright minds here could help me or enlighten me in my search. Thanks. I have read about an article about it. They use d ...Show All
Visual Studio Tools for Office How to detech if a DLL is loaded by Excel?
We have some in-house excel add-on (blah.dll), how could we detect if the dll is loaded by the running excel instance One way I can figure is to: try { String blahStr = (string) Globals.ThisWorkbook.Application.Evaluation("SomeSpecialFunction()"); } catch { MessageBox.Show("the addon isn't loaded!"); } Is there a better way Thanks, FlashFan Hi, Excel doesn't have a way to tell you what dlls are loaded in process. You will probably need to P/Invoke on a Win32 call such as EnumProcessModules ( http://msdn2.microsoft.com/en-us/library/ms682631.aspx ) if you want to find out what dlls are loaded. For managed code, you can always get the assemblies running in an AppDomain by cal ...Show All
Windows Search Technologies no e-mails are indexed
just installed latest version of windows desktop search on my home computer. I use it at work and think it is great. However at home no e-mails are indexed it does not seem to recognise that I have outlook installed. I have outlook 2003, windows xp, service pack 2 and latest updates. Any help would be appreciated as i would really like to be able to use this at home too. thanks okay i fixed it... you've installed some sort of enterprise version (funny thing is I work at an enterprise)... anyway, uninstall it, and install the msn toolbar..this includes the windows search thing... search for the msn toolbar...it should be around 8-9 mb... the upgrade (which Ill never do again) was only like 4mb. ...Show All
Software Development for Windows Vista Malware protection Build Pre-RC1 5536
This is the error message I receive when installing Trend Micro PC-cillin Internet Security 2006, build tis14f1410emc. "Setup has detected an unsupported platform. Please refer to the documentation for the list of supported platforms." Microsoft Windows Security has this as their malware protection option. FYI im afraid these are the incorrect forums for your technical support question, best place would be the appropriate communities: www.microsoft.com/communities Remember, Windows Vista is still in development and not everything will work just yet - other vendors also need to update their software to recognize the platform. Thanks ...Show All
Windows Forms LET THE ARGUMENT BEGIN: TO STRONGLY TYPE OR NOT TO STRONGLY TYPE
Hey All - We're having something of a lively debate in our office about strongly typed datasets. There are two prevailing arguments: Strongly typed datasets do not incur a performance hit due to excess boxing/unboxing, and supports a stronger workflow in a layered approach than does untyped datasets; Strongly typed datasets incur a greater performance hit due to excess boxing/unboxing, whereas untyped datasets only have developer-driven boxing at compile-time. I'm not even going to begin to tell you where I stand. My whole point in posting this argument is to hear some differing opinions on the subject from you, my distributed colleagues. Some background - we have a rather complex environment, and the use of strongly-typed ...Show All
Visual Studio Express Editions Share My.Settings between projects?
Hi! Currently, I'm making a project that I've decided to split across one EXE and several DLLs. However, I would like all of them to use the same My.Settings config file. Is this at all possible and/or easy Thanks. :) My guess on the way to handle this would be to have all the DLLs have public properties for any setting that they may need and have the main EXE handle all of the settings and use the My.settings to set the DLLs settings by setting a DLL property during the form.load of the EXE code. ...Show All
Visual Studio Tools for Office Problem with locking documents.
I am trying to automate some letters. For example, I have a drop down box used to select the type of document I want. The document will then load, with tags where customer information can be added. By entering a customer number, a DB is searched and returns and fills in all of the information. There is then an option to create an image of the final document. All of this works fine, except in one instance. If I were to select one type of document, complete and image it, and switch to a new type of document, and image it, the image becomes locked and will not unlock. This is not a problem if I do not switch between different letters. Anyone have any ideas Given this isn't a VSTO specific question you'll pro ...Show All
Visual Basic Parsing a non-delimited(space I imagine) text file
I have a text file that has been exported from a Progress Database v8.23e (this is an old system, i know) . I need to parse the data to a dataset or XML or anything that has structure heh, any ideas Ive tried multiple threads here on parsing text files as well as searched MSDN/Codezone and they did not work. 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX GRILLED CHICKEN SALAD 5.00EA428565-00 3.95 09/07/06 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX CHICKEN SALAD ON CROISSANT 4.00EA428565-00 3.25 09/07/06 0278XX'S XXXXXX PXXXXXX #49 101new multi unit 94919S & W WHOLESALE SAND ACCXXXXXX CEASAR WRAP ...Show All
SQL Server Generating a querry parameters
Hello, Need a bit of help here. In one table i have my production data on some wheels. Each time the wheel is touched, it gets smaller. Then in another table I have the primary data of that wheel, ie price vendor, make model and scrap diameter. What I'd like to figure out is, In one month, what was the wheel size to start off, what is the end size to give me a total size used during that month. If i could get that, then I think I would be able to figure out what the price cost for useage of that wheel was for the month. Any help Thanks Brian Lets say this is the wheel table Wheel_NO New_Diameter Scrap_Diameter Current_Diameter Price Date_Purchased 12345678 15.2384 1 ...Show All
Visual Basic Can someone please explain to me how view a file on a remote computer
I am new to vb.net and am struggling on setting up the connection string to a remote computer so that I can search log files for error messages thank you, paul Can you explain a little more about your application. What are you trying to communicate with to read the log files Richard ...Show All
Visual C# Fast dynamic loading of assemblies in C#.
Hi, I want to dynamically load some assemblies and invoke certain functions given in those assemblies. All these functions will implement the same interface, so that I don't have to bear the performance hit of a Type.InvokeMember call. For loading these assemblies dynamically I will, obviously, have to use the Assembly.Load/LoadFrom routines. My question is, is it advisable to put some assemblies (which may be dynamically loaded frequently) into the GAC or have some sort of a replacement algorithm (like LRU) to add and remove these assemblies from the GAC Also, if I put these assemblies into the GAC, will the Assembly.Load/LoadFrom routines check the GAC first while searching for the assembly or will I have to query the GAC to ...Show All
Visual Studio 2008 (Pre-release) Just Signing or Encrypting the message.
Hi Community, Did anyone try just signing the message Or Just encrypting the message Or Did any one try using two seperate keys for signing and encrypting e.g. I can have a seperate key for signing such as "CN=SignKey" and seperate key for encryption such as "CN=EncryptKey". Is it possible in WCF with minimum coding efforts If you have tried can you share your thought Can some one help me pointing to the right direction Thanks in advance. - Pankaj. Avanade Inc. Hi Pankaj, About signing or encrypting the message, as far I know, it can only be configured through some attributes in the message contract. For instance, [MessageContract(ProtectionLevel=System.Net.Security.ProtectionLevel.S ...Show All
SQL Server Grand Total Problem in Excel
I found a problem when I use Excel 2003 with MSAS 2005. The problem occurs when I use the Hide Levels feature on a row dimension and select the grand total for columns option. I noticed that when I apply filters to the selection, the Grand Total does not reflect the filtered members. If I Show Details then the Grand Total is properly displayed. However, this problem does not happen on every diminsion. I was able to duplicate the problem using Adventure Works DW. In Excel, put the Product Categories in the Row, Source Currency Code in the Column, Sales Amount as the Data, and Filter on Weight (2.12) and Date.Calendar Year (CY 2004). Ensure that Grand Total for Columns is checked. Show Details down to the Product level; notice that the Grand ...Show All
Visual Basic VB2k5: Instantiate a textbox and assigning a text property
Hi, I tried instantiating a textbox with: Dim txt1 as new textbox However, though no error is encountered when I assign it a value, when I pass it to the database, all the fields are null. My insert method is working fine (coz i see rows with null values that are added in my tables), only, it cannot get the exact value of my instantiated textbox. I know i'm missing something.... hmmm probably i still need the property let/get... just guessing... Can someone help out cherrie Without seeing your specific code its difficult to tell whats happening but the functionality appears to work OK. Heres a 3 button example - one creates the textbox, the second sets the value and the third dis ...Show All
Smart Device Development Trying to connect directly from PocketPC to Oracle db
We get the following error: Error loading user data: Could not load type System.Data.ConnectionState from assembly System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 Can anyone tell me why Is there a way to get beyond it Thanks. That's because you can't use desktop assemblies ( PublicKeyToken=B77A5C561934E089 as opposed to PublicKeyToken=969DB8053D3322AC for NETCF) on devices. It appears you’re trying to use OLEDB or ODBC desktop providers from desktop .Net 1.0. It can't run, besides it won’t work because ODBC is not supported by the Windows CE OS and there’s no OLEDB driver for Oracle on devices anyway. There’s NETCF compatible Oracle ADO.N ...Show All
