RyanB88's Q&A profile
Visual Studio Express Editions convert photo file to binary file
hi all.... is anyone know how can we convert the photo file to binary file..........this is because there is quite a number of photo files in my system, and i would like to convert it to binary file to reduce its size.....and also convert it back from binary file to photo file for display purpose ..... please kindly post here if anyone have an idea or solutions......thanks First of all, you're in the wrong place. This forum is for programming questions Second - a photo file IS a binary file. What else would it be If they are bmps, turn them to jpegs. If they are jpegs, nothing is going to make them smaller, except making the actual pictures smaller. If that doesn't help, you need to find so ...Show All
.NET Development Create Virtual Disk and Drive to Manage it
I'm looking to create a virtual drive in windows and have every I/O operation performed on it: list, create, open, etc.....done through custom code. Basically I'm storing a whole bunch of files in a single file and I have a library of code that accesses each file within this large file but I would like to map the big file's contents to a drive letter. Basically just like what Daemon tools does. Could somebody point me in the right direction Well that's not exactly what I was looking for. I figured out I'll need to write a device driver to accomplish what I want. I have a flat file with files stored inside and I want to mount that file as a file system. So the dos command "subst" won't work. ...Show All
Visual Studio Tools for Office what is best way to develop add-in in Excel-2003 & C# (.NET 2.0)
We are re-writing add-ins which were written in C++ and VBA(xla). The new add-ins we are developing using c# (.NET 2.0) for Excel 2003. Some of the these add-in contains "menu buttons " and "customized formula" in same add-in. now after searching couple of documents it says 1. COM- Addin : good for only if you have command bar button action required in you add-in. not good for if you have customized formula. 2. Automation-addin: good if you have formula and also you can have command bar buttons. But problem with this add-in it doesn't launch automatically with excel and also doesn't refresh all formulas in proper sequence when excel start. So I have created com-addin which creates command bar button menu when ...Show All
Visual Studio Express Editions Few Questions.
Well i got 3 questions. 1) In Vb i used to do "Exit Sub" how can i do that in C#. 2) And in VB ( VB6 ) i used to do the WITH ("someting") code to write less code wen i use same COM how can i do that in C#. 3) How can i show MessageBox or do someting like Application.Exit(); in a Class. thx ahead 1) Use "return". 2) C# doesn't have a "with" ability. 3) MessageBox.Show("question", "Caption"); and just call Application.Exit(). ...Show All
Software Development for Windows Vista IStylusAsyncPlugin and C++
Hi , I don' t find how to use the RealTimeStylus interfaces to create plugins in C++. I only want to grab pressure information and subpixels coordinates of the tablet input. Here is my test, but it crashes. Someone can help me Thx. //------------------------------------------------------------------------ class cStylusAsyncPlugin : public IStylusAsyncPlugin { public: /** The destructor. */ virtual ~cStylusAsyncPlugin() { } /** The constructor. */ cStylusAsyncPlugin() : IStylusAsyncPlugin() { } virtual HRESULT STDMETHODCALLTYPE RealTimeStylusEnabled( IRealTimeStylus *piRtsSrc, ULONG cTcidCount, const TABLET_CONTEXT_ID *pTcids) { return S_OK; } virtual HRESULT STDMETHODCALLTYPE RealTimeStylusDisabled( IRealT ...Show All
Visual Studio Document Explorer merge problem
I downloaded MSDN August 2006 and tried to install. It installed and now Document Explorer shows articles only from that MSDN. But other documentation is not shown. I have documentation about DirectX and Compuware DevPartner in English and about SQL in Russian. I tried to reinstall them all but nothing changed, DExplorer still not merged them. Hi Andrey, I've done some further investigation based on the software you have installed listed in your earlier message. I don't know if these suggestions will help, but they may be worth a try to get you going again. Direct X Diagnostic Tool: This tool does a check for problems associated with Direct X. Go to Start > Run. In the Ru ...Show All
Visual Basic How does one Integrate MySQL with Visual Basic 2005?
I want to make a simple test using My SQL and the following tables: 1-Client 2-Invoice 3-Invoice Detail Then I want to be able to using these methods: Add Edit Delete Print Print Preview The Client Table and the Invoice table will be in Form View The Invoice Detail will be in GridView Is there Any Sample that I can get somewhere on how to emplement this There are two main methods of connecting and communicating with MySQL, via ODBC or using the MySQLConnector for .Net, using either method is similar to accessing other databases, DataAdapters etc. For more information and examples see http://www.mysql.com. For either method you will need to download the connector from the MySQL website. I use it a lot and pre ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SQL Database Access
Is it possible to use an SQL database as a backend to an XNA game The idea is to have an sql database on a server that can be accessed through connection code in the game to retreive and save data. Is it possible with windows-only games Is it possible with xbox games Is there sample code somewhere How does io work in XNA Thanks for your replies. So for Windows games I'm all set the way XNA works now; that's what I really want to do anyway. I've done plenty of database access via web sites, winforms projects, etc. using ado.net butI haven't used Windows sockets before but here goes! ...Show All
Internet Explorer Development MCSIMENU
I have an appliacation using Microsoft activex component MCSIMENU. ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/gp/777.asp ) This component does not work in IE7. ( https://www.microsoft.com/technet/itshowcase/content/appcompattcs.mspx ) At first I must find out, what exactly na old appliction do. Does anybody knows where I can find documentation for ActiveX component MCSIMENU ...Show All
SQL Server SQL Server 2005 - Scheduled jobs stop working
Our system is using SQL Server 2005 SP1 running under Windows 2003 Server and database mirroring are adopted. Howerver, recently, we discovered that the all scheduled jobs in SQL Server stopped working suddently. The jobs had no errors and the SQL Server Agent was still running. All just fine but no jobs were working and they just like sleeping in SQL Server. Even database mirroring monitor job stopped running and it should run every two minutes. It is very annoying. Why this happen and how to fix it Thanks. DId you try to restart the SQL Server Agent. Either the Service Account was disabled, the password expired, someone changed the password (but not in the Service Console) or the Account was ...Show All
.NET Development Call to NetworkStream.read not blocking Intermittently
Hello, We are using a simple size-based single transaction protocol to communicate between different clients and servers in our computing environment (high-level classes were all that was required -- TCPListener / TCPClient / NetworkStream). A simple transaction sequence is as follows: 1. Server is listening on a specific IP/Port. 2. Client initiates connection using TCPClient. 3. Client sends the size of the payload in a 4 byte buffer, then the full payload -- then begins a receive that should block until the server has sent its full response. 4. After Server.Accept, server receives the size, allocates the payload buffer, then receives all of the data. 5. Server performs whatever processing is needed, then sends the return mes ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Creator's Club content?
I'm curious what an XNA Creator's Club membership gets me besides the ability to run XNA games on my Xbox 360. According to the website: "Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." Unfortunately, I can't find any further information about this, and the use of the phrase, "game assets" isn't very descriptive. Are we talking about models, graphics, textures, and that kind of thing (and are they for personal use only, royal-free, or shareware) If so, that might be wort ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to "publish" my own IGameService
I've read Mitch Walkers article on the IGraphicsDeviceService and I understood it for the most part. Where I'm a little unclear is on the actual mechanics of creating my own GameService. The article says that the Graphics Component "publishes" an interface as a service. Does this mean the GameComponent internally actually creates a concrete instance of IGameDeviceServices and calls Game.AddService Here is an example: Lets say I'm creating a 2D Physics component that relies on an undelying "Physics" object (this object does all the simulation for rigid bodies). I want to allow others to either use my PhysicsComponent or create there own component that would could still interact with any other higher level physic ...Show All
.NET Development Loading words from text file in an array
Hi, How do i load a bunch of words from a text file into an array. And how can i randomly show them in a label with a sleep thread of 3000 milliseconds This is how the words in the document look like: test; west; coast; east; I tried using the for and foreach statement. Without luck! Hope you guys could help me out. Thanks in advance! Hi, When i use Show(), it does continue but its not displaying anything. I can see that when i debug, and the: this.lblDisplayWord.Text = words[numberChosen].ToString(); Does contain words, but somehow not giving it to the label in the right way... ...Show All
Software Development for Windows Vista Provider-Independent Data Access
Hi i am working on independent data access that we can use either oracle or sql server database. could u help how to add paramters to IdbDataParameter[] array. Thanks in Advance by Madhu.P Sorry about the late response. What are you talking about g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn ...Show All
