Hi everyone, I was not sure which forum this question really belongs to. However, here goes.... I have a program running under Windows XP that communicates with a hardware device through the parallel port. Now what I want to do is write a program that can read/write messages to that port (basically remove the hardware physically and simulate it through software). However, in documentation I read that the COM port is always opened with an exclusive access. Does anyone know if there is a way to bypass that or maybe I have interpreted the documentation in a wrong way. Cheers! /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
pankajdaga
Posts
-
hooking to a COM port opened by another application -
VBA question: Putting ByteArray into an XML docHi everone, I am using VBA for Visio and I want to store an image into an XML element. So, basically I read the image into a byte array like this: Dim FileNumber As Integer Dim imageBase64() as Byte FileNumber = FreeFile() Open "C:\hello.gif" For Binary As FileNumber ReDim imageBase64(LOF(FileNumber)) Get FileNumber, , imageBase64 Close FileNumber This reads the image data correctly into my byte array. But now wheever I attempt to put this into an XML element like: element.nodeTypedValue = imageBase64 This method does something to the image data and adds something else instead. What I want is to have the byte array as is. Any help would be greatly appreciated. Thanks! Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
MIME types for VisioHi everyone, This is more of a Visio web developer question! I have a visio compatible XML string that I want to flush to the client machine. I want to know how to set the MIME type and pass the XML string so that it opens it in VIsio on the client machine. I tried setting the "application/x-visio" in the response object's content type field, but that only tries to save it as an ASP.NET page! Well, I even tried registering the MIME type with IIS and setting the content type field to application/vnd.visio.xml. Then, in my application I do: Response.Clear(); Response.Charset = ""; Response.ContentType = "application/vnd.visio.xml"; But it still interprets it as a ASP page. I also tried "application/vnd.ms-visio". That also did not work. When I use application/vnd.visio then it tries to interpret the document as the native Visio format :( Also, I noticed something with IE. Some macros and ActiveX creation within Visio do not work, even if user enables macro on prompt. What I wanted was to stream the visio content to the client, start an instance of visio and be able to use all the features. I do not want the IE to host Visio application inside. Guys, please help me! I would be in deep trouble. I should have looked at this before doing all this development! I would be even willing to pay some bucks to someone who helps here! Cheers! /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Panel like MFC controlHi everyone, I am searching for a Java Panel like control in MFC. Basically, I just need a drawing area with a toolbar and auto-scroll properties. I am terrible at GUI programming and designing controls scare me. Can someone point me to some control that is similar to what I need? Cheers! Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Accessing activeX in ASPX from C#Hi Alvaro, Thanks for the reply. Even when I have this: I do not get an instance of the object in the C# code. VS.NET does not create a C# instance automatically... Thanks, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Accessing activeX in ASPX from C#Hi everyone, I have an ActiveX control embedded in an ASP.NET page as follows: What I would like to know is call an exposed method on this control from the C# code behind the ASPX page. However, I do not know how I can access the object from the C# code. I tried things like: myControl1.Method() but I cannot access the myControl1 variable from the code. Thanks, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
ChessGo to www.chessbase.com[^] /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Visio 2000 control in Internet ExplorerHi everyone, I have an ASP.NET application and I want to host Visio 2000 in an IE page. It is an intranet application and all the clients have licence Visio 2000 copies. On the net, I have only been able to find examples of how to host Visio 2003 in an ActiveX enabled container. I was wondering if someone can post a small example of how I can do the same with Visio 2000. Thanks, pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Visio 2000 in IEHi everyone, Anyone knows of a way to host Visio 2000 in IE. I only came across Visio Viewer control, but I want to be able to create visio drawings also. Thanks, pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
gift suggestionHi everyone, Today is my gf's birthday. I wanted some gift suggestions from you guys. We just started going out about 2 weeks back. I am at a loss as what to get her. Some suggestions most appreciated :) Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Standard deviation questionHi everyone, Someone asked for help in statistics. However, I have not done too much Math and could not figure this one out: A call centre sets a quality target of answering the telephone within 30 seconds. The results of monitoring show a normal distribution with an average answer time of 28 seconds and a standard deviation of 2 seconds. question: what percentage of customers are still being kept waiting too long? Any one care to solve and explain? :) Cheers! Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Return to university questionWhat if they use one of his books for the class :) Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Sorry Nish :)Yup, the final frontier falls. Congratulations :) :beer: Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Server(s) need a spankingWhy is this post voted a 1?? :wtf: People are strange! Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
template problemsHi! Thanks. The whole problem was the in the call. It behaves ok when I use objectPointer->SetCellStyle(row, column, value) instead of objectPointer->SetCellStyle(row, column, value); I have no idea why. I thought after VS 5.0 this problem disappeared. I am going to try it with VS 7 to see what happens. Cheers, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
template problemsHi everyone, I am having problems trying to use a templated function. I have a templated function like so: template bool SetCellStyle(int row, int column, const T & value) Now I call the function like this for example: void MyFunc(int value) { objectPointer->SetCellStyle(row, column, value); } This results in the following error: error C2275: 'int' : illegal use of this type as an expression. I do not know why I am not allowed to do this. I would really appreciate some help here. Thanks, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
A Kerry quote - liberals, please explainQuite a society you have build for yourself. The poor cannot afford decent living standards and food and probably get sick more. After that, they are left to die. No wonder you have so many fans. Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
New harddrive - 1/4 terabyteI feel your pain dude. I am running a 700 mhz with a 20 GB HDD and 256 MB SDRAM :( I wanted to try out a math package. I had to uninstall MSDN, install the package and give it a spin, uninstall it and then install MSDN again :( Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Mobile phone woesThat hurt! :(( Nah, the phone is messed up. Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */
-
Mobile phone woesLast time I ever buy a phone online. Just got my Sony Ericsson T610. The manual says that it could take upto half an hour before the "charging" icon first appears. Well, I have it charging for 4 hours now and there is no activity on the screen. I checked all the battery positions and cable connections and nothing. I will probably have to send it back. What a spectacular waste of time! Ok, I am done venting now! Cheers, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */