Greetings, I am practicing developing software that can communicate with hardware via an RS232 connection. I am using new PC hardware and I don't have any serial ports, nor do I have any actual devices with me that use serial communication. Does anyone have any ideas or recommendations for software that can run on Windows, preferably on Windows 7 that can emulate a COM port device with basic text IO? It would be nice if I could use this software for free so freeware/open source software is best. Thank you.

Member Avatar
Member Avatar
+0 forum 5

Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does not allow initialization for second time. With the below code, I notice that the new COMClass(); is being triggered everytime there is a GET request. Is there a way I can define the COMClass object to be executed only once and can be re-used by all the GET requests? namespace …

Member Avatar
Member Avatar
+0 forum 6

How can I transfer the data on notepad to comm port? I am using windows xp.

Member Avatar
Member Avatar
+0 forum 1

I am populating a datagrid with 3 columns with varying rows depending on the data. how can i print the column data straight to a com port printer

Member Avatar
Member Avatar
+0 forum 1

I had to map a network drive with specific credentials in my PHP script and it kept falling over because I'd already navigated to the drive in windows explorer. This snippet will unmap a network drive using COM regardless of whether or not there is a drive letter associated with it or not. I can call this bit of code before I attempt the mapping to make sure that the program doesn't fall over.

Member Avatar
+0 forum 0

I'm currently pulling out information from column B in an Excel worksheet + the worksheet name. How would I go about pulling information from column J (which has the same start row/end row as the information pulled out from column B) in the same worksheet and assigning it to the object property $apps.location? I've done a bit of research on the internet, but there doesn't seem to be a straightforward method of accomplishing this. $(for ($i=3; $i -le $wb.sheets.count; $i++){ $sh=$wb.Sheets.Item($i) $startCell_appname = $sh.cells.item(1,2).EntireColumn.find("Application Name").Address() $startCell_appname = [regex]::replace($startCell_appname, '(\$\w+\$)(\d+)', {param($m) $m.groups[1].value + ([int]$m.groups[2].value+1)}) $endCell_appname = $sh.cells.item(1,2).EntireColumn.find("").Address() $endCell_appname = [regex]::replace($endCell_appname, '(\$\w+\$)(\d+)', …

Member Avatar
+0 forum 0

A short while ago I was intrigued by a reply made by nullptr in [this thread](http://www.daniweb.com/software-development/cpp/threads/458583/shellexecuteex-api). So I began to look for ways to access the rest of IE (IWebBrowser2) interface, and met limited and varied success. Accessing for instance a <div></div> element in a wep page html document was quite difficult as there is very little documentation and examples around the web, but I got there in the end. But I came upon a problem where I cannot seem to access an element in a frame on a webpage. I have marked in the code, what and where the …

Member Avatar
Member Avatar
+0 forum 5

WARNING: If you don't like horribly messy questions don't read on... Autodesk Inventor is a 3D parametric CAD program and plugins can be made using COM. I have no experience with COM and some of my naive COM type questions go ignored in the Inventor forums... Look at this: hRes = pSketches->Add (_variant_t((IDispatch *)pWorkPlane), VARIANT_FALSE, pSketch); wprintf (L"Sketch name: %s\n",pSketch->Name.GetBSTR()) ; pSketch->Name = L"Tube-Base" ; BSTR bstrSketchName ; pSketch->get_Name (&bstrSketchName) ; wprintf (L"The sketch is now called %s\n",bstrSketchName) ; The above code shows how to get and change the name of a "Sketch" in different ways. Basically there is pSketch->Name …

Member Avatar
+0 forum 0

Hi. I am looking at creating a small app which will gain access to and use the Internet Explorer DOM. I want to access the DOM of an existing instance of Internet Explorer. The app will be basic and simple, and will be first used to retieve properties of web page elements. My questions are, where do I start, what functions API's should I be looking at, bearing in mind that I intend to stay within the bounds of WIN32 (that is, if COM can be used within those bounds). My initial search was quite poor because of not knowing …

Member Avatar
Member Avatar
+0 forum 3

How can I attach the OCX of WMP to my dialog based application? I want to use the methods of IWMPControls interface such as play() and pause(). I want to call these method by clicking the button given in the dialog box. Its Urgent...

Member Avatar
+0 forum 0

Hi there everyone... Allright my setting is this: I have written an C++ application that receives input from a user app, converts it to XML, and then posts it to our ERP (Syspro) through e.net COM objects using ActiveQt and in specific QAxObject... The problem is this: QAxObject inherits from QAxbase, which has the following signal according to its documentation: void QAxBase::exception ( int code, const QString & source, const QString & desc, const QString & help ) [signal] This signal is emitted when the COM object throws an exception while called using the OLE automation interface IDispatch. code, source, …

Member Avatar
Member Avatar
+0 forum 1

The End.