zdrae's Q&A profile
Visual Studio Express Editions common dialog file multi select makes files with spaces in the file names as 8dot3 with tilde ~
hi, i have an hta/vbs app that uses common dialog file select with multi select like this: objFSO.Flags = cdlOFNAllowMultiselectcdlOFNAllowMultiselect it works fine, except that when there's a space in file names, like "my file name.txt" then it shows up on the dialog box file list as "myfile~1.txt". then my app can not find the file that it's looking for. is there anyway to get around this so that the files show up on the dialog box file list without being shortened to 8dot3 i have to have multi select capability. thanks! NO. this item IS language independent. you can use it from c, c++ j++ whatever++ it's a common dialog box that anybody who wants to select files usi ...Show All
Visual C# Bug in .NET that randomly locks DLL's
PLEASE PLEASE PLEASE help with this. This is the absolute most annoying problem in the world. .NET will, at random, choose .DLL's in my projects to lock. I have no idea why it does this, and I have no idea how to get them unlocked. Sometimes it takes 3 or 4 reboots of the machine, then .NET will behave. This is so annoying and frustrating, that it makes .NET impossible to work with. I've had this happen with multiple projects and various different DLL's, and I've even formatted my hard drive and rebuilt my machine hoping to make this problem go away. Nothing works. I've attached the error message below. I am so desperate for a solution, that I will PayPal send $100 to anyone that can offer a solution that works. IISRESET DOES NOT HELP. ...Show All
SQL Server Multitable Select
I have 2 tables involved in a select statement that I cannot figure out quite how to do. Table 1- GroupedItems int SharedId int GroupId Table 2- SharedItems int SharedId int ItemId In Table 1 SharedId is unique In Table 2 ItemId is unique Table 1 represents all of a group's shared Items Table 2 matches a group of Items to a common sharedId Example Table 1 1 - 1 2 - 1 3 - 2 Table 2 1 - 1 1 - 2 2 - 3 2 - 4 3 - 5 What I am trying to do is have a select command where you would pass in a GroupId and it would select just one Item from table 2 for each SharedId If you were to specify Group 1 you would Get ItemIds 1 and 3 from Table 2, although its not needed that the results are the top items. Thanks to both of ...Show All
Visual Basic WINDOWS DOES NOT RECOGNIZE . -
Hi! I have made a program in VB6 and it works fine. the problem is that on some computers the output is wrong. the system does not recognize "." as decimal separator and "-" as a character when I put it between "". Why is that I have checked the regional settings and everything is ok there. I have no idea what else I could do Should I change something in the registry Where and what Thank you very much! im afraid these are the incorrect forums for your VB6 question, these forums are for VB.NET. Please post to the appropriate VB6 communties: www.microsoft.com/communities Thanks ...Show All
Visual Studio VS2005 checkout problems
We have recently upgraded from VS6 to VS2005. It's working fine except for two problems we have with the VSS integration: Every time we loads the solution VS2005 prompts for checkout of a specific project. This project hasn't been changed and if we tries to check for differences we get the message "The files are identical". When we tries to build some projects there are depending on a other project called the MapClientProxy, VS2005 promts for checkout of MapClientProxy. MapClientProxy hasen't been changed and if we tries to check for differences we get the message "The files are identical". If we don't choose to check out the project and clicks on "Cancel" we must do this 13 times before VS2005 stops ...Show All
Visual Studio 2008 (Pre-release) Canvas KeyDown event
I can't able to get the keyword events of the canvas.... Any help would be appreciated. Thanks in advance Cheers, G You can do that by setting Focusable="True" on the canvas and set the focus on the Canvas from the start (myCanvas.Focus() somewhere in the window's constructor or loaded event). The problem is that if another element receives focus during the application's lifetime, you will not receive the keyboard events on the canvas. Another way is to set the event handler up in the hierarchy (in the parent Window) - because of the tunneling/bubbling you will get the event no matter where the focus is in the window. I think in this case PreviewKeyDown is even better - you will get t ...Show All
Visual C# Make Line as object
The line I have drawn does not behave like a object. Can anyone suggest me the procedure to make lines to behave like a object theblueeyz wrote: Or even easier, just use a label 3 pixels high with border set to Fixed3D and no text. You can move it around and use it as an object but you won't have to write your own. That's the solution for making separator lines, as seen on many dialogs. To mimick these, 2 pixels height and additional AutoSize=False is a way to go. However, drawing colorful, diagonal, etc.. lines, calls for alternative approach. Also, using a custom control seems a bit more lightweight solution... Andrej ...Show All
.NET Development assigning array values takes too long
Using vb8 and sql server 2005, I am assigning two array values to a datatable and updating a dataset. Unfortunately, it is taking, so far, more than an hour to do this with about 650,000 records. I've done something similar with more fields and about 1.5 million records using vb6 and ado but that completed in 2 or 3 minutes. Below, I've listed the code. What am I doing wrong and how I can speed up this operation Dim ResultAdapter As New SqlDataAdapter ResultAdapter = New SqlDataAdapter(ResultCmd) Dim ResultSet As DataSet = New DataSet ResultAdapter.Fill(ResultSet) Dim FactorTable As DataTable = ResultSet.Tables.Add(FactorTableName) Dim DTCol As DataColumn = FactorTable.Columns.Add( _ " ...Show All
Visual Studio Execute MSBuild task just in case output files had been changed.
Hi, I'm compiling my solution using msbuild task (inside msbuild xml). After compiling my solution I want to do some tests using NUnit. Though, I'm executing "exec" msbuild task which run NUnit application.(nunit-console in this case). I'm trying to execute the testing task just in case that one or more of the solution files had been changed during the compilation process. Does someone know how i'm suppose to do it My xml file looks like this: <Target name=Compile> <MSBuild xxx.sln> </Target> <Target name=Testing DependsOnTargets="Compile"> <exec command="nunit-console yyy.dll"/> </Targe ...Show All
Visual Studio Express Editions Listing files in an array
I am not sure if this is possible, but does anyone have code for listing all the "jpeg" and "bmp" files that are in My Documents, and then placing them in an array I tries to get this working, but had no success at all... Hi, Use the Directory.GetFiles function. It returns an array string for all the files matching a pattern. http://msdn2.microsoft.com/en-us/library/wz42302f.aspx cheers Paul June A. Domag ...Show All
Smart Device Development Timer tick count
Hi, I am having this annoying problem with incrementation of int values in timers. int i = 0; private void timer1_Tick(object sender, EventArgs e) { i++; } The output of i is 2, 4, 6, 8 and so on. There is some strange double increment for every time the timer ticks. It is a Systems.Windows.Forms Timer. My questions are: 1. Is there some already implemented tick count I can use 2. It seems like some method calls from inside the timer1_Tick method (or all method calls in there, possibly) are also called twice in every tick. Just like the i++. How can I prevent this Thanks Olle Generic SortedList list; timer3.Interval = 1000; private void timer3_Tick(object sender, EventArgs e) { timer3.Enabled = false; list["1"].incre ...Show All
Visual C++ Specialized Template definition order -> no undeclared identifier error
Hi! Have a look at this code: // test.h START template<class A> void funcT(A a); void funcF(float a); template<class A> void funcT(A a) { } void funcF(float a) { funcT(a); } // test.h END // test.cpp START #include "test.h" int test() { for(int i=0;i<3;i++) i++; return i; } // test.cpp END When compiling it (VS2005), it gives the error "1>.\test.cpp(6) : error C2065: 'i' : undeclared identifier". This was my intention. But if I switch the funcF and funcT definitions in "test.h" like this: // test.h START template<class A> void funcT(A a); void funcF(float a); void funcF(float a) { funcT(a); } template<class A> void funcT(A a) { } // test.h END When compiling, the C ...Show All
.NET Development StringBuilder(string) constructor bug or undoc behavior
If you attempt to create a new StringBuilder by initializing from a string that contains a null character, only characters just before the null are copied into the StringBuilder. Since both StringBuilder and string support embedded null characters, and the documentation doesn't mention this, I expected the full string to be copied in. It doesn't seem reasonable to have to write a loop to append the characters from the string into the StringBuilder. Thanks, I did some outside my application testing and it does work as expecting, until you pass the StringBuilder to a DllImport DLL. That seems to cause the runtime to truncate the StringBuilder at the null character, I guess due to the default marshal. Still not what I expected, but u ...Show All
Visual Studio Tools for Office Excel VBA SQL Query Automation
I have connected Excel 2003 to a SQL 2000 database through ODBC, and I need to use VBA to make info typed in a certain field automatically query and stick the results from the recordset in specific fields. First, how do I specify what constitutes an event Second, how do I customize the output of a SQL Query, cause I was thinking I could forward the recordset (row) to an associative array and then afterwards copy the individual fields into the fields on the excel spreadsheet, is there a more efficient way to do this Hi Tobi I depends on what your requirements are. As a general rule, I prefer VBA unless the solution requires something only the .NET Framework can provide, or when it does a better ...Show All
Software Development for Windows Vista what about legacy messenger service
hi there, I noticed there's no legacy messenger service anymore, and the NET SEND command is now unknown. I'd like to know whether applications which relies on it will continue to work or not, and, if not, which is the best way to migrate them. I'm testing beta 5384 and it's the first Vista for me, so I don't know about previous ones. thank you. matro You can get LanTalk XP as net send compatible messenger: http://www.lantalk.net/lantalk-xp/ Or LanTalk NET as better variant, but not compatible with net send http://www.lantalk.net/lantalk-net/ Also free netsend that work with Vista is located here: http://www.lantalk.net/netsend/ ...Show All
