Alessandro Camargo's Q&A profile
Visual Basic Need help creatng various things
Hello,i do not know a way to do this,but i need to do it as a project, how can i make vb paint on the screen with a marker cursor,which i can change color and run in the background that will help me run it not visible but still can use explorer and shortcuts in the program: IN other words... 1-how to make it paint with my cursor 2-change color shortcut while program is hidden 3-how can i make it run in background with a toolbar icon and still use shortcuts both on explorer and the program I don't really understand what your trying to do but from my interpretation this is an answer to 1. Its terrible however as its dodgy and only works when the form is maximised and you can't click anything ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing into the ZBuffer
I wish to "clear draw" a perimitive into the ZBuffer. What I mean is, I want to draw the geometry of a mesh or perimitive into the ZBuffer, where in each place a pixel should be drawen, the ZBuffer value in that place will be set to 1. How can I accomplish this Thanks. Did you mean post transformed POSITIONT is an already transformed vertex. However, how do I set or clear the ZBuffer value in the pixel shader By the way, I didnt get an alert for your reply and I didnt mark it as answered and it was marked as answered. You have an idea why ...Show All
.NET Development KB917283 KB922770
I have tried many times to install these two critical updates on each occasion it says successful installation and shows up as ok on the program list but then when I reboot my PC I get the same yellow icon telling me to install them again. What can I do I have both of them...and the same problem as the other guy above.....cannot install....FAILED! :S What about that log....%temp%\NDP20-KB917283-X86\ ...i couldnt find it :S I have a new fresh Win XP SP2 english up to date with IE 7...and this is the only update that keeps downloading and trying to install....but nothing.... any clue ...Show All
Visual Basic XML in Treeview
OK , I have looked and still can't find the right stuff. SO I am working on this project, that takes an XML record and displays only the parent node in the treeview. That part I got but where my problem is when you click on the parent node it is supposed to navigate to a web page related to the node. Also by hoveing over the node I am supposed to have a tooltip description appear.My XML is as follows.... <title>Herbs</title> <link>C:\Documents and Settings\HP_Owner\My Documents\Dominion\Content\Database\herbs.html</link> <description>a book on herbs</description> In the tree view only the <title> wil;l display, when I hover over the node it should display the <description> and ...Show All
.NET Development How to use IDataAdapter ??
DataSet ds = new DataSet (); try { IDbCommand fieldCheck = connection.CreateCommand(); fieldCheck.CommandText = "DatabaseFieldCheck" ; fieldCheck.CommandType = CommandType .StoredProcedure; //Add Parameters //Table Name IDataParameter tableN = fieldCheck.CreateParameter(); tableN.ParameterName = "@tableName" ; tableN.DbType = DbType .String; tableN.Value = tableName; fieldCheck.Parameters.Add(tableN); //Table Field IDataParameter tableF = fieldCheck.CreateParameter(); tableF.ParameterName = "@fieldName" ; tableF.DbType = DbType .String; tableF.Value = tableField; fieldCheck.Parameters.Add(tableF); //Pass the value IDat ...Show All
Visual Studio Team System Intermittent bad performance and errors
Hi, Intermittently (perhaps once a month), I see very bad performance on a TFS server and have error messages like the following. TF50804: The TFSServerScheduler service could not complete the scheduled task at: http://uscavstfs:8080/warehouse/v1.0/WarehouseController.asmx The web service returned the following error: The operation has timed out. After restarting the server (it's that unresponsive), browsing to the page indicated and executing the run method to manually process the warehouse succeeds without error, and fairly quickly. Some short time later, the performance problem resurfaces and the error shows up again in the log. When this happened previously, it seemed to clear itself up after awhile. Any troubleshooting ide ...Show All
Visual C++ CString corruption
This has happened before. I have data stored in a CString. I use atof to convert it. And I get this crazy number. And so I output using a message box and the number seems just fine as a string. So I then go to output it to a file as a string and a number and the string returns (null) and the number is all crazy. But write after I write the data to the file and I call messagebox the string is just fine. I'll post my code snippit. I have no idea whats happening. int count = -1; // Parse Data fin = fopen( "output.txt" , "w" ); for ( int i = 0; i < lines.GetCount(); i++) { if (lines [0] == '/' ) { // Start a new Data Series m_SeriesData.push_back(myData); myData.Clear(); ...Show All
Software Development for Windows Vista Copy File to System32\Drivers
Hello, I encountered a problem that my program cannot CopyFile to C:\\Windows\\System32\\Drivers even though my property is Administrator, what I got by using GetLastError is Access Deny. But I really need to copy some files to that place, is there any other way I can do this Thanks! Hello, Because the DLLs and SYSs we bought need to be put in \\System32\\drivers , otherwise it wont be able to function. So This really bother me. I dont really understand what you guys mean "The app needs to run elevated", Can anyone explain thie concept Thanks! ...Show All
SQL Server Help plz - need query to get the following kind of output
i want result to be in the required format given below: here is the result column A ---------------- 5 7 10 14 22 30 .... i want output to be in this form with a single sql statement: column A column B ---------------- ---------------- 5 2(difference b/n the current record and the next record) 7 3 10 4 14 8 22 8 30 0 can any one plz post the query which gives the above kind of result.. thnx in advance.. with myTable as ( select columnA , row_number () over ( order by columnA ) as rowno from tableA ) sel ...Show All
Visual Studio Sandcastle: Referencing generic types
Hi, i'm using the September CTP of Sandcastle and building a chm, and i would like to know the proper way to indicate a generic type inside a cref reference. For me, the following comment segment: /// <remarks> Please refer to <see cref="ArrayList.BinarySearch{T}(T, int, int, object)"/> for details. </remarks> comes out as: Remarks Please refer to !:ArrayList.BinarySearch<T>(T, int, int, object) for details. I note that there is currently a bug with cref's pointing to Framework types which explains why it isn't a clickable hyperlink, but what has caused the "!:" at the start of the ArrayList type Also, while i am at it, the following comment structure: ...Show All
SQL Server How to check out our cluster remotely?
Hi everyone, Primary platform on client is XP Pro sp2 and on server Win2003 Ad.Server 64-bit We're looking for any snippet or link related with Clustering instantiating. We need to call our remote cluster from an ASP 3.0 page and check out if one of our Active Resource is up (in this case is a .net service) . We suppose that it should be done for each node. It's an Active-Passive cluster. Thanks for your time, Just connect to the virtual host name that is part of the SQL Resource Group, and make a query. Coding technique should be no different for a cluster than any other remote connection - just use the name of the virtual host instead of the physical one, and the connection gets automatica ...Show All
Visual Studio 2008 (Pre-release) Can an application either provide a service or consume the service
I am trying to write a highly available Windows Service application, hosting a WCF service. There may be multiple instances running on multiple computers. However, only one of them is the master providing the WCF service and the rest of them are in the standby mode. I am thinking of adding a method to the WCF service so that the master and standby instances can communicate. This means that a standby instance needs to create a proxy of the WCF service. Since the code base is the same, it implies that it needs either to provide the service or to consume the service. It does not seem possible if there are data contracts and the call involves them. While I did get it to work when the data contracts are not involved, the workaround involves man ...Show All
Windows Forms changing the start up form
ok so i created a project but afterwards i decided to change the start up form but i could not figure out how to do it Instead of my project starting with form1 i want it to start with form2. I have done that before but i forgot how to do it. Any help will be appreciated thnx i went through every single thing shown in the solution explorer but i couldnt find anything saying Program.cs or anything ending with extension ".cs" at all. Any other way i can get to it ...Show All
Visual C++ Sending CB_GETCOMBOBOXINFO Message in a Winform Application
Hi, Trying to send the message by use of SendMessage function to a ComboBox control, first the compiler does not see the defined value of the CB_GETCOMBOBOXINFO, although the windows.h header file is added to the project. Still, have added the actual 0x0164 value of the message-constant to the code, the compiler generates errors regarding the four arguments required by the SendMessage routine. Any links to proper documentation for this task, or comments Best Regards, Reza Bemanian Have checked the checkbox as you pointed to in your reply, fixed the problem. Now it both compiles and links. I have not run it yet to look at the info structure, but hopefully it works accordingly. Thanks for your repl ...Show All
Visual C++ can i have an array of inherited classes?
with the following code as example: #include "stdafx.h" #include <string.h> #include <string> #include<iostream> #include<iostream.h> using std::string; class Person { public: string m_name; int age; }; class Student : public Person { public: int m_grade; }; class Worker :public Person { public: int m_wage; }; can i have an array that contains both Student and Worker classes what im trying to do is have a maxium number of "persons" on my program. no matter if they are students or workers so i can replace a student with a worker if nessesary. (does this makes sense ) You've do some research on runtime polymorphism or specifically inheritance in a ...Show All
