Salil's Q&A profile
Software Development for Windows Vista Code Activity context menu questions
On the code activity context menu, two of the selections are: Promote Bindable Properties and Bind Property 'ExecuteCode' (assuming that I placed a value into the Executecode property and created a handler). I'd like to have a better understanding of what these menu selections do. For example, why would a code activity, from the toolbox, have a bindable property Wouldn't that have to be a custom activity with a dependency property I created And why would I bind my ExecuteCode method to a property Thanks. So then, in the case of the Code activity directly off of the toolbox, would there be any reason that you would want to promote the ExecuteCode property For example, if I promoted the Ex ...Show All
Visual Studio Problem debugging multithreaded application
I have mixed C# - C++/CLI project. In C# code there is event handler which is called from a worker thread. When I set breakpoint in event handler, debugger breaks on it. When I press F10 or Step Over, debugger hangs for 5-10 seconds, at this time I see tray tooltip "Visual Studio is busy". Then the following output appears: 'CameraTest.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System.Configuration\6e7f914e29c6414cba7d15ee00017064\System.Configuration.ni.dll', No symbols loaded. 'CameraTest.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', No symbols loaded. 'CameraTest.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System ...Show All
Visual Studio Express Editions Where was the ojbect created?
Hi all, I am a new guy in MFC, There is a code like this. class CScriptDemoDlg : public CDialog { protected: CScriptObject m_ScriptObj; } CScriptDemoDlg is the Dialog class, it uses CScriptObject. But when i search the whole project , i can't find the place where m_ScriptObj was initialized. Don't we need initialize it or..... Thanks for your reply. You don't need to initialize it because it's not a pointer and it has a parameterless constructor (because otherwise the code would not compile) which is called when the CScriptDemoDlg object that contains it is created. ...Show All
SharePoint Products and Technologies WorkFlow Reports
Hi, I am new to SharePoint. I had a 2 basic question in WF. In Workflow Reports, Can we customize to add custom fields of our choice Is there any xsl which I can apply on top of the Report.xml for viewing the same If there is any good material around WF reports and other SharePoint WF QoS stuff I will be appreciative if posted here. Regards Shyla ...Show All
.NET Development We're not supposed to use List<T> ? ( List )
I installed FxCop and had it analyze my application. In several spots, it says: "Do not expose List<T> in object models. Use Collection<T>, ReadOnlyCollection<T> or KeyedCollection<K,V> instead. List<T> is meant to be used from implementation, not in object model API. List<T> is optimized for performance at the cost of long term versioning. For example, if you return List<T> to the client code, you will not ever be able to receive notifications when client code modifies the collection." I'm a bit weak in my OO.. so I'm not sure what "expose" really means in this context. Is this saying to not use List<T> ...Show All
Software Development for Windows Vista Why are so many important design time classes internal only?
I'm attempting to create an activity in a similar style to IfElseBranchActivity. This allows you to select the type of condition, and then set the properties on it. It does this by using a custom TypeConverter and overriding GetStandardValues which creates instances of the possible derived types, and then you can bind their properties. Now the first bit I've managed to do fine, but when it comes to binding the properties of the objects created by the TypeConverter, I get the error that only dependency properties can be bound. So I look at how the ConditionTypeConverted manages to create properties so that they get bound, and there are literally thousands of lines of code in internal classes like PropertyDescriptorFilter, and internal cl ...Show All
SQL Server How to insert multiple values to a column at a time?
Hi all, I was looking to insert multiple values to a single column at a time in SQl. Any help pleas! Thank you Hi, In reality it is not acceptable according to data normalization rules. I.e. if you want to have such behavior you should better create an additional table and have foreign constraints mapping to it. Some example: table_x( field_1 ....., field_2 ....., field_in_which_you_want_to_have_multiple_values..... ); table_y( value_identifier ....., value nvarchar(1024) .... ); So you firstly insert several values to table 'table_y' and then just add value_identifier to a 'table_x.field_in_which_you_want_to_have_multiple_values' ...Show All
Visual C++ How to PostMessage between 2 separate applications?
I'm trying to implement messaging between 2 different applications using PostMessage (HWND_BROADCAST, msg, 0, 0) in one, and setting a On_Message handler in the other. The idea to test this is that when PostMessage is sent from App1, App2 will receive the message with On_Message and call the appropriate handler function. Unfortunately, its seems that this setting doesnt work. I set the message ID to the same one for both applications (something like 9990) . I did a search thru MSDN and had a clue on RegisterWindowMessage but have no idea on how to implement this, especially when the messageID must be a constant for ON_MESSAGE to work. Is there any way around this problem Please limit use of this forum to C ...Show All
Audio and Video Development How to turn Subtitles off?
Hi there, i tried the following to select subtitles and switch them on (or off) switch (g_sub) { case "de_sub": Player.subtitle.visible =true; Player.track.selectSubtitleTrackNumber(1); break; case "fr_sub": Player.subtitle.visible =true; Player.track.selectSubtitleTrackNumber(2); break; default: Player.subtitle.visible = false; break; } The first 2 "case" definitions works well. They turn german or french subtitles on. If "g_sub=='off'" the default definition should turn the visibility off. Right Wrong. the last selected subtitle is shown, although g_sub isn't "de_sub" or "fr_sub". How can I ...Show All
.NET Development Export/upload Data from excel to access 2003
Haiii... How the method Upload/export Data From Excel to Access 2003 use VB.Net Please anybody help me.... Thanks Jebat I've try your idea but when i run the program, and then show message error like that "Unrecognized database format 'C:\jun\My Data\JMb\Bin\contoh.xls' Can you give me the method for view data from excel to datagrid Thanks Jebat ...Show All
Windows Forms FAQ for Winforms designer section
shouldn't there be an FAQ for this section i have participated in this section when it was under windowsforms.net and i noticed that the same questions has been asked (like how to notify the designer host for a particular component property change, etc.) i know that online resources for designer related articles are scarce and it will really be helpful for starters to know where these links are. Peter Ritchie wrote: Certainly a good idea. The people who moderate these forums are volunteers; this particular forum may not have warm Microsoft body with ownership. what do you mean sir some forum sections have sticky threads with the FAQ in it ...Show All
.NET Development Insert Image From asp.net2.0 webpage to sql database and Retrieve the image from sql database to asp.net2 webpage
hi, I don't know how to Insert the Image From asp.net2.0 webpage to sql database and Retrieve the image from sql database to asp.net2 webpage.if any body knows answer for this please replay imm. Thnks. I wrote a tutorial on this using the Enterprise Library 2.0 Data Access Application Block , but the concepts still apply: Saving and Retrieving Images From SQL Server Using DAAB For better scalability on a website, I recommend not storing images in the database as well. I mention this in my article. Regards, Dave ...Show All
Software Development for Windows Vista Customizing ASP.NET page
Hi all, I am new to wwf. Is it possible to design or customize ASP.NET page based on workflow I want to generate ASP.NET pages based on workflow activities. Please suggest me any related articles. regards, Vas hi SSV, maybe,you create a virtual UGI layer ,like below, a delegate type: public delegate VirtualFormClosedEventHandler(VirtualFormClosedEventArgs pArgs); a IVisualForm Interface. public interface IVirtualForm { void ShowDialog(object pData); event VirtualFormClosedEventHandler Closed; } a IVirtualFormFactory class like below: public interface IVirtualFormFactory { IVirtualForm CreateForm(string uri); } if in web application , we ...Show All
Visual Studio Express Editions Anybody familiar with publish in VB2005 Express?
Hello, XPSP2 VB2005Express I have a very small data entry application. The database is an access database created by ADOX. When the application is deployed by Build>publish, the database is disappears into a hidden file. This is very incovenient as it's location is not fixed to a known place on the file system. The questions related to this problem are: 1. Can a location be forced on the publisher * 2. How to make a database backup in code if the location is unknown 3. What are the necessary files - item by item - to be used by a third party installer *** Thank you, * It was pointed out to me: Go to Application's Property> Publish. There are other goodies there t ...Show All
Visual C++ Language "C"
hello there to all programming people. i no d@t is is not the propper place 2 put it, but are there any apps d@t still us the "C" language as its base form if dere iz can sum1 plz tell me d@t wood b much appreciated and if there is a spot on dis forum where dis post cood be moved d@t'd b awsome 2. Win32 is Windows. The 32 indicates 32-bit Windows, to differentiate from 16-bit Windows. Of course, 16-bit Windows is no longer used by most everyone. Now that there is a 64-bit Windows, Win32 is misleading, since the term is often used in contexts that would include 64-bit Windows. As for the C or C++ language creating tabs, I assume you are talking about windows and such. The C and C++ languages have no windowing capability. ...Show All
