Kartit's Q&A profile
Windows Forms ClickOnce ISV Mode
Hi All, I've only been looking at ClickOnce for a very short time and so this question may be way too early. In any case: Is there a way ClickOnce can be used to distribute ShrinkWrapped Software. My question is specifically around building the bootstrap executable. Can we manage all of the following requirements: a) There are some redistributables that need to be set up and cannot just do an XCopy and so must be part of the Prerequisites. b) We dont want each customer hitting the Vendor's download area c) We dont want to host the downloads on our own site d) We only want to bundle all of the prerequisites with our deployment media (cd etc.) e) We want to let the customer choose a suitable distribution mode - CD/Network Share/ ...Show All
Visual Studio Team System WorkingFolder.LocalItem is null in uncloaked path
I have a version control app that has worked for many months. Recently two users have consistantly experienced issues that I can not replicate. The problem is that the localitem property is null in an uncloaked path. Here's the code: WorkingFolder[] workFolders = this.workSpace.Folders; foreach (WorkingFolder workFolder in workFolders) { if (workFolder.LocalItem.ToLower().Equals(localPath.ToLower())) { serverPath = workFolder.ServerItem; } } Can anyone point out what I'm missing ++alan Can you change your app (for debugging) to just write out both the ServerItem and LocalItem (Console.WriteLine("{0} => {1}", wf.ServerItem, wf.LocalItem) or whatever) The local item in the object model is just w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I open, modify and save a .gif/.bmp/.jpg using Directx?
I am new to this technologoy. I would like to ask this basic question in case it is not possible. Is it possible to open a graphics file [.bmp, .gif, .jpg etc] modify that file in memory and then save the modified file Sorry if this is too basic a question for the forum. Yes, it is possible. There are two ways to do this: * The first one, if you are using .Net is using the .Net Framework. The System.Drawing and System.Imaging namespaces have all the necessary methods for loading, manipulating and saving bitmaps in several formats. * You can also do that with directX, but it’s be a bit trickier, as you have to deal with Lock / Unlock of Texture Resources. There’s the TextureLoader object which ...Show All
Visual C# Need help playing wave file.
Hi, I am building an application that play multiple wave files continuously. I learned that .NET 2.0 framework provide us with PlayLooping() from System.Media namespace. However this method does not allow me to play multiple file. Anybody know any solution or links that might help me Thanks Hi, Dominator Legend You can get the buffer size this way. Suppose your SecondaryBuffer object is called sb ; then the buffer size would be sb.Caps.BufferBytes And also, the sample rate, bits per sameple, and number of channels are stored in the corresponding variables,. You can easily calculate the duration like this: int bytes_per_sample = sb.Format.BitsPerSample / 8; int duration_in_sec ...Show All
Windows Forms Drawing a control to an image
I have a Windows Forms Control hosted in IE and I need to draw it to an image. But if I use the function BitBlt from gdi32.dll (which works fine with an standard application) I get a Security exception. The control is FullyTrusted (set with caspol, and with the control strong-named). I have also tried to use DrawToBitmap but it does not work. What can I do Thanks. I think it will require more than signing and trusting an assembly when you have unmanaged code in it. You will need to some add Attributes to your assembly. I think, you can only make it work if you have control over the client computer and the server computer. Let just say, you are bound to the Intranet zone. ...Show All
.NET Development Hosting Remoting objects in IIS
Hello everybody, is it a better option to host remoting server objects in a window service or IIS i would like to know your opinions. thanx bhavtosh Hi, Hosting it on IIS gives you all the access framework, security, pools, availability. You can have also these features hosting the service using a winservice or a console app but you will have to write your own handlers. Also, IIS will serialize using HTML only (I think this has changed on .NET 2), where HTML is plain text generating bigger packages. Therefore, slower but more adaptable with less code. If you host your own service you can use Binary Serialization that is smaller, therefore faster connection but the other end should know how to diserialize it. Reg ...Show All
Windows Forms Is there an alternative way to use large datagridviews?
Hi. I was wondering if there's a way to utilize the DataGridView and to display a large dataset on screen. The problem is that my program has to work with a transposed dataset, so the datarows are vertical. I got a nice function from The CodeProject which takes a DataSet and returns a new Dataset where the rows/columns swap roles. It is great, but I have a little bit of a dilemma. The DataGridView component in .NET2.0 (i'm using VS2005 pro/C# by the way) has a limitation of not coping with a large number of columns (655 is it's limitation due to something called the FillWeight - which I've had no luck modifying or understanding). I've had an idea, but not sure whether it will work. If someone can study this and liaise with me ...Show All
Visual C++ VC2005: Iostream crippled by Xlocnum?
I recently get very strange errors when trying to compile an application that uses any of the Stream-libraries (like iostream, fstream, etc.). I don't know what's causing this, and even programs that compiled fine a week ago are now throwing this error. I set up a minimal test-application (Win32 console, empty project, 1 source file, no changes to the build options or anything) to restrict the error to a minimum: #include <fstream> //getting the same error on any of the *stream-headers int main() { return 0; } What I get is a vast amount of errors that make absolutely no sense to me: 1>e:\dev\microsoft visual studio 8\vc\include\xlocnum(49) : error C2653: 'locale' : is not a class or namespace name 1> e:\dev\microsoft ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! and it looks like he went and moved the source location try this: tileSourceSpec.TileSource = " http://dev.live.com/virtualearth/sdk/layers/lidar/%4.png "; Works for me now. John. ...Show All
Visual C# propagation of user-type objects through a webservice
Hello, here is my problem: I have written a webservice with several methods that shall be called by a client application and return data in the shape of a user-defined type. This type contains two string arrays and some numerical information and is defined in a dll. The problem shows up when i want to compile the client; i get the error message: Argument '1': cannot convert from 'Conformity_FTP_Client.localhost.ActualDirInfo' to 'Conformity_FTP_Tools.ActualDirInfo' Here is the critical part of the client sourcecode: I'm no remoting guru but I believe you have to have the business object (dll) on both sides of the web service equation. That's the reason for Data Transfer Object (DTO's). So you'll have to deploy the bus ...Show All
Visual Studio Express Editions UGH....Save Function
I am not getting why this is not working. I have tried to get this to work, TallDude has done a great deal to help me better understand this all. But I am still having trouble to get this to work. I want to understand how the NotePad FIle>Save works. I am thinking, as TallDude as suggested, that they use StreamReader/Writer. So in that thinking I am strying to get the File>Save Function to work. Here is the entire code: Imports System.IO Public Class Form1 Public FilePath As String = "" 'Open Option Private Sub mnuOpen_Click( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles mnuOpen.Click Dim open1 As New OpenFileDialog 'display only text files ...Show All
SQL Server Eliminate Duplicate ID's in this StoredProcedure
I have a stored procedure that I use for Monthly Billing delete from BillingCurrent insert into BillingCurrent([Name],Address,City,State,Zip,InvoiceID,CustomerID,[Date],InvoiceTotal) SELECT Customers.Name,Customers.Address,Customers.City,Customers.State,Customers.Zip,Invoices.InvoiceID,Customers.CustomerID,Invoices.Date,Invoices.InvoiceTotal FROM Invoices INNER JOIN Customers ON Invoices.CustomerID = Customers.CustomerID WHERE CONVERT ( varchar (15), Invoices.Date, 112) Between CONVERT ( varchar (15), dateadd (d,-30, GETDATE ()), 112) and CONVERT ( varchar (15), GETDATE (), 112) This works great, but if a customer has more than one invoice open it adds that Customer again (for each invoice that is n ...Show All
Microsoft ISV Community Center Forums recuring compilation errors after access 2.0 conversion to access 97. Please HELP!!!!
Hi everybody. After converting access 2.0 to access 97 and after successfully compiling and saving all modules, I still get compilation errors almost each time I touch the code. The compilation errors range from outright ' The program has countered a problem and needs to shut down' to the milder reference problems: Suddenly a one-minute-before-successfully compiled code, does not recognize some controls on a form (me.myCtlName doesn't show on the list) or a reference to a public function such as form_myFrom.myCtl_afterAupdate suddenly loses its reference when compiling. Usually, if I decompile and then again saves all modules, it 'comes back to life'. also, if I rename the form and then rename it back, it also fixes the problem ...Show All
Windows Forms Copy all data from Datagridview into a new datatable
Hi, I was wondering if any have done this before. What I need to do is, copy all the data from a Datagridview into a datatable. Please reply back if you can help. Thank you. Rick.. Well, you can't copy it "from a DataGridView", but you can copy it from it's DataSource. The DataSource can be an type of Object which implements either IList or IListSource. Now, if that object happens to be a DataTable then it shouldn't be that hard: public DataTable ExtractDataTable(DataGridView dgv) { DataTable dtSrc = dgv.DataSource as DataTable; DataTable dtDest = null ; if (dtSrc != null ) { DataTable dtDest = new DataTable(); dtDest.Merge(dtSrc); } return dtDest; } ...Show All
Internet Explorer Development IE7 HP Director Problem
I can't use HP Directors or Solution Center after install IE7. I installed fresh HP software and updates. But problem persist. When reinstall IE6 back, problem solved. who knows anyway or have ideas Please help me. Thank you, Dear jadopp Your 11/04/06 506PM post was most helpful. I had the same issue until now. Thanks for making this post of yours available. IT WORKED. Thanks. ...Show All
