JohnnieK's Q&A profile
Visual Studio Express Editions Help on Click? (noob here)
Hello all i just have a noob question of programming to ask. Well im not a noob programmer particuarly because im know alot about AutoIt (if any of you know what that is) It is VERY similar to VB but i like to try new things out. So anyways on to the question... In AutoIt to use a MouseClick you do this MouseClick("left", 500, 300, 1) That does left click at coordinates 500, 300 and clicks 1 time. I was wondering how would you do that kind of thing in VB code Thank you all that gives me an answer :) Yes most controls have events such as click already present that you simply need to select the event and place the code in the appropriate method. For some specific controls you may want to select ...Show All
Visual C++ Fatal error LNK1104: cannot open file 'd3dx9.lib
I am trying to compile DirectX code from a book, and I get the error listed in the title. I have all the linker settings correct I believe, but if someone could give me any additional info on why this may be happening, I have checked virtually every option, and I'm drawing blanks. You guy's are fast.. I'll sure appriciate this. ~Nate~ if u have installed DirectX 9 , then go to tools -> options->directories->Library(combo box) and add the path where this resides on ur machine. Regards, Sudeesh ...Show All
.NET Development need help with Anchors or PostBacks in ASP/VB
Hi, i'm presently doing a project that requires me to either prevent postbacks or requires an anchor. The reason is simple: I have some controls that are hidden at the start but when an imagebutton is pressed, the control in question is shown. Unfortunatly the control is far in the page and each time the imagebutton is pressed the webpage does a postback action but does not return to said imagebutton. is there a way to prevent a postback(while still showing a control poping up on a different layer) or put an html anchor (and get to said anchor) near the control in question so that my employer does not need to go and scroll down the page to access said control thanks in advance for your reply ...Show All
SQL Server Intermittent ole db error
I have this problem occuring intermittently: When I try to add a package to the project, and click on the Package path button. I get a oledb error x080004005 (client unable to establish connection)... After I click ok, and click on the Package path again 2 or 3 times, the error goes away and I get the list of packages displayed. Some time I get an empty list box. Similar to this happens when I execute a package also. When I execute it 2nd or 3 rd time it works fine. The error happens only when I am trying to connect to the server\database. Once it is in the database I do not get any error message. This is what I have: I have sql 2005 installed. Microsoft SQL Server Management Studio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# - Managed DirectX - Secondary Monitor
Hi, I posted this question in the C# forms forum area a couple of days ago, and I thought perhaps this was a more relevant forum for the question. I am creating a program which uses the secondary attached monitor. The program successfully creates a Direct3D enabled window which runs fullscreen on the secondary adapter (using an adapter id of 1). This does in fact work smoothly and how I would have expected. However, there is a serous flaw which I cannot resolve. If something is clicked on the primary monitor (anything at all), the Direct3D enabled window on the secondary devices is minimized immediately (and naturally the DeviceLostException occurs due to the window being minimized). Somehow I need to stop the program from auto ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA's use of Collections
XNA uses Collections for a lot of things: ModelMeshCollection, ModelEffectCollection, EffectPassCollection, ModelMeshPartCollection, etc. which results in a lot of foreach iteration in code. I recently discovered the CLR Profiler and started poking around. It appears that using foreach on these Collections results in creation of SZArrayHelper and Enumerator helper objects. Most other systems are doing pretty well to avoid any constant object "leakage", and I'd rather keep it that way if possible (I come from the "No Dynamic Allocations at Runtime" school of console development). I'm still pretty new to C#, so what I'm wondering is if there are there ways to avoid this constant pressure on the GC -beyond hand unrolling t ...Show All
Visual Studio Express Editions Connect to word and get form data?
I recently began working on a Word macro to send data from form fields to an Excel spreadsheet. The project went well and I decided to create a Windows Application with VB 2005 EE to do the same thing. The basic premise would be I would point the application to the appropriate Word document containing the forms and it would send the data to the appropriate Excel spreadsheet. I have been searching for quite some time now (including on this forum) and I can't seem to find a way to correctly connect to a Word doc of my choice and then get the form data. Any help in this area would be greatly appreciated. I need: 1. How to connect to a Word document in VB 2. Once connected how to get data from Word document I ...Show All
.NET Development https: using server authentication Frame Work 1.1
Hi, I have a c# (Frame wrok 1.1) client that connects to a Java server application using https. I have been provided with a server certifcate for communication with the server. We have a provided a user certificate to them. When they dont use our certificate every thing works fine. But when they use it I get the following error: Unable to establish secure communication using SSL. If I post the same request from IE it works fine. Can some one please help me out of this. I have also implemented ICertificatePolicy's check validation method as well. Does this has some ting to do with mutual authentication. Thanks And Regards, Hashim Please explain the issue more clearly. Also attach a system ...Show All
Visual Studio Team System Easy question
I can view my work items as tasks in the Pending Changes window and check them off as resolved. How can I "check in" these changes so that the work items are actually resolved The system thinks I have no pending changes. TIA, Mike Rodriguez I think it sounds like he's just trying to complete the work items but that they don't have associated pending changes in source control. In that case, the pending changes tool window isn't the right place to be. He should just edit the work items directly to mark them as finished. The work item functionality in the pending changes tool window is all about associating source file changes with work items when checking in those source file changes. ...Show All
Visual Studio 2008 (Pre-release) clientCredentialType "Username" problem
Hi, I have a duplex tcp channel with Aspnet authentication, so in my client : MyProxy = new OperatorServiceProxy ( new System.ServiceModel. InstanceContext ( this ), "suNET" , "net.tcp://localhost:8000/test"); MyProxy.ClientCredentials.UserName.UserName = "username"; // I receive an exception named "Object is readonly". MyProxy.ClientCredentials.UserName.Password = "password"; Does anybody know why I receive this type of exception I have another example that work fine using http but not using duplex channel . Here's my client configuration : < system.serviceModel > < client > < endpoint name = " suNET " address = " net.tcp://localho ...Show All
Visual FoxPro Calling .NET from Foxpro
Hi, I have a .NET dll that I need to call repeatedly from within a Foxpro app. In effect, I'd like to instantiate a class in a .NET assembly and call its methods just like any other Foxpro object. I've never done this in Foxpro before. Is there someplace where MS has some relevent documentation that can shorten my learning curve Thanks Here's a good article on COM Interop by Rick Strahl [MVP]. It might clarify things for you: http://www.west-wind.com/presentations/VFPDOTNETiNTEROP/VFPDOTNETINTEROP.HTM ...Show All
Visual C# Alternative to function calling itself
For example when you need to go through a folder structure I just have a function call itself and do the same for each sub folder before handeling files. I know this is a bad way of doing it, but what is the best way of achieving this effect without self referencing functions Any help or input will be appreciated. Thank you :) Perfectly fine on both. Just depends on how much data you're sticking on the function stack for each recursion level. So the idea is to limit the amount of local variables you create in the method. If you go too deep, then you may get a StackOverflow exception, but if you're working with folders then you should be fine. ...Show All
SQL Server Does it locks database/tables when Only Select query comes in SQLTransaction
Hi, I want to make SQLTransaction as global and use it checking the State. But then where there are Only Select queries are going to fire, it will open transaction. So, Does it locks database/tables when Only Select query comes in SQLTransaction. If you have another successful way of doing this, Please suggest. Thanking you. tats What are you trying to accomplish Every statement locks something, at least the schema so you can't drop a table while the user is executing a statement :) Also, EVERY statement is in a transaction already, the difference between starting one using the client and just the implicit one that starts for every statement is that you might never reach the code to close it if the user gets bored and decides the ...Show All
Visual Studio Express Editions Native DLL
just for giggles I am trying to create an old fashioned native C++ dll. I am using VS Express edition (no native dll project is avalible). Every time I try to compile my project it says I need an entry point, but when I add the int main() it makes it an exe ... I dont want an executable... I am confused I'm also puzzled by that remark, since I've also had no trouble building native DLLs (well, not since I figured out that I needed the Platform SDK!) But to be honest, if nobugz told me the sky is green, I'd probably try to figure out why I'd been thinking it was blue all this time. He really knows his stuff, so I assume I'm misunderstanding his post. ...Show All
SQL Server Encryption and bulk insert
Hello, I need to build a table with encrypted data with the source data coming from a .csv. The account number from the .csv will need to be encrypted in the final table and I will also need to have a hashed or MAC index on the account number. I'm guessing that I can do this with a stored procedure using a temp table to load the unedited data and then load the actual table from there. The table will be built from a download every evening. The key and certificate for the encryption are already set. I have been able to load data directly to the table providing values. But, I have been struggling getting a bulk insert to work. I'd appreciate any ideas or examples. Thanks! Thanks for your quick ...Show All
