Avy32's Q&A profile
Visual Studio 2008 (Pre-release) Synchronizing an 'Order'
Hi, I'm not sure if Synchronization Services can help me but I hope so. Suppose I create a new an Order in the client side. It has header and lines. When I synchronize with the server I need two things: - I need to be sure the header and the lines are inserted in the same transaction. - I need to validate the Order. Even if it was valid in the client side, I need to be sure it's valid before inserting it in the main database. Can this be done with Synchronization Services Thanks Well, I am not sure I understand what you are trying to do. When you say use "use synchronization framework to know which orders changed", I assume you have made changes to either the client or server ...Show All
Visual C++ Using animated GIF image in Forms
Hi, I'm trying to use an animated gif image in a form within C++/CLI but so far without success. I looked at picturebox control but the image stay still, no animation. I browsed the NET to find any clue to my problem and got a few articles stating the fact that I have to make somekind of class that would rather display one at a time each frame found in my GIF. Any clue or easier way, any example on how to do it Thanks in advance, Stephane Please see these articles Add GIF-animation to your MFC and ATL projects with the help of CPictureEx and CPictureExWnd Adding GIF-animation using GDI+ ...Show All
Visual Studio 2008 (Pre-release) ListBox performance issue [Bug?]
I ran into what I thought was a small, subtle problem, I built up a sample reproducable and things look a lot more scary than I expected. I was implementing GetHashCode on a data item that was being displayed in a ListBox . After doing so, I started to notice performance problems simply moving the Window containing the ListBox around. The sample reproducable below creates a ListBox , when GetHashCode is called on the single item within the ListBox , a count is incremented and displaybed in a TextBlock . It seems simply updating the TextBlock is enough to invalidate whatever the ListBox is trying to recalculate and the count grows unbounded. What I don't understand here, is why the ListBox doesn't cache whatever it is trying to rec ...Show All
Smart Device Development How to load the texture in WindowsMobile.DirectX?
Hello. In Visual Studio 2005 in projects Visual Basic, Windows Mobile 5.0 Smartphone, Device Application I have debugged (from msdn2, Managed Direct3D Mobile Samples) four samples: Direct3D Tutorial 1, 2, 3 and 4. However I cannot debug the fifth sample "Direct3D Tutorial 5 - Textures". In this sample for loading a texture is used the next line: TextureImage = TextureLoader.FromStream(dev, _ Assembly.GetExecutingAssembly().GetManifestResourceStream( _ "Textures.Banana.bmp")) In this line instead of the word "Textures" I wrote down both the name of project, and the name of file, and the name of folder, in which I have copied the texture Banana.bmp. I have added the texture Banana.bmp in the p ...Show All
Visual Studio Express Editions Chaning build directories
I'd like to be able to change which directory VC++ puts my .exes, debug databases, .obj files, and everything else it creates. Idealy, I'd like to be able to seperate them so that I do have one bloated folder containing many files that aren't needed to run the program. In Code::Blocks I could do this with the "Execution working dir:" and "Objects output dir:" settings. Is there a way to do this Thanks. Take a look at http://msdn2.microsoft.com/en-us/library/ms165410.aspx Thanks, Ayman Shoukry VC++ Team ...Show All
Gadgets Network activity monitor ?
Hi, I'm looking for a network activity monitor gadget but I can't find any !! I only found NetMonitor and NetActivity but I can't even install them. Any ideas thx v0.9.0.0 is available here . ...Show All
Visual Basic HELP! VB code to get attributes of MS project tasks!
Hi I hope someone can help me with this, its been driving me crazy all weekend! I am trying to write code to get the attributes (name, wbs number etc...) of all the task in a microsoft project file. Here is the code that I have so far: Dim test2 As New Class1 For Each T In ActiveProject.Tasks test2.task_name = T.Name test2.wbs_number = T.Wbs test2.planned_start = T.Start test2.planned_finish = T.Finish Next Cals1 one is a class the I have written to store and modify the attributes of the tasks. This code works fine however the problem that I am having is how do I get the infomation of the % complete column I have tried everything I can think of, including: test2.percent_complete = T.% C ...Show All
Visual Studio Express Editions VB.NET Express Beta & Crystal Reports
How i can implement a Report in my project .. i use the beta version of VB.NET Express.. in VB.NET 2003 i can add ... but in this version doesnt show ... Salu2! The good news: You can use crystal reports with Visual Basic Express The Bad news: There are serious limitations with what you can do!!!! The details: I am writting an app that creates monthly reports of sales for all customers of a specific type. I basically runs in batch and spits out a pdf format of a report showing the details for each customers monthly transactions, yearly totals, contanct info etc. Although I havent finished yet I can create the reports I want with out too much difficulty. BUT I cant seem to ...Show All
Visual Basic Visual Studio 2005 Pro - Academic Version
I'm thinking about ordering VS Pro from school, but they can't give me details (it's not kept in stock)... does anyone have the academic version and does it require internet regsitration/activation Some people are saying yes, others are saying no. Thanks Any mention of off topic item was evidence and reasoning for this on-topic question. Express products on CDs do not require it - only downloads. I also have the VS standard version CD which do not. I've had these for about a year or so but only since last week I've finally abandoned VB6 Pro for Net.. but now I want to go 64bit Pro. ...Show All
Visual Basic Problem With Automating Outlook
I was having a problem, but I am wondering if there is a an alternative to CreateItem... I should tell you that I am using the 2003.net Standard Edition which may not have all the bells and whistles of the professional... Now here is what I want to do... Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ...Show All
Windows Forms SuspendLayout and Layout Event on a UserControl
Hi! Is there any way to force Layout event to be fired Here is what I have in mind: I have a UserControl which has a number of custom properties. Each time the value of a property changes this has impact on some controls added on the custom control. To improve peformance I want these modifications to be suspended when SuspendLayout was executed for the control. So I thought that the proper thing to do is to add the code that applies property modifications in the Layout event. What is left to do is force this event every time a property changes and let the framework decide whether to fire the Layout event or wait since SuspendLayout was executed. Is this right If so how can I fire the Layout event only when SuspendLayout was not ...Show All
Smart Device Development MSMQ Book Order Application Sample
hi i have taken this example at http://msdn2.microsoft.com/en-us/library/ms180970.aspx this is used to transfer messages between device and desktop queues this application run ok but it doesn't send the messages to desktop queue i am using vs2005 and and emulator pocket pc-wm5.0 please suggest thanks arvind Any use of MSMQ on device require you to install MSMQ service, whatever you want to send message from device to desktop, from desktop to device or even within the device. Without that you would get an exception saying "MSMQ is not installed". Your desktop needs MSMQ installed as well if you want to exchange messages in any direction. So make sure to install and properly c ...Show All
Smart Device Development Issue with Device Emulator screen buffer limit set to 1 MB
Hello All, I need to run 800x600x32 color depth which won't fit in the current device emulator settings. Any thoughts on how I can fix this Thanks in advance for any help :) Bob Hanson Sorry but deviceemulator.exe and BSP code restrict the limit to 1MB only. But since you will be having BSP code (From PB) and share source of Device Emulator (Free download from Web), you can generate your own custom DeviceEmulator.exe and corresponding image if your project requires it. Hope this helps. -Thanks, Mohit ...Show All
SQL Server Navigating to a report in another folder
I'm setting up a reporting system that eventually will contain potentially hundreds of reports. I'm setting up the system using a folder system to combine similar reports together. Many of these reports contain drill-down (ie: Navigating to another report). In some cases I have Summary Reports that will need to navigate to reports in other folders. I've tried different ways of linking to these reports - but with little success. It seems that the Navigate to another report is strictly limited to the current folder - it won't accept a '\' character to signify drilling deeper into the heirarchy and when I try creating the links using URL's it seems that the Report Manager doesn't accept parameters like the report viewer. I woiuld appreciat ...Show All
Visual C# Error when trying to compile a program
I am quite new to Visual C# 2005 Express and I sometimes get an error while trying to run my program (F5). It looks like this: "The following module was build either with optimizations enabled or without debug information: C:\Documents and Settings\CBS\My Documents\Visual Studio 2005\Projects\Lesson02\Lesson02\bin\Debug\Lesson02.exe To debug this module, change its project build configuration to debug mode. To supress this message disable the 'Warn if no user code on launch' debugger option." The strange part is, that this message first appears after some time working on the project. If i start an entire new project the program starts just fine. Any ideas how to solve this Th ...Show All
