carpediembr's Q&A profile
Visual Basic vb.net vs vb6 pros and cons help
Hi there i am a seasoned vb6 and vb.net developer and where i currently work, they use VB6. Now, we develop a range of office plugins for a client, and they currently use vb6, they also do some other projects with vb6. I want them to change to vb.net They have asked me for a list of Pros for switching, and also some Cons. The pros i have are: .Net is future proofed, VB6 will not be supported by Microsoft for much longer One standard platform to run on (.Net) removing problems of windows versions and missing dlls full OOP support and a generic Api for office application development. Integrate seamlessly with Java using bridging components (they are primarily a java house) Quicker performance On event app ...Show All
.NET Development Image does not display at Design Time - Custom Web Control
Hi, I am developing custom web control DropDownCheckBoxList using Dot NET Framework 2.0 and Visual Studio 2005 IDE. It is derived from DataBoundControl. The control contains an object of Image control, and it also has ImageUrl property which user can assign using Properties dialog in VS Designer. The problem is when user assigns ImageUrl, the image is not displayed in DESIGN MODE, though it displays it in run time. I do set ImageUrl property of Image control contained in my control and also renders the Image control but it still displays "No Image" icon in Design time. Any clue how to solve this The second important problem I'm facing is cursor flickering. My control's image changes on mouseover and mouseout at r ...Show All
Visual C++ How to extract time form MSG structure
Hi, How to extract time form MSG structure. I will get the format of time in DWORD how can i convert it in to time. hi nobugz ya thanks for sending me the solution. ...Show All
SQL Server Manually changing flat file source has no effect
I have a data flow that reads from a flat file source, goes through one data transformation component to change from unicode to normal text and writes the data to a SQL Server table. This has been working fine throughout development using a specific source file as input. I have now manually changed the path and name of the input source file in the connection manager to point to a new file and the task continues to process the old text file. I open the connection manager and check its properties and preview the data and it all looks fine - it is finding the new file. I also edit the flat file source component and preview the data and it shows the data from the new file. I run the data flow by right-clicking and se ...Show All
Visual Studio Team System Assigning same task to multiple resources
Hi , I have one query regarding VSTS and MS project integration. I have created a schedule through MS project. In the plan I have assigned a task to more than one resources. When I try to publish it to TFS, I got an error – A task can’t be assigned to more than one resources. Is there any alternate way to assign the task to more than one resources. Regards, Dattatray. See these posts: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=277816&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=640546&SiteID=1 The fix is in Service Pack ...Show All
Visual C++ MFC library via the web
Is there a site where I can search for functions in the MFC library I can't seem to find them via MSDN. I do a search for "registry" and I keep getting all this other stuff. I am still unable to find out how to write a simple application to read values from the Windows registry. Thank you. Jonathan Caves - MSFT wrote: http://msdn2.microsoft.com/en-us/library/d06h2x6e(VS.80).aspx When I visit this site and click around, why are there Chinese characters all over the place ...Show All
SQL Server how to build properly
Hi, I'm very new in SSIS. I've created 3 packages in the project. sometimes when i modified the project and save/save-all it, when i tried to build (isn't this used to deploy ), I am being asked by this: Package 1 has been modified outside the source editor. Do you want to reload it When I press on yes, all my modifications were not save. If i answered no, the build process stops. i dunno if this is because the build process is already finished or it was terminated because i chose 'NO'. When i tried to rebuild it again, it will ask me the same question. What is the proper way to save and build the project When it says ' do you want to reload it ', does it mean reloading the old copy before modification Thanks! cherri ...Show All
.NET Development Multiple Managed Debugging Sessions under one ICorDebugInterface
After I get an ICorDebugInterface can I open more than one debugging session, each in a different thread, with it Or do I need an interface pointer for each session. - Dan. However, I'd strongly suggest that you keep your ICorDebug and ICorDebugProcess objects 1:1. A single ICorDebug instance can handle multiple ICorDebugProcess instances. The ICorDebug interface could have be alternatively "ICorDebugProcessCollection". Reasons to keep it 1:1: - this plays better with the debugger versioning story . - this has nice future-proofing qualities . - it reduces corner cases . Most often, you'll have only have 1:1 for ICorDebug : ICorDebugProcess. If you take advantage of ICorDebug supporting m ...Show All
Visual C# Problem writing to a custom event log
Hi, I have developed a windows service (which works), however the problem I'm having is writing to a custom event log. I have managed to create an event source for my service and register it to my custom log (double checked this in the registry) but I keep getting the following message appearing in the Application log (nothing gets written to the custom log): The description for Event ID ( 0 ) in Source ( EmailForwarder ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Visual Basic filling a bitvector32 in a loop
Dear all, I can fill a bitvector32 like this: Dim InBytes As Int32 dim i for i = 1 to 1000000 InBytes = i 'for example Dim InBitVector As New System.Collections.Specialized.BitVector32(InBytes) next i and then I can read out the individual bits (need this for a graphics conversion). Problem: this gets VERY slow, and I trailed that to the Dim InBitVector statement. Is there ANY way to assign an Int32 number to the InBitVector WITHOUT using the dim statement Thanks, Kees You could probably make it faster by using bit-masks. You should try it though, BitVector32 is quite efficient: Bitvector2.Item(31) = CBool(InBytes And &H40000) Bitv ...Show All
SQL Server Temporary table name
Hi all Is it possible to name a table when a script runs with the date ie select name, address into test (date) from company where the (date) is will be todays date Thanks Richard Sure, DECLARE @tablename as CHAR(20) DECLARE @SQLString as VARCHAR(100) SET @tablename = 'Test'+CONVERT(CHAR(12),GETDATE(),112) SET @SQLString = 'SELECT Name,Address INTO '+ @tablename +' FROM Test' EXECUTE sp_sqlexec @SQLString Peter Cwik ...Show All
SQL Server Setting the Legend color on a stacked bar chart
I am trying to develop a report that will show a 100% stacked bar graph for many teachers. Each teacher will have there own graph. The series in the report are the percent of scores given on a test, with each test in a group. Scores are given on a scale of 1-4. Most of the time a teacher will have all fours scores in there data; however it is possible to only have 2 or 3 of the scores. How can I set the legend up so that all scores across all the graphs show the same color for the same data series Right now I get something like this. First Graph 4: Lime 3: Purple 2: Blue 1: Green Second Graph (no values for 1 or 2) 4: Blue 3: Green I need the second graph to ...Show All
Visual Basic Listview remove multiple items
I everyone... i've got this code to remove all selected items in a listview... but i like to know if there is any more simple code to do this ... My code: Dim i As Integer With frmMain.FeedsList For i = 0 To .Items.Count - 1 Try If .Items(i).Selected = True Then .Items.RemoveAt(i) i = i - 1 End If Catch End Try Next End With Thanks No problems, we look forward to hearing from you again and from you actually helping other users. Remember forums are about community and reading other peoples posts and following threads will make you think about things and improve your knowledge of the language. ...Show All
SQL Server Sync will work only 1 time.
I am really stuck on this, if anyone has some insight into this problem any help would appreciated... I'll try to explain what is happening the best I can: We have a server running Windows Advanced Server 2000 (SP4) w/ SQL server 2000 (SP3) (from now on Server A). I have a publication on this machine with dynamic filters (Changing the HOST_NAME()). The publication is sending the snapshots to another machine (desktop machine). The Mobile agent is in the same machine as the snapshots. The mobile application is syncing fine when hitting Server A. The sync is done Asynchronously. Then we have Server B. Running Windows Server 2003 (SP1) w/ SQL 2000 (SP4), same publication w/ dynamic filter however the snapshots and the mobile agent a ...Show All
