Jose Carlos T. Santos Junior's Q&A profile
Visual C# Obtaining Static Duration
In C++ static variables are initialized when the program starts. Is there any way of making variables in C# that do this I have written code in C++ that allows new classes to register themselves by including a static variable within the new class that calls a registering function. This trick allows new classes to be added to a program without any alterations to the rest of the code. I am now trying to achieve the same thing in C#. This would have to be implemented via the CLR and would not be just a feature of C# itself. I would suggest you post a suggestion at the Microsoft Product Support Center ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X Export a simple Maya model
I've made a model in Maya 6.5 that is a simple temple with a texture applied to it. I have the .X exporter installed however I can't get the mesh to show up correctly in the Mesh Viewer. The mesh shows up pitch black and I can't see any texture applied to it. Is there a way to export a simple textured model from Maya without using shaders and effect files I'm using the June 2005 SDK. Does the SDK exporter support MeshVertexColors I created a cube with a crate texture on each side. When I render the .x file either in the mesh viewer or my application, the cube is black. However, when I go in the .x file and ...Show All
Visual C# DataColumnCollection
Hello all, I am relatively new to C#, and I have a question about the class DataColumnCollection. How does one reference an indiviual column. It was my assumption that this would just be an array of DataColumns, but I have having problems with just pulling out one column. The only way I know how to do it now, is to do a foreach statement. For example, I want to reference DataColumnCollection(index).columnname, is that possible thank you! I will provide you a generalized answer so you can understand it when you need it later. Objects that represent themselves as arrays (such as collections) use subscrip ...Show All
Visual Basic web service help
Hi thanks for your help. I did change the URL behavour to Dynamic, but it didn't help then I change the URL to my machine Name and install the compile web Service to my local machine the reference the compiled one, for the first time it tries to communicate via the network but return an error saying : Access Denained. But the first error before changing the URL and the behaviour is Method not Allowed. So with the error: Access Denained that means their is something wrong that I don't know. Please Kindly help. Could you try to access the web service on your machine through IE (Or you can try to create another application, and add re ...Show All
Visual Basic loading image into button
hi, i have a button and i want my button to have a image when in runtime, but my image is located in my project Resources folder, what is the syntax to load the image from the Resources folder to my button button1.Image = image.FromFile(...) Assuming VB'05 here. Make sure your image is loaded as a resource in the project's properties under resources. It's possible to have it in the folder on the explorer view, but not have it attached to the project. Then set it to embedded under it's properties. Then your reference goes something like this. button1.Image = My.Resources.ImageName ...Show All
SQL Server Stupid Replication Q
Hi, Here's the brief. I have DB_A on Server A, which I'm replicating to Server B. I then want to replicate tables from DB_A on Server B, out to DB_X on Server_B, but when I try and create the publication, the row is locked from selection, as it's obviously locked for replication from Server_A to Server_B. Does anyone know if there is anyway round this I ideally want Transactional Replication as our need is to have an identical copy for other calculations to be done and reporting purposes. (Server_A is on it's last legs, so we have Server_B to do all the calculations and host MSRS) Would we just be better off getting a bigger, more powe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where can I get volume textures?
Does anybody know where I could find some free volume textures to play around with Nico I thought of shooting lots of rays and intersecting it with an arbitrary mesh (or meshes). The DXIntersect() method is probably quite convenient for doing that. You can find out what's inside and what's outside by simply counting the hits... The user could specify the volume texture resolution. Also I like the user to be able to specify what will be inside the volume via a kind of bounding box that can be resized and rotated. Will try that when I have some free time. There are so many other things todo right ...Show All
Visual C# SmtpClient How to write to main Form.
Hello. Im learing c# and im trying to write mail sender. And i got some 'beginner problem'. // Set the method that is called back when the send operation ends. client.SendCompleted += new SendCompletedEventHandler (SendCompletedCallback); // The userState can be any object that allows your callback // method to identify this send operation. // For this example, the userToken is a string constant. string userState = "test message1" ; client.SendAsync(msg, userState); now, how to write some text in main Form TextBox when mail has been send i try to: public static void SendCompletedCallback( object sender, ...Show All
Visual Basic Programming to Physical Comptuer
Hello Once again, I need your help I want to know if there is a way that the programming that can affect the real physical computer such as the hard drive, motherboard, RAM, Power Supply, Drive Thank You! all answers to kn1123@gmail.com! dallanadia wrote: Hi, I need your help i have a home pc with windows xp home edition installed my ram is 512MB and the cpu 3.20GHz, well all of the sadden my pc turns off. the temperature is about 88-90 I checked for bugs viruses etc, nothing I re-installed the windows xp I have no big files in my pc and the temperature is not dropping a bit. What can I do ...Show All
Windows Forms Record Begin Edit Event
I want to enable a "Cancel Update/Add" button and Save button when a user makes any change to a record. Is there anyway to know when a user begins editing a record besides TextChanged and similiar events I have tried the RowChanged/ing of the Datatable and other events with no luck. Thanks Simmy Like I wrote in my "answer" post. Set the froms keypreview property to true. Then in the forms KeyDown, KeyPress events and in any combobox SelectedIndexChanged events enable the buttons or call a function that enables the buttons. Hope this helps! Simmy ...Show All
.NET Development Anyone tried One Touch Deployment and connected to SQL Express with a MDF file?
Hi, I have built a sample application that has a MDF file included in it. I am installing this application using one touch deployment in a blank XP SP2 box that is not part of any domain. The one touch installs me the .NET framework 2.0, SQL Express and the application. I am running as local administrator. When I try to connect to the the database, I am getting an exception that goes like below: Directory lookup for the file "C:\Documents and Settings\Administrator\Local Settings\Apps\2.0\CTTZV6Y6.5CN\55T3N9MD.NNB\ultr...exe_35637122109d783d_0001.0000_none_c7f5bcb16e100e47\Check.mdf" failed with the operating system error 5(Acces ...Show All
Visual C++ Using Hooks and Using Mouse Commands
Hello, I have a couple of questions; first of all, is it possible to use hooks (e.g. - WH_Keyboard) in a windows forms application in VS2005 Secondly, how is it possible to move the mouse, make it click at points, drag etc... With Thanks, Gal Beniamini. Hello Martin, Thanks for your help, I didn't know about RegisterHotkey, and this helps a lot. With Thanks, Gal Beniamini. ...Show All
Visual C++ application trying to link to MSVCP80.dll inspite of /MT compiler option
Hi I am using Visual Studio 2005 professional on Windows XP x64 bit version. I am trying to create a dll (say X ) which links statically to CRT libraries. For that I am using /MT option. But still when my console application .exe file tries to load it, I get the message - "This application failed to start as MSVCP80.dll could not be found". If I copy it into the directory it asks for MSVCR80.dll. And if I copy that too it gives an error - It is strange that another DLL Y works loads fine. Also i used depends.exe and i found that DLL X depends upon MSVCP80.dll and MSVCR80.dll while DLL Y does not. The c ...Show All
Visual Studio Express Editions Can you use assembly in VC++ Express?
Just curious! I'm not a dinosaur or anything (only 23) but I did get started in programming way back in the dos/os2 days using C/C++, ASM, basic, and pascal. So, can you use any inline asm in Express Yes the compiler will compile inline asm as part of your C++ code. Take a look at http://msdn2.microsoft.com/en-us/library/45yd4tzz.aspx for more details. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Create a traceability matrix for work items?
Is there any way to create a 'traceability' matrix for work items For example I want to run a report that shows all tasks that have been (or have not been) linked to a requirement (using MSF for CMMI). Thanks, ~slee The Scenario Details report does something very similar to what you would like to get. If you would like to see the query that is being executed (in the December CTP) there is a report called Work Items with Tasks (this is a hidden report which you can see by going to the http://reportmidtierserver/reports site and clicking on show all items) the report makes a query agai ...Show All
