M Thomas's Q&A profile
Visual C++ Complex.h in VC++
Dear All, I am trying to compile an old program which was originally written in Dev C++, and I kept getting the error "c:\temp\daoqi\matvec.h(42) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory". Searching the web, I noticed that this error is quite common with VC++, whilst DevC++ has an include Complex.h. How can I go about compiling this program in VC++, whilst keeping to its original code Appreciate if you could advice on how to go about it. http://i9.tinypic.com/4hjmps4.jpg ...Show All
Visual Basic Bar code scanner convert small letter to capital letter
hi, I got a question for u. My company is developing a Microsoft Access application by using VB 6.0. In the application, we include a bar code string (font type) to be scanned by bar code reader. Bar code string eg. 6aKs1005 When it is scanned, it always shows 6AKS1005 (all in capital forms). I want the small capital to be remained. Please advice... Thx in advance rgds, Junnie This is a forum for VB.NET (vb 7 or upwards), there's an introductory post at the top of this forum (it's a sticky) that should give you some good links to find help with VB6. But for starters, try some places like www.planetsourcecode.com or www.codeproject.com Good luck! ...Show All
Windows Live Developer Forums Java & Windows Live Mesenger Compatibiliy Issues with Windows Vista Ultimate 64 bit
Ok! I hope someone out there will be able to give me a hand with respect to this issue! I've recently changed from XP over to Vista Ultimate X64 and I have to say I'm starting to get over (and rather frustrated) with the whole "WOW" experience that is Windows Vista! The lack of drivers I can live with but problems with software built by Microsoft is a whole over ball game. Specifically, what my problem relates to is that in connecting up to WLM, the program only takes me as far as the contacts menu before it subsequently crashes with only a pop-up box stating that "Windows Live Messenger has stopped working" whilst simultaneously attempting to obtain a solution of the internet which is consequently not forthcoming. In seeking to obtain ...Show All
.NET Development Problem accessing parts of IHtmlDocument2 via .net interop on Windows XP
Hi, I've written some code to attempt to get the selected text from an HTML document loaded in a running instance of IE. I need to be able to access the frames collection of the IHTMLDocument2 interface so that I can get text from the documents contained in the frames. Here's what I've got: using SHDocVw; using mshtml; ShellWindows m_IEFoundBrowsers = new ShellWindowsClass(); foreach (InternetExplorer Browser in m_IEFoundBrowsers) { if ((int)win.Window == Browser.HWND) { m_IE = Browser as InternetExplorer; browserExists = true; break; } } if (!browserExists) { return; } IWebBrowser2 doc = m_IE as IWebBrowser2; ...Show All
Windows Forms Problem removing column
I would like to remove an autogenerated column, so I wrote some code similar to the following dataGridView1.AutoGenerateColumns = true ; dataGridView1.DataSource = customersDataSet; dataGridView1.Columns.Remove("Fax"); Unfortunately, an exception thrown because the Columns collection is empty. If I don't remove the column, the whole table is displayed as usual. It seems that the Columns collection had not been populated at the time the Remove method was invoked. Can anyone tell me how to resolve this problem Thanks! Reference: http://msdn2.microsoft.com/en-us/library/hbtwc35f.aspx The code was in the constructor of the form. I have tried moving it to the load event handler after reading your suggestion and no exception was ...Show All
Smart Device Development timeGetTime() on WM5
Met some link errors of timeGetTime() on WM5. I can not find the winmm.lib on WM5 SDK, which lib should I link with I tried to build a directshow filter on WM5, which has the "strmbase.lib" avaiable. But there are some link errors related to "CTransformFilter". I guess this is because the lib does not include all the classes defined in the baseclasses sample codes. Then I tried to recompile the baseclasses. This link error occured when I tried to build my filter linked with the "strmbase.lib", which is compiled by me previously. ================ ERROR MSG ================ lib(amfilter.obj) : error LNK2019: unresolved external symbol IID_IPinFlowControl referenced in function "public: virtual long ...Show All
Visual Basic Load User Profile into the Registry
Can someone show me how to load a userprofile into the registry using VB.net The folowing link shows how to do it with VB6. How to Load a userprofile Thank you. The overall process is the same as in VB6. You just have to make sure the Declare statements are correct for VB.NET. A good place to start looking if you can't write them yourself is www.pinvoke.net . ...Show All
.NET Development Regular expression - date validation in c#
I am trying to validate a string input of nine characters, such as: 200504031 The first eight character must be a valid date entry, and the nineth (last) character must be between 1-9. Does anyone know how i can implement this Thanks Hi, This would be close "[1-2][0-9][0-9][0-9][0-1][0-9][0-3][0-9][1-9]" but not totally correct as it allow month values above 12 and days above 31 not to speak of months with 28, 29, 30 or 31 days. If you are not totally bound to using a regex, you can use DateTime.TryParse on the first 8 charaters of the string and do a separate check on the 9th character. -- SvenC ...Show All
Visual Studio Team System Set default value for Sytem.AreaPath
Within our project we are working with a third party for implementation of a specific module. We want to use TFS workitem tracking to track bugs in this module. Employees of this company should be able to see all work items submitted to them or assigned by them. In our previous tracking system, I could set permissions on queries, so that they could only run the queries we defined for them. In TFS I wanted to use the security permissions on the AreaPath field, but the problem is that it is not possible to make this field required or to set it automatically using a COPY or DEFAULT rule. So in order to obtain the required result, someone has to set the AreaPath manually for all submitted work items, which is off course not very practicle. Is ...Show All
.NET Development xml if statement
Hi, I am trying to use the IF statement logic inside xml. So came up with the line below: The logic that I am trying to achieve is: if there is a value for the field COMX_Field1 (i.e. if COMX_Field1 = TRUE) then show COMX_Field2, else do not show anything. Is this correct Thanks <LINE ID="02"> <VALUE X="1.00" FORMULA="true"><![CDATA[=("{COMX_Field1}"="1") "COMX_field2":""]]></VALUE> </LINE> this is how we do it in xslt < xsl:if test ="CustomerName !=''"> < xsl:value-of select ="CustomerName"/> </ xsl:if > ...Show All
Visual Studio Express Editions Drawing Ellipses at a specified angle (not aligned to the x or y axis)
I am trying to draw an ellipse at the centre of a panel such that the semi major axis of the ellipse is rotated at a user specified angle ie. rotated ellipse. I have no problem drawing an ellipse at the centre of a panel provided there is no rotation applied, but as soon as I try to rotate the ellipse I fail to achieve the desired result. The method I have tried is to use the Graphics.RotateTransform and graphics.TranslateTransform methods. The Graphics.RotateTransform method seems to rotate about the origin (0,0) point of the panel, so I have tried the following: First draw the ellipse centred at (0,0) Rotate the ellipse using the Graphics.RotateTransform method Translate the elipse to the centre of ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mousewheel weirdness.
Okay, this doesn't make any sense to me and I'm not seeing any references to it online. When I use the mousewheel I get a sudden position jump, too. When I move the mouse position after, I get another jump followed by smooth movement. Movement without touching the wheel works just fine. It looks like the mousewheel change also changes the reported position of the cursor and keeps it changed until a new mouse movement. That didn't make sense to me, so I started a new XNA Game and made only the following changes. Results are inline. protected override void Update() { // The time since Update was called last float elapsed = ( float )ElapsedTime.TotalSeconds; // TODO: Add your game logic here UpdateMouse(); // ...Show All
Audio and Video Development Audio
Where on these forums could i post a sound related problem i need answering i need to know because im new to these forums thank you Which SDK or product are you having a sound related problem with If you are using Media Foundation this is the right forum. For older products, use the corresponding newsgroup under http://www.microsoft.com/windows/windowsmedia/community.aspx -Sumedh ...Show All
Visual Basic Fill a combox with DataReader
Hello. A question please. I know I can fill a combobox with a datatable, is there a way to fill it with the information of a Datareader just an alternative, if you are using a DataTable to fill your data with, why not set the DataSource and displaymember properties Me.theComboBox.DataSource = theDataTable .DefaultView Me.theComboBox.DisplayMember = "FieldNameToBindTo " ...Show All
Visual C# very strange System.Net.Sockets.SocketException
What can be a possible cause When my program running on a notebook connects the server, it gets the System.Net.Sockets.SocketException. I try to ping the server by the domain name from the notebook. It's OK. So not related to domain name resolution or network stability problem. I try to telnet to the server from the notebook directly and issue some commands. It's OK also. So not related to any firewall. It just happens in a few notebooks in the same network.... what can be the possible cause The following is the code. if(ConnectSocketThread==null || !ConnectSocketThread.IsAlive) { ConnectSocketThread = new Thread( new ThreadStart(this.ConnectSocketThreadFunction) ); ConnectSocketThread.Name = "ConnectSoc ...Show All
