renealejandrov's Q&A profile
Visual C++ Inserting Char into textbox
Hello everyone... Need some help in visual c++. I need to insert nito a textbox a hexadecimal value. I am holding it in a char variable and the only way i know how to insert char variable into a texbox is by using ToString() function, but that inserts the ASCII number representing the Hexadecimal. Help me out please. Yosef Karasik wrote: [...] I am holding it in a char variable and the only way i know how to insert char variable into a texbox is by using ToString() function, but that inserts the ASCII number representing the Hexadecimal. [...] Actually I think it is in decimal. May be you should consider one more variant of ToString function -- static m ...Show All
Visual Studio Express Editions How to tell is Capslock is on
Hello Ive noticed that in word, it shows in the statusbar if capslock is off or on. How do i go about doing this also any ideas on scroll lock and num lock Thanks v. much, James yes its in C# you can also use the My.Computer.Keyboard.CapsLock property to determine if the capslock key has been pressed! :-) if you need the API invoked, let me know and i will try to translate it for you ...Show All
SQL Server 2 similar queries - different results! Why?
SSAS2005. Tell me please, why this query SELECT { [Measures].[Internet Sales Amount] } ON COLUMNS , { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] WHERE ( [Product].[Category].&[ 1 ] ) returns: $29,358,677.22 but SELECT { { [Product].[Category].&[ 1 ] } * { [Measures].[Internet Sales Amount] } } ON COLUMNS , NON EMPTY { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] returns different result: $28,318,144.65 If I replace [Product].[Category].&[ 1 ] on [Product].[Product Key ].&[BK-M18B- 40 ] then results are identical! $25,919.52 Thanks. This is a quote from ProClarity's white paper: &qu ...Show All
Visual C# Setting cookies in WebBrowser control???
Is this possible Cookies are associated with a document. See HtmlDocument.Cookie . An HtmlDocument can be retreived via the WebBrowser.HtmlDocument property. ...Show All
Visual Studio 2008 (Pre-release) TreeListView dosen't work with HierarchicalDataTemplate
Hi everybody, I want to create a TreeListView-control like the "property-tree-explorer" in XAMLPad. So, I started using the TreeListView implementation from the ATC-Team and removed the explicit declarations of TreeListViewItems in the XAML-file. Instead I set the ItemsSource-Property of the control to an oberservable collection (which has an ObservableCollection for second level items in it)and set the CellTemplate of the first column to an HierarchicalDataTemplate. Here's the XAML-code of the TreeListView <l:TreeListView x:Name="TreeListView"> <l:TreeListView.Resources> <HierarchicalDataTemplate x:Key="CellTemplate_Name" DataType="{x:Type l:TestType}" ...Show All
.NET Development Unsafe code compilation
Hi, will MSIL code be generated for the block of unsafe code in a program or it would be machine code will the memory for the data members in the unsafe code be allocated in the Managed momory or somewhere else Regards, Benin. 1.Yes, MSIL is generated for unsafe code blocks. This works because MSIL has special instructions that allow pointer manipulation. 2.Unsafe code block or not, all the memory allocated using the new operator will be in the managed heap (or stack if we are talking about local variables of some value type). The only way to allocate unmanaged memory is by pinvoking some Windows API or using Marshal.AllocHGlobal. ...Show All
Visual C# question for using word
hi im using c# app 2003 and i want to open a word document for printing only i searched for command line switches and....nop. so i guess i have to add the word object but !!! i dont want the 3 dll files which is sitting at my debug folder i want to be un-depended with these 3 dll so i can use word how can i do it you can use Process Class to start printing command. But this will start default print command (you cannot be sure it will be printed with MS Word) here are some examples: Process myProcess = new Process(); // Get the path that stores user documents. string myDocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); myProcess.StartIn ...Show All
Software Development for Windows Vista more than one Video Renderer, the get_FullScreenMode() always return E_NOTIMPL!
In my program there are two video render filters, one for local window and the other for remote. However, when I did the following: IVideoWindow *pRemoteVideoRendererVW=NULL hr = Graph.gcap.pFg->QueryInterface(IID_IVideoWindow, (void **) &pRemoteVideoRendererVW); if (hr!=S_OK) { Log.Log(1,"IID_IVideoWindow failed %08x",hr); return; } LONG lMode; hr= pRemoteVideoRendererVW->get_FullScreenMode(&lMode); if (hr!=S_OK) { Log.Log(1,"CCyklOneDlg::OnFullscreen get_FullScreenMode failed %08x",hr); goto exit; } Everything went through without any error. Excepting the pRemoteVideoRendererVW returned by the QueryInterface() does not guarantee that it was the remote windows. It sometimes returns the local vid ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar .fbx models.
Just me, or are the models used in spacewar needlessly huge in dimenisons and in vertex count In wireframe render mode it's easier to see - the ones with gun barrels that have cooling holes are individually modeled that way - it's not like you can see that level of detail. The flying saucer one has an enormous number of verticies can could have been welded away. I haven't seen anything as to what's 'right sizing' a model for xbox360 but these have got be excessive for the level of detail that's shown in game. Dr.9 wrote: Ok, enough whining. Don't get me wrong, XNA is a _great_ start . Some features needed, and the demo's are a little lack-luster. Hopefully the xna team takes some advice (and ...Show All
Visual Studio VS 2005 Addins to right-click menu
Hello guys, I try to create VS2005 addin to Team Explorer right-click menu. The idea is: When you open Source Control Explorer, choose the project and right-click on it you'll get the menu. You can choose: <Get Latest Version> and etc from this menu. My purpose to add my own command (Ex: Custom Get) to this menu. Most of the topics I've found in Google are describe how to add command to main command bar - like Tools-><Your command>, but I haven't found anything about right click menu. Please help.... Thanks See: Why are there two .Addin files http://blogs.msdn.com/craigskibo/archive/2004/07/30/202562.aspx ...Show All
SQL Server SSAS KPIs not showing up in Excel 2007
OK, I realize this isn't an Excel forum, but this is at least somewhat SSAS related. I've defined some KPIs in Analysis Services. However, I can't seem to get them to show up in Excel 2007. All the other measures and dimensions of the cube are there. The KPIs show up in the browser in BI Studio. Is there something I'm missing here It should just work, right Hello. I recommend deploying and processing the Adventure Works cube, sample BI-Project, where you have several KPI:s defined. I have used this cube in Excel 2007 and the KPI:s will show up. When you have established this, that you can see the Adventure Works KPI in Excel 2007, your problem can be about syntax or KPI-bounds that overlap. ...Show All
SQL Server Linked Server B/w two SQL SERVER 05 instances (on differnt pc;s) VERY URGENT
I created a linked server named CONFUSION (as the machine name with perticular IP say a.b.c.d) TESTED the connection by USE master GO EXEC sp_configure 'show advanced options', 1 GO RECONFIGURE WITH OVERRIDE GO EXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE WITH OVERRIDE GO EXEC sp_configure 'show advanced options', 0 GO CREATE TABLE #foo ( pingResult SYSNAME NULL ); INSERT #foo EXEC master..xp_cmdshell 'ping CONFUSION'; IF EXISTS ( SELECT 1 FROM #foo WHERE pingResult LIKE '%TTL%' ) BEGIN PRINT 'Feel free to use linked server.'; END ELSE BEGIN PRINT 'Linked server not available.'; END DROP TABLE #foo; I executed the above code and the result was ::: (13 row(s) affected) Feel ...Show All
Windows Forms Creating a non-rectangular window
I think this question is going to be in the wrong forum no matter where I post it, so I'm very very sorry in advance. I was just wondering, how do you go about creating non-rectangular windows without using visual c++ I'm just starting the process of learning how to program using windows, and so I think its important to understand how this is done instead of how to get visual c++ to do it for me. (I tried searching for this on google, and I found page after page detailing how to do it without writing a single line of code. Not exactly what I was looking for). Thanks, anmbia may this help you Irregular Shaped Form How do I create an Irregular shaped .NET Windows Form ...Show All
Windows Forms MDIChildren flickering very serious problem!!!
I am designing a MDI Application with the MIDChildren all in normall windowstate property. I create de (child)forms with a borderstyle.none, and make them a MDIChildren before I show them. This works OK, except that when the forms are created, they show up in the client area of the MDIForm, not maximized, with a caption, very shortly, before they are finaaly filling the client area. In other words, there is a short flicker when a new form is created and displayed. This process is most noticeable with a not-so-powerful PC (or is it a not-so-fast-display-card ). This phenomenon has been reported on several occasions in the newsgroups, but a cure has never been offered. I did some research and subclassed the MdiClient, overriding the WndProc ...Show All
.NET Development converting a normal xml to C#
i m new to xml and am using c# to System.xml lib to generate an xml file as shown below i m not sure how to go about it. could any one explain the following and also a way to generatein C# <wap-provisioningdoc> <characteristic type="Sync"> <characteristic type="Connection"> <parm name="AllowSSLOption" value="1" /> <parm name="Server" value="\\testserver"/> <parm name="Domain" value="as-domain" /> </characteristic> </characteristic> </wap-provisioningdoc> my attempt : XmlTextWriter xmlWriter = new XmlTextWriter(xmlFName,null); xmlWriter.Formatting = Formatting.Indented; ...Show All
