JLutz's Q&A profile
Visual C# Cost for Moving controls from one form to another
My project used some third party code for docking control. I need to close all the opened documents when I changed the document style. For me, it is very expensive to do close->open. I wonder if I can move all the control (mainly an OpenGL rendered control) from the form to a new created form with the right style. I want to know if there is a better way. Thanks. I hope I understand what you are talking. You are talking about moving one control to the other form in design mode , right May be you can consider writing macro in the visual studio environment to help you easy your task. Or you can try some other 3rd party productivity tools like MZTools. ...Show All
Visual C++ error LNK2019: unresolved external symbol ...
Hi, Help me please... While linking this : .h : int calculerPondTh( const STATIONS_METEO &stas_meto ) const ; .cpp : int ZONES::calculerPondTh( const STATIONS_METEO& sta_meteo) const { int surf,nbstm,nbstm1,resultat=-1; int *no_stations=NULL; int acalculer; float *dist_stations=NULL /*, facteur*/ ; register int i, j, k /*, nbStas*/ ; // Variable de boucles. float *pondTh, *temp; COORDONNEE *coord_point, *coor_sta; int nb_lin, nb_col; // Nombre de lignes et de colonnes composant // la matrice du bassin versant. int v_zone,v_zone1; long sta_donnees_lues /*, donnees_meteo_lues*/ ; FILE *fichierPondTh=NULL; SYChaine nomFichPondTh; char *pond; ...Show All
SQL Server error: 26 - Error Locating Server/Instance Specified
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Does anyone know what could be wrong Naeem Sheikh wrote: I installed SQL Server 2005 and I unable to connect my client Machine. I Created a DSN to connect to the Database through ODBC. Locally I am testing and everything works fine. The error is “SQL Server not Exist or Access Denied” on a client machine. I m using SQL server authentication with Mix mode installa ...Show All
Visual C# System.AccessViolationException: Attempted to read or write protected memory
I am using .NET 2.0 VS2005. I am writing a network application to allow users from other PC to talk to my application (running at my PC) to print through my printer driver. I got this runtime exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at PrintGateway.PrintEngine.OpenPrinter(String szPrinter, IntPtr& hPrinter, IntPtr pd) at PrintGateway.PrintEngine.SendBytesToPrinter(Int32 flag, String szPrinterName, String docname, IntPtr pBytes, Int32 dwCount) in E:\PrintGateway\PrintEngine.cs:line 70 at PrintGateway.PrintEngine.SendStringToPrinter(String szPrinterName, String docname, String szString) in E:\PrintGat ...Show All
Visual Basic Groupbox lostfocus event
I have a form with 12 groupboxes. Each groupbox has seven textboxes that need to total and calculate a percent. It is going to entail 12 subs that do calculations and 84 textbox.lostfocus events to call one of the 12 subs for calculations. I would rather tell it to do the calulation when any textbox in a groupbox looses focus or the focus ends up out of a groupbox. Is there someway to say dim ctrl as groupbox3.control then on ctrl.lostfocus, do a calculation OR on groupbox3.lostfocus do calculation3 I have set a stop in the groupbox3.lostfocus event but I don't know how to make it fire. I am just being lazy, I don't want to code 84 places to do the same thing. Thanks Rich That's pretty cool Dave. Unfortunatly ...Show All
SQL Server POST method for .aspx pages to SRS
I have a few reports that require parameters to be passed for running. I would like to create some .aspx pages with drop downs/list boxes to alow the user to select the parameters and then run the reports (part of an intranet application). I fill these boxes with items from a database. The problem I am running into is if I make the FORM action=http://192.168.0.50/reportserver.... and not have runat=server set, I get an error that the dropdowns must be in a runat=server form. But if I put the runat=server in the form tag, then the page reposts to itself and will not go to the report url. I've tried using response.redirect, but that only works if I build the parameters into the url. I don't want them to show in the url, hence the reas ...Show All
Visual C++ Regarding destruction
Please have a look at below sample code: #include<iostream.h> class Test { public: void fun() { cout<<"In fun"<<endl; } Test() { cout<<"In const"<<endl; } ~Test() { cout<<"In dest"<<endl; } }; int main() { cout<<"Hello"<<endl; Test * t = new Test(); t->fun(); delete t; t->fun(); return 0; } In above I created object "t" and destroyed using delete operator. After destroying also I am able to call the function "fun".How it is possible output of above code : Hello In const In fun In dest In fun If i am able to call the function , than what actually destruction will do ...Show All
SQL Server How to get cube role from Analysis Services
Hello everyone, I want to get cube role from analysis service and write into another cube by programming ways not by hand,while I can't find better ways, so would you give me advice,and thanks so much! In Analysis Services 2005 there isnt a cube role. Role object belongs to a database object. If you'd like to access this functionality progmatically, you should look at the AMO- Analysis Management Objects object model. You can use any of .Net languages to create scripts and applications using it. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
SQL Server Sql Server 2005 servcie domain accounts
Hi There Currently we run a certain instance , agent under local system on a server. I want to create specific domain accounts for the sql server service and agent, now i know that one should create these accounts with the least priviledge for security reasons. cannot find the topic in BOL, can some please give me the BOL topic or a link to exactly what the least priviledge is for the domain accounts for sql server services. Thanx In SQL Server 2005, the service accounts will be made members of local groups, which had all the necessary rights assigned to them when they were created at setup time. If you check the groups on your machine, you will see a number of them with longer names; for ...Show All
Smart Device Development I want a button that will navigate to the My Document folder when pressed
I want to have Buttons in a VB Form navigating to places like,My Documents, Network Places, My Pictures etc. Does anone know code for me to be able to do this... Thanks When the button is pressed nothing happens and I want it to take me to the "my documents" folder.................. ...Show All
SQL Server Insall SSMS from 64 bit media on 32 bit workstation
I'm having no success install SSMS on a 32 bit workstation from 64 bit media. I'm aware from researching that the SSMS is 32 bit, in fact I see it run as a 32 bit app on the server. However, when i try and install from the 64 bit CD or DVD I get errors such as not a valid Win32 application, or when i tre random msi's guessing as to which is ssms I get "This installation package is not supported by this processor type. Contact yoru product vendor." I run a Pent D 2.8 on 32 bit XP Any assisstance on how to install SSMS on a 32 bit workstation from the 64 bit media would be greatly appreciated. YOu will have to get a 32bit media from your vendor. Medias can be ordered spearately (as it w ...Show All
Visual C++ F1 help -> "Inforrmation Not Found" ?
The online help seems to show me the "Information Not Found" page quite often, even for things that it seems to find. For example, in a .c file I hilight "EnableMenuItem" and hit F1. I get the "Information Not Found" page, but down in the "Index Results" window it shows 1 topic found, and I just have to click on it, and then it shows up in the main help window. Why doesn't it just display this instead of telling me information not found Maybe I don't have something configured right Any help would be great. Thanks, Mark Beiley Software http://www.beiley.com My apologies -- there were problems with the approach of fixing the target topics (by adding a DevLang att ...Show All
SQL Server SQL or Visual Web Developer 2005 to arrange phone number formatting?
i am trying to build a database that contains a coloumn of phone number but i reallly dont know where and how i will be able to give a specific format for phone numbers.. or anything else any common type of information that may have a format.. Will i use Visual Web Developer or SQL Server Management or whatever else to arrange my phone number coloumn for just creating this "special" column in SQL Server you could use SQL Express Mgmt Studio w/sqlexpress ( http://msdn.microsoft.com/vstudio/express/sql/download/ ). the tsql for this is as follows: CREATE TYPE SSN FROM varchar(11) NOT NULL ; You would use Visual Web Developer if you intend on creating a web-based front-end application to your ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Destructible terrain 2D
Greetings, For lerning XNA i figured why not make a Space Invaders clone in 2D. But something escaped me, being the novice i am. How do i make the shields destroyable, as far i can se it makes no sense to make each shield one sprite. So my question is how do i build these do i build them from 1000 spirtes the size of one pixel. or do i make one sprite and overlay the destruction in some way. I dont know how to do this, anyone care to share ideas br Lasse Knudsen A couple of ways: 1) Make a sprite that contains the various pieces that can be blown out of the shield and lay them over the whole shield 2) Make a sprite that contains the shield in various sta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA doomed?
XNA may be the greatest thing since sliced bread, but I don't see it getting a lot of support until you make a simple web page that explains what features the XNA framework supports and why I would want to use it. I'm not going to download the thing just to figure out what it is. I also find this thread to be a little silly. I compare your statement to someone coming along and looking at a can of Coca-Cola and saying, "This product will certainly fail, it doesn't give a good idea on the can of what it tastes like." If you really are the type of person who needs to know what something tastes like before you try it, then you should sit back and let the early adopters enjoy the flavor of a new expe ...Show All
