GP_S's Q&A profile
Visual C++ Multithreading and DoEvents.
Hi, I have a dll in VC# (Visual Studio 2005). The dll was created by me and it has threads for sending and receiving data over sockets. ( Actually it was a server code I was working on and now I needed to integrate with a third party tool which is in VC++, so I created a dll). As the threads had infinite while loops in them I was using Application.DoEvents before calling the while(true) statements in the VC# server. When I created the dll I had to remove the doevents part ( as there are no forms in a dll). Now when I use the dll in the VC++ code, it really slows down the application ( I am normally rendering frames at 40fps but when the sockets start sending and receiving I only get 1 or 2 fps). So my first question is that is there ...Show All
Silverlight (formerly WPF/E) Why using "javascript:functionName"?
Hi, I would like to get an answer why the JavaScript event handlers have to be written not very JavaScript like. element.loaded = functionName"; instead of element.loaded = functionName; Will there be any other protocol available than JavaScript Michael For our Mix release we are eliminating the need to do " in XAML and we are also enabling normal JavaScript event handling semantics. Adding an event in JavaScript will look like the following: canvas.addEventListener("MouseLeftButtonDown", handler); rather than: canvas.addEventListener("MouseLeftButtonDown", handler"); Joe ...Show All
Visual C++ Switching from BETA to RELEASE VS 2005 gets me an error!
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(1814) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CCmdTarget::CCmdTarget(const CCmdTarget &)' I think you should locate the part of your code where this error occurs and then show it us. It seems you are trying to do an incorrect assignment or function call. ...Show All
Visual C# Cast <IList>
I have something like this... public static IList < AbstractKeyValueEntity <T>> Values<T>( ListBox listBox) { IList < AbstractKeyValueEntity <T>> results = new List < AbstractKeyValueEntity <T>>(); foreach ( ListItem item in listBox.Items) { if (item.Selected) { results.Add( AbstractKeyValueEntity <T>.GetLookupByEntityID(item.Value)); } } return results; } I make a function call something like this something is of type IList something = ( some ) CallFunction .Value< some >(DownList); I get an error saying Cannot implicitly convert type ''some' to 'System.Collections.IList'. An explicit conversion exists (are you m ...Show All
Visual Basic windows media player
Robinjam, I don't think this will work. If you reduce the opacity of a container of a control, the controls opacity is also reduced accordingly isn't it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. fx include not found - December SDK change
if I load an fx file from a sub-directory like so: D3DXCreateEffectFromFile( device, L "subdirectory\\effect.fx" ... and that fx file contains an include statement that includes another fx from the same subdirectory, then the included file will no longer be found in the December 2006 SDK. To make it work, you must SetCurrentDirectory to the sub folder first. Is this change a bug or feature Andy I tried using the legacy flag with D3DXCreateEffectFromFile, but my [CLR/C++] program then crashes on releasing my effectPool with an Access Violation. So I don't know whats going on there! ...Show All
Smart Device Development System state error
I try to write a c# program which use system state to detect cradle, and got this error during build. C:\Data\wm5api\wm5api\Form1.cs(15,21): error CS0012: The type 'Microsoft.WindowsMobile.IApplicationLauncher' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.WindowsMobile, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Can't understand what this error is about and don't know how to rectify it. Thank you ...Show All
.NET Development Best Approach to Throwing/Handling Exceptions
Hi all, I am writing an application that has several layers, where in each layer there is the possiblity of Exceptions being raised. Where is it best for my to handle an exception if it is raised in a lower layer, such as the data layer For example, I have the following layers... UI Layer (Form) -> Middle Layer (Manager Classes) -> Data Layer (Database Classes). If a query against the database raises an exception, is it best to catch this in a try->catch block that is based in the UI layer in which that block calls the Middle Layer, which then calls the Data Layer Or is it best to bubble up Exceptions from the Data Layer to the UI Layer and catch this bubbled exception in each layer (I am going to use this code on a mobile device ...Show All
Visual C# Move objects between System.Collections.List
Hi! I have two Lists (System.Collections) and I want to move (or copy) objects from the first to the second one. This is my code for(int x = 0;x < list1.Count;x++) { list2.Add(list1[x]) } But every time C# gives this error: Object reference not set to an instance of an object. How can this problem be resolved Thank you! In the documention for System.Collection.List I noticed this little gem: http://msdn2.microsoft.com/en-gb/library/fkbw11z0.aspx So basically if you do this list2 = new List(list1); List two will have a copy of the first list. You should start reading the documentation for any objects you use in the .Net framework, it's generally a lot faster then asking questions. (N.B. I'm ...Show All
SQL Server 2005 Reporting Srv cannot connect to Oracle datasource on web server
created an Oracle datasource (tried both ole db & oracle client) in Visual Studio 2005 report project - works fine connecting and preview of report within ide , deployed to Reporting Services web server, received the following error when attempting to run the report on web server: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'oracle'. (rsErrorOpeningConnection) System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. web server has oracle client 9i client installed and connecting to db ok through sql plus (this server also is loaded with VS2005 and the SqlServer2005 db) any thoughts or direction greatly appreciated ...Show All
Visual Studio Express Editions Opengl using C/C++..Help
Hello , It is for the experince in programming. I need information about how can I install the opengl program and from which link What support it needs ,library ,C/C++ And a basic knowledge of how I use it to get a scence of my image greetings SHERIN This is a bit off topic, you should try posting in one of the opengl groups.. try the forums on www.gamedev.net ...Show All
Visual Studio Visual Studio 2005 setup is endless!!! EXtremely buggy!!!
my visual studio 2005 pro install has been going on since yesterday morning at 8 am and it still hasn't completed! What do you say to this BUGGY SETUP program My machine has 1.2 GB RAM. I even left it on overnight!!! It's hogging my machine! I'm really disappointed with Microsoft for making a product which is so buggy right from startup!!! I wonder what will happen if I actually start using it!!! well firstly, did you read this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=778624&SiteID=1 from start to end secondly if it were that buggy then it would never have been released as well as not being able to install it on many hundreds and thousands of computers! :-) Remember, you maybe ...Show All
.NET Development Web services in windows xp
can i deploye a .net 2.0 web service in a windows xp in network enviorement. Thank you. Rohan Fernando Yes, you can deploy .NET 2.0 WebService on Windows XP machine. XP is having IIS 5.1, so you might need to make changes in properties of your virtual dir in ASP.NET settings tab to point it to Framework version 2.0 ...Show All
Visual C++ I can't input or output
Ok i tried namespace and STD then namespace AND std and nothing works, i tried about a hundred different codes and none of them work, it says "cout undeclared identifier!" please help! should i send it back or is theresomethig easier/ The below code should work. #include <iostream> using namespace std; int main() { cout << "hello" << endl; return 0; } Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Controlling the name of the .sql file.
Is there any way to control the name of the .sql file that is produced by datadude The background to this is that we want to put in a Post-Build step that chnges the .sql file to a name that is short enough for MSBuild to use. We've tried changing the name in TFS Build but thatr doesn't work because we cannot predict what the name of the file is going to be (because it puts the server name in there). Thanks Jamie Jamie Thomson wrote: P.S. One other (very minor) thing, why does the .dbproj file not contain a < xml version="1.0" > element I like opening these things up in IE in order to nicely format the XML but without that tag it doesn't do it. Now tha ...Show All
