Johan Andersson's Q&A profile
Visual Basic simple string manipulation pda
I've got a string "6/78=12.34" i need to get the value to the right of the = sign how would I do that Mitch string manipulation I've got a string "6/78=12.34" i need to get the value to the right of the = sign how would I do that Then convert the string to decimal.. And writing this for the PDA!! Mitch ...Show All
Software Development for Windows Vista How to extend compiled workflow through XOML?
Two questions if any body can help then thanks in advance. 1. I've seen many posts which says that it isn't possible to pass parameters to a xoml only workflow, why does the CreateWorkflow signature accept a dictionary object for parameters I'm guessing there has to be some way, that I have yet to be seen and might be answered in question 2. 2. I was wondering if possible and how to extend a compiled workflow engine that takes parameters by creating a new xoml only workflow. I need to pass parameters to a xoml only workflow that is of a compiled workflow engine type. Can you let others participate in the solution How did you get it to work Thx Chris ...Show All
Visual Studio About K Keyword of Sandcastle
I use sandcastle December 2006 CTP. The sample was compiled. Then, there is a question. The HTML source was opened on the page of 'StoredNumber.Increment method'. 1.Why are you in K key word , saying that no "StoredNumber.Increment method" it, and ".Increment method" <MSHelp:Keyword Index="K" Term="Increment method"></MSHelp:Keyword> <MSHelp:Keyword Index="K" Term=" .Increment method"></MSHelp:Keyword> 2.How should I do though I want to do the method name of the header to the mark of " [ClassName] . [MethodName] method" FC - Shiro: It looks like you've found a bug in our K-keyword generation logic. (In case you want t ...Show All
Visual C++ Mixed Code Recomendation
Hello experts! I have this silly question: I'm developing an asp.net application (C#) which depends on a C++/CLI dll (business layer). Mixing managed and unmanaged code is pretty simple in C++, but do you think there could be problems if a define a class like this: public ref class MyClass { private: int i; public: MyClass(int i) (i); } or should it be defined as follows: public ref class MyClass { private: int^ i; public: MyClass(int^ i) (i); } I've tried both versions from C# and they seem to work ok, but I'm not sure if this can become a problem later... I also tried removing the "ref" keyword to make it a native type but this way it seems like it's not possible to create an instance fro ...Show All
Software Development for Windows Vista elevate(UAC) activeX in vista?
Hi, We have an activeX dll which does file/registry writing and spawns childs process which also seems to need elevated UAC access. I have searched net, and found you could elevate executables by embeding 'manifest' file into the executables. I've also found analyzing tool 'standard user analyzer' for exe files, but it won't help me with activeX What should I do for activeX to be able to perform restricted writing and such One solution I found is that I could run IE as 'Run as administrator', and the activeX control could perform all neccessary actions. However, I don't want the user of the activeX to do that. Any help will be much appreciated. Thanks On Windows Vista, a process contains a single token an ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Sprite?
Ok i know I have found this topic some where in this forum but now I can't find it. What do I use to create a 2D Sprite in C++ with D3D9 Yes, ID3DXSprite is good... and look at this nice goody by AGPX ... Initialize with: ID3DXSprite *spriteDrawer = NULL; D3DXCreateSprite(pd3dDevice, &spriteDrawer); Load your sprite with: IDirect3DTexture9 *sprite = NULL; D3DXCreateTextureFromFileEx(pd3dDevice, L"c:\\MyWellSprite.png", D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT_NONPOW2, 1, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 0x00FF00FF, NULL, NULL, &sprite); All the pixels of color (255, 0, 25 ...Show All
Visual Studio Team System webtest results
i run a webtest for a homepage.it displays response time as 6sec,again i run the same test,it shows me 0.36,again i run the test,it shows 0.24sec. which values i hvae to consider for the webtest of homepage. Hi Nares - the first time response time of your homepage must be higher because of a first time compile if you haven't precompiled your web site. The response times thereafter are an accurate indication of your response time. Note that the response time of your website will vary slightly based on different factors. Your web test can measure the response time at various points in time and display interesting results about these variations. Check here for more info. - Anu ...Show All
SQL Server Local cubes connection
Hello, I have created 3 local cubes which resided in the same .cub file. The cubes created from AS 2005 cubes. How can I make ADOMD connection to all 3 cubes at the same time in my client application (C#) The problem is that Initial Catalog (database name) in connection string in case of local cubes is the same as the cube name. Thanks, GB In ADOMD you don't connect directly to any specific cube. Once you have connect to the database (catalog) you just specify which cube you want in the query. So you only need the one connection and you can use that to query any of the cubes in the catalog. eg SELECT measures.AllMembers ON COLUMNS FROM <CUBE_NAME> ...Show All
Visual Studio Express Editions Reserving a specified area on Windows Desktop
Hello to everyone ! I am currently trying to develop a self-testing application for Microsoft Word. I would like to be able to display my application's main windows at the bottom of the screen while the rest of the Windows Desktop be available for Microsoft Word. When I set my application's window "Always on top" other windows are displayed under it. What I want is to reserve that area of the desktop so that no other window is displayed there. Thank you in advance. ' The right way to do this is at the link below, but, as always, ' it's in C ' http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_progra ...Show All
SQL Server IIS and SQL Server 2005 Express Edition
hi Currently have SQL Server 2005 Express Edition installed. Wanted to install reporting services, but wouldn't let me re no IIS as I only have Windows XP Home Edition. My question is therefore: Is there any way of installing IIS to allow me to install Reporting Services for SQL Server 2005 Express Edition Many thanks Tim Leicester, UK Hi, actually there is none without breakign the licensing rules. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions Always Showing Status Strip
Hi! How can I make the status strip to always show at the bottom of the form even though the form is scrollable As for now, when I scrow, the status strip would be gone and it wouldn't stay at the bottom. Thanks Sam Did you put the form to AutoScroll to get the scroll bars What I think you might want to do instead is to put a panel on the form and put all the controls in that panel. The panel is a container control like the form is. Set the panel AutoScroll=True and Dock=Fill. This should allow the statusbar (that is added before the panel to the form) to remain visible all the time. I made a small test form like this New form Add StatusBar Add Panel, set AutoScroll=True ...Show All
Visual Basic Repeater control beta?
I've been coding my own repeater control (well it's specific for my app, anyways) when I came across this power pack site. While it's great news that this is in the works, is there anyway we could get our hands on a beta now I'd rather code my app to a powerpack control than build my own, even if the api isn't solidified. ...Show All
Visual Studio 2008 (Pre-release) Inherited Custom Image Control...
I've been trying all sorts of methods, searching Google, this forum, MSDN, etc. for successfully creating and using a custom Image class, inherited from the base Image class... public class SidebarIcon : Image { private string iconTitle_x; private string iconPath_x; public string iconTitle { get { return iconTitle_x; } set { iconTitle_x = value; } } ... } Now, going from there, or taking a totally different approach from making this simple custom control... I want to use it in XAML just like I can the Image class, but with those added properties, iconTitle, and iconPath. I've seen and tried samples all over like, <cc:SidebarIcon/>, etc. But ...Show All
Windows Forms IComponentChangeService.ComponentChanged doesn't fire
Hey. We have a little problem regarding <subj>: we have a DesignerSurface and a propertyGrid to show the data on a selectedObject (IComponents, as the case may be). Upon changing a property value in the PropGrid - the IComponentChangeService.ComponentChanged event fires, but when changing a property normally in code (either from glyphs or from "external" code) - the event doesn't fire. Is this by design I saw in the reflector that normal (internal) glyphs do not change properties directly but call on a PropertyDescriptor.SetValue(). Is this the only way to get this to work (I should mention that I talk about properties of existing classes, and I cannot add the RefreshPropertiesAttribute hardcoded, or (as it ...Show All
Smart Device Development Create Image with Scanner
How to connect Scanner using Visual Basic and create Image You guys have the code yet. Can you email it to viceroy6@hotmail.com Thanks ...Show All
