Kavi's Q&A profile
Visual C++ _CrtIsValidHeapPointer fails on globally created object within a static llibrary
Hello, I have a very simple class in a static library which instantiates a global object of it. Following is a piece of the header. class MyBoard { public : MyBoard(std::string net_id); ~MyBoard(){} std::string NetworkId(); void NetworkId(std::string net_id); private : std::string NetId; }; Then on the CPP file I have the following: MyBoard::MyBoard(std::string net_id) : NetId(net_id) { } std::string MyBoard::NetworkId() { return NetId; } void MyBoard::NetworkId(std::string net_id) { NetId = net_id; } MyBoard GlobalMyBoard( "123" ); } When I create a winform application an create one of this objects, I will get an assertion done by : ...Show All
.NET Development SMTPClient do not send authorisation properly
Hi, I have very simple code which tries to send email via relay server requiring authorisation. Code is below. It does not work becouse after running sniffer I found .NET runtiime is incorrectly sending AUTH field to server 142.165.72.18 192.168.251.102 Response: 220 bgmpomr2.sasknet..ca -- Server ESMTP (SaskTel eMessaging Service) 192.168.251.102 142.165.72.18 Command: EHLO workhome 142.165.72.18 192.168.251.102 Response: 250-bgmpomr2.sasknet.sk.ca 192.168.251.102 142.165.72.18 Command: AUTH login ZmFz 142.165.72.18 192.168.251.102 Response: 501 5.5.0 Invalid input (Invalid authentication protocol). AUTH login is not supposed to be followed by anything but it's followed looks like by encoded usern ...Show All
SQL Server OLEDB connection error with (win 64 bit server)
Hi Im trying to connecting from SQL 2005 (win 64bit server) to a Oracle database via OLEDB but get the following message. The OraOLEDB.Oracle.1 provider is not registered on the local machine. If we try ODBC we get the following message "error in initializing provider. Attemt to load Oracle client libraries threw BadImageFormatException.This problem will occur when running in 64bit mode whit the 32 bit Oracle Client components installed." It should be the 64 bit client that is installed. In the test environment (32 bit win) both works. Pleas help Rickard One of the following two should work - 1) Get a Oracle client installed that is 64-bit compliant ( http://www.oracle.com/technology/tech/windows/faq.h ...Show All
Windows Networking Development Setting up FTP on Server 2003
.................................................. This forum is NOT for Windows trouble-shooting questions: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152532&SiteID=1 acturaly you may get more answers from related forum ...Show All
Visual Studio Team System How to get DB Pro ?
I do have asked this question in the Visual Studio Newsgroups, but didn't get feedback. So I'm hoping to get some light from this group :). I do have Team Edition installed already, however without Database Professional. On MSDN there is a 3.88 GB ISO with Team Edition Database Professional and a Trial Editon of 19 MB. I actually only wanted the extra bytes in addition to my current Team Edition. Can I use the Trial Edition or do I really have to get the whole 3.88 GB Okay, but all I want is to get the Visual Studio for DB Professionals. Can't I just download it Do I actually have to send away for the CDROMs I don't want a trial, I want the actual product. This is what I'm not undrestanding... where can ...Show All
Visual Basic Top tips needed for tooltip problem
All, To display a tooltip over my listview item I have the following code: 'Private Sub lstJobs_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lstJobs.MouseMove ' Dim lvi As ListViewItem = Me.lstJobs.GetItemAt(e.X, e.Y) ' If Not lvi Is Nothing Then ' Me.ttSchedule.IsBalloon = True ' Me.ttSchedule.SetToolTip(Me.lstJobs, lvi.ToolTipText) ' ' Else ' Me.ttSchedule.RemoveAll() ' End If 'End Sub However when the tooltip displays it starts to flicker madly. After stepping through the code it shows that the when the tooltip displays i.e. Me.ttSchedule.SetToolTip(Me.lstJobs, lvi.ToolTipText) for some unknown reason it generates another Mou ...Show All
Software Development for Windows Vista How to capture the state change event in state machine workflow?
I have created a state machine workflow. When the setstate activity changes the state from one state to another, i want to capture an event and perform some action. For example, when the state of the statemachine workflow changes from "State1" to "State2", i want to capture an event inside the workflow itself. Is there any way to do this Thanks A usertracking event is also fired during a state change. If you are using Tracking, you can use that too but make sure that you are tracking those usertracking events. Ranjesh ...Show All
SQL Server Linked server from Sql 2000 to Sql 2005
I'm having issue in connecting to sql 2005 from sql 2000 via linked server. Please advice what I should do to overcome the problem. Thanks. -EC Do you get an error message . --- http://www.sqlserver2005.de --- ...Show All
Smart Device Development Need help compiling Today Screen Native Code plug-in
I installed eMbedded Visual C++ 4.0 (SP3) and downloaded the samples as listed here http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/TodayScrn.asp i've been trying to follow the steps in the article but I can't get the unamanaged code to compile, I installed the Pocket PC 2003 SDK and referenced the directories for the inclulde and lib files but I get these errors Compiling... StdAfx.cpp TodayScreenDataMgr.cpp Linking... Creating library X86Rel/TodayScreenDataMgr.lib and object X86Rel/TodayScreenDataMgr.exp LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup TodayScreenDataMgr.obj : error LNK2019: unresolved external symbol _MapViewOfFile referenced in function _TodayScreenDataMgr_Open ...Show All
Visual Studio Changing Datasource at runtime results in several errors
THe following applies to Crystal Reports for Visual Studio 2005 v10.2.3600.0 When I change the datasource of a report at runtime to anything other than my development machine, I am getting the following errors... "The field name is not known." "Error in File..." "Error in formula <Monday>" ' { @StartDate}' This field name is not known Note: **This paramter is created from the stored procedure used to create the report Failed to open a rowset, procedure expects parameter @LocationID which was not supplied. Note: **the parameter is supplied during runtime I have reproduced the following several times. 1. Created a report that gets data from a stored procedure having parameters on sql server 2. create a vb.n ...Show All
SQL Server SSAS "the database will be overwritten"
Every time I make a change to a cube or dimension I get the message "database has changed ... If you proceed with deployment, the database will be overwritten". This means all roles and permissions get wiped out and have to re-enable them. Am I missing something Is there a way to modify an SSAS database without overwriting it everytime If you have the case where you manage security on the live server and you need to make changes to your database and would like to maintain the server roles membership you should take a look at Deployment Wizard. This is standalone utility avaliable throug shortcut menu. It has quite a few options allowing you to merge changes you made in the project with st ...Show All
Visual C# accessing private methods !
Hi i have class A and class B as seperate classes. i am creating an object of class B from class A.[ A->B ] how can i access private method of class B from class A. please help there are other classes in same assembly alone with the two i mentioned and i dont want say Class C to access methodB of class B. actually i am refactoring the project and its getting confusing at this point to me. do you know any material or any example of refactoring the project. ...Show All
SQL Server The connection manager 'OLEDB' is not properly installed on this computer
Please help someone from MSFT! I've just finished installing the Sep CTP on my laptop. I previously had the April CTP and June CTP. I followed the instructions for removing a previous installation of SQL 2005. Now, when I try to create an SSIS package, I get a message that says: TITLE: Microsoft Visual Studio ------------------------------ The new connection manager could not be created. ------------------------------ ADDITIONAL INFORMATION: The connection manager 'OLEDB' is not properly installed on this computer. (Microsoft.DataTransformationServices.Design) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.24&EvtSrc=Microsoft.DataTransformationServ ...Show All
Visual Studio Express Editions Install Procedure Vagueness -- Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK
I've installed Visual C++ Express Edition, and I'm trying the " Visual C++ Walkthrough: Using the Visual Studio IDE". I've done the first couple of steps, and received errors on the first build attempt: ------ Build started: Project: game, Configuration: Debug Win32 ------ Compiling... Cardgame.cpp testgames.cpp Generating Code... Compiling manifest to resources... Linking... LINK : fatal error LNK1104: cannot open file 'user32.lib' This is probably coming from the steps I skipped in the installation because I couldn't find what they were talking about. Here's the instructions (see my comments in red )... Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK By Brian Johnson, Mi ...Show All
.NET Development C# 2.0 Dynamic Members
My Code: using System; ... using Microsoft.Practices.EnterpriseLibrary.Data; using System.Data.Common; namespace DataAccessLayer { public class EmailQueue { private Database db = DatabaseFactory.CreateDatabase(); private DbParameterCollection dynParams; private DbCommand Command; public EmailQueue() { Command = db.GetStoredProcCommand("DAL_EmailQueue_AddMessage"); db.DiscoverParameters(Command); dynParams = Command.Parameters; } public DbParameterCollection AddMessageParameters { get{return dynParams;} } public int AddMessage() { int RecordsAdded = db.ExecuteNonQuery(Command); foreach (DbParameter param in Command.Parameters) { param.Value = null; } return RecordsAdded; } } Currently my code works just fine like this: EmailQu ...Show All
