Darius R's Q&A profile
.NET Development Gzip/Deflate and FileWebRequest
Two questions: 1) For gzip and deflate, can someone give a short and brief code example on how to unzip a zip archive and how to zip together 2 files, namingly C:/file1.txt and C:/file2.txt the MSDN examples arent understandable... 2) For File WebRequest, can someone give an example of using FileWebRequest (and NOT webclient) to download a file namingly application.exe to C:\ I ask for examples because instead of wasting your time explaining everything I can just look at the examples and figure it out... Thanks for your help, whoever answers. These two things I have wasted hours upon hours on, and even though I dont need it, I really want to know how to use it, just in case in the future I may need it. ...Show All
Windows Live Developer Forums IncomingTextMessage does not fire in vb.net
Hi, I'd like to code a plugin for Windows Live Messenger in vb.net. My problem is that the IncomingTextMessage does not fire. A piece of code is given below. The compilation is ok and WLM seems to initialized the addin correctly. But when I receive a message from a contact, nothing. On the other hand, I get the "outgoing event ok" msgbox when I reply . I used Visual Studio 2005 Express edition and WLM v8.1.0178. If anyone could help, I will be very grateful. Imports Microsoft.Messenger Public Class MSNAddin Implements IMessengerAddIn Private WithEvents m_client As MessengerClient Public Sub Initialize( ByVal messenger As Microsoft.Messenger.MessengerClient) Implements Microsoft.Messeng ...Show All
Smart Device Development VS2005 doesn't present the form designer for Pocket PC 2003 Device Application
Hi, I try to use VS2005 for building a new tool for Pocket PC. When I create a new project of Pocket PC 2003 Device Application, the project is being created, but instead of showing the form designer for building the form, I see a warning message: " Input string was not in a correct format ". This happens as soon as the project is being created, without me interfering. No matter what, I can't get the designer to be presented (and I tried creating a new form from scratch, deleting the form's designer.cs file, etc). The full text of the warning is: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String ...Show All
Software Development for Windows Vista Drive letter access for DVD in Vista
I'm a software developer, and have an app that currently uses Roxio Drag-to-Disc on XP for drive letter access to DVD and CD media for write and read. It appears that Vista now contains this type of functionality built-in. Windows Explorer for instance can format a DVD with a UDF file system, and when ejecting a DVD, the user may close the file system, etc. How is this functionality accessed from a user mode app I've searched the SDK docs, but can find no mention of this. Hi BobN77, Vista does indeed contain support for the UDF file system (aka "Live UDF" aka "Packet Writing"). From a command prompt, you can use format.com to format the drive, and then the normal file APIs ca ...Show All
SQL Server "Illegal characters in path" while getting varaible values from stored proc
hi! I am getting some junk characters while executing sql task(which is a stored proceedure) when i execute the same sql environment it is fine. User::ArchiveDir { ) ArchiveVoucherLog_6-26-2006 What is problem in here Any help Thanks, Jasmine } String ...Show All
Smart Device Development detect incoming call
Hi, I am new to vb .net. I would like to write a program to detect incoming call. Once the program detect an incoming call it will appear a pop-up box. I would like to know will i be able to do it and is there any sample code. Thanks Flarestar Here is a example I think that works great: http://www.devx.com/wireless/Article/32305/1954 pf=true Enjoy, I think that you and I are working on the same project and I've just about got it too, I just can't get a .exe to run.. ...Show All
Visual C++ How to get a bitmap from a invisible source window?
I use the following function to get a bitmap from a invisible source window, but everytime it seems that the bitmap I get from that window is not repaint completely, please tell me how to make the following code better to get a refreshing bitmap of a invisible source window: I appreciate your help. CopyToClipboard(HWND hSrcWnd) { int nResult = FALSE; if (hSrcWnd ) { // can we do this with 1 bitmap HDC hDCMem = ::CreateCompatibleDC(NULL); HDC hDCMem2 = ::CreateCompatibleDC(NULL); if ( hDCMem && hDCMem2) { CRect rect; nResult = ::GetClientRect( hSrcWnd, &rect); HDC hDC = ::GetDC(hSrcWnd); if ( hDC) { HBITMAP hBmp = NULL; HBITMAP hBmp2 = NULL; hBmp = ::Create24BPPDIBSection( hDC, rect.Width ...Show All
Visual Studio Tools for Office Need a list of email addresses of an email item
Hi, I'm an outlook interop beginner and having problems with something that is maybe (i hope) easy to solve. I have an add-in for outlook that recieves item changed events for the inbox folder. The listener recieves an mailitem object. In a mailitem is a recipient list with recipients. I want to store the email address of each recipient in the database. For example mail to test@microsoft.com , test2@microsoft.com should result in two rows in the database. In a recipient object there is an address value, but when I read the address object, it’s vague exhange stuff, but only the email address is important. F.e. /O=COMPANY/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=JACOBM Source foreach (Recipient myRecipient in inboxMail.Recipien ...Show All
Visual Studio Express Editions Saving 2 ListBoxes to a text file
I'm making a little phonebook program, and for it to be actually useful it needs to be able to save the phonebook. How would I go about doing this I think My.FileSystem has methods to load and save files to text, as in ReadAllText and WriteAllText. You can create your items as a string and then save them out that way. ...Show All
Smart Device Development How to add a voice tag and speed dial for application?
Dear all: I want to write an application that can add speed dial or voice tag for applications( not for contact) on Windows CE smartphone. But I cannot find a lot of informations and don't know how to implement it. And is anyone can give me some suggestions or informations to do it Thanks and Best Regards ...Show All
Smart Device Development 2nd try: What DLL are wave routines in?
I'm having trouble getting access to some wave routines: I have been using these routines to access sound under Windows XP using the winmm.dll DLL. I would like to know which DLL these routines are in under WM5 (if at all) [DllImport(DLL)] public static extern int waveOutGetNumDevs(); [DllImport(DLL)] public static extern int waveOutPrepareHeader(IntPtr hWaveOut, ref WaveHdr lpWaveOutHdr, int uSize); [DllImport(DLL)] public static extern int waveOutUnprepareHeader(IntPtr hWaveOut, ref WaveHdr lpWaveOutHdr, int uSize); [DllImport(DLL)] public static extern int waveOutWrite(IntPtr hWaveOut, ref WaveHdr lpWaveOutHdr, int uSize); [DllImport(DLL)] public static extern int waveOutOpen(out IntPtr hWaveOut, int uDevi ...Show All
Visual Studio Team System Fxcop issue in Global.asax using Application_Error
Hi, I'm using FxCop in my project. Its works fine in all components. I have an error in using Application_Error to catch all unhandled application execption. Here is my code protected void Application_Error(Object sender, EventArgs e) { System.Exception sEx = Server.GetLastError(); Session("Error") = sEx.Message; Server.Transfert("CustomErrorDisplay.aspx"); } FxCop Error Descrption: ReviewVisibleEventHandlers Cheers, Hari I already read that document. I tried to change the protected event to private. I'm getting another error on that 'Unused method' ...Show All
Windows Forms Embedding Open File dialog
Hi, i want to add an open file dialog control to my program. But want it to be seen always, not close after DialogResult. Is this possible Not without jumping through some creepy hoops. OpenFileDialog.ShowDialog() disables your other forms. You could possibly avoid that by calling ShowDialog() in another thread. Be careful with the usual synchronization issues... ...Show All
.NET Development Seurity
is there an event model in place to listen for access permission requests from an appdomain or assembly and either grant or deny them on the fly. It would be cool to know exactly when user code is requesting a givn permission and be able to decide on the fly wether or not to grant it. An assembly has only one permission set per AppDomain, and once it has been granted that permission set it cannot change within the domain. There is no "permission demanded" event that you can hook, but if you have an AppDomainManager and a HostSecurityManager you can participate in deciding the grant set that each assembly has. -Shawn ...Show All
Microsoft ISV Community Center Forums Count and display in cell
Ok I have an Excel workbook that contains a schedule (51 worksheets total). Each cell has intials in it and if that person has taken a day off the cell is highlighted a certain color (yellow, rose, or red). What I need to do is have something that goes through and counts what intials have what color and then display in a cell the number. So: If cell contains "initials" and cell color is "color" Then count and display in "cell" Example: If cell contains "JJ" and cell color is "Yellow" Then count and display in "A2" I know it is possible to do this but I'm not sure how. Tiger There three diffrent colors (red, rose, and yell ...Show All
