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

Software Development Network >> Vishva's Q&A profile

Vishva

Member List

JWhite
charlestek
Jellyhead365
magicalclick
Florian Storck
briendjf
FritzDeVries
idar
debuggger
Dr.Virusi
fafnir
CSharpShooter
patio87
GunaChinna
Thoras
ploeh
chipjollyroger
Santosh Ransubhe
jmkueter
Detisch
Only Title

Vishva's Q&A profile

  • Visual C# Object reference confusion.

    I have a simple function located in Class2.cs - an auxiliary file for Form1.cs (Console Application in VS2005). It take one parameter: string. This string is supposed to serve as a switch for selecting the right string to build. public string getConnStrings ( ref string switched ) In the calling function I call the function in question as: string switched = "1"; string str1 = Class2.getConnStrings (switched); // or (ref switched); I get this error: Error 1 An object reference is required for the nonstatic field, method, or property 'tapTCPports_1.Class2.getConnStrings(ref string)' D:\VCsharp_Projects\tapTCPports_1\Form1.cs 1231 21 tapTCPports_1 When I placed the function getConnStrings into the ...Show All

  • Visual Basic Iterating through a given component type in a VB form

    Hello all, I am looking for a way to iterate through a given component type in a VB form. For example, if I want to go through all the buttons found in a given form and change their text to "XYZ", is there perhaps a "For Each" technique to do that The alternative is an ugly hardcoding of the button names, in the above example, and changing their text one by one ... not what I want. Cheers all. N. Farr Thanks both of you. I like TryCast better (after reading up on it, I like that it simply returns nothing on error instead of throwing an exception), but I guess it's not part of .NET 1.1 (which I have to use). Any alternatives Cheers. NF ...Show All

  • Software Development for Windows Vista How can MPC play avi video with bad indexes?

    Hi I'm using Visual studio 6.0 and directx 8.1 SDK, and I got a problem in my directshow application. I need to play avi that could have bad indexes. If I play them using MPC I got not problems, if i try using IGraphBuilder:RenderFile(), it can not build the graph. Using Graph Edit, I noticed MPC uses different filters when it plays video with bad indexes, but that filters are not available in DirectShow, and using IGraphBuilder:RenderFile() the GraphBuilder can't find them. Does someone know something about the filter used by MPC Does it use internal filter Is it possible using them Can you play avi with bad indexes using directshow If yes, what codec are you using Is available source code for repairing an avi with bad indexes Pl ...Show All

  • Software Development for Windows Vista Notifying a Distributed Workflow of State Changes

    Picture this scenario: You have a central workflow, hosted however you see fit (WCF, Web Services, Remoting, whatever) and you have three different Windows Forms applications consuming this workflow. Each application can cause the workflow to change state, but I also want each application to listen for state changes to the workflow . My current train of thought involves linking the Windows Forms applications in a peer network, and whenever one peer changes the state of the workflow, the other peers are notified via service messages. The problem I'm having is that the peer network isn't functioning properly - using PNRP the peers don't detect each other reliably (sometimes they do, sometimes they don't). So, I'm wondering: do I take t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Animation sample

    MS had announce an animation sample some weeks before and you just told us, that i will be released soon, but the question is, what soon means...When will you release the example. All I need are some informations how to transform the bone matrices to absolute ones to transform the mesh. If you can't wait, have a look at these sites in the mean time: http://www.codeplex.com/animationcomponents http://abi.exdream.com/ ...Show All

  • Windows Forms Threading, Binding

    Could someone tells me how can I update a List (of objects) from thread other then control's thread. I have a DataGridView bound to the list and when I update the list from other thread I got 'InvalidOperationException': Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on Regards, Vasil Hi. I've got a solution to update dataobjects/databound controls in multi-threaded environments. My threads fire events containing progress & completion information. The delegate event handlers specify the data structures that need to be reflected in my model & UI controls, but they are separtate instances of the objects. (The threading code is loosely bas ...Show All

  • Visual C++ __declspec problem

    Hi, I have a small piece of code which is failing to compile on windows 2003 server x64 using 64 bit Visual studio 2005 compiler. The code is as follows: void __declspec( naked ) memory_barrier() { __asm { lock add [esp], 0 ret } } Now i have noticed from msdn that the declspec(naked) isnt supported on X64. Can anybody give me any idea on how i alter this code to run on this platform Regards If you look too, the other thing that isn't supported on x64 is the __asm keyword. To get this to work on x64 you need to put this into a seperate asm file and assemble it using the x64 ml64 assembler. ...Show All

  • Visual Basic Looping

    How do I setup a for next loop array to open files if I don`t know how many files are in the folder Define Open.... Are they all text file and you want to get the contents and append them to say a textbox. The general concept of looping around the files in the directory remains the same Dim folder As String = "c:\" Dim pattern As String = "*.txt" dim Contents as string = "" For Each file As String In My.Computer.FileSystem.GetFiles(folder, FileIO.SearchOption.SearchTopLevelOnly, pattern) Contents = My.Computer.FileSystem.ReadAllText(File) Textbox1.Text = textBox1.text & Contents Next If you want to open the files in there respective applications the ...Show All

  • Visual C++ How to do what I already have done in Visual C++ 6.0

    I have gone through a book called 'Teach yourself Visual C++ 6.0 in 21 days'. Now I have Visual Studio 2005 C++ the Express edition and I see that much has changed. I really can't do what i did in version 6.0 because to much has changed. For example in 6.0 you had a wizard ctrl W and you attached and set a variable to a control and then called UpdateData() to use the control. But how do I do that now Or let me ask how can I in the best way learn to use Visual Studio 2005 so I can do the same things I already have learnt. I have searched the help and online system and find it very hard to know which resources to read and in which order Neither do I find any good book about basic Visual Studio 2005 Hi! VS6 and VS2005 very different, you ...Show All

  • Internet Explorer Development catches IE Events

    Hi, i am writing an extension for internet explorer i have already created the extension however i need to catch IE events like "NavigateComplete" is there anyway to catch the events using visual c# thanks Regards Roy http://support.microsoft.com/kb/269614 it is actually a bug, i suppose quite a number of events arent called at the first navigation. A way to test it out is after open IE, try to enter a url see whether the events catches then ...enter a URL again...and see if the event catches again. well..last time i did have this problem the solution i did was actually simulate a second naviagtion as a first navigation. ...Show All

  • Smart Device Development textbox

    i try to compare value in textbox, it doesnt return null when it i did not key in anything. what is wrong with my textbox Probably nothing, it just has empty string in it, not null. ...Show All

  • Windows Forms Location for dialog box

    hi .... I have create a UserControl (ColorPicker) that have a button that when it clicked it will create form and use it as dialog box everything work fine but my problem is am trying to set the location of dialog box I try to change the parent of dialog box and I have no luck on it also I try to set the location and it's did not accepted Public Class ColorPicker Private Frm As New Windows.Forms.Form Private Sub ColorPicker_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load With Frm .Size = New Drawing.Size(189, 197) .FormBorderStyle = Windows.Forms.FormBorderStyle.FixedDialog .ControlBox = False .AutoSize = True : .AutoSizeMode = Windows.Forms. ...Show All

  • Visual Studio Express Editions Still got problem with Openfiledialog1

    Hello. Sorry to botther you again. am still having problems with OpenFileDialog1 when i open a file in RichTextBox, the file opens ok, but the problem is with Rich Text Files. when I open a Rich Text file i get garbage in the file as well, like this: {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fprq1\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\colortbl ;\red192\green192\blue192;\red0\green0\blue255;} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\highlight1\f0\fs20 \cf2 Private\cf0 \cf2 Sub\cf0 comboBox1_KeyPress(\cf2 ByVal\cf0 sender \cf2 As\cf0 System.Object, \cf2 ByVal\cf0 e \cf2 As\cf0 System.Windows.Forms.KeyPressEventArgs) \cf2 Handles\cf0 ComboBox1.KeyPress\par \cf2 ...Show All

  • Visual Basic week number

    Hi How can we calculate week number in one month. I am bit confused about caliculating this week number in one month for example if we take today date 8/12/2006. Now we are in which week 2nd or first week (in december month) Our  zone is united kingdom.. Any help Thanks Dim a As New DateTime(Now.Year, Now.Month, 1) Dim week As Integer = ((Now.DayOfYear - a.DayOfYear) / 7) + 1 ...Show All

  • SQL Server using DTS for reading Dynamic .CSV files from a Folder

    Hi All, I have a challenge i am trying to overcome, hopefully soneone would have come across this issue before.. I am creating a DTS package that will be scheduled to run at a certain time everyday. A source folder exists that get a set of new files everyday.The DTS Package will then read each file and copy the data into a load table in my database the challenge is this: I am trying to load files from a source folder into my load table, Within each file, the entires are in a specific format using pipes to seperate the data that goes into which column e.g example of a file entry: column1 | column2 | column3 data1 | data2 | data3 data1 | data2 | data3 data1 | data2 | data3 And now i am using DTS to ...Show All

©2008 Software Development Network