dark_sleauth's Q&A profile
Visual C# Serial comm speed difference
I am working on an application that periodically sends groups of 6 characters to an external system using the serial port. After each 6-char group, the external system sends a single handshake character back to the PC, and another 6-char group is sent. In debug mode, this happens pretty quickly. I have a scope on the TX and RX lines of the external system to look at the timing relationship. What is odd, however, is that when I build the application and run the subsequent .exe file, this process is VERY slow (like, 10x slower) than when in the debug mode. I can see by looking at the scope traces that the largest time chunk is when the external system sends the handshake character back to the PC. The PC waits for a very long time before send ...Show All
Visual C++ Why can I create an object to ref class on the stack in CLI?
Hello! I got a little confused with the creation of ref classes. I have a ref class e.g.: public ref class A{ public :A(); public : virtual ~A(); } Why can I create in another object an A object on the stack but not a String object : public ref class B{ A myAObj; // compiles String myString; // does not compile, should be: String^ myString } What is the difference here. I thought it is only possible to create value types on the stack with the C++/CLI Is the myAObj really created on the stack or is it created on the managed heap too And what is about passing that "stack"-object to a function - is a copy created Thanks for any help... Maik Wiege ...Show All
Commerce Server Site Refresh not working for Business Apps
Hello everyone, I can't seem to refresh the site cache from the BizApps on CS2007 RTM. I have the BizApps installed on a dedicated server and even with the hotfix KB 922068 applied I can't get the sitecache refresh feature working This is the error I get. System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: Instance validation error: '0' is not a valid value for System.Net.HttpStatusCode. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write1_HttpStatusCode(HttpStatusCode v) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write3_CacheRefreshFailureInformation(String n, String ns, CacheRefreshFailureInfo ...Show All
SQL Server Source Script Component using a flat file connection - System.ArgumentException: Empty pathname is not legal.
I am using a Foreach loop container to go thru all the files downloaded from the ftp site and I am assigning the file name of each file to a variable at the foreach loop level called filename. In the dataflow task inside the foreach loop container, I have a source script component that uses a flat file connection. The connection string of the flat file connection is set to the filename variable declared at the foreach loop level. However the script component has a error System.ArgumentException: Empty pathname is not legal. Please let me know how to correct this The connectionString property of the flat file connection is set to the complete filename including the path. Does a script component need to have ...Show All
Visual Studio Express Editions control windows forms
hi i want to use VB to browse to a website open the link that startes the download and then click on the save button. Is this even possible to do http://support.microsoft.com/kb/313068/ http://support.microsoft.com/kb/174923/ ...Show All
Windows Forms Flat Controls (.NET 2.0)
Hi Does anyone know how to make listed controls below, flat - TextBox - ComboBox - CheckedListBox - DateTimePicker I want to have a flat design with a black border. Is this possible Only "TextBox" and "ComboBox" has a property that makes this come true (more or less). Why is the property "FlatStyle" missing on the other two Does it make sense So, my question is, how do I get the four controls above, with a flat style (Im using VS 2005) Kind regards! Seems strange. They make other controls (such as "TextBox" and "ComboBox" with a flat-style), but DateTimePicker they had trouble with, or what :) ...Show All
Visual Basic Performing operations on out of focus windows forms VB 2005
I have a Mdi application I am coding. One screen is a datagridview and from that the user double clicks a record to open a new window. On the new window I have next and previous buttons. Is it possible have the highlight on the datagrid move with the click of the next and previous buttons without leaving the focus of the details window Thanks I'll give it a try. the data grids are the same name I guess I just forgot to change those variable names when I pasted it in. I was trying to make it a bit clearer. ...Show All
.NET Development Application Current Working Folder
Hi I want to be able to get hold of the name of the current working folder that my application is running in. I tried Application.StartupPath but this always gives the folder the executable was loaded from. It is possible for example on a shortcut to set a Start In folder which is not where the executable is loaded from but is the current working folder. Thanks There are many ways of getting application folder. Some are good some are bad. But the main difference between those methods is that some are constant and some are changeable. I will sort four methods in order from best to worse: AppDomain.CurrentDomain.BaseDirectory (best) Application.StartupDirectory good but re ...Show All
Community Chat Have a laugh at the end of the day
Tired of all those standard forum questions and answers pick your favorate thread and put it through www.gizoogle.com Pretty good for a few giggles... (I must be bored....) ...Show All
Software Development for Windows Vista CARDSPACE ISSUE WITH JULY CTP & IE 7.0 Beta 3
I have hosted web application supporing "cardspace" locally on machine having july ctp & ie 7.0 beta 3 (IE: 7.0 v7.0.5450.4 ). on WIN 2003 & iis 6.0. The problem I am facing here is that during Login Process my web application does not popup the CARDSPACE selection window(Code for popup and displaying CARDSPACE is correct). I am able to access http://sandbox.netfx3.com/ and able to sign in using CARDSPACE.( here windows CARDSPACE is automatically popup). I am guessing the problem here is with my installation ....... or Configuration. for hosting web application having "CARD SPACE" facility required anything other than july ctp, ie 7.0 beta 3 or any configuration should be changed for IIS gu ...Show All
SQL Server Authentication issue
Hello I'm using RS 2000 and although Windows Authentication has been selected on the website and the "Reports" virtual directory, when I browse to localhost/reports I get the report manager with only Home on it and a very limited menu bar whixh exists of home, my subcriptions and help. I can't see any folders. What am I missing Thanks! Thanks for answering Teo Well, it's hard to tell as I reinstalled everything but things got even worse now. When I browse to http://localhost/reports , I get: Access is denied. Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources. Error message ...Show All
SQL Server Built-in data types in SQL Express: best practices?
Greetings, I think these should be rather simple questions, yet I spent a number of hours last night digging through the forums here and msdn and couldn't find any satisfactory answers. Basically, there tend to be types of information that are commonly saved in most databases, like names, addresses, phone numbers, email addresses, etc...and there are a variety of built in data types in SQL Server. What are the best built in datatypes for some of the common entries in a sql database. Also, there are a number of character based types and I am curious why one would be more useful in certain situations than another. Why is there char( ), nchar( ), varchar( ), nvarchar( ) and text datatypes Why so many Also, what is the "text" ...Show All
.NET Development FTP ?
Does C# have FTP Methods that are easy to use I will be starting on a project soon and have the choice of using VB, C#, or Java. I think the FTP issue will be my biggest hurdle and I want to make it as easy as possible from the start. Any hint, ideas, tutorials I could be pointed too would be great. Post any issues I might encounter if you have experience in working with theses methods. Thanks! http://www.codeproject.com/vb/net/FtpClient.asp Regards. ...Show All
.NET Development Marshalling structures with variable-length inline strings
Greetings, I'm having trouble solving a pinvoke marshalling challenge in C#. I need to call an unmanaged API function which expects a structure containing a variable length inline string. Here's the unmanaged function prototype (from MSDN): BOOL SetupDiGetDeviceInterfaceDetail ( HDEVINFO DeviceInfoSet, PSP_DEVICE_INTERFACE_DATA DetailInterfaceData, PSP_DEVICE_INTERFACE_DETAIL_DATA DeviceInterfaceDetailData, DWORD DeviceInterfaceDetailDataSize, PDWORD RequiredSize, PSP_DEVINFO_DATA DeviceInfoData); The troublesome guy is the third argument, DeviceInterfaceDetailData . Here's its definition (again from MSDN): typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA { DWORD cbSize; TCHAR DevicePath[ANYSIZE_ARRAY]; } SP_D ...Show All
Internet Explorer Development Display custom text in the information bar
Just wondering but is it possible to call a function that will display the information bar with some custom information, from within a browser helper object I have done a search on msdn, but can't seem to find very much stuff about the information bar in general... Ok, yep, I was referring to the gold bar that pops up like when a popup is blocked or whatever... Thanks for the answer though, it's nice to have a definite answer, it means I can stop searching... ...Show All
