Ultrawhack's Q&A profile
Smart Device Development Error while connecting to Web Service.
While i am trying to connect to Web Service in disconnected mode. i.e. internet is not available. I am getting the following error description from ex.Message. "An error message cannot be dispalyed because an optional resource assembly containing it cannot be found." With stack trace as follows :: at System.Net.HttpWebRequest.finishGetResponse() at System.Net.HttpWebRequest.GetResponse() at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse() at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse() This make the PDA freeze and i have to reset it to operate. If I am connected to the internet everything seems to be working fine. Please suggest That exception i ...Show All
Community Chat Physics Calculators
Hi there, I've created this program which will do A-Level Physics Calculations for you. Oh course you will not use it in an exam, it is just to help you. It tells you the method everytime you do an equation so you learn. The calculators I've put on it are as follows... Velocity Calculator Constant Acceleration Calculator Object Force Calculator Gravity Force Calculator Kinetic Energy Calculator Potential Energy Calculator Mechanical Energy Calculator Momentum Calculator Mass-Energy Equivalence Calculator There is also a error report program built into the program so if there is any problems, they will be sent to me through email. Please no spam Please take note that I am only 13, so if any of the equ ...Show All
SQL Server Volatile Storage
I am new to windows mobile development, and I am looking to create an application (C#) which uses the SQL server CE. I am curious what to do about data loss. I have a Windows Mobile 2003 PDA, which means half of my storage is main memory (volatile) and the other is built in storage (no volatile). I expect I would want to install my application to the main memory, along with the database. I Planned to give the user the abililty to select a subset of properties for running the application and storing them in the DB for running. But if the user's battery runs out I wouldn't want them to loose all of the information in the database (ie configurable property selections chosen by the user). If the user looses the application, I plan to h ...Show All
Windows Forms Treeview - windows app
C# I am running a method and at the same time I want to add nodes to a treeview. I want it to look like a windows explorer menu. It should fall into levels and that confuses me. Is there a way I can do this. Yes near enough the same. I am running a method which copies a to b and then continues. At the same time I need to add nodes to the treeview. There might be 1 node under C:/ and then 6 nodes under D:/ and then a further 3 in 1 of the 6 nodes. Is that more precise ...Show All
Commerce Server Pipeline Component - Compile
I am attempting to compile my Pipeline component and am having errors creating the tlb file. I also tried to compile the MinMaxShipping sample with same results. The assembly "C:\Documents and Settings\conference\Desktop\CS SDK Samples\MinMaxShipping\bin\Release\CSSDKSample.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'Commerce.MinMaxShipCSharp, CSSDKSample'. Error: Error loading type library/DLL. Commerce I also get the following error during Compile. The assembly 'Microsoft.CommerceServer.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not registered for COM Interop. Please register it with regasm.exe /tlb. Any gu ...Show All
Visual C# Changing Interval of Timer while Enabled?...
Hello, I have a Timer Event that has a dynamic interval. For example I might have it set to go off every hour for 12 hours then change to every 3 hours after that or so on. If I change the Timer.Interval Value while it is Enabled do I have to disable and reenable it for the interval to take effect or can I expect it to notice the change by itself Thanks, Quilnux Quilnux wrote: If I change the Timer.Interval Value while it is Enabled do I have to disable and reenable it for the interval to take effect or can I expect it to notice the change by itself No, you don't have to because changing the Interval property will cause the timer to reset itself. ...Show All
Visual C# Visual Studio runs like a dog with more than 30 projects
Hi, Not exactly related to VS SDK, but don't know where else to post, looking for thoughts from people with a deep understanding of the VS IDE. Over the past few years of developing with VS, each time I add a new c# project, VS seems to get a little slower to do things, to the point that it sometimes takes 5 mins to just load a form in designer mode in the IDE when I have over 100 C# projects in my system. It only takes me a couple of months of full time development to get to 100 projects (99 projects compile to individual DLLs that contain 3 or 4 Winforms typically, one project contains the main exe) and then the whole thing runs like a dog. One of the projects is also a used by all other projects as having the base classes fo ...Show All
Visual Studio Express Editions Tabbed Web Browsing
hi everyone at the moment I'm trying to make a web browser which supports tabbed web browsing I've made it so that you can click a button to add new tabs but I'm not sure how to make the address text box control the tab which is currently being viewed, at the moment it's only able to control the first tab. How do I get it to control the tab which is currently being viewed and also how do I get the web page's name to be shown on the tab my code so far : Public Class Browser 'Creating an instance of the Navigate class Dim NavigateWindow As New Navigate Private Sub Browser_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Click End Sub Private ...Show All
Visual C++ Strange error C2228
Hello, I am facing a very strange error with this code: Basically, I have a wrapper object, and I want to initialize it with a temporarily created object (which is perfectly legal). But depending on the declaration, the wrapper object creation fails. Here is a sample code: struct a { int s; explicit a(int s_):s(s_){} }; class a_wrapper { a m_a; public: explicit a_wrapper(const a& a_) :m_a(a_){} int get(){return m_a.s;} }; int main() { int nb_act=30; a_wrapper s1(a(nb_act));//seen as function definition s1.get(); //error C2228: left of '.begin' must have class/struct/union //type is 'overloaded-function' a_wrapper s2(a(30)); //seen as object creation s2.get(); //no error!! return 0; } For ...Show All
SQL Server Programmatically create a Report History Snapshot
Hi, To programmatically invoke a subscription we can use - exec ReportServer..AddEvent 'TimedSubscription', '575F96C6-A1BD-49FD-9C2F-934FC9658780' How can we programmatically cause a Manual Report History Snapshot to be created. I know it can be done using the Webservice. How would we do it using the ReportServer stored procedures. Which SP/SP's can we call. With what parameters. TIA, Sam. Thanks for your prompt reply. Exec addevent 'ReportHistorySchedule' , 'B3A10200-FA1B-4298-8689-88B8ACFDBCFB' (which is what the SQL Agent job does) assumes that a history generation schedule for the report already exists, and doesn't work if no such schedule has been created. How can I simulate ...Show All
Windows Forms how to edit a file in deployment folder when use ClickOnce deployment
Hi, I am using ClickOnce deployment to distribute my winform application. The application is installed on client’s machine gets auto-updates from the server if a newer version is available. I have an xml file in my application where I store client preferences (database name, server name, so on…) When I do a built that xml file becomes part of the deployment folder (.deploy is added to the filename). The application works fine for the client which preferences I specified in the xml file. But when I open that file from deployment folder and modify the preferences to use for another client (without recompiling the whole application) – the application fails. Is there any other way to deploy the application to different clients w ...Show All
SQL Server How does a subscriber get initialized?
Hi I'm a bit confused right now. I am using Sql 2005 merge replication. I have a publisher and a subscriber running. Today, I updated some data in my publisher which caused 300,000 updates to be sent to the subscriber. There was no problem here, it took a while though. Later, I added a new subscriber and when it started initializing I suddenly thought that I should have really created a new snapshot, one that included the 300,000 row update. Because I didn't I was epecting that once the subscription had finished initializing from the old snapshot it would then have to apply the 300,000 row update. But it didn't seem to do this last update! But yet all the data was correct!! Does Sql replication somehow merge the snapshot with pending ...Show All
Visual C# Static Member Initialization Problem
Hello everyone... I finally got fed up with the built-in enums of .net so I decided to make something more intelligent by using classes with static members to feed dropdownlists. I'm running into some problems with static members initializing inside the child classes so I thought one of you guys would have an answer... The actual code is a bit more complex and hairy, but here is some simple and worthless code that will demonstrate my problem: public class Child : Parent { public static Child Hello = new Child ("Hello"); private Child (string value):base(value){ } //Passing value to parent class to add to array } public abstract class Parent { static protected Hashtable hashOfValuesFromChildren = new ...Show All
Visual C++ Adding reference to unmanaged code wrapper and resolving dependent DLLs.
Hi, I'm having a problem with a Web Service that I'm creating. My solution contains three projects. One is an unmanaged C++ code library, the second is a managed C++ wrapper for this library exposing the code I need to consume in a web service, and the third is the web service itself. I can compile and build the unmanaged library and the managed wrapper, and test this library from a console application. However, when I try to add a reference to this managed wrapper to my web service I get this error message: Error 1 The specified module could not be found. (Exception from HRESULT: 0x8007007E) Now I know that my code library has some dependencies on other DLLs, but so far I've not been able to work out how to build the managed ...Show All
Windows Forms Syntax for accessing dataGridView that is in a TabPage??
I've got a TabControl with TabPages that are created at runtime. The TabPages are all identical, and have multiple Textboxes, and one datagridview. Each datagridview holds data specific to the tab. I can get the pages to appear and populate all of the controls just fine if I populate them before I add them to the TabPage. I recently wentto a method that sets up all controls, except the datagridview, and now cannot populate the controls due to syntax issues. Also, how do I access the control values at runtime (after they are created) Specifically, I want to access the datagridview and extract the values in all of the rows and columns for use in another section of my app. Can the controls/columns be accessed by name Code snippets ...Show All
