davehomebrew's Q&A profile
Internet Explorer Development IE7 and Right Click Menu
I have an IE explorer bar which makes use of a Right Click menu option. The right click menu option is implemented the usual way by creating a new key under HKCU\Software\Microsoft\Internet Explorer\MenuExt\<menu text> and this menu is pointing to a file in the local file system. This file is basically a VB Script file which parses the highlighted text passed down to it from the browser and uses that text as a query parameter to lauch another URL from the server (using external.menuArguments.navigate(url)). My Explorer Bar captures this navigation, stops it in the main browser and relaunches it using IWebBrowser2.Navigate so that the URL will show up inside my Explorer Bar rather than the main browser window. Eventually this new URL ...Show All
Smart Device Development when a socket listen on ppc 2003 what is the correspondant port on pc?
I have one ppc 2003 connected through an USB cable to a pc (activesync 4.2) but i can't find any way of connecting (sockets) from a pc app to a ppc one that is listening... Is there a port translation between them example: TcpListener mylistener = null ; try { mylistener = new TcpListener ( IPAddress .Any, 2072); } catch {} mylistener.Start(); TcpClient myclient = new TcpClient (); while (!mylistener.Pending()) { Thread .Sleep(500); } myclient = mylistener.AcceptTcpClient(); On pc i think ppc Ip is 127.0.0.1 (local loop) but what about the 2072 port If you mean you're using 127.0.0.1 on PC as device’s IP, that most certainly won't work. This IP is indeed local loop and means &q ...Show All
.NET Development convert string to an io.stream
Hi I've got a text string which I need to convert to a system.io.stream. How do I do this (in VB.net - 2005) Thanks Bruce Using memoryStream As New MemoryStream() Using Dim streamWriter As New StreamWriter(memoryStream) streamWriter.Write("your string") streamWriter.Close() End Using End Using ...Show All
Visual C++ Other lanuguages (Japanese) strings in quickwatch while debugging
Hi everybody, I am seeing a peculiar thing, i.e when I debug I getting japanese strings in Quickwatch while debugging a VC++ Project in wchar_t array. I using wsprintf(pExeFile,(LPCWSTR)"%s",pModuleFile); If I use char array instead of wchar_t it is showing the following error. The error is error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [512]' to 'LPWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Pls help me in resolving this, Thanks and regards, Bharath .k Hi , Thanks for the reply, I am using array of wchar_t wchar_t pExeFile[512]; wc ...Show All
SQL Server Problem ODBC connection....
I have a porblem which windows 2000 couldn't connect to SQL server 2005 through ODBC. But I have no problem with the rest of my windows XP pro. Please help. thanks I think I have faced the same problem. All you need to do is to install MDAC 2.8. This is because SQL 2000 connector in windows 2000 is not there or not working properly. Install MDAC 2.8 and it shall work. For windows xp, you dont have to because by nature it already have mdac 2.8 components. ...Show All
Visual Studio Error Deploying to Vista
I have a VS2005/VB desktop application that uses the built-in version of CR. When I run the package (msi file) on a WinXP system all goes well but when I try it on a Vista (Business) system I get a series of errors indicating that various CR related dlls could not be registered. The error returned is always something like..."c:\Program Files\Common Files\Business Objects\2.7\bin\ExportModeller.dll failed to register. HRESULT -2147010895" Do I need to do something different in VS to support Vista Failing to register usually means lack of permissions to the registry. Make sure you are logged in as administrator to the machine. I have not used Vista personally, but I have heard that the permissions, especially to the reg ...Show All
Audio and Video Development Scaling with Media Foundation transform
Hi I'm trying to write a transform that among other things does scaling. To Test it I'm using the PlaybackFX from the Media Foundation samples. The problem I encountered in is that in the transfrom filter it looks like the other parts of the topology is ok with the scaling (I'm getting SetOutputType() with the scaled size), but in the player it doesn't seem like working. I tried to get the video size using IMFVideoDisplayControl::GetNativeVideoSize() and I'm getting the original size before the scaling (the MSDN describe this function as a way to get the size prior to any stretching by the video renderer, so I expected it to be the scaled size). I also tried to set the video size to the output size of the ...Show All
SQL Server Can I use 4 Gb memory for each instance of Standard Edition?
Hello! I have installed SQL Server 2005 Standard Edition on 64 bit Windows 2003. My question is if I can use more than 4 Gb Physical Memory Can I install another instance of SQL Server 2005 Standard Edition and use another 4 Gb Physical Memory for that instance Is the limitation of 4 Gb memory usage for the whole SQL Server or for each instance Yes if its a 64 bit then need not use AWE settings. Check on SQL Server properties about the memory settings to see how much is allocated, also run SYSMON to capture the resource usage. ...Show All
SQL Server How to lauch Report Builder Tool from Windows Application.
Hi, We know that Report Builder can lauched in the following 2ways. 1. Using the following url http://localhost/ReportServer/reportbuilder/reportbuilder.application 2. Through Report Manager We have windows application (.net) and we would like to integrate and launch Report Builder from this application. What other ways you suggest. thnaks, ravi ...Show All
.NET Development Calculating with measurements
Hi, I want to make an application which asks for example "how much is 23 centimeters in millimeters". This should be random and showed in a label and the answer should be typed in a textbox. The problem is, i don't know how to randomize the measurements and how to get for example the "23 centimeters" and "millimeters" in a string. I hope i made myself clear about what i'm trying to do. Any one any suggestion Thanks in advance! well to get random numbers, use the Random class and use the Next() method to generate a number between 2 values Random r = new Random(); int randomGenerated = r.Next( min, max ); then from this I guess you do your calculations to conver ...Show All
SQL Server cant connect to MSSQL Server Express 2005
Hi, i have installed MS SQL Server Express 2005 on my local machine. Also the managment Studio. I can connect to the MS SQL Server Express 2005 with my c# programm and with the mangament studio. I have in Windows/system32 the file ntwdblib.dll version 2000.80.2039.0. The TCP/IP and Ip Protocl are active. But i cant connect with php to the local MS SQL Server Express 2005. My php code is: mssql_connect('192.168.0.2,1433', 'martin', ''); I get the return code Warning : mssql_connect() [ function.mssql-connect ]: Unable to connect to server: 192.168.0.2,1433 in c:\Inetpub\wwwroot\Projekte\Skripte\mssql_connection.php on line 2 Does anyone know what i made wrong or i have forgotten mfg martin Are you trying to use ...Show All
Visual Studio 2008 (Pre-release) Complex DataTemplate doesn't work
Hello! I tried to make a ListView with a complex DataTemplate, but when I tried to start a Storyboard in the DataTemplate to animate some content of it, I got many errors… So I built a small example… < Window x:Class = " WPFBug.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:d = ' clr-namespace:System.Windows.Data;assembly=PresentationFramework ' Title = " WPFBug " Height = " 300 " Width = " 300 " WindowStartupLocation = " CenterScreen " > < Window.Resources > < XmlDataProvider ...Show All
Windows Forms How can make one cells value changed with other cell value same time in DataGridView ?
In DataGridView control , there are more than 3 cell in a row, like int i = invoiceDetailsDataGridView.CurrentCell.RowIndex; DataGridViewRow row = invoiceDetailsDataGridView.Rows ; row.Cells .Value = Convert.ToInt32(row.Cells[3].Value) * Convert.ToDecimal(row.Cells[4].Value) - Convert.ToDecimal(row.Cells[5].Value); how can i make the Cell .value changed with the Cell[3].value changing same time i can make Cell .value changed by leave the current cell (Cell[3]) and click other cell of the DataGridView. I want all the values changed at same time with out exit the current editing. I searched many times in this forum, but didn't find any advice worked. I tried a lot events of DataGridView to make ...Show All
SQL Server Changing FormatString for attribute of a dimension
i can't change the value of a format string for attributes of dimensions. For Cubes is easy, right-click on the measure -> Proprieties -> FormatString but for the attributes of a dimension I cannot find where I can change this proprieties.. Someone can help me thank you Riccardo >I think wildthink wants a leading zero, i.e. 0.0001 instead of .0001 yes!! thank you for your answers. but now i have a new question.. how can I make a named calculation for obtained what I want In DSV if I do "Explore Data" on the table of my dimension I can see my attribute correctly (with the leading zero), how create a named calculation to see this zero also when I brow ...Show All
Visual Studio 2008 (Pre-release) ContextMenu for GridViewColumn
Hi, Can't we add ContextMenu for GridViewColumn in ListView . i need this for providing the facility to change the GridViewColumn Header at runtime. Thanks & Regards, Sundaraguru GM Yes. You can have ContextMenues where you want them. Concerning GridViewColumn you probably need to do it with a new HeaderTemplate (if it's in the header you want the ContextMenu). Best regards, Thomas Andersen ...Show All
