Software Development Network Logo
  • Visual C#
  • Audio and Video
  • SharePoint Products
  • SQL Server
  • Windows Forms
  • Game Technologies
  • Visual C++
  • Visual FoxPro
  • .NET Development
  • Visual Basic
  • IE Development
  • Windows Vista
  • Smart Devicet
  • Visual Studio
  • Microsoft ISV

Software Development Network >> Mike36's Q&A profile

Mike36

Member List

williamtcurtis
PhoenixZero
Nokoff
Chase Mosher
MagedSalah
JeZteRicp
CSharpNewbie22
subhanet
Vijay Guru Prasadh
soconne
Struan
Katu
Kamia111
CPPUSer7
hzwuj
rebeccat
gpetrosh
Xythe
John Fly
WayneSpangler
Only Title

Mike36's Q&A profile

  • Visual C++ Drawing on desktop

    Hi, I am trying to create a C++ program using Win APIs to create a calendar application that is drawn on the desktop. Is there a way to do this directly Do I have to use Active desktop or Active Channel for drawing on the desktop Thanks, George If your calendar is not rectangular, you cand use SetWindowRgn API - function to set complex form of you window even with holes. To remove a title bar use WS_POPUP style when you create you window. And WS_EX_TOOLWINDOW to remove it from task bar. HWND hwnd = CreateWindowEx(WS_EX_TOOLWINDOW,strMyClass, _T( "My Window" ), WS_POPUP|WS_VISIBLE, 100, 100, 300, 300, NULL, NULL, NULL, NULL); HRGN rgn=::CreateEllipticRgn(0, 0, 300, 300); HRGN rgn2= : ...Show All

  • .NET Development DllImport Issue

    I am currently trying to make use of a .dll file that was written in C++ in one of my vb.net 2005 applications. Initially I thought I could simply add the file as a Reference to my project, however, I found this didn't work because the .dll was not written with managed code. After a little research I found I could accomplish this task by using DllImport. I wrote the following code to test this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim InputRecords As New ArrayList Dim CmpltCheckFlag As Char Dim OutputRecords As New ArrayList Dim MessageRecords As New ArrayList Dim ReleaseList As New ArrayList CmpltCheckFlag = &q ...Show All

  • Visual Studio Microsoft Document Explorer Index

    I installed Visual Studio Team 2005 on my WinXP with no problems. For some reason (perhaps the order of my installation) my help index in the Microsoft Document Explorer only has SQL server help in it. I have gone to the control panel and tried to reinstall and add new products but everything is already installed and there is no section for install VS help that I could see. The problem with this is all errors for any language (like C#) in VS usually have a link associated like "Click here for more help on this error" and when you click on it the document explorer says No help was found for this error. When I start document explorer the "index" window "Filtered By:" drop down only has SQL Server 2005 stuff list ...Show All

  • Visual C++ StackTrace isn't working in C++/CLI

    Hi, I'm working on a wrapper-library in C++/CLI to access an old C++-Library. For Debugging purposes I want to write some informations like line number, filename, method name and so on in a logfile. In C# (where I will access my wrapper) I use the stacktrace-class like this: StackTrace trace = new StackTrace ( true ); Debug .WriteLine( trace.GetFrame(0).GetFileLineNumber().Name ); There I'll get the actual line of the file. But when I write the C++/CLI-statement in my wrapper-code I'll get nothing useful. Here is the code from my wrapper: System::Diagnostics::StackTrace^ trc = gcnew System::Diagnostics::StackTrace( true ); System::Diagnostics::StackFrame^ frm = trc->GetFrame(0); System::Diagnostics::Debug::WriteL ...Show All

  • Visual Studio Crystal Reports Showing Empty Report

    In a C#, VS NET 2 Windows app I am trying to display a report made with CR which comes with VS 2005. When the form containing the report viewer opens, the report is empty of data in the dataset. I know the dataset is coirreclty filled, however. The form is very simple, there is only a report viewer - crv. crBizInvoice is the report form crBizInvoice.rpt dsBizInvoice is the name of dataset created and used in designing the form - dsBizInvoice.xsd This is the code in the form: public partial class rptBizInvoice : Form { SqlConnection conn; SqlCommand cmd; SqlDataAdapter da; DataSet dsBizInvoice; crBizInvoice crB; public rptBizInvoice() { InitializeComponent(); String strConn = sqlClass.getConnString(); conn = new SqlC ...Show All

  • Visual Studio Unable to add references to Business Objects Enterprise assemblies

    I’m currently developing reports in ASP.NET 2.0 using Crystal Reports XI & VS 2005. I’ve Crystal Reports XI installed on my machine. There is also Crystal Reports Server 30 Days Evaluation version in Business Objects XI. I need to schedule reports using Crystal Reports Server. Now problem is I’m not able to add references to Business Objects Enterprise assemblies which are required in scheduling & exporting reports. Expecting reply ASAP Hi, Crystal Reports XI, and Crystal Reports Server XI are not supported when using VS 2005. You will need to upgrade to using Crystal Reports XI release 2 and Crystal Reports Server XI release 2. Crystal Reports XI release 2 is available from: http://www.businessobjects.com/pro ...Show All

  • Visual Studio Team System DataCompare

    How do you setup DataCompare feature of " Visual Studio Team System - Database Professionals " I cannot find any documentation on it If you mean where is it look in the VS Data Menu -> Data Compare -> New Data Comparison ... If you mean general configuration look in Options -> Database Tools -> Data Compare. If you mean Help Documentation then look at ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VSENT.v80.en/dv_VSTSDataConMain/html/ecc9e7d9-22e3-4f2d-9059-f1f9da5f0e51.htm HTH Alle ...Show All

  • .NET Development poor oracleclient performance (System.Data.OracleClient)

    Hi all, We are just about to migrate our applications from .NET 1.1 to the 2.0 version. Unfortunatly we experience a quite big performance loss in executing database queries in the newer infrastructure. While investigating this I compared a maximum simple (no external libs, just the MS supplied Oracle Client and my simple SQL) 1.1 exe with a most simply 2.0 exe and experienced even after hitting the button multiple times so that internal data caching of the driver, etc.. can be active, a performance drop around 50%! It’s just simple SQL (SELECT * FROM table WHERE ID>10000) against a Oracle 9 Database filling a datatable that is significantly slower (6 secs come to 15 secs, 4 seconds come to 6 seconds of execution time) than on the 1.1 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do you implement Fog into a scene?

    Hi All, I have finally got some 3D up and running so things are whizzing about (which is always fun to watch... for a while, yeah I know, small things...) and I was wondering if anyone had any examples of putting fog into a scene. I tried last night and succeeded in turning all my meshes to white, not matter how far away they were from the camera. No matter what I did to the values, nothing changed. As always, any help is greatly appreciated. Cheers Shawn Hargreaves - MSFT wrote: As well as setting those device renderstates, you also need to compute the amount of fog in your vertex shader. Typically that will just be the distance from the camera, which you output using the FOG shader semantic, but you could use som ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. C# Performance Problems

    Hi, I recognized, that my framerate is very bad in comparison with some C++ examples. After removing all "catchs" in the render-methods i got 100 FPS instead of 20. Exceptions seems to be really, really slow. Are there some other performace problems in C# which i have to have in mind I used exceptions in a wrong way, but now it works. btw: my code is a XNA Game Engine with more than 150 classes. I dont think you want to see all ;). Are there some other problems or tipps to improve my C# performance ...Show All

  • Windows Search Technologies "windows desktop search has encountered a problem..."

    Getting..."windows desktop search has encountered a problem and needs to close" every time I open it. Then it asks me to restart the computer and rebuild the index. I restart the computer and rebuild the index. Later I turn off the computer when the index is fully built. Next day, I turn on the computer, log on, and get the same message again. Every time I rebuild the index I get the same message and I'm getting tired of it. I tried uninstalling it and reinstalling it as suggested by the error box. Still, I get the same error message. I came here as suggested by the error box to get some help. Currently WDS is uninstalled because i am not going to do a sixty-minute index rebuild every time I need to find a file on my PC. I like w ...Show All

  • Visual Studio 2008 (Pre-release) IsOptional Datamember?

    I see that there is an 'IsOptional' attribute to the [Datamember] custom attribute. From the documentation this seems primarily targeted to versioning. I would like to have an optional member in the same sense that is defined in an XSD schema. When the member is defined as being 'optional' one can specify the default value for the member. Is there something equivalent for a data contract For example if there is a string member called 'name' and if it is not specified I would like not only for an exception not to be raised but I would like the default to be 'foo'. Thank you. you can specify the datacontract to emit default values http://msdn2.microsoft.com/en-us/library/aa347792.aspx and also use the Is ...Show All

  • Commerce Server Commerce Server 2007 Catalog BizTalk Adapter

    Hi, I am querying Commerce server to get the product ID and I am using the Commerce Server catalog adapter. What I get back from this adapter is the MSCommerceCatalogCollection2 XML. Then I have a receive shape to receive this XML. I am using the DefaultCatalog.xsd schema to accept this XML. The problem is that I get this error message back which is; Received unexpected message type '' does not match expected type 'MSCommerceCatalogCollection2'. Am I using the correct schema I think I am as I can see the XML that is dehydrated in BizTalk and this XML looks like it conforms to the DefaultCatalog.xsd schema. Can anyone see what the problem is Regards Dom Hey Dom, As Jeff in ...Show All

  • .NET Development AcceptRejectRule=Cascade Prevents Saving Non Foreign Key Fields

    I am using AcceptRejectRule=Cascade to cascade AcceptChanges() from parent rows to child rows during the update of parent rows in a one to many relationship. The cascading of AcceptChanges() changes child rows marked as modified to unmodified as designed. The problem is this erases changes made to all child row fields not just the foreign key fields. Shouldn't AcceptRejectRule just propagate AcceptChanges to only the foreign key fields For Example: I change the value of a primary key field in a parent row. I also change the value of a field in the child row field not involved in the relationship with the parent. Since my database implements cascading updates, I need to have the child row foreign key field updated at the time the parent ro ...Show All

  • Visual Basic Score

    Hi, I've recently started using Visual Basic 2005 express edition, so I'm pretty new to the language and so. Though I'm getting the hang of it! But I have one question: I'm trying to make some questions in my program, something like this: Translate the following sentences from English to French: Do you live in England ................................................................[textbox] Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "Tu es alle en Angleterre " Then MessageBox.Show( "Good!" ) Else : MessageBox.Show( "False!" ) End If End Sub Then if you type it in c ...Show All

©2008 Software Development Network