lsb_lsb's Q&A profile
Visual C++ Variable definition using parenthesis-syntax
Hi guys! I ran into a very strange error when trying to compile the following code: char ** const freelist(p_freelists+index); //freelists is of type char**, index is of type int The code was ported from a gcc-based environment, where it compiled fine. However, under VC++ 2005 this throws an error C2061: syntax error : identifier 'p_freelists' On the other hand, when changing to the (more or less) semantically equivalent: char ** const freelist = p_freelists+index; everything works fine. My question is: Why does the code using the parenthesis-syntax not compile Regards, A. Weis Thanks for the quick replies. Since I do not seem to have the proper rights to submit a bug via the Connect site, I'd ...Show All
Windows Forms Find feature in Web Browser control?
Is there anyway to code a Find feature in the .NET web browser control Matt private bool FindText(string pstrFindText, bool pbMatchWholeWord, bool pbMatchCase) { bool bFindOperationStatus = false; IMarkupPointer iMarkupStartPointer = null; IMarkupPointer iMarkupEndPointer = null; IHTMLSelectionObject iHtmlSelectionObject = CurrentWebBrowserHTMLDocument.selection; IHTMLTxtRange iHtmlTxtRange = iHtmlSelectionObject.createRange() as IHTMLTxtRange; IMarkupServices iMarkupServices = CurrentWebBrowserHTMLDocument as IMarkupServices; iMarkupServices.CreateMarkupPointer(out iMarkupStartPointer); iMarkupServices.CreateMarkupPointer(out iMarkupEndPointer); iMarkupServices.M ...Show All
Software Development for Windows Vista More vista bugs ? How do you determine if UAC is enabled ?
Hello, Just testing with Vista RC2 (downloading RTM as I write this) and I would like to know if anyone knows how to correctly determine in a c++ program whether UAC is currently enabled on the machine Also when UAC is turned off, and one is not logged in as an administrator, "RunAs" in ShellExecute() no longer seems to allow the execution of a task as a full admin. This seems to apply to Microsoft's own applications too. Try running the task manager (CTRL+Shift+Esc) on a none admin account, with UAC turned off, and then click on the shielded "Show processes from all users" The task manager restarts itself, and nothing else happens. If the shielded button does not work, then why is it shown A jolly poor show IMHO. Jus ...Show All
Visual Studio Tools for Office Is there PIA documentation that corresponds to reality?
I'm just getting started with the Office PIA's in VS2005/C#, so maybe this is easy: But the only documentation of the PIA's I could find is at http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.excel.worksheets.add(VS.80).aspx And it doesn't match what my compiler is telling me. E.g., supposedly I can call Worksheets.Add() with no arguments, but my compiler says that's not possible. Furthermore, if I DID want to use the supposedly optional arguments the documentation at this site gives me no clue as to what the "object" arguments should actually be. Can anyone point me in the right direction for PIA documentation that will actually work Thanks! The PIA documentation is ba ...Show All
Smart Device Development Stop Bluetooth Headset from Ringing
Can anyone tell me if they know of a why to STOP the bluetooth headset from ringing I don't want it to do the Ring tone thing thru the Headset... is there a registry entry i can change to stop this Thanks, From what I can tell, the Pocket PC phone sends AT commands to the BT headset in order to make it ring. What I don't know is what file does that Or even if there is a way to modify it or even make a new one Any help, or even directing me some place that might be able to help would be greatly appreciated! Thanks, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Embedded Resources?
Hi guys, I have a quick question. For my project I am creating a game library to go along with my game. In this game library are going to be some components that will need shaders to be drawn. My question is, can I compile these shaders as an embedded resource in the game library project and still be able to use them on the XBox 360 Thanks! Xbox uses a different version of the shader compiler to Windows, so you will need to compile your shaders twice, once for each platform, and embed the appropriate one for each version of your DLL. The easiest way to do that will be using the content pipeline to build an effect, then embedding the pipeline output file as a resource. ...Show All
SharePoint Products and Technologies MOSS 2007 RSS Viewer's XSL Link not working
Has anybody been able to get the MOSS 2007 RSS Viewer Web Part to work with the XSL Link I have an RSS feed file and a style sheet in the same anonymously accessible location. It works fine if I just point the web part at the RSS feed. If I try to use the XSL link, it fails every time with this error in the logs: RssWebPart: Exception handed to HandleXslException.HandleException System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform() I started by using the default XSL copied from "XSL Editor..." in the web part. ...Show All
Software Development for Windows Vista Binding list to activity property
We are changing the Rehosting application. We would like to bind a list of possible property values to our custom activity property. The property when added to the workflow does not show the list of properties as expected but the ... button to "bind it to an existing activity property" dialog. Can you please give more information about what you are trying to accomplish What is the type of your list, e.g. List, IList, List<> How are you adding the property to the workflow ...Show All
Windows Forms OracleClient with Clickonce Deployment
I am trying to deploy an application using Clickonce. I previously was using OleDbConnection to connect to an oracle database. However i would like to use the System.Data.OracleClient namespace instead. Upon publishing the application the users get an error when they try to connect to the database. Do i have to install the oracle connectivity files manually on the user's computer Is there a way to distribute the needed files as prerequisites Thanks for your help. In your case I think you just have to install the oracle client software on the client. In the end I used OleDb instead of Oracle to get past my problem. ...Show All
Visual C# Verifying if a cd-rom driver is opened or not
Hi, I'm developing an application that opens and closes the CD-ROM driver with a button. But I want to use a button only. When it is opened, the button closes, when it is closed, the button opens the driver. How can I verify if the driver is opened or closed (Just to remember: the user can open via software and close physicaly, so a boolean value would not work). Thanks Hi, Unfortunately not. My app is already opening and closing the driver. But with 2 buttons, and i want it to use only one. I'm doing more research now, if I find out, I'll write here. But thanks anyway. OScar EDIT: I've made some researches and found out that it is impossible to know that. Even Windows doesn't know. ...Show All
Windows Live Developer Forums Humongous Javascript Api File.
Hi, I am using v4 of the virtual earth control. But each time I open the page to view the map, it takes an age to load. I've used fiddler to detect the file sizes, and it seems the main file with the core script in it is 436,179 bytes, which seems huge. http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js -- 168 http://maps.live.com/veapi.ashx v=1.3.1115150037.31 -- 436,179 Also the files are set to not cache, which means the files have to be downloaded each time! I checked the files for maps.local.live.com and it does not download one big file, but instead multiple small files. Ive summed the bytes for the whole page, which comes to about 582,228, but the actual mapping components only seem to add up to ~178,000 bytes, which ...Show All
Game Technologies: DirectX, XNA, XACT, etc. telling the difference between xbox 360 and pc
Is there a way for your game to detect what environment it's running in (eg 360 or windows) There are some environment specific issues I want to play with. I guess this is a little premature since we can't compile/export to the 360 yet. Just create different build configurations, one for Windows, one for Xbox, one for C64, etc. In each build configuration you can set whatever defines you want. No need to wait for the system provider to do this for you. Cheers, Leaf. ...Show All
Windows Forms design verbs in control
hellow any ideas how to add design verbs feature to contorl but not in design-time but in runtime See this project and this . ...Show All
Software Development for Windows Vista Easier adding of paralell branches and brackets
Hi All, I'm a beginner in WWF, and I should implement an SQL-like(not for an SQL database, but with a similar language) query builder workflow. The query should contain only a SELECT with AND, OR, NOT and brackets. The selection is based on different characteristic, which are listed in a grid. After short studying of some sample programs and the help, I have the following questions: 1. How can I insert the dragged activity paralell to the current selected activities or to the activity bellow it Detailled: In the samples I have seen only one way for inserting paralell activities. You take a CompositActivity or ParalellActivity from a toolbox, and drop it into the designer. After that you take an Activity from a to ...Show All
Windows Forms How to change Text property of label control from a thread
Hi Can anybody help me to change the text property of label control from a thread.(when a thread is running I need to change the Text property of Label) Thanks vizai Hi, Check this one.. may be this should help you... Dim ChangeLabeTextInvoker As New MethodInvoker( AddressOf changeLabelText) Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objThread As New System.Threading.Thread( AddressOf differentThread) objThread.Start() End Sub Private Sub differentThread() Me .Invoke(ChangeLabeTextInvoker) 'Synchronous 'Me.BeginInvoke(ChangeLabeTextInvoker) 'Asynchronous End Sub Private Sub ch ...Show All
