pat_seo's Q&A profile
Visual Basic Converting a dll to a windows exe that will accept command line parameters
I have a dll in vb 2005 winforms, that has a gui interface, and accepts command line parameters. I need to convert the dll to an windows exe file, and still accept command line parameters. Any advice how to achieve this Thanks Module M1 public sub Main(args() as string) end sub end Module The array args will contain the command line parameters. ...Show All
Windows Forms Basic WinForms question
I am new here. Can anyone tell me why many people are saying WinForrm App is a smart client What make WinForms smart Thanks Hi, Smart client in the sense means the entire processing of data happens in the client, unless you do not Remote your components. In case of Web UI we call them as dumb clients since the entire processing is done at the Web Server. -Ajeeth ...Show All
Visual Studio Express Editions Com port received data HELP
Hi...I am a noob...first and foremost. I am doing a school project in which I am using motors that run on RS232. My com2.writeline code works fine, however I am stuck on reading back on the port. Here is what I want to do: When the motor runs, it sets a bit saying it is in motion (RBo). I want to poll that bit until the motor turns off. I can do this by looking at the specific bit as a 1 or a 0. Or, I can look at the status Byte and go from there. I am completely new to doing this, and I would really appreciate any com port samples/examples that implement this, or a good code critique...again I am a noob. :) Here is my code so far: com2.WriteLine(Chr(130) + "WAKE " ) com2.WriteLine( "A=" + Acceleration2.Te ...Show All
Software Development for Windows Vista Showstopping Bug in WF Persistence?
We have been struggling through an error for some time and as yet have found no resolution. We would like to persist a workflow that contains activities that have subactivities (like subtasks). The problem is that we get a SerializationException when the app tries to load the persisted workflow (on SqlWorkflowPersistenceService.LoadWorkflowsWithExpiredTimers). The specific message is "The object with ID XXX implements the IObjectReference interface for which all dependencies cannot be resolved. The likely cause is two instances of IObjectReference that have a mutual dependency on each other." If we take out the "subtask" concept, or take out persistence, our code works perfectly. Here is the code with the issue. //The Custom Acti ...Show All
.NET Development AppDomain.AssemblyResolve and throwOnError
Hi, How should one implement the AppDomain.AssemblyResolve event listener for the Type.GetType(string,bool) method to behave correctly when passing throwOnError = false The documentation at http://msdn2.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx doesn't mention this case at all. Based on observation it looks like one should always return null from the event handler if the assembly could not be found and this will cause Type.GetType to behave correctly, but I'd feel a lot safer if this was explicitly stated in the documentation. So why does it not say so in the documentation If developers must read the .NET source code to be able to use the framework correctly, why hasn't Microsoft r ...Show All
Windows Forms I cannot get designer view....
Hi, Yesterday I was stuck with my project, and decided to make a new one. I thought it can give me a fresh sheet to work on. However when I was trying to move my Form classes( I move the file to the new project's folder and add them as an existing item), I lose the designer view of them, I mean I (honestly) cannot design my Form classes only by reading the code, can someone help me please .... Thank you I change the namespace in the .cpp and .h file to the new project's namespace. But still I cannot get the designer view, It seem that the resx file doesn't want to combine with the .h file. Or is there anything I missed ...Show All
SQL Server Selecting datas on 3 different table
Here is the table schemas: Departmant table. Private Key(DepName) DepName DepIntro --------------------------------------- Computer Some Info Finance Finance Department Stock Keeps Stock info Company table. Private Key(ComID) ComID ComName ----------------------------------------- 1 ABC 2 NewCompany 3 CoolThinks ComDep table. Private Key(DepName,ComID) ComID DepName -------------------------------------------- 1 Computer 2 Finance 2 Computer 1 Finance 1 Stock 3 Computer Simple 2 table(Department,Company) joins on other(ComDep). What i want is i need to select Companys with ...Show All
Visual Studio 2008 (Pre-release) [OperationContract] and properties,
Hi, Why is the below interface definition not possible Surely the fact that properties are just methods anyway mean that this should be possible. Why should it be necessary to change the perfectly reasonable Length property into a GetLength() method Is there any way to expose a property value /// <summary> /// Service contract definition. /// </summary> [ ServiceContract ] public interface IWorkContract { [OperationContract ] int Length { get ; } } You're right about sessions, they do exist and you can use them. But I wouldn't compare sessions state to properties. Transactions aren't there mainly so you can do 5 method calls and ...Show All
Windows Forms Listbox refresh
I have Windows Forms Listbox which contains custom items. When I change these items, I need to redraw listbox: foreach( MyClass c in listBox1.Items ) { c.ChangeSomething(); // MyClass.ToString function gives new result after this change } Now I need to show new state, but using Refresh, Invalidate, Update etc. doesn't work and items are not updated immediately. Removing all items and adding them again works, but this is not nice. Is there better way One way to achieve this is to use data-binding. First, you need some notification mechanism to let your MyClass inform the UI it should refresh. You can add your-property-name Changed event or implement the INotifyPropertyChanged interface: pub ...Show All
Visual Studio Express Editions Delete content of txt file
How to delete the content of an existing txt file What command to use "using" is good practice to automatically close/release and dispose of objects the implement the dispose methods, it doesnt mean to actually use that file :-) That is given in the constructor of the streamwriter in this case ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Splash Screen Processing
Hi again all :-) Am still writing my little app to get my head around using c# + XNA and just wanted to check i was doing something in a effective manner. It all relates to the splash screen section which effectivily just fades in a company logo, fades it out, the fades in the application title and fades it out. The way i do this at the moment is that i have a class called SplashScreen which has 3 functions init. which loads n e images, sets up n e variables etc. that are to be used. Draw. which as it says draws approriate image and updates alpha to create fading of images, then delete. which nulls out n e thing that may be takin up memory to free it up a little (not sure if needed really) in the games main initialization function ...Show All
SQL Server Getting Previous Date SQL Script
Hello, I have a table that also has a timestamp field I want to get any data that was inserted into that table on the previous day even if the month changes and i have no clue how to go about that Tdar limno wrote: SELECT * FROM yourDatesTable WHERE DATEDIFF ( day , yourDateColumn , getdate ())= 1 Another approach: SELECT * FROM yourDatesTable WHERE yourDateColumn >DATEADD(day,-2,getdate()) AND yourDateColumn <=DATEADD(day,-1,getdate()) ...Show All
Visual C++ A native 'public class' or 'private class' in VC8
Specifying 'public class' or 'private class' for C++ class definitions is not part of the C++ standard. In a topic in the VS 2005 docs 'How to: Declare public and private on Native classes', it is suggested that this syntax is supported with VC8 for interaction with CLR ref classes and for specifying in a CLR assembly. However in the specific C++ language documentation for native classes, there is no mention of the possibility of prepending 'class' with either 'public' or 'private'. Furthermore where it is explained in the first topic above there is no explanation of what it actually means for native classes, other than the implied suggestion that it treats native classes like ref classes in CLR assemblies as regards ...Show All
Visual Studio Team System Is it just me or are others finding CTP5 dog slow?
I routinely get delays and a pop-up reporting "Visual Studio is busy ...." with CTP5. Even the roll-out of the schema view is slow. I did not see this in the previous CTP version. My workstation has dual processors, 2G RAM, no disk constraints. VSS is engaged. My database project has less than 100 objects - similar in size to the project I was using in the previous CTP. #1 Is this a problem others are having #2 Is there are way to turn off the automatic error checking when each script is saved Can this be invoked by request - perhaps during the build event only for example (To try to speed things up). Thanks. We did a perf update with CTP5; are you running with that install It's lo ...Show All
Software Development for Windows Vista Control panel "Windows Cardspace" doesnt work
Every time i start the "Windows Cardspace" from the control panel, i get this eventlog error: Running on german XP Pro SP2 Ereignistyp: Fehler Ereignisquelle: CardSpace 3.0.0.0 Ereigniskategorie: General Ereigniskennung: 269 Datum: 07.11.2006 Zeit: 19:38:32 Benutzer: NT-AUTORITAT\SYSTEM Computer: ATHLON64 Beschreibung: The Windows CardSpace service is too busy to process this request. User has too many outstanding requests. Additional Information: bei System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) bei System.Environment.get_StackTrace() bei Microsoft.InfoCards.Diagnostics.InfoCardTrace.BuildMessage(InfoCardBaseException ie) bei Microsoft.InfoCards.Diagnostics.InfoCardTrace.TraceAndLogExceptio ...Show All
