so0ly's Q&A profile
Visual C++ Different MFC versions causing problems
Hello, I have a problem which stems from the fact that MFC 6.0 and MFC 7.0 are incompatible. I am trying to use an MFC library written in 6.0 with Studio 2003 (MFC 7.0) and it does not work. It gives the usual CRuntimeClass* GetThisClass() link errors, which from what I've read is one of the hallmarks of the 6.0 to 7.0 incompatibility. The strange thing is, I have the code for the library and I have compiled it in Studio 2003 and it compiles successfully. Yet it still gives the same linker errors in my other application. So I assume what is happening is that it is compiling in some sort of "compatibility mode" with the older MFC (which the project was made with), and generating a library not compatible with the current vers ...Show All
Visual Studio Express Editions Help request on how to use precompiled header files with empty projects?
Hi! Are precompiled header files supported with empty projects in Exp. VC++ When I turned on the compiler option "Create Precompiled header files" such as stdafx.h/.cpp, the compiler gave error message that it could not find the stdafx files. I then manually created the stdafx files by using the option -> Add new item to the project and chose "Use Precompiled header files" option in the compiler setting but the compiler this time gave another error, saying that it could not find the ".pch" debugfiles. Are there any other compiler options that I am supposed to turn on I thank you very much for any help. Regards Modeller Modeller wrote: Are precompile ...Show All
Visual Basic Pulling User name and info From Active Directory using LDAP in VB.net 2005
Hello, I am sorry I do not have functional code to post but I hope you can understand my request enought to give me a hand. NEEDS: 1> take a request... ie. First name, Last name, or login ID and Search AD Path can be hard coded so entire forest is not searched. 2> List all entries found 3>once the correct user is selected I need to pull First, last, middle name and , Email , Phone number , @ and GUID for that user. Thank you very very much in advance. Marcelo It compiles and runs fine for me, with the exception of the extra curly brace in the console.writeline command. Make sure you're referencing the System.DirectoryServices assembly, and have an Imports System.Direc ...Show All
Visual Studio Express Editions sorry more noob problems
#include <iostream> using namespace std; int main() { int age; cout<<"Type a number between 1 and 10: "; cin>> age; cin.ignore(); & ...Show All
SQL Server Long duration Pre-Execute phase
Does anyone know why SSIS sometimes just sits in the Pre-Execute phase of a data flow and does nothing It doesn't matter how elaborate the data flow is or the volume of data. It can sometimes take 80% of the task's run time. The task does not turn yellow when the query is running, just when rows start returning. I was burned by this also... The pre execute actually executes the query. Look at your data source and see what queries are being run (Use profiler). Then you can go from there. BobP ...Show All
Visual Studio Tools for Office Outlook 2007 Beta error
Outlook 2007 now cannot be started due to a corrupted MAPI32.DLL file. It suggest that this may have been couse by installing foreigh messageing software. Is the Outlook MAPI32.dll file available for download This would be much easier than the instruction to reinstall Outlook 2007 beta -- I think. Please advise. Thank you. Hi Gregory, Have you tried repairing the installation to see if that fixes the DLL Thanks and regards, Darryn Lavery [MSFT] ...Show All
Internet Explorer Development Using Client Certificates
I need to authenticate user credentials (on a button click). I need to read the certificate subject present in the user's browser. I am using the "HttpClientCertificate" class. I have installed the client certificate in my browser (I can see it in the "Personal" folder). When I make a request to the login page, first the server certificate pops up, then a dialog pops up asking me to choose from a list of client certificates, but the list is empty (I cannot see the certificate I have installed). I observe that "certificate.IsPresent" returns false. protected void btnLogin_Click(object sender, EventArgs e) { HttpClientCertificate certificate = HttpContext.Current.Request.ClientCertificate; if ...Show All
SQL Server Hide dimension members which have no rows in fact table
When a cube is presented to the end user (thru Excel or Reporting services), I would like to limit the available dimension members to only those which have at least one row in fact table. This is to simplify what user sees as a list of choices under a dimension attribute/hierarchy and not be overwhelmed with all the dimension members for which no data may exist in reality in the fact table. Does Analysis Services 2005 have any easy way to accomplish this as part of UDM/Cube design Let me give you an example. Take "Locations" role playing dimension. In ocean transportation business, "Locations" are of different types such as Port of Load (sea-port), Port of Discharge (sea-port), Inland Point of origin, Inland Point ...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 I dont even know what "Team Suite" is. We have Visual Studio 2005 Team Edition, and I just want to add DB Professional to my install. We're licensed for Team Edition... shoudln't that cover this This seems awfully confusing ...Show All
Software Development for Windows Vista How to record from 'Wave' or 'Stereo Mix' in Vista?
Hi all, I wrote the following question in other forum space but some MSFT guy told me to try this forum for my question. I hope I could get right answer as soon as possible here. On Windows XP or earlier, I could capture the audio stream to the speacker not from the external device (maybe endpoint device in Vista) like the microphone. In other words, D irectSoundCapture was able to capture from the selected recording device/source line in the Windows record control utility or mixerXXX APIs. And if "Wave Out Mix" or "Stereo Mix" or something similar was selected as recording source line, D irectSoundCapture was able to record the audio stream to the speacker. However, I could not find the way to do tha ...Show All
SQL Server Stored Procedure
Hello, I've written the following stored procedure: CREATE PROCEDURE dbo.GetTableName ( @ConfigurationId int = 0, @TableName varchar(MAX) OUTPUT ) AS SELECT @TableName = ConfigTable FROM Configurations WHERE Configurations.ConfigurationId=@ConfigurationId; How can I get the parameter TableName now I tried EXECUTE GetTableName 0 Error Message: "Procedure or Function 'GetTableName' expects parameter '@TableName', which was not supplied". Sure, I did not supply it because I wanted to have it as return value. What is wrong I also tried: CREATE PROCEDURE dbo.GetTableName ( @ConfigurationId int = 0 ) AS DECLARE @TableName varchar(MAX); SELECT @Ta ...Show All
Visual Basic UserControl A use a UserControlB (VBExpress 2005)
Supose we have two usercontrols A and B named usrA and usrB. usrA ShowDialog() a WindowsForm that contains usrB. usrB contains a DataGribView. The user select a Row from DataGridView and then the form Close. How usrA can know wich DataGridViewRow was Selected in tha DataGridView in usrB witch at its time is contiened in the WindowsForm Please help. Here's a quick example how to open another control and set the onclose to capture it's data before the control closes. Public Class Form1 Dim frm2 As New Form2 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create form and add the on cl ...Show All
Internet Explorer Development submit() inside onsubmit
The problem that appears to me is that with IE 7.0 POST of form is sent twice and with Firefox 2.0 once. The problem is of engine of JScript of IE or of engine of Firefox When executing with IE two registries in data base are inserted. When executing with Firefox a single registry is inserted. Script: htmltest.html <html> <script language="JavaScript" src="jstest.js"></script> <form action="jsptest.jsp" method="post" name="prueba" onSubmit="return chequea();"> <input type="submit" value="Send" class="boton"/> </form> </html> jstest.js function chequea() { document.prueba.submit(); ...Show All
.NET Development problem converting string to datetime datatype
This code has been working for 2-3 mnths; now when we have moved both the site and the backend to a new server it throws this error... "Conversion from string "29/02/07" to type 'Date' is not valid." Dim username As String Dim reqrddate As Date = Format(CDate(txtrequireddate.Text), "dd MMM yyyy").ToString Dim nhi As String Dim eventnum As Integer Dim accnum As String = "" Dim reqstdate As String = txtrequestdate.Text Dim delivery As String '= "" Dim ward As String = txtward.Text Dim i As Integer Dim Item As String = Nothing Dim j As Integer Dim acclength As Integer <--more code --> Dim sql As String = "insert into requests ( [User_name ...Show All
Visual Basic tabcontrol pages collection within splitcontainer question
I would like to have tab pages in a collection on the right side of a split container be dependent on which tab page is selected on the left side of the split container. If I have 6 pages in a tab collection on the left side of a splitter then; 1. If the left most tab of the control on the left of the splitter is selected, then 3 specific tabs of the rightmost tab control should appear on the right. 2, If the next tab (second from the left) is selected on the left side of the splitter, only 2 tabs should appear on the right of the splitter and are different tabs than the 3 that were displayed previously. Is there a way to achieve this at design time If not, how would I achieve this at runtime. Thank you, -Greg ...Show All
