raq's Q&A profile
Visual C++ How to detect mouse click in the child window created by the CHTMLEDITVIEW VC++. NET
Hi, Seek help urgently. Anyone knows how to detect mouse clicks in the child window view that was created by the CHTMLEDITVIEW (base class) MFC of VC++.NET 2003 i.e. When i clicked " File -> Open -> " powerpoint.ppt" ( document ) The powerpoint slide will open in a MDIChildWnd. ( if i am not wrong, it is a web browser view ) I tried to use the WM_ONLBUTTONDOWN events provided in the CChildFrame, but i could not detect any mouse clicks. I have tried searching for solution but i couldnt find any. Can anyone help im stucked in this problem for almost a week. Really appreciate if anyone could help. tks. terr Hi brian, tks for the tips on that. I used the Spy++ to check which ...Show All
Architecture O/R Mapping
O/R mapping is quite interesting. I would like to post this question for discussion. I have the following classes: Employee, FullTimeStaff, PartTimeStaff, etc. FullTimeStaff and PartTimeStaff have many attributes and behaviors in common and also many other unique attributes and behaviors. So, FullTimeStaff inherits from Employee and PartTimeStaff also inherits from Employee. Do you think it is good to map both FullTimeStaff and PartTimeStaff to a single table called Employee (the table contains an extra field to identity whether he is full time or part time) in the database a employee table with the attributes they have in common a table with employeeTypes and a table with employeeType specific attributes is m ...Show All
Windows Forms locking of combo box
Dear All, I just added a combo box in my form. I wrote the code in public frmForm1() //================== { //This call is required by the Windows Form Designer. InitializeComponent(); comoboBox1.Items.Clear(); comoboBox1.Items.Add( "USA" ); comoboBox1.Items.Add( "INDIA" ); comoboBox1.Items.Add( "UK" ); comoboBox1.SelectedIndex = 0; } than i called the load event. I would like to lock the combo box so that the user can see all the three values in combo box but will not be able to select the other items. In VB6 we generally locked the item and it solved the problem. But here I am facing a lots of problem for this in Visual Studio 2005. Can you tell me p ...Show All
SQL Server print on one page from report viewer
Is there a way, other than ensuring the report data does not exceed 11" , to format the report to print one page wide when printing directly from the report viewer I have set the marigns to 0 etc. I have the page height set at 8.5" and the page width set at 11". The report is 11.5" wide. It still does not print one page wide, it prints two pages wide. Anything else I need to change ...Show All
Visual Studio 2008 (Pre-release) How to start ? Where to start?
Hi all, .Net 3.0 RC1 is out and i was curious on how to start learning the new technologies such as avalon. So downloaded .net 3.0 RC1 and the Windows SDK corresponding to the release (still dowloading it .. it's HUGE .... :S. IS that all i have to do is there anything else i have to install anything for visual studio 2005 I've seen somewhere ... Visual Studio 2005 Extensions ..... do i need that Do i need anything else Thanks for the help! thats all u need.. the demo should work... the extensions only help if you are planning to create a wpf project and develop something ...Show All
Visual C++ Mixed mode finalizer bug in C++ class destructor with std::vector member
I have discovered a bug when finalizing a CLR class which deletes a data member which is a pointer to a C++ class, and the C++ class has a std::vector<ANYTYPE> as a data member. When this occurs an exception is thrown, with the message in the debugger being: "An unhandled exception of type 'System.AccessViolationException' occurred in msvcm80d.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Breaking in the debugger shows that the exception is occurring in the stack trace from the vector's destructor code, with the last source code trace being line 45 of xmtx.c in an _Mtxlock routine. Tracing the bug shows that the finalizer has executed afte ...Show All
Visual Studio Half of report missing
Report works fine on my own PC. My boss installed the program, and it looks fine on screen. However, when he prints, only the top half of the page prints. This issue happens on the 3 different reports in the project. His page setup looks ok. Built using VB2005, local report, winforms. I have SP1 on my PC. In the Publish section, I have the report viewer in the application files set to Include. Does this mean that any users who install the program will download the latest Reportviewer as part of the install Or could there be another reason why it is not printing correctly Thanks Vayse ...Show All
SQL Server CPU and Duration don't match in SQL Server Profiler
Hello All, I have one store proc that is really slowing down my SQL server, at least according to the SQL Profiler. When I run the profiler and choose to show store procs that take longer then 3000 ms to execute, this is the only precedure that shows up. The CPU time and Duration is both in the 3000 ms mark. When I open up Query Analyzer and run that same store proc it takes less then a second, but when I check the Profiler to see the time, it's Blank (yellow) .. I'm using SQL 2005 Profiler. Any ideas why 1. I don't see a time when I execute the query from the profiler 2. It says it takes 3 seconds when I only see it taking less then one Thank you This is probably 3000 microseconds (3 milliseconds) :) "In SQL Serv ...Show All
Microsoft ISV Community Center Forums Problem in CDO.iMailBox
I am working on code sending email in MS-Access using Exchange Server 2000. I grab the code from http://msdn.microsoft.com/library/default.asp url=/library/en-us/e2k3/e2k3/_cdo_imailbox_interface.asp . Now my problem is casting CDO.Person to CDo.iMailbox iPer.DataSource.Open "LDAP://" & Info.UserName '==> This line give me iPer obj Set iMbx = iPer '==>This line is not able to convert properly. msgbox(iMbx.Basefolder) '==>This line is giving me a error I am totally blank here. If anybody now how to solve this or did solve it. Pleas hemp me out. Viral Parikh Hi Viral, if you use cdo your program must run on the exchan ...Show All
Visual Studio Team System n mi Upgrade database to specified version in automated build task
We are using team build to run a nightly build and deployment to our test environment. We are thinking about to create a DBScripter.exe app to upgrade our Oracle DB to the specified version. It will look for change scripts and handle the upgrade of the database to a specified version. What can be a good approach to integrate this in the build process I was thinking about calling this at the BeforeCompile Event and the Exec command. But if the return code is less than zero from DBScripter.exe I want to cancel the build. How can I check for the return code and cancel the build if there is any error I would also thinking about using the assembly info task to apply a custom build number to the assembly files. How can I access the buil ...Show All
Visual Basic sequence of execution of assembly[in code]
can anyone of you please explain how is execution sequence like [new->initialise-> ] like that.. untill the user gets the control... Hi Zybernau well if you want to know the process starting creating new thread for the assembly this is it: 1- ThreadHelper.ThreadStart() 2- ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 3- ThreadHelper.ThreadStart_Context(Object state) 4- Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 5- System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 6- System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) And this function will call Main() Sub in your My.M ...Show All
Windows Forms DataGridView and Update/Insert/Delete data in MS Access
Hello, I have an application (Windows Forms) that populates a table from an *.mdb file to a DataGridView . Is there any tutorial available which shows how to implement Update/Delete of current data, or Adding(Insert) new data using the DataGridView Thank you in advaned. Thanks for the help so far. One last help before i send you the project, Now when i run the project it gives me the OledbException below : Could not find file 'C:\Documents and Settings\Nicholas\My Documents\Visual Studio 2005\Projects\DatabaseProject\DatabaseProject\bin\Debug\datafile.mdb'. The exception is given during the Form1_Load, on the line that the dataset(DbSet) fills t ...Show All
Visual Studio 2008 (Pre-release) Integrate with Visual Studio
Hi, - I have dotnet 3 installed on my machine. - I've created a website and added a .svc file that I can browse and gives me the Service Information - I've tracked down SvcUtil.exe in the following folder "C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin". - I've downloaded an installed "Visual Studio 2005 Extensions for Windows Workflow Foundation RC5(EN).exe" Now I"d like to create a client talk to the website. But I'm not sure what to do from here. I'm using the following blog ( http://dotnet.org.za/hiltong/articles/52518.aspx ) and there's a mention there of right clicking onthe client project and selecting "Add Service Reference". But there is no such menu option. When I click "Add Web Refere ...Show All
Visual Studio 2008 (Pre-release) error 2738.Could not access VBScript run time for custom action
Im trying to install blackberry 4.2 service pack 1 On my windows vista for my blackberry phone and i keep gettin this message.. Can someone please tell me what i need to do When you say "I am running it as an administrator", does that mean you are logged in as "Administrator" or that you are running in the MSI as Administrator. In vista, nothing runs as Administrator even if you are logged in as it, so let me know if you are actually telling the MSI to run as Administrator. ...Show All
Visual Studio 2008 (Pre-release) Getting Height and Width of BitmapImage
Hello I'm working on a little slideshow app for a bigger project where I'm creting a BitmapImage from an URL and feeding it to and ImageElement The Image element sits inside a ViewBox with a couple of other elements so they resize themselves according to the window size. Anyway that is not importent, what is importning is that I need to be sure that the images does not resize bigger than their original size. The BitmapImage class have the PixelWidth and PixelHeight which I've tried to use, but they seem to return 1 resulting in a VERY small image. This is what I do BitmapImage img = new BitmapImage (); img.BeginInit(); img.UriSource = new Uri ( node.GetAttribute( "Url" ) ); ...Show All
