Naveen Prakash's Q&A profile
.NET Development Base64 padding character issue
The problem I'm having is if I'm trying to take a string (say a password) that's 5 characters long, Base64 works on strings that are a length of a multiple of 4, so 4 bytes long, 8, 12, etc... But from the description of ConvertFromBase64, if it's not a multiple of 4, you need to pad it to be that long. But alas, it will only pad up to 2 "pad" characters, so my 5-character password, plus 2 "pad" characters makes 7, not 8. Furthermore, ConvertFromBase64 will ignore traditional whitespace characters for counting the multiple of 4. This leaves me to either make a generic "Q000PFGG" string as an arbritary "pad" character, and ...Show All
Smart Device Development Bluetooth Printing Bitmap
Hi there, im currently developing an application which prints to a Zebra QL320 printer via bluetooth. im using Opennetcf's bluetooth and socket libraries. So far i can discover the bluetooth devices available, and also print text and barcodes, using the StreamWriter class with a combination of CPCL (printing language), However i need to be able to print a signature which i capture on the device. The signature is captured and saved as a .bmp(bitmap) Here is where i'm cannot get past. The data needs to be sent out in HEX or Binary, both may work. So how can i read the bitmap and send it to the printer as HEX or Binary, or even capture th ...Show All
Visual Studio Team System Is there any way to assign two resources or more for a workitem?
Hi there, Is there any way to assign not only one, but two or more people to a WorkItem. In Project i can assign a work to more than one people, but when i try to add a Workitem, it only permits me assign one person. Thanks, Guino. You cannot assign to multiple entries in the Assigned To drop down. However, if you're thinking of something like having a DEV and TEST owner for each work item, you can definitely add a Dev Owner and Test Owner field to the work item type where each field has a drop down like the Assigned To list. ...Show All
Windows Forms ScrollableControl force scrollbar visible
Hello, I am trying to derive from a scrollablecontrol and make the vertical scroll bar always visible. I have tried setting VScroll = true and VerticalScrollBar.Visible = true in several logical places in the code but they seem to have no effect. Is forcing visibility a possibility Thanks I still have found no way, so now all I'm doing is using ScrollBarRenderer to draw a disabled scrollbar when Height > AutoScrollMinSize.Height. I don't know if this is good practice but it works. ...Show All
Visual C# Com+ Trancations
I am new to COM+ , I am trying to prove the concept of tranactions in COM+ so I have create the following class [Transaction(TransactionOption.Required)] public class SPS:ServicedComponent { public SPS() {} [AutoComplete()] public void SaveStudentData() { Method1(); Method2(); } public void Method1() { StreamWriter writer= new StreamWriter("c:\\Hossam.txt", false ); writer.Write("Method One"); writer.Close(); } public void Method2() { throw new Exception("Asd"); } } I thought that when the Method2 throw exception the file created by Method1 will be deleted or where is the con ...Show All
Visual C++ Temporary Text Window
I'm using VC++6 with MFC and would like to create a temporary window displaying a text message. I would use these windows to display the status during a process. I don't want the user to have to enter any input, so a MessageBox won't do. What are some approaches that I could use to solve this problem Hi, This forum is dedicated to questions about the Visual C++ 2005 release. For general MFC questions, please use the MSDN newsgroup that you can find at: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US Ronald Laeremans Visual C++ team ...Show All
Windows Forms Update of Projects
I am implementing an UpdateProject method. If I do it similiar to the UpdateTasks method, that requires a DataSet to be passed back. Using this pattern, updating a project by sending the entire DataSet back could before _very_ expensive if you have a large number of projects. Now, UpdateUser() takes a UserInformation object, but there is no analog for&nbs ...Show All
Visual C# Active Solution
I have created a button in one of the VS.NET IDE toolbars. What i'm basically lookin for is to be able to display the path of the currently opened solution file in the VS.NET application environment when i click on that button. I've been trying to play with EnvDTE, System.Reflection etc. for quite sometime now, but have basically ended up nowhere. Kindly throw some suggestions my way ! yes i do, but i am having difficulties in referencing the 'DTE' interface. How do i instantiate an object of this interface. could u try and put up a code snippet for the same. I've been stuck with this for quite sometime now. ...Show All
Visual Studio Express Editions Problem getting Makefiles to run
Hi, Can anyone point me to a tutorial for importing a makefile into VC++ 2005 Express I want to compile some samples in the Platform SDK (there don't seem to be compiled versions available anymore). There are no .sln,.dsw, .prj files in the folders, just files called "makefile"... Thanks, Philip Here is a great little tutorial on nmake (in this case, a simple abstracted makefile) and a demonstration of the kind of transition that the PSDK and the development tools are in the middle of: http://pluralsight.com/blogs/dbox/archive/2005/07/18/13377.aspx If you are goin ...Show All
Smart Device Development How to install Compact Framework 2.0?
I can't figure out what files to use to install the compact framework 2.0 on a new portable scanner with CE 5.0 installed. I just got several new PSC 4420s, which I need to install at customer sites next week, and I'm trying to get everything installed and running properly without doing a deploy from vs 2005, so that I will know how to deal with issues at the customer site when I can't be there with my development computer. The scanner shipped with CE 5.0, and I copied the SQL cab files over to the scaner's flash and installed them with no problem, plus my application program. But when I try to run it, it tells me that it ne ...Show All
Visual Studio Team System TfsReportDS Error
While trying to look at the "Builds" report, I got this error: An error has occurred during report processing. (rsProcessingAborted) Cannot impersonate user for data source 'TfsReportDS'. (rsErrorImpersonatingUser) Logon failed. (rsLogonFailed) Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569) Ideas on how to fix Nevermind. I just rebooted the TF Server VM and now it's working. Thanks! ...Show All
.NET Development Installing the test certificates on windows 2000
Hi everyone Please can someone help I'm tearing my hair out! I am trying to import the test certificates from wse 3.0 onto a windows 2000 server. I have no 'other people' store but I have read that this doesn't have to be a problem, I have set the certificates up exactly the same way as I have them on our windows 2003 box, which by the way everything works perfectly on, but I just can not get the app to run when talking to the win 2k box. I keep getting the following error: WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in t ...Show All
Visual Studio Express Editions Trouble finding/reading file
Hello everyone I am having the hardest time right now. I am testing backing all my DB tables to text files and then reading them in to populate the tables. I am able to create the files without problem. But when I go to read them in, I am getting the "Could not find file error". Below is a small sample. File exists is coming back false and trying to open the delimitede file is throwing the error (which makes sense because it is not being found). I can see the file withing the directory I specify and when using normal windows search tool, the file is found. What might I be doing wrong Thank ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I loaded a mesh and it gets drawn weirdly....
I'm trying to load the airplane formthe dx9 samples. For some reason it gets drawn weirdly: http://img20.imageshack.us/my.php image=dx9thinger4vh.jpg Here's how I'm doing it: public class Model { Mesh mesh = null; Material[] materials = null; Texture[] textures = null; public Model() { } public Model(Device device, String filepath) { ExtendedMaterial[] tempMaterials; mesh = Mesh.FromFile(filepath, MeshFlags.IbManaged, device, out tempMaterials); if (tempMaterials != null && tempMaterials.Length > 0) { materials = new Material[tempMaterials.Length]; textures ...Show All
SQL Server Join filter failure
Hello there, I'm experiencing a really weird problem: I have a SqlCE subscriber connecting via IIS to a SQL Server 2005 database. The database publisher/distributor and the web server are on different machines (IIS being in a DMZ) and I want to avoid the use of Kerberos delegation to share priviledges on the snapshot folder. I configured the web synchronization to accept basic authentication and obviously the subscriber sends @internetlogin and @internetpassword. Plus, I used a DB authentication on the SQL Server database. First problem, if i disable on the publisher configuration the anonymous authentication, replication fails (I expected ...Show All
