Rama Krishna rao's Q&A profile
.NET Development FtpWebRequest MKD fails
I'm trying to create an application that will automatically upload files to our Akamai content delivery network via FTP. One of the requirements is that if the local source directory contains a new directory that does not exist on the target FTP server I need to create it. Unfortuantely everything I've tried for this gives me back the dreaded unspecified 550 error. Example: say I have two uris to my ftp server, the first representing a directory that DOES exist already and the second representing a directory that DOES NOT exist on the remote server. try{ string[] uris = new string[]{"ftp://accname.upload.akamai.com/10000/existingdir", "ftp://accname.upload.akamai.com/10000/newdir"} foreach(string uri in uris){ ...Show All
Visual Basic Needing Some Knowledge About Visual Basic
What are the limatations of Visual Basic - I am familiar with html, and dhtml, I'm learning CSS & C+ currently. -- Anyway, my hobby is making all kinds of websites. My cousin wanted me to make her a virtual pet site. Like Neopets R something interactive, where you can have items, stores, pets, and stuff like that. I don't know how to make this, and I've been trying to learn for what seems like forever. However I don't know what to search for to learn this. I found Visual Basic yesterday, and it is soo much easier than notepad. I haven't found out everything about it yet, and I was hoping someone can point me in the right direction, what to search for to learn how to make a virtual pet site.. I know it sounds childish but it's imp ...Show All
Visual Studio Express Editions slideshow
how can I alter this code so it displays a different image every minute.....like slideshow thanks PictureBox1.Image = Image.FromFile _ (System.Environment.GetFolderPath _ (System.Environment.SpecialFolder.Personal) _ & "\Shell2.jpg" ) ok thanks I will have to play with it renee cos at the moment every time I enable the timer the pc hangs.... maybe the pc is not up to the task......cos there is smoke coming from it at the moment.....only joking ...Show All
Audio and Video Development MFT as DSP plug-in and debug build
Hi I'm developing an MFT and test it inside WMP as a DSP plug-in. It seems that it only works when I use release build. When I try it with debug build I get a notification that the file cannot be played and media player does not support its type. Is it a known issue or maybe I need to do something differently. Thanks Haim I don't know of any issues that would prevent debug MFT bits from working as a WMP DSP plugin. The error you're getting indicates that something might be going wrong during media type negotiation. I might recommend paying attention to the SetInputType / SetOutputType calls and make sure that what's happening is what you expect. ...Show All
.NET Development Creating class to create bitmap of forms graphics object
I often need to capture a forms drawing surface and write it to a file. Typically I'd create the bitmap then save that and draw it to the forms graphic object but I'd like to do this more generally. Here is some code to create a class to do that but I cannot get to work. The gaphics from g does not transfer to ng and therefore the saved file is blank. class ImageCreator { public void CreateStill(System.IntPtr WinHandle, int w, int h) { Graphics g = Graphics.FromHwnd(WinHandle); Bitmap bmp = new Bitmap(w, h); Graphics ng = Graphics.FromImage(bmp); ng = g; bmp.Save(Application.StartupPath + "\\img.bmp"); } } I'd call it like this: ImageCreator ic = new ImageCreator(); ic.CreateStill(this.handle, this.ClientSize.Width, this.ClientSi ...Show All
.NET Development Replication or Web Service
Hey friends, I am going to start a new project includes a Windows application and a Web application. these applications will connect to a SQL server database. -The Windows application will execute SELECT, INSERT, UPDATE commands -The Web application only will execute SELECT commands , it will only read the data from the database and never will modify the data. -The database will be SQL Server -There will not be any "non -.Net" application connectiong to the database The database and the windows applications will be in the same network and behind a firewall. Since the Windows applicaion and database will be in the same network, the windows application can connect to the database server via SQL Port (1433), so there is no ...Show All
Visual Studio Express Editions problem reinstalling visual c# 2005
Hi, I recently downloaded and installed VC# 2005 Express Edition, and now it wont load the apps from my previous version of VC# 2005 Express Edition. My CD with the original version was lost so assumed I could just download one off the net and get my old apps to work. When I load the apps the .cs files seem to be missing. Pleeeeeeeeease help! :) I saved my projects to CD first, then reinstalled VC#, then tried to reload the projects. All other files were there, the .cs files were listed in the solution explorer but they would not load. Said they could not be found. ...Show All
Visual Studio 2008 (Pre-release) maxClockSkew on wsHttpBinding
I have a service using a wsHttpBinding, looks like this: < bindings > < wsHttpBinding > < binding name = " MyBinding " > < security mode = " TransportWithMessageCredential " > < message clientCredentialType = " UserName " /> </ security > </ binding > </ wsHttpBinding > </ bindings > Then I have a couple of services using this binding. Works perfect! BUT! I need to accept that client clocks differ with more then 5 minutes. I have seen how this can be changed on custom bindings, but it doesn't seem to work with my wsHttpBinding. So, is there any way for me to change this parameter I would prefer if it was possible to only set it on ...Show All
Visual Studio Licence options for the generated model
Hi, I'm working on a model to generate code for Castle ActiveRecord, a framework running on top of NHibernate. (See http://altinoren.com/PermaLink,guid,86dce2d8-83d4-46e3-906c-12ca14df5380.aspx) The question is, can I opensource my project Obviously, parts of the project is built by DSLTools, with Microsoft.VisualStudio.Moelling... references etc. If DSL tools, on the other hand, would be a part of the VS and not the SDK, this wouldn't be an issue, I believe. Any help Thanks. Gokhan Altinoren Thanks for the info. I'll check the SDK license. And I'm waiting for the v1, not because that distribution restriction you mentioned, but to wet my hands on the final product. It's a great tool, and I'm quite excited ...Show All
SQL Server parameters arent refreshing
hi, im using RS 2000, i have a report that gets sent an SQL statement as a parameter. this works fine once. but lets say i send "SELECT * FROM table WHERE col1 = 'blah'" (and out put is correct) but then i send "SELECT * FROM table WHERE col1 = 'foo'" the second one still returns the results from the first query. this happens no matter what parameter i send - including null and blank. anyone know a solution to this i would really appreciate it. thanks. note: i dont think this is a cache problem but im not sure. cache execution is set to use most recent data, no snapshots are stored. i think its something to do with the stored procedure keeping the first parameter. but then if i knew what it was, i wouldnt be asking here woul ...Show All
Visual Basic Opening an existing Word Document in Read/Write mode Using VB.NET
I am using VB.NET to open up an exisitng Word document which works fine, the problem that I have is that it is defaulting to opening the document up in read only mode. How can I change that so that the word document opens in read-write mode so that Word can subsequently be used to update and save the document Thanks Bill Partridge Hi Bill, please show as the code you use to open the word document. Also: which version of word and visual studio do you use -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there anyway to get the XNA framework without having to mess with XNA Studio Express?
I just want to the framework, and I keep seeing links that say that the XNA framework and XNA Studio Express are available for download, but when I follow the links they go to an area to download the Game Studio Express. I use Visual Studio Professional, and I have no desire to mess with Visual C# express (which apparently is required for GSE). Is there any way to just get the XNA framework so it can be used in Visual Studio ...Show All
Smart Device Development Dealing with lists and images
Hi, I have a list of buddies with each one having the following status voice,video and IM I put them in ArrayList andI want to display next to each buddy an icon for each status as follows BuddyName VoiceStatusicon VideoStatusicon IMStatusicon I tried listview but it support only one icon what is the best control to handle multiple images and should I use data binding Thanks The only way to achieve what you want is to create a custom control. Take a look at the OwnerDrawnList that I described here: http://www.opennetcf.org/PermaLink.aspx guid=d88b1a1a-a866-4247-a0c8-94ab3c124f63 It since has become a part of the SDF, so make sure that you get the later version from SDF: http://www ...Show All
Visual C++ How make, that message box show lithuanian letters?
Or, that message box show russian letters, or others, but that not need be change locale for not unicode programs in 'Control Panel'. Alikas wrote: Thanks! But unicode programs not work on Windows 98. I want that work. Now I set lithuanian language (or baltic) for not unicode programs on Windows XP. And notepade not show russian letters. I copy some russian letters from russian html file and paste in MessageBox text and want that MessageBox show this text as ruusian letters. I try make that, but still show as baltic letters: #include <windows.h> #include <locale.h> int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow ...Show All
Smart Device Development ContextMenu and TabControl :S
Hello, I can add a context menu to any control, like Button, TextBox, TabPage etc; it works all fine but when I add context menu to TabControl it doesnot show up . In my Windows application it works all fine too even on TabControl. Any clue Best Regards, There are some limitations on what controls can have menus. Tab control normally would not have a context menu. It is simply not done. For this reason it has not been implemented. Rethink your UI to avoid using context menu with tab control ...Show All
