Daikoku's Q&A profile
Visual Studio Express Editions how some help fix my code?
'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage(" From@abc.com ", " To@abc.com ") Email.Subject = "test subject" Email.Body = "this is a test" Dim mailClient As New System.Net.Mail.SmtpClient() 'This object stores the authentication values Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential("username", "password") 'Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "Mail.RemoteMailServer.com" mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo ...Show All
Visual Studio Problem with Crystal Report
I have developed a crystal report with the wizard by selecting the fields in a typed dataset. One of the fields in the table is 'Function'. I developed this report in C# project. I wanted to use the same report in a VB.NET application. I just added the above report and changed the 'Function' field to 'Func' as Function is a keyword in VB. I tried different things to change the previous datasetName.Function to datasetName.Func but I could not find a way to do that. But the field is still there and it is searching for a missing field datasetName.Function. Is there a simple way to replace or modify the existing field on the report so that the report works Thanks Basani I am designing it off o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing Bitmaps to IDirect3dSurface9
Hello, first of all i want to render a video stream to a IDirect3dSurface9 (in the beginning on the primary display device later on a secondary monitor) so at first i'm trying to draw a simple bitmap on the surface... i've created IDirect3d, IDirect3DDevice9 and IDirect3dSurface9 objects... and i've got a window that i've registered and created. It doesn't matter if the bitmap/video is in the window or not. better would be if it were in the window. how can i do it i've tried it this way: pPrimary->BeginScene(); pSurface1->GetDC(&hdc); hdcMem = CreateCompatibleDC(hdc); old = (HBITMAP)SelectObject(hdcMem, hBitmap); GetObject(hBitmap, sizeof(BITMAP), &bm); BOOL tmp = BitBlt(hdc, 0, 0, bm.bmWidth, bm.bmHeight, ...Show All
Microsoft ISV Community Center Forums personalized command bar disappears when minimizing excel
This is my first message in this forum, so please be patient. I have programmed a makro for an excel workbook. one part of this makro creates a command bar. when the excel workbook is started i make all the regular command bars disappear, only mine is left. Works wonderful. Well, i have put a button into my command bar to minimize the application. However, when i restore the workbook again from the windows taskbar, my commandbar is vanished, and the normal command bars (like standard and format and also the formula bar) are suddenly there. The command bar is still there but not enabled/visible. The problem exists on many computers and also on differnet excel versions i tried (97, 2000, xp) I do not know if that is a bug or not. Now is it p ...Show All
SQL Server Counting unique entries in a SQL Statement
I have a complicated problem, and I'm new to SQL so any help would be greatly appreciated. I am creating an export file (fixed width) that contains a breakdown of items on an invoice, and each "export file" can contain many invoices. The problem is that I need to apply an incremental "invoice" count on each line. This isn't as simple as doing a running sum of "1" on each record, because the first 5 rows may all be on the same invoice, and all rows need to be identified as being associated with "invoice 1". The next invoice will be known as "invoice 2" and again may contain many rows, all requiring "invoice 2". Does this make sense EG.: I am shipping products, and the ...Show All
SQL Server INNER JOIN between a CLR-TVF and a table returns no rows
I have the following query: select sq.*, p.numero, p.nombre from paf p right outer join dbo.GetListOfSquaresForShippingLot(@lot) sq on sq.number = p.numero and sq.version = p.numero The @lot parameter is declared at the top ( declare @lot int; set @lot = 1; ). GetListOfSquaresForShippingLot is a CLR TVF coded in C#. The TVF queries a XML field in the database and returns nodes as rows, and this is completed with information from a table. If I run a query with the TVF only, it returns data; but if I try to join the TVF with a table, it returns empty, even when I'm expecting matches. I thought the problem was the data from the TVF was been streamed and that's why it could not be joined with the data from the table. I tried to solve that pr ...Show All
Visual Studio Tools for Office Performance issue
Hi, Im trying to show a tasklist within a folderhomepage. The tasks are from a public folder. The problem is, that accessing the attributes of a TaskItem is horrible slow. But only in the default AppDomain, where the Control of the folderhomepage exists. The same code within the Addin AppDomain is much more faster. This is the codesample (ok, its a contact item, but its the same with tasks.): foreach (MSOutlook.ContactItem ci in results) { string name = ci.FullName; // this single line takes 180 milliseconds!!!!! User u = new User(name, Tools.GetEmail(ci)); userlist.Add(u); } Accessing the FullName attribute takes 180 ms from within the default AppDomain and less than 1 ms from within the Addin AppDomain. Does anyone have ...Show All
Software Development for Windows Vista Microsoft XPS Document Writer for XP
Is there a version of MXDW available which can be installed on Windows XP Thanks, Adran Adrian, The Microsoft XPS Document Writer (MXDW) is actually only available as part of Windows Vista Beta 2 for now. Previous CTP releases from late 2005 and early 2006 did include an older version of the MXDW in the then codenamed "WinFX" SDK. We are working to make this available as part of .NET Framework 3.0 for the RC1 release for downlevel OS. Thanks. -Daniel (Microsoft) ...Show All
Visual C# assembly file
Hi everyone, I have again some doubts about assemblies. Suppose that w ecreate a class and then use some classes from different packages in this class. So, when I examine the references section about my project, I see that the all packages that I use is added into it. My question is that when I execute my program in the same class(in other words , my main method is located in the class that I use), do the assembly file, which is createn at the compile time, consist of the reference section and my own class Menawhile, I know that assembly file also contain metada and manifest but I refer to the IL part. Thanks If we want to use a class which is not located in our project's main namespace, we sould add its DLL(the main namespace of i ...Show All
Visual Studio DSL Installer issues
Hello everybody I encounter some issues when trying to create an installer for my DSL. I have successfully requested a package load key for it, registered it correctly (according to the corresponding MSDN page) and configured the installer definition file. I am able to build the installer project, I can event install it on a test virtual machine (I use VMware for that) and create a model file. But when I try to open it, I get two package load failure error messages. In Constants.cs, the same values for ProductName, CompanyName etc. are provided as the one in my package load key request. Is it possible that a missing assembly that is referenced by one of the package assemblies results in the same errors Thanks for your suggestions and help ...Show All
Visual Studio Express Editions Trouble changing Label Text Permanently
I have two custom fields in my application. By default, they are labeled Custom and Custom2. From the main screen I have set up a Text Box and Button to allow the user to rename the fields (the label) for their own use. The code I am using for the Custom field is below: Private Sub Change_Button_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Change_Button.Click List_Screen.Player_InfoDataGridView.Columns(9).HeaderText = CustomChange.Text Filter_Form.Custom.Text = CustomChange.Text Filter_Form.Custom_2.Text = CustomChange.Text MsgBox( "Custom field has been changed to " & CustomChange.Text) CustomChange.Text = "" End Sub To explain some of the code I am using, List_Scree ...Show All
SQL Server Replication row Commit Size
Is there a way to get replication to commit records in batches instead of all at once I am in a 24/7 shop and some of my updates end up being thousands of rows and it locks the subscriber table for a few minutes sometimes. If I could get it to commit say every 1000 rows it might give me some relief in this area.. Or am I thinking about this wrong If this is possible, would it help at all... I transactional replication adheres to the ACID properties, so if you apply 10,000 commands in one trasaction at the publisher, the distribution agent will apply the same commands in one transaction at the subscriber. You have a couple options: 1. commit your commands at the publisher in smaller batches. ...Show All
SQL Server SSIS Data Convertion problem
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1017518&SiteID=1 You can stop by reposting a new thread... It makes it harder to help you. See original thread here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1017518&SiteID=1 ...Show All
Visual C++ question about dlls
hey all i am using visual studio express and i was wondering if it was possible to creat dll files. i am putting a hook procedure in it. if it is please tell me thanx. There's no dll express. If you tell me exactly how it is not working, I can maybe help further. (For example, instead of saying "my bike's not working" you can say "my tire's flat"). ...Show All
Visual Studio Complex Business Objects
I have a problem with my report. My desire is to create a report using a complex business object like this: Object +--ID +--Customer (this is an object) +--CustomerID +--CustomerName +--Items (this is a collection of objects) +--Item0 +--Item.ID +--Item1 +--Item.ID Is it possible to create a report with an header (containing ObjectId and CustomerName), and a document detail (containing the list of items) I have already seen the samples on gotreportviewer site, and I tried to use nested data regions (the recommended approach) but with spare results. Can someone help me Thanks manu I seen this example but my object is more complex. I have problems to display data related to customer objec ...Show All
