av_ster's Q&A profile
Visual C++ How do I include CInternetSession?
CInternetSession requires the "afxwin.h" header file to be included. If i put #include "afxwin.h" at the beginning of my program i get an error message saying that "afxwin.h" doesn't exist. If I do not type this it can't find any of the CInternetSession functions. What do I need to include/do in order to use CInternetSession As Viorel indicates, CInternetSession is an MFC class. You should create a project for your MFC application. In other words, begin your project by creating a starter application that uses MFC. Then you will have details such as an #include for afxwin.h done for you. Unless you have the Express Edition. If you do, then you should ask in the forum for i ...Show All
Visual Studio Error 1606. Could not access network location. SP1 for VS 2003 & 2005
I tried to install the SP1 for VS2003 Pro and I get the Error 1606 Could not access network location:. I have gone through all the reg fixes for this that I can find on line, but still get the error. I have re-loaded the SP1 file, turned off the firewall, virus protection etc. but no go. Any ideas would be helpful. Thank You I observe exactly the same problem as descrived here. I have searched the registry for any refeence to network location the setup reports it could not access, but did not find any. Anyone can help ...Show All
Smart Device Development Home screen plugin for smart phone
I want's to make a smart phone home screen plugin in which my application[which is a C# application] shortcut icon appear on the home screen. I have make a today screen pulgin for this purpose for pocket pc.But I think home screen behavior is little bit different. In pocket PC I add the registry entries in the HKLM\Software\Microsoft\Today\Items\.... But Like Pocket PC I can't find the registry entry for Home. What I want's is the home screen extension that if user change any of there home screen this link should remain same on each screen Never seen any samples that does what you are asking for, but you can do it in setup.dll. One important thing will be the uninstall procedure... You will then have to delete all references to your ...Show All
SQL Server User securables
I use Win XP version 2002, SP2 and SSE version 9.00.2047.00 I create a database user and I add the securable objects (ex selected tables) to securables section of user properties. I press ok. When I re-open the user properties the securable objects are not there. They are not displayed..! Any suggestions Well, I can tell you that they indicated it would be part of the next update, to SQL Server, however, for the time being you have to manually re-select the objects to view in your window, then when selected it will display the current security... The information given to me at the time was related to performance, but to me it still seems like unreasonable behaviour. ...Show All
Visual Studio Team System Trying to save a work item that is not up-to-date
In a Web service Store.GetWorkItem(id) is called and some changes are made to the work item. At the same time the work item is being modified and saved by a user. What is happening when the Web service then tries to save the work item that is no longer up-to-date (Is an Exception thrown ). What if Store.BatchSave(..) is called to save a collection of work items and some of them is not up-to-date In addition I have a question regarding performance and the creation of TeamFoundationServer and WorkItemStore objects from a Web service. Should the two objects be created each time the web service is called or stored as static members that is created once Yes, an exception is thrown when saving a workitem if ...Show All
Visual Studio 2008 (Pre-release) How to get the positon of the control's left edge, in relation to the desktop?
How to get the positon of the control's left edge, in relation to the desktop In win32, we can use GetWindowRect() to get the window's position, and the conrol is also a window there. How can we do that in WPF (The control in WPF is not a window) http://blogs.msdn.com/llobo/archive/2006/05/02/Code-for-getting-screen-relative-Position-in-WPF.aspx ...Show All
.NET Development There are no primary or candidate keys in the referenced table that match the referencing column list in the foreign key
Hello, i am facing problem creating a database with tables which have contraints. I receive the error: "There are no primary or candidate keys in the referenced table [SomeTableName] that match the referencing column list in the foreign key [SomeForeignKeyName]" I realize that the column list in the [SomeTableName] table must be unique for foreign key constraints. But i am not trying to create any constraints! [SomeForeignKeyName] foreign key is a "Relation Only" relation for easy mapping. I cannot put the unique constraint on my column list because it cannot be unique! (besides, eventhough I make it unique it for debugging purposes, i still get the same error!) here is info about the table structure: Table 1 : Column 1 (Primary Key), Colu ...Show All
Visual Basic Text formatting
Hi guys, I have textboxes which receives different types of input; Number/double, Number/integer, text characters and date. My problem is finding a control to enable me set the format depending on the type and nature of input I required in a given field. If the control does not exist in design time, how can it be formatted to receive different inputs perhaps a maskedtextbox is what you are after http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx ...Show All
Visual Basic Activation of Help files in VB 2005
How can I cause a .chm helpfile to open by clicking a menu item e.g. HelpToolStripMenuItem Which code do I need inside the click event Thanks RichKorea, This works, but I want to add that the string with the help file address needed file:\\ to start with e.g. file://D:\Data\Help\calc.chm . ...Show All
SQL Server DTS: single SELECT from 2 databases possible?
Just wondering, in DTS, can I run a SELECT script that selects from 2 different databases (both on the same server) I can run this in Sql Query Analyzer, but in a DTS, it doesnt accept my database name prefixes: SELECT a.something FROM DB_ONE.dbo.product a, DB_ONE.dbo.mp_brand b, DB_TWO.dbo.lk_pcat_cutover c WHERE a.PCat <> c.Pcat (where DB_ONE and DB_TWO are the 2 different db names) I have one connection to DB_ONE... does this mean I cant access DB_TWO when using this connection I want to try and avoid using a temporay table for storing DB_TWO's data in DB_ONE... Is this possible Thanks, Andre ...Show All
Visual C++ cli; a namespace with this name does not exist
In an attempt to get a pin_ptr working, I added the "using namespace cli" to my namespaces, but the compiler returns the error "error C2871: 'cli' : a namespace with this name does not exist" I did several searches on MSDN and only found one possible problem; that my compile command did not have /clr in it. I looked in the property pages of my program, and saw that Use Managed Extensions was set to Yes, so I thought that covered it. I don't see how it would help to show my code, as the compiler doesn't even get past the namespaces. However, I can give other information if necessary. (bear with me, I'm a very novice programmer thus far) Hello Did you read this page http://m ...Show All
.NET Development using WMI on server 2003
Hi, I'm devoping an application that should run under windows server 2003 and get information about other computer on the same domain using windows's API (mainly WMI), by that i mean that nothing should be installed on other machines. I started coding under XP and tested connecting to a server 2003 machine but now i run the application on server 2003 ant when i try to connect to the same machine i get "The RPC server is unavailable" exception. Is there a way to fix this to work under server 2003 Hi, Is your Remote Procedure Call (RPC) service started on the server machine, and the Windows management Instrumentation Usually I got that message when the target server is off, or the RPC is off or ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Calculating normals for large mesh with no vertex to triangle info
I have a mesh of 100.000 triangles where I need to calculate the normals for the vertices. The datastructure, I am using, does not point from vertices to triangles, but only the other way arround. I therefore defined my vertex normals as the sum of the triangles using them, weighted by the triangles size. I simply set all vertex normals to zero and then run through my triangles (when running through them anyway for some other task) and add a triangles normal (weighted) to the vertices it uses. The I run through all vertices and normalize the normals. This is suposed to give me a valid normal for the vertices. I am not much liking waht i see though. The entire terrain is filled with little pyramids. Light ones and dark ones. When I ...Show All
Visual Studio 2008 (Pre-release) Hello World from WPF in C#
Once again, as I begin to teach myself a new technology, I can't even get "Hello World" to compile. The compiler (VS 2005) can't even see the Main() function. I am learning from Chris Sells and Ian Griffiths Oreily book "Windows Presentation Foundation" but it looks like things have changed so much since then (Sept 2005) that the book examples simply do not work. Regardless of what the book reviews say, Oreily's errata page is not up to date. What kind of a project do I create for a WPF application What are the VS 2005 VS 2005 compiler and IDE settings for a WPF application in C#, C++ Does anyone have a VS 2005 Solution with a simple WPF "Hello World" program in C# or C++ I have intsalled .NET 3 ...Show All
Visual Basic The Discontinuation of Microsoft Windows
I have just been informed that Microsoft will likely in 2010 discontinue the Windows operating system and replace it with an entirely new code base. I desperately need someone to tell me if what I am doing now will be completely useless in the near future. http://support.microsoft.com/gp/lifepolicy Best regards, Johan Stenberg ...Show All
