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

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

John_Wesley

Member List

lexa_q
OOMama
Bisjom
Naldai_
Xin-wonder
usm2000
Kumar Venkat
JocularJoe
Shady Brady
spelger
tornin2
Steve Strong
andreas s
Sql4088
VuaCorona
Ofer Gal
Steve Whitley
spree
MoonRiver000
KevinHall
Only Title

John_Wesley's Q&A profile

  • Visual C# Problem regarding displaying the £ sign in a win32 console application

    Hi, I'm trying to write what is really a very simple program, and am running into a stumbling block in regards to character output.   when I type theline:      'cout << "£";'   it displays in the console window after compilation as:      'u'   I was hoping someone could perhaps tell me why this happens, and suggest a solution   I've been scouting around online, and to my surprise found really very little information on how to do deal with this issue.   Thx It works fine in C#: namespace ConsoleApplication2 { class Program { static void Main( string [] args) { Console.WriteLine(" ...Show All

  • Visual Studio Tools for Office Word's Action Pane: Context Menu doesn't work properly (doesn't go away)

    I noticed that Context Menus in Action Pane work differently than Context Menus inside Form. If you bring a Context Menu in Form and then click away context menu will go away. But in Action Pane if you bring a Context Menu and then click away Context Menu will stay. Is it known behavior of action pane Is there any work around that The simplest way to see that is create User Control with Context menu and then add this control to Action Pane and to Form. Now you can see the difference between two Context menus.   I don't have an answer for you, but the question has come up before and here was the response: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=717592&SiteID=1 ...Show All

  • SQL Server How to check out our cluster remotely?

    Hi everyone, Primary platform on client is XP Pro sp2 and on server Win2003 Ad.Server 64-bit We're looking for any snippet or link related with Clustering instantiating. We need to call our remote cluster from an ASP 3.0 page and check out if one of our Active Resource is up (in this case is a .net service) . We suppose that it should be done for each node. It's an Active-Passive cluster. Thanks for your time, Just connect to the virtual host name that is part of the SQL Resource Group, and make a query. Coding technique should be no different for a cluster than any other remote connection - just use the name of the virtual host instead of the physical one, and the connection gets automatica ...Show All

  • Visual Studio 2008 (Pre-release) Duplicated Web Service Proxy Message Classes

    I'm trying to connect to an ASP.NET 2.0 Web Service (ASMX) by using a WCF client proxy generated through the 'Add Service Reference'. The import works fine and the proxy classes are created however all dependency objects that are used as parameters and return values are duplicated in the generated source file. This is due to the the service publishing both SOAP 1.1 and 1.2 bindings apparently and the importer apparently importing the bindings for each of the types repeatedly, so I end up with two partial classes for each dependent type. It looks something liekt his: [System.CodeDom.Compiler. GeneratedCodeAttribute ( "System.Runtime.Serialization" , "3.0.0.0" )] [System.Runtime.Serialization. DataContra ...Show All

  • Visual C# Issue with ConsoleTraceListener and Web projects

    I'm writing a log system based on MS Enterprise Library logging solution, and I' trying to make use of the built in ConsoleTraceListener in .Net. Now, it basically works in windows environment, but doesn't work in a web environment. From what I understand this is because Cassini (the built in debug web server is VS2005) doesn't have a console you really can write to. That's all fair, but I really find it odd that you can write to the debug console with Trace.WriteLine(...), but calling base.WriteLine(...) (where base is ConsoleTraceListener) nothing shows up. Why is this happening I can't help to think that ConsoleTraceListener and Trace should use somewhat the same mechanics, but can't really pinpoint what the difference is. I'd like to u ...Show All

  • .NET Development generating and populating datagrid columns and rows dynamically from a stored procedure

    Do you know if it s possible to: from a stored procedure, get all the returned columns and build the datagrid clumns accordinally (each column returned by the Stored Procedure will correspond to a column of the datagrid column) so that we can populate the datagrid after with the resulting resultset from the SP. Thank you So i guess it s automatic. Let s say I want to implement amethod that retrns the list of columns of a resultset reurnd by a stored procedure. I guess my dataset will include that list automatically, right I need this for an asp.net datagrid that is supposed to get filled automatically (columns and rows) from an SP. But also, I need some of the columns to be a kind of a hyperlink to another page. P.S: I a ...Show All

  • Visual C++ I cant create application with two forms

    Hello! In last time i was programer in UNIX system, and now im trying to work with Microsoft Visual C++ (express edition) I create new solution and create two form. how to show second form by call from first form I try ShowDialog method and more.. :( Yes, i talking about WinForms I try: Form2^ f2 = gcnew Form2(); f2->ShowDialog(this); but, i call to ShowDialog() from button click procedure, and i cant use `this` :) I try use ShowDialog without any argument... but when i click to button, application dont react to my click :( When i try use just f2->Show() - application also dont react :( ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. SpaceWar file & attempt to create the GraphicsDevice were invalid

    Hi there, I have a major problem i am looking to game a learning game in C# using XNA for my final year project at uni. I have just started a basic video tutorial on how to create a ball on the screen. The problem i am having is when i run in debug it comes up with this error: The values used in the attempt to create the GraphicsDevice were invalid. Now i have looked at a few posts this one most helpful http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=688024&amp;SiteID=1 in the ball tutorial i have put in this "graphics.AllowMultiSampling = false;" but it does the same thing, as the code is different to the spacewar code. It is likely i might need a new graphics card as mine is Nvidia Geforce4 MX440 64mb DDR. But ...Show All

  • Gadgets New to Gadget

    i am new to gadget developement and currently going through "Windows Live Gadget Developer's Guide". while reading i came accross example where fancy button is displayed in the gadget. It is making use of API - "Start.FancyButton". But on my local system , i dont have "Start.*" API installed. Any idea how to install it so that i can make use of "Start.*" API's. I used <binding:options renderInline="true"></binding:options> and now it is behaving properly. Is this only solution ...Show All

  • Visual Basic DataGriedWiew VB2005

    I have some problems with datagridwiew. I use this document as a guide. ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/T_System_Windows_Forms_DataGridView.htm Note: This class is new in the .NET Framework version 2.0.  I use .NET 3 On topp of my code i use a sql string to get 3 varables that i will store in a DataGridWiew. Just part of my code is posted.  I use ExecuteReader Dim Record(0, 2) As String Do While dread.Read 'Add valuse from query sqlT IDX = dread.GetString(0).ToString T_ID = dread.GetString(1).ToString Deskr = dread.GetString(2).ToString Record(0, 0) = IDX Record(0, 1) = T_ID Record(0, 2) = Deskr  With datagridwiew   ...Show All

  • Software Development for Windows Vista Propagate CallContext

    Hi, How can I propagate CallContext to the executed activities Imagine I have a workflow with 1 code activity. Before I start the workflow instance, I set a parameter in CallContext: CallContext.SetData("TLS1", "1"); WorkflowInstance wi = _workflowRuntime.CreateWorkflow(workflowType, workflowParameters); wi.Start(); .... and then in the CodeActivity handler I want to be able to access the previously set parameter: private void codeActivity1_ExecuteCode(object sender, EventArgs e) { Console.WriteLine("codeActivity1_ExecuteCode on ThreadID = " + Thread.CurrentThread.GetHashCode()); Console.WriteLine("CallContext.GetData(\"TLS1\") = " + CallContext.GetData("TLS1")); } Of co ...Show All

  • .NET Development how to detect internet explorer's event

    Sir ,i develope an application for download manager which can download files from internet when user select or click on download for files,& then files download from internet to a PC. So detect an event when user click on download ,& how to find the URL address from internet. So Please give me code in C# ,so i can detect event in my application & i start download a file. You don't need to detect IE's event but there is some setting in the registry which tell the browser that what application to be used as default download manager, You have to change that entry in the Windows registry and then your application is up. For this i would recomend searching google [How to set download manager] with some changes to get right ...Show All

  • Visual C# how can i acces a control from another form

    hey i, how can i acces a control (that its in Form1) from Form2... ex. in form1 i have a textbox, and i want to change text from form2.   n0n4m3 wrote: Hi, you can provide a property to access the control, e.g.: class Form1 { public TextBox MyTextBox { get { return myTextBox; } } } in the other form: form1.MyTextBox.Text = "New Text"; It is almost what I've been looking for as well. My problem is somewhat more complicated, however. I generate a Tabpage at runtime and want to access (reference) all or some objects on this page. There is a candlePlot and a grid. They are all separate classes. The code I have is like this: TabPage tb1 = new TabPage (); Button btn = new Button ( ...Show All

  • Windows Forms simple reinstall

    I am just beginning with Setup projects. I created a setup project that works fine for my app. I as develop the app and release new versions, I would like to be able to install the new version directly over the old of by having the installer simply overwrite the files it installed in a previous version. As of now, it says another version is already installed and to use Add/Remove programs to remove it first. Is there a simple way around this Thanks. I was changing that property along with the product code when prompted with the RemovePreviousVersion set to true and it wasn't removing the old version's entry in the add/remove program (ARP) window. Once I rebooted it seemed to have fixed something on my PC a ...Show All

  • Software Development for Windows Vista LockProfile of IStreamBufferSink

    I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. You're right, it shouldn't be so. But I don't know how to file a vista bug...:P And I think there should be some API to code our ap as admin ...Show All

©2008 Software Development Network