MSP.Saami's Q&A profile
Visual C++ ifstream _MyState = 2 during >> operations for all ints and bools
We just upgraded to VS 8.0, and software that works for VS6.0, 7.0, QNX, vxWorks, and Linux does not work correctly in VS 8.0 for some reason. Basically, we are parsing a stream from a file (standard stuff) into a structure. I have been using the debugger to track down the issue, and found that the _MyState flag gets set to a 2 for certain conditions, and then reading of the stream stops, and all future operations don't return any data. Our data: 0,1.23,0,12.34,56,2 (then crlf) Code snippet: char lnSeparator; arFileStream >> rcSignal.meValueExternalSimEnabled //bool >> lnSeparator >> rcSignal.mnValueExternalSim //float >> lnSeparator >> rcSignal.meRawExternalSimEnabled //bool ...Show All
Gadgets HTC files with gadgets?
I have been reading about consuming web services with javascript and it seems every example uses an htc file to accomplish this. Does this work the same way with gadgets I tried searching the forum but no results for htc. If anyone has an example that does this I would really appreciate it! Thanks in advance! Ok, I figured it out.. I didn't realize that any private members could not be used with web services! By removing the get return sequence and just setting the public string values it works perfectly! ...Show All
Visual C# Calling windows service from a web service
Hy! I've created a windows service, and now I need to communicate with it from a web service that is running on the local IIS. How could I do this Thanks, Bruno 1-way, but not just for start and stop it, I should be able to call some methods from this service. Sorry, it may be stupid question, but this is my first time to work with a windows services, and I'm not completely sure if I understand the way they work. So, any good reference to it would be helpful. Is it even possible to call methods from it, as I call them from some web service ...Show All
Visual C++ Text display problem with a CRichEditCtrl object
Hi, I mounted a CRichEditCtrl editor object on the View frame of a MDI structure and used its member function SetWindowText to display a CAtlString string (m_logText, shown as in the following code segment) in it. The code works perfectly with the Debug build of the program, but won't work with the Release build. Please help figure out a solution. Thanks. CAtlString m_logText; void CiSenseAutoMappingView::paintLogText() { m_showLogText = true ; m_richEditor.SetWindowText(m_logText); m_richEditor.SetModify(FALSE); Invalidate(); } int CiSenseAutoMappingView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; CClientDC dc( this ); CRect rect; ...Show All
Windows Forms How to trap keyboard event. like Esc and Delete etc.
in my case , i want the same ability like in VS IDE which is when on design surface, select a control and then press ESC ,the Selection Control will turn to it's parent control. i trying to add the messageFilter to handle the key event . but it will trap all key events in the application. Apperently this not meet my requirement, i just want the design surface handle the message. i have tried to handle Message Loop as well it doesn't work ; for example: System.Windows.Forms.Application.AddMessageFilter(_msgFilter); ...... public class MessageFilter:IMessageFilter { private BaseForm _owner; private const int WM_KEYDOWN = 0x0100; private const int WM_RBUTTONDOWN = 0x0204; public MessageFilter(BaseForm owner) { this._o ...Show All
SQL Server ODBC TCP/IP Dynamic Determine Port check box
Hopefully a simple answer: *editted for clarity* Where does the "Dynamically determine port" check box come from when creating a ODBC connection using TCP/IP in the client configuration Only shows up in the control panel/adminstrative tools/Data Sources (ODBC) when it is installed. I have 3 computers here that have it (they are for development) but I am finding my users desktops do not have the box and so I am getting errors trying to connect from their desktops. I am using Excel and Microsoft Access 2000 to connect to the server using the ODBC connection. I need my users to connect to SQL Server 2005 so I need the "Dynamically determine port" box checked to find the port. Tried typing in the port but that isn't ...Show All
Visual Studio 2008 (Pre-release) Fontsize relative to the window size
Is it possible to set the Font size so it sizes up and down with the size of the window If I have a UserControl with a heading (16pt) and a body (12pt) is it possible to have them resize if the application is maximized on a 800x600 monitor and on a 1024x768 monitor. So the font sizes grow the bigger the window is. Or have I just missed a Property Like many things in WPF you can do this with data binding. You could bind the FontSize of the text to the ActualHeight of the window, and use a converter to apply the appropriate "scaling". As to whether this is a "built in" feature or not - do any other systems behave this way Unless I'm misunderstanding what you're trying to do it sound ...Show All
Visual Basic Timed Forms
When a typical application starts it usually has a main form that shows, right How can I use VB 2005 close the main form after certain period of time and at the same time opens another form Please help me Are you trying to create a regular splash screen that appears for a certain time on startup, or will this form be opened later while the app is running If you're trying to create a standard splash screen, you can designate a form as the splash screen in the project properties for a VB 2005 project. There is even a way to change the amount of time that the splash screen will appear if you need to do that. ...Show All
SQL Server Can't register SSIS server in SMS...need permissions help.
I have a user who can't register the SSIS server in SMS. What permissions do I need to give him to allow this ... without making him sysadmin of course Yes, I found this online. Unfortunately, after all this I'm still getting an error. Could not get proxy data for proxy_id = 1 When I set up the credential, what kind of account should the "identity" be SQL or Windows What kind of permission should the "identity" have ...Show All
Visual Studio 2008 (Pre-release) Difference between SQLMetal and DLinq Designer
I have just gotten into using Dlinq and am not sure of the difference between SQLMetal and the Desinger...at first they seem to do the same thing...which looks like to create the class's for the tables. Correct Thanks Harold Technically speaking, they do the same thing. They generate entity classes to manage your database. But, there are few differences: 1) DLinq designer generates code different from the SQLMetal tool. Moreover, it contains at least a bug (see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=443175&SiteID=1 ). 2) SQLMetal doesn't provide table selection, it will create entity classes for each database table found in the target DB. Dlinq allows you to select single tables. ...Show All
Visual Studio Team System Import schema for dependent databases
I need to create a SQL 2005 database project for CLR enabled databases using the VS2005 tool for DB professionals. The import fails on cross-database references and domain accounts. Error 15401. How do I import related database schemas The import fails with this error first. Is there a way to ignore domain accounts that only apply to production databases I have 30+ user licensee databases in production that are dependent on the database for ASP.Net membership and an another user database called Assets database ( used to house documents and messages). How can I use the schema compare to push changes to the 30 user databases in production We are using SQL 2005 SP1 with 32 in dev and 64 bit in production ...Show All
SQL Server Getting Children of Parent Within a Table
I have a table Named 'Roles' which contains 'ID' and 'ParentID' fields. Some Sample Data is ID ,Name ,ParentID 1 ,Admin ,0 2 ,Manager ,1 3 ,Front Office User ,1 4 ,Supervisor ,2 5 ,Inventory User ,0 6 ,Human Resource User ,4 I would like to extract data of Parent and all children. SELECT b.[ID] as 'Parent', a.[ID] as 'Role' FROM Roles a INNER JOIN Roles b ON a.ParentID = b.[ID] and a.ParentID=1 which can return only. ID ,ParentID 1 ,2 1 ,3 My wanted form is ParentID ,ID 1 ,2 1 ,3 2 ,4 4 ,6 Like an organization tree, the top parent level can access all child level nodes. Sql 2005 support that feature. How can I access them in Sql2000 recursive function or store procedure Thanks Thu Thu Hi, I'v ...Show All
Software Development for Windows Vista Installing .net 3.0 and WWF
I downloaded and installed the .net 3.0 framework Then installed the Windows SDK and the installed The visual studio extensions for WCF and WPF . I am trying to build a demo WWF code but the code is not able to reference the System.Workflow classes. I see that these should be in: C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation - but I cannot see them there. Did something go wrong during the set - up is there a log file for the set up process Is there a particular order to follow when installing the new .net 3.0 and WWF, WCF, WPF and Windows SDK I am using WinXP SP -2 and have VSTeam Edition2005 and .net Framework 2.0 -jawahar The dlls are under Program Files\Ref ...Show All
Visual C++ Compile C++ code To .Bin File
Hi. can I compile C++ code with VC++ or VC.Net to a BIN file How thanks. thank you for answer. I know that exe & dll files are Binary Files. But I dont know any thing about *.bin file. if you sreach about *.bin in Windows Directory , ( like C:\Windows ) you can find this type. I found the " ST20 ToolSet " software for Compiling C++ code to *.bin files. now I have 2 promlems. 1- I cant found any Information about *.bin file. ( this is a binary file ) and what is difference within *.exe file structure and *.bin file Structure. can I convert *.exe file to *.bin 2- VS or VS2005 can compile C++ code to *.bin files ...Show All
SharePoint Products and Technologies how to quote content
I am new to moss. I encounter a problem: Say i have an Calendar in my site. And I want to quote the Calendar in another page. How to do Any suggestion hi sondergaard A error occure when I do the last step (11. Click OK in the tool pane) The error message is :Cannot save the property settings for this Web Part. The site URL is not valid. The site URL should refer to a site in the current site collection and should be specified as a server relative URL, as in "/sites/MySite" why Specifie a relative URL ...Show All
