Software Development Network Logo
  • Visual Studio
  • .NET Development
  • IE Development
  • Windows Vista
  • SharePoint Products
  • Microsoft ISV
  • VS Team System
  • Visual FoxPro
  • Windows Forms
  • SQL Server
  • Visual C++
  • Game Technologies
  • Audio and Video
  • Visual C#
  • Visual Basic

Software Development Network >> minkee.s's Q&A profile

minkee.s

Member List

Stefan Wenig
Miyamoto M
SarasMax
Abualnassr
Sevugan
Georgiev
Samyag1
HandledException
airwalker2000
bhavu
flyingchen
Bapa
leonlai
Fahad Habib
JayaC
1HellaNewb
jomunoz
Superobotz
gabriel_333
IceAngel89
Only Title

minkee.s's Q&A profile

  • .NET Development invoke through command prompt

    Hi, Im new to this, need to know how to execute commands on DOS prompt using C# apps. any info would be appreciated. thanks. abhi See Process class in System.Diagnostics: Here is a quick example: Process.Start("cmd"); You can also add paramter to it like: Process.Start("shutdown", "-r"); You can also See ProcessInfo class for more control over all this. Best Regards, Rizwan aka RizwanSharp ...Show All

  • Community Chat I can't believe most Windows users don't know how to use toolbars, OMG.

    This is most irritating. Almost all of Windows users in my company don't know how toolbar works. They don't know they can enable toolbar, take out toolbar, customize toolbar, and not even the simplest of all, move toolbar around. Toolbar is so simple, standard, and flexible. And yet, they don't know how to use it. And now, I think that's the main reason why IE7 doesn't support moveable toolbar, and that pisses me off even more. Argh. This is one of the reasons I stick with the defaults. There is less to change when I reinstall and most actually work quite well y default. It is not like MS set the defaults to be difficult but to accomodate most users. With Vista I feel it is even closer to my desired setti ...Show All

  • Visual C# How do I convert a 4-byte array (of type bytes) into a 4-byte floating-point?

    Okay, how do I convert an array of bytes into the 4-byte floating-point number with the same binary representation What I'm trying to do is, that when I loaded a binary file into memory, I want to be able to set the four bytes of a byte array to some values, and then retrieve the value in floating-point. In C++, this would've been rather easy using pointers, as shown : char buffer[4]; // Set some values to this buffer float* fp = (float*)buffer; // Access the 4-byte array as a floating point cout << "Floating point value : " << *fp << endl; // Print it Now how do I do this without pointers Don't tell me to try to load the floating-points directly from the file, by using some function like ReadDWord. A ...Show All

  • .NET Development Insert, sort, and Save Changes to a Database

    I have been trying to develope a code to insert a new record to a dataset, sort the dataset by a secondary and tertiary field, renumber the primary keys, then send the changes back to the Access Database. I am using Visual Studio 2005 and Visual Basic Language, but I'm not very experienced. Any suggestions I actually had another idea, but I don't know the commands or syntax in .net to accomplish it. I have enough experience with VBA to write two loops to compare the new row to the 2nd and 3rd columns in order to determine the new records location in the datatable, but I can't figure out the command to insert it at that location. But each time I attempt to insert a new record, it goes to the end of the list. If you could show ...Show All

  • SQL Server #region question in vb.net

    What are the benefits of using #region ... # end region in our programming languages like vb.net. Why we use this block please tell me if any person know thanking you Keep in Touch It lets you expand and collapse that region of code in development environments such as Visual Studio. Some people also use it to group class members. That's it, it doesn't affect the behavior of your code in any way. ...Show All

  • Windows Forms DataGridView contextmenu strip issue

    I have a dataGridView whose columns have a contextmenu strip. When a cell is being edited I don't want to display a context menu on right click. I am using contextMenuStrip_opening event to set the options on contextmenu depending on the row that is clicked. Suggestions will be very much appreciated. for for my DGV contextmenustrip, I use the event: dataGridView1.CellMouseDown+=new DataGridViewCellMouseEventHandler(dataGridView1_CellMouseDown); then in that function I determine if it was a right click and where the click was. So you can easily check to see if that cell is in edit mode and then set the DGV's contextMenuStrip: private void dataGridView1_CellMouseDown(object sender, DataGridView ...Show All

  • SQL Server Chart with Data Fields from Multiple Queries

    Is there any way to create a chart using data fields from more that one query I tried to create two different datasets, but the chart has to be bound to only one dataset. So when I drop the data field from the second dataset onto the chart I get a SQL error. I've also tried UNION ALL. Each of these queries is correct by itself, but UNION ALL combines GLBUDAMOUNT and GLTRXAMOUNT into one field. I need them to be two different fields so that I can do GLBUDAMOUNT VS GLTRXAMOUNT in the chart.     ...Show All

  • Software Development for Windows Vista Error when NOT using DependencyProperty but a "normal" type variable

    Hello, l et me explain my situation: I created a (sequential) workflow which contains a private variable defined in code-behind. This variable is filled when a new workflow instance is created, using the "namedArgumentValues" property of the "CreateWorkflow" method. The workflow uses the SqlWorkflowPersistenceService (with the "UnloadOnIdle" property set to "True") to make sure no information can get lost. When that private variable is defined as a "DependencyProperty" (which registers a type "TestApp.Document"), my workflow works just fine...even after a reboot! When the workflow is retrieved from the persistence store, the private variable is still filled. To test some ...Show All

  • Visual Studio DSL Tools support for Visual Studio editions

    I promised that I'd get back to this forum with details of our licensing plan once they were available. I'm pleased to say that we can now make some details available (Please also see our Modeling Strategy and FAQ ). On release, the DSL Tools for Visual Studio 2005 will be part of the Visual Studio 2005 SDK. We'll support the following editions for authoring DSLs: Visual Studio Professional Edition Visual Studio Team Edition for Software Architects Visual Studio Team Edition for Software Developers Visual Studio Team Edition for Software Testers Visual Studio Team Suite We'll support the following editions for deploying the DSLs that you build: Visual Studio Standard Edition Visual Studio Professional Edition Visual Studi ...Show All

  • Visual C# How do I choose which class to create during runtime?

    I have one class X and some clases X1, X2, ... that inherit from X. I want to be aple to input text during the execution of the program - a text like X1 and than I want that object to be created. The code should go something like this: String s = null; Console.ReadLine(s); Type t = Type.GetType(s); X x = new t(); but it doesnt work. Is it posible to do this with C# Thanks,Zanzamar Try using Activator.CreateInstance() instead, so that last line would become: X x = (X)Activator.CreateInstance(t); ...Show All

  • Visual C# Load dll at runtime and performance

    Hi I've a problem in a Software that I'm creating and I'm looking for a solution for a month without success. The Software I'm building is splitted in 2 distincts parts. And I'm going to explain its functionality. The program user, write a text (called 'format') in a language defined by my client to work on some data. The first part of my program convert the language writed by the user to C#, using como CsLex and CsCup library, compile it to a dll file and store it for future use. The second part of the program can load the dll 'format' in a temporary appdomain (so it can be unloaded) e run a function in it trought the commun interface passing it the data to parse. The problem I have is about performance. I think I us ...Show All

  • .NET Development How to generate custom code based on a custom method/sub/function attribute

    Our team is looking into performance logging; rather than asking developers to manually insert code for entry and exit timestamps we'd like to provide a custom attribute that they could attach to a method/sub/function of interest; this custom attribute would then cause, at runtime, a consistently formatted message with a timestamp to be logged at entry and another on exit, regardless of normal exit versus the throwing of an exception. I feel this could be done if code could be generated for such an attributed function that basically put "whatever code was there" in a try...catch...finally.  Then in the catch, re-throw whatever was thrown, and in the finally do the exit timestamp. example pseudocode, I wo ...Show All

  • .NET Development set up of the project

    Hello All, Me create the setup of my project in C# (through setup project ).. Now i want that wen i start installing from the setup created...Before it i got the message dat if .net framework is nt installed please installed it.. How do i add it ... Regards, Aamir do following steps before build the setup project.. * Open setup project properties. * Click on the prerequisties. * Select .Net FrameWork 2.0 checkbox. Now build and run the setup. ...Show All

  • Visual C++ Replacement of CComModule in VS2005

    Hi, I'm porting one of the dll from vc6 to vc8. In doing so I have created a complete framework to create a dll and subseqently add atl objects. By default the framewaork adds the follwoing code in the main app file class MyClassModule : public CAtlDllModuleT< MyClassModule> { public : DECLARE_LIBID(LIBID_MyClassLib) DECLARE_REGISTRY_APPID_RESOURCEID(IDR_MYCLASS, "{7C00C752-3DA7-4CB9-B721-7F39F9FEDD2E}" ) }; In previos versions of ATL CComModule _Module was used which has been replaced by CAtlBaseModule. Problem: There was an extern declaration as extern CComModule _Module in stdafx.h and definition in main app file as CComModule _Module . How do I replicate the above behaviour in t ...Show All

  • .NET Development errors adding a web service with sockets to a C++ project

    Hi everyone, I have a web service which communicates via TCP to a C# program. When I invoke it's methods through a browser, they work fine and can communicate perfectly with the C# program. However, when I attempt to add the web service to a C++ MFC DLL I've created, I get multiple warnings, but with only 2 unique: 1) Warning 3 warning SDL4008 : skipping unrecognized extensibility element, with c:\Documents and Settings\*******\My Documents\Visual Studio 2005\Projects\Extend\Extend\CalcSvc\CalcWS.wsdl 84 2) Warning 9 warning SDL4001 : only one SOAP port will be processed. c:\Documents and Settings\cpappas\My Documents\Visual Studio 2005\Projects\Extend\Extend\CalcSvc\CalcWS.wsdl 104 I am assuming it is because the web service opens a s ...Show All

©2008 Software Development Network