Hans1982's Q&A profile
Visual FoxPro Connect to Outlook Express and Microsoft Outlook
Dear Expert, Can I know how to connect to the Outlook Express and Microsoft Outlook using FoxPro Like the data in a memo feild how I connect or send out using the Outlook Express and Microsoft Outlook Or Can I generete email using FoxPro Thank you. Outlook Express Not directly. It is not a COM Server MS Outlook Yes through COM Automation. You take a reference with oOutlook = CreateObject("Outlook.Application") and then you have complete control of its object model. You can use an Object Browser and Intellisense to inspect the DOM. http://fox.wikis.com/wc.dll Wiki~AutomationExamples I higly recommend "Microsoft Office Automation ...Show All
Windows Live Developer Forums Layer not rendering correctly
Hi, I am using the "adding a transparent layer SDK sample", however when I change the source image from the one provided to my own image (located on my machine), I get strange results. Specifically the source image becomes tiled ad-infinitum over the entire map surface, instead of staying inside the bounding box. Does anyone have any idea as to what I'm doing wrong Specifically, do any of the following matter: image name, image location, image format (tried both jpg and png), image size, image metadata etc. Thanks for the help, Radu <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" h ...Show All
Visual Studio Team System Bugs and related work item resolution...
Hi, Sorry if this question has been raised before but I am little confused as to the intended process for using Bugs and Task work items. It seems that tasks have several specific fields such as Remaining Work, Start Date, etc that leads me to believe they are the natural choice for ongoing development task tracking. The impression I get is that Bugs (Work items that do not have these aforementioned fields) would be reviewed and one or more tasks subsequently created for them and assigned to a developer. If this is the case, what is the most efficient way to associate items such as changesets and builds to these tasks and the parent Bug work item. For example, lets say I have a scenario where I have a bug and create a related work it ...Show All
Visual Studio Crystal Report Error
Hello, I'm getting Crystal Report Exception on opening a report after it's exported to a file. I've a button on my form that calls following method, which opens a report in Crystal Report Viewer component. The report fails to load only after I use Crystal Report Viewer "Export" button from the viewer. It export the file for me, but when if I click Button to run my report, I get an exception. ----- Method ----------- private void loadReport() { ReportDocument rpt = new ReportDocument(); rpt.Load(@"CrystalReport1.rpt"); crystalReportViewer1.ReportSource = rpt; // show crystal report control crystalReportViewer1.Show(); this .Refresh(); } ----- Method ----------- ...Show All
.NET Development sorting by teamID
Hello, i have a Access database and am trying to create an aspx page from "lis_per" table which should be sortable by TeamID. I have written the following code and when i run it , it gives me "oledbexception was unhandled by usercode" pointing to the statement " dgrdpersons.DataSource = cmdselect.ExecuteReader()" in code. says syntax error in ORDER BY clause System.Data.OleDb.OleDbException was unhandled by user code ErrorCode=-2147217900 Message="Syntax error in ORDER BY clause." Source="Microsoft JET Database Engine" StackTrace: at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ODE
I've grabbed and got the ODE wrapper working in my project. Well sort of. I have it creating a ODE world and I created a body. I have a mesh being displayed at the body's position. But the minute I update the world the position changes drastically. Anyone have any examples on implementing a simple world in ODE using the wrapper Does this mean that you can use newton for both xbox and pc games with XNA game studio express I have used newton with another engine it is very powerful. It also seems like it would act as a robust collision detevtion system. ...Show All
SQL Server Open encryption key in stored procedure
Hi, I would like to create a stored procedure, which accept RunAsUser, MasterKeyPassword and also ASymmetricKeyPassword. In this stored procedure, it call OPEN MASTER KEY and etc. I put these code in stored procedure so that my support staff can call it when doing maintenance by passing the parameter. I don't expect them to remember OPEN MASTER KEY and etc syntax. However, I hit error "Invalid Syntax" when I run my code as below. Any ideas Thank you -- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comm ...Show All
.NET Development How can I add/multiply two object finding opeartor through reflection?
I need to build a function like this public object Add(object left, object right); This function must be able to call basic operator + for basic type and use custom defined operators for other classes, throwing an exception if it is not possible to add the object toghether. It is possibile to obtain through reflection the operator + defined for the object I tried but for basic type (int, double) I did not find any reflection method to retrieve standard op_Addition. Thanks for the help. Gian Maria. The built-in value types do not have such an operator. Instead the compiler generates the appropriate MSIL instructions to add the values together. The only workaround you really have is to special case the various value types and add them ...Show All
Windows Forms VS2005 MyApplication_Shutdown not getting fired.
We are developing windows application in VS2005 (VB.Net). I have placed resource clearing and audit entry in the "MyApplication_Shutdown" event. But this event is not getting fired when our application exits. When I tired with the sample application, in our system it works fine. I don't know whether I have disabled any setting so that this event does get fired. Note: I have checked application framework checkbox in application settings. Looking at the WindowsFormsApplicationBase class, the Shutdown event is fired right after Application.Run() exits. Not seeing this event means that Application.Run() doesn't exit normally. The only thing I can come up with: an unhandled exception. Do you trap the UnhandledException event ...Show All
Microsoft ISV Community Center Forums what is wrong with this formula? *9 Views & no one knows?*
=IF((Weeks!D(B1+6))="",1,2) whats the error with this D(B1+6) is ment to respresent a cell with D = the value of B1+6 what am i getting wrong Not everybody who reads/posts here is working in Excel VBA. If people view and don't reply, they could be just thinking of an answer, or they might simply not be familiar with your problem. Complaining about not getting an answer won't help bro ...Show All
Software Development for Windows Vista EventHandlingScope eventhandler performance
Hi, I've been doing some performance testing and want to check my conclusions for the results of one of my scenarios. Previous scenarios exercised variations of a test where each iteration invoked a workflow which ran to completion. SequenceActivity BeginActivity EndActivity Parameters are passed in and out of the workflow and between activities via dependency properties. In a failed attempt to improve both throughput and response time, I created an event-driven workflow that is only created and started once. Iterations are initiated by calling an iterate method on a local service. The local service queues an item for consumption by a custom activity. The basic idea was to avoid per iteration lifecycle costs. Here's t ...Show All
Visual Studio Team System Unshelving question
Hi, when I perform unshelving operation, items are not automatically added to the solution. Is that the way it is meant to be If yes, why this choise Thanks Can you be more specific about what changes you shelved and what behavior you expect For instance, if you add something to a solution and only shelve the add (but not the edit that's automatically pended on the .proj file) then unshelving obviously won't update the solution. ...Show All
SQL Server Defining an Action in SSAS
Hi, I have the need to build an Action on a measure that belongs to a cube that behaves like a DrillThrough Action that returns details related to a measure. The problem is that the details data should come from a table that is not inside the cube but it is in an SQLServer DB. So, it is possible to define an Action that could retrieve data from an external DB If so, how I'll write the action in BIDS (Target Type, Action Type, Action expression, etc.) . Thank you. Hi I having the same problem with my report (when i click on any cell, i m not able to check details).....cuz i have a calculated member in my cube and i cannot make a regular drill through, so i am also planning to d ...Show All
Windows Forms Conditionally adding a button to a form
I am new to VB and I can't seem to find an answer to this questions. I want to check the OS Version when the form launches and conditionally add a button depending on what OS is found. I have created a simple form below that has two buttons on it. When clicked the button launches a setup.exe in a directory relitive to the forms EXE. The form below works just fine, but what I want to do is if the OS is Vista, then Button1 should be hidden so that the user can not click on this button and only Button2 is visible on the form. Any suggestions on how to best handle this Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() Dim a As ...Show All
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
