jhknys's Q&A profile
Visual Studio Express Editions Yeah another hotfix!!
So I've run into my 3rd bug that requires a hotfix and yet again I have no way to get it. The support site doesn't list Visual Basic Express in the products so it won't let me contact support. I'm running into this bug http://support.microsoft.com/kb/915038/ . It says there is a hotfix, but as usual, Microsoft won't actually provide a way to download it. I'm hoping somebody here can help so that I don't have to pay to contact support about a known bug. Maybe someday Microsoft will just post the hotfix rather than have me jump through a bunch of hoops. Ok, I'll call them again and hopefully they won't charge me. I'm really surprised that I can't just login with my MSDN account and download this. 8 ...Show All
SQL Server Optimize speed of Hosted SQL Server
Hi, I'm retrieving data in VBA using simple SELECT statements on my Hosted SQL Server. How do I most effectively speed up the process Is it just about data amount, traffic, and speed of Internet conncetion Or should I use Stored Procedures or should I index tables Is there a function to kind of "flush" the data to the VBA program as it is all READ-ONLY Any help is much appreciated, Jakob The queries are very simple, just simple "SELECT xx, xx, xx FROM xx WHERE xx=xx" I'm connecting from home with my lapto to a hosted SQL Server, so no big network. I have tried testing my code to see how and when it is slow. It it quite fast to open the connection, but when I try to ...Show All
Visual Basic Using Titlebarinfo API in VB.Net
Hi all. I'm trying to use the GetTitleBarInfo api call to get information about the titlebar of the currently active window (stored in curWindow) but can only find examples using Classic VB or C++. I've tried to upgrade these to vb.Net but whatever element of the function I try to call (e.g. titleinfo.rcTitleBar.top) always returns zero. The code I'm using is as below: Declare Function GetTitleBarInfo Lib "user32.dll" ( ByVal hWnd As Integer , ByRef pti As TITLEBARINFO) As Long Private Const STATE_SYSTEM_FOCUSABLE = &H100000 Private Const STATE_SYSTEM_INVISIBLE = &H8000 Private Const STATE_SYSTEM_OFFSCREEN = &H10000 Private Const STATE_SYSTEM_UNAVAILABLE = &H1 Private Cons ...Show All
Internet Explorer Development IE7 and issue with TrackPopupMenu(Win32) within ActiveX-control
Hello. I have a trouble with calling win32-function TrackPopupMenu from ActiveX in new Interner Explorer 7 (RC1 and all betas). The situation is: I have some ActiveX-control - "MyPopupMenu". This control is being used to show context popup menu. To do it, it used win32 function from winuser.h. There's an issue with one of them - TrackPopupMenu. Control has worked fine in IE6, but in IE7 it doesn't. When TrackPopupMenu is called in non-dialog window, nothing happens! There's no popup menu (it was constructed by calling CreatePopupMenu and InsertMenuItem previously). But popup menu still works fine in dialog windows (ones that created in script by window.showModalDialog). Can anybody help me THX. Yes, this i ...Show All
Software Development for Windows Vista Application fails to start under Vista: "A referral was returned from the server." Manifest problem?
I'm working on migrating a driver management application (written in Visual C++) to Vista. It requires access to HKLM, so it needs to run with admin access permissions. For testing purposes, we've been modifying secpol.msc to run it in admin approved mode, but obviously, that's not the right thing to do. The right thing to do, from what I can tell, is to add a <trustInfo> tag to the application manifest (which is embedded in the .exe as a resource). I did that, but now the application fails to start under Vista at all, with the error message "A referral was returned from the server." It still works fine under XP. The manifest is pasted below. Does anything look obviously incorrect If not, is there anything that could interact badly w ...Show All
.NET Development useUnsafeHeaderParsing=true does not solve protocol violation error
Hi, I've been trying to use C# and .Net 2.0 to talk to a web-service that exists *outside* of our corporate network. This wasn't working due to a protocol violation so I tried a simple reproducible test case using [Http]WebRequest to access *any* page (e.g. http://www.bbc.co.uk ). In all cases I get a WebException thrown with the following message: The server committed a protocol violation. Section=ResponseStatusLine I've spent several hours searching the internet and come up with loads of results that point towards it being due to stricter HTTP header parsing as of .NET 1.1 SP1 (presumably that follows through to .NET 2.0 ) and that the proxy for my network may be returning bad data. It's worth noting that I have *NO* pro ...Show All
Windows Live Developer Forums MSN Search API implemented in ASP only
Hello! I've been working hard for a couple of days to implement the search API's of Google, Yahoo, and MSN in ASP only. I'm happy to say I've got it all working and I'm very, very happy with the results. MSN Search was perhaps the trickiest one to get working, but actually very reliable and easy once I understood the format of the SOAP envelope: < xml version='1.0' encoding='UTF-8' > <SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/1999/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/1999/XMLSchema "> <SOAP-ENV:Body> <ns1:Search xmlns:ns1=" http://schemas.microsoft.com/MSNSearch/2005/09/fex "> &l ...Show All
Visual Studio how can I associate my own file extensions with a certain vs code editor
I have my own file types, their extenstion is my own, .emf, but the content is very similar to javascript. How can I use the javascript editor with my files At present the codeview of the file appears a plain black text. By "doesn't work", do you mean that it does parse html and some keywords, but not the javascript-specific stuff If so, you can change the guid of the associated language service to get the right behavior. Here is the java/jsl language service: {E6FDF88A-F3D1-11D4-8576-0002A516ECE8} ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D Playing Cards ?
How would I approach a 3D representation of a playing card(s) If using a model, would 52 different models be required so that each card has it's own texture Can user primitives (i.e. 2 triangles to make a card shape) have different textures on each side What would be the best method for this errolian wrote: Bill , yes you are right as always. I know about objects and instancing. What I don't know is the best or indeed any method by which you can use a single model and use different textures for the face and back of the model for each instance. Fluxtah , shaders I know very very little about so maybe someone who does can answer that part of the question. You can use one model, and use a ...Show All
SharePoint Products and Technologies WildCard Error in Application Definition File Error with custom application
I am trying to execute a application definition file through webpart .The filter has to be done based on UserID which is of Type Int64. But it gives error as " A Wildcard filter requires a TypeDescriptor that resolves to a String: Hence i tried to change the Filter descriptor to type Comparison and exactMatch ,Even then it did not work. Following is the app def file < xml version = " 1.0 " standalone = " yes " > < LobSystem xmlns = " http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog " Name = " GetTransactionLOBSystem " Version = " 1.0.0.0 " Type = " Database " > < Properties > < Property Name = &quo ...Show All
Visual Basic Variables in Different Forms
I have a variable that's declared as a result of a dialog. This variable has a specific value after the dialog, but then I need to refer to that variable from another form. How can I do that My.Computer.FileSystem.WriteAllText("textfile1.txt", variable, False) That is the code in which I refer to a variable called variable. Variable is declared when a guy types in soemthing in a text box and presses okay in another form. How can I use the variable in the above code without changing its value Another problem that I have is here: Dim variable As String = My.Computer.FileSystem.ReadAllText("TextFile1.txt") WebBrowser1.Navigate(variable) That is where I d ...Show All
Visual Studio Express Editions Audio Play button from string
Hello over there.. Newb over here.. I'm trying to get a push button to do a 'play' function using the source audio location as a String from a Textbox.. Everything looking good but I can't get the play button to accept the passdown of the String sound location. All help/critique is good. Many thanks. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles P1.Click Dim TempMedia As New System.Media.SoundPlayer( New stream(TextBox1 As String ) TempMedia.Play()) End Sub **Expected Comma, ')' or a valid expression. Nevermind.. Solved! Private Sub Button1_Click( ByVal sender As System.Object, ByVal e A ...Show All
SQL Server Error executing Parse in SSMS
Executing Parse in Sql Server 2005 Management Studio I get the following error: .Net SqlClient Data Provider: Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. Reading SP1 fixes, I found a similar problem but despite I installed latest hotfix (sql version is now 9.0.2153) I can't able to execute Parse to check T-SQL statements... Thanks, Giulio i sense internal error.. your sql server can be sitting on a problematic OS. how about reinstalling the OS and the SQL server. well, just in case you run out of options ...Show All
Visual Basic Lock And Unlock Form
I have one form and i call out another form from there, i am able to set focus on that form but i want to lock the other form. Only user close the second form then only the previous form can be unlocked. May i know how to do it Thank you I want to pop out the form1 using dialogbox because i want the focus always on the form1 unless they close it. I use the following code but it shows two form under the taskbar and is there any way for me to display the dialogbox with one taskbar form. Thank you. Dim DisplayForm As New form1 form1.ShowDialog( ) ...Show All
Visual Studio the filename selected is not recognized as legal.
Hi, I am not able to open project throught visual sourcesafe internet mode. what I did is click file->open->project/solution, then click SourceSafe(internet). it complains "the filename selected is not recognized as legal. Please select another file or rename the selected file.". the file name is very simply and I can open that in other machines. And one thing I am pretty sure is that I was able to open that file before using same way. I actually tried the method in this post , but it doesn't work. So can any one help me to figure out the reason Thanks this error message looks like this Can you give me the file name so that I could see if anything is invalid with it ...Show All
