Keith_EN's Q&A profile
Visual C++ Link error from Command Line: LNK1561
Hello All: I've looked at the online help pages for link errors when using the command line and still can't fix the error. I see the error relates to entry point not defined'. How do you define the entry point Thanks, PJM Could you send simple.cpp to kramer_ae _at_ hotmail _dot_ com . (change to valid email address). I'd like to take a closer look at your file. Thanks. ...Show All
Visual Studio Express Editions Access to Controls
Hi all, I am new to C#, but I am an experienced VB developer. Usually if I have two forms with e.g. some buttons or textboxes on them I use in VB from Form2 Form1.Button1.Text = "Hello" In C# I wanted to use the same. Form1 form1 = new Form1(); form1.Button1.Text = "Hello" !!!!!!!!!BUT this is not possible" How I can access members of a different form from the original one I am looking forward to hearing from you!I Hi, the easiest solution would be changing the button's Modifiers property to Public, which will make the button visible outside the form's scope. However, it's recommended that you do this kind of things by exposing special properties, like: The code in Form1: ...Show All
Windows Forms Grabbing data from a control on a window
I posted this on the win32.programmer.ui newsgroup but need a quicker answer. I have some c# which is using the user32.dll to get the window information. But I need to provide a class name and get back the text of a control inside the window I have the handle for. so I need something like.... getControlText(IntrPtr hWnd, String classname, out mytext) where hWnd will be the hdnale for the window, classname is the classname of the control and mytext will get back the text in that control. or if I could get the ID of the control based on a classname and then use the id to grab the text, that of course would work too. int getControlId(IntrPtr hWnd, String classname) getControlText(IntrPtr hWnd, int controlId, out m ...Show All
Visual C# Show richtexbox search result
Hi, I want to search for a string on a richtextbox and I want that if the string found is not visible, the scroll bar should move to the line of that string. How can i move the scrollbar to a line is there any method for that tkns There is no method to select text and scroll to it in one operation but you can first select the text and then call ScrollToCaret to cause the control to scroll to where the selected text is. private void btnSearch_Click ( object sender, EventArgs e ) { int nIdx = txtText.Text.IndexOf(txtSearch.Text); if (nIdx >= 0 ) { txtText.Select(nIdx, txtSearch.Text.Length); txtText.ScrollToCaret(); } else MessageBox .Show( "Text not found." ); ...Show All
Visual Studio Tools for Office publishing excel values as HTML using VSTO
Hi, I have a C# VSTO application that grabs values from database and display reports in Excel showing market positions and Profit Losss figures. Does VSTO provide any functionality to display some of those calculations as HTML so that these figures can be viewed on company intranet that way not everyone in the company needs to have this excel sheet running all the time..user can simply view relevant figures on HTML. Thanks, Thanks, great..that was easy.. I saved the worksheet as HTML and selected the "Add interactively" option. My Excel worksheet keeps on updating every second or so..its almost real-time...but the published HTML does'nt get updated itself even though I selected publi ...Show All
Visual Studio Express Editions System Tray icon text?
Im making a simple clock with a system tray icon and I cant seem to write the Tray Icon text right ~~~Code----------------------------------------------------------------------------------- Public Class Time Inherits System.Windows.Forms.Form Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = Now.AddHours(16) 'Australia Label4.Text = Now.AddHours(3) 'England Label2.Text = Now.AddHours(8) 'Iraq, Baghdad End Sub Private Sub Time_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Timer1.Enabled = True Timer1.Start() NotifyIcon1.Text = "Times: " & Now.AddHours(3) + Now.AddHours(16) & Now.AddHours(8) NotifyIcon1.Visible = True En ...Show All
Visual J# JAVA LiveConnect to J# JavaScript call translation
Hello, I’m translating a set of JAVA applets to J#, using Visual Studio Express J# 2005. I found an excellent set of instructions in Lab 7 at http://msdn.microsoft.com/vstudio/java/migrate/workshop/default.aspx . They state that you start a new project, perhaps calling it TranslateApplet, delete the initial Class1.jsl file, insert your JAVA file, which might be called TestApp, build the result, take out the resulting dll file in subdirectory bin, and use it by altering the applet tag to an object tag that points to it, as in < object height = '200' width = '320' id = 'TestApp' CLASSID = " clsid:a399591c-0fd0-41f8-9d25-bd76f632415f " vjscodebase = ' ./bin/Release/TranslateApplet.dll#TestApp ' >&l ...Show All
Visual Studio Refresh snippet manager at runtime
Hi, is any way to acces the snippet manager, and rise an refresh event or something like that thanks dumian Hi, I have asked about an method to call SnippteManager refresh command or any other event that refresh the snippet collections, becase of the following case. if you add manual or programmaticaly an snippet group (ex. office development or any other) to one of the snippet languages that are registred, the group it is dispalyed in the snippet manager after restarting of visual studio, not after calling "Insert Snippet" or in the manager dialog itself. with an single snippet under one existing group the same scenario it is displayed correctly. regards, dumian ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to load textures embedded in a model file using a custom importer
I have a Q3 BSP loader and want to build the lightmap data during the import stage, however while i can build the data into a Texture2DContent, There seems to be no way to do anything with it - the BasicMaterialContent class has a Textures collection, but seems to require an external reference to a filename. Any ideas N I can load and manipulate the data in the class fine. I was simply wondering if you could add the texture to the textures collection thus automatically binding it to my shader. Looks like I'll just have to serialize the texture and load at runtime as suggested. Cheers N ...Show All
Smart Device Development adding a hyperlink to a dialogbox in vc++(mfc)
hi all, i have a requirement of adding a hyperlink (basically a URL say " www.google.com ") to my dialog box. could anyone guide me as to how i can do that i have seen some samples which say i have to add an underlined text and simulate (make it work like) a hyperlink but it does not tell me how i can connect to the site if i'm giving the URL of the site. its kind of urgent... any illustrations would be of great help... thanx in advance... cheers kulkarni Hi, I think you are looking for this http://www.microsoft.com/msj/1297/c1297.aspx . The basic idea is to shellexecute the contents, which shall take the appropriate action by firing the default application attache ...Show All
Visual Basic #if directive on custom user control
Good morning, In a custom user control's load event, I have some code that I want to run when the program starts but not when I drop the control on a form. I suppose I could put a method in the control and call it from the main forms load event (such as initializeMe()) but I was hoping for something a little more elegant. Is there something like the #if debug directive, that would only be true when the control is dropped on a form Thanks. You can use the control's DesignMode property to determine if you are currently hosted in a designer... Best regards, Johan Stenberg ...Show All
Visual Studio 2008 (Pre-release) Resources bug?
the following works, if the highlighted section is removed. why <Window x:Class="WindowsApplication4.Window3" ... xmlns:sys ="clr-namespace:System;assembly=mscorlib" xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" > <Window.Resources> < DataTemplate x:Key = " dt " > < TextBlock Text = " test " ></ TextBlock > </ DataTemplate > <x:Array Type="sys:Int32" x:Key="myList"> <sys:Int32>1</sys:Int32> <sys:Int32>2</sys:Int32> <sys:Int32>3</sys:Int32> <sys:Int32>4</sys:Int32> <sys:Int32>5</sys:Int32> &l ...Show All
Visual Studio Team System Team Build & WAP - Only drops DLL-files, not any of the content - bug or by design?
I finally got my WAP to be successfully built as a Team Build (which got references to files in another Team Project, so I had to mess around in TFSBuild.proj). But in the Drop folder I only got a Folder called Release with the binaries (the DLL files). What happened to all content files Aspx, ascx, jpg, gif, folders and so on A quote by ScottGu from 17 april 2006: "Yep -- we will support team build . There is an issue with the current RC with team build not copying content files." This sounds like WAP would support Team Build in version 1.0. If not.... how should I get the content files in the drop folder What is the command to copy files And where should I put that command Is there a tool for the Team server build to h ...Show All
Visual Studio Express Editions How to test for vb.net framework?
Please give me a vb.net code snippet so that if my exe file is run on a system without dot net framework installed, I can display a friendly message instead of the crash they are getting now, maybe displaying a link to where they can download it Or is this a catch 22 Thanks, Ron in Roochester If you use the ClickOnce install feature of VS Express it will ensure the client computer has the proper .NET framework installed. http://msdn.microsoft.com/netframework/windowsforms/learning/features/clickonce/ ...Show All
SQL Server SQL 2005 Uninstall/Install Problem WMI Configuration related
Hi, I'm the following encountering WMI error message when invoking SQL2005 setup. The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine CAPRICORN Error:2147942405 (0x80070005). For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=setup.rll&EvtID=70342 I'ver found other postings related to WMI errors and tried the WMI fix batch, but to no avail. I noted the error code I have is 2147942405 which is different from other postings. And from examining setup log generated, this seems to be security related, but cannot find much help combing thru msdn/google, etc Any help is greatly appreciated. -Jam ...Show All
