On Monday 05 January 2015 11:31:52 Bill Buzzell wrote:
> Ok. The rs232.prj is working. I must enter '\\.\COM34', as previously but
> it is communicating send and receive now.
>
> >You should also clean the mseuniverse checkout.
>
Then you probably don't use current git master version of mseide-msegui. Last 
commit is deffcc9879f84a00b8724409a3dc201e7acbe2ac and the commit 
f44ebc3cc1152f9e5db86d77648c888daa23f3f3 adds '\\.\' if necessary:
"
diff --git a/lib/common/serialcomm/msecommport.pas 
b/lib/common/serialcomm/msecommport.pas
index 
34d180a8eb1f57b844e7f9b8eca69ba050cefad4..03f434b00475f2bf849a26068dbdafd209a49fa4
 
100644
--- a/lib/common/serialcomm/msecommport.pas
+++ b/lib/common/serialcomm/msecommport.pas
@@ -980,12 +980,17 @@ begin       //open
  fillchar(overlappedtx,sizeof(overlappedtx),0);
  overlappedrx.hevent:= createevent(nil,true,false,nil);
  overlappedtx.hevent:= createevent(nil,true,false,nil);
  
  repeat
-  fhandle:= createfile(pchar(str1),GENERIC_READ or GENERIC_WRITE, 0, nil,
-               OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);
+  fhandle:= createfile(pchar(str1),GENERIC_READ or GENERIC_WRITE, 0,
+                                    
nil,OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);
+  if (fhandle = invalidfilehandle) and (pos('//./',str1) = 0) then begin
+   str1:= '//./'+str1;
+   fhandle:= createfile(pchar(str1),GENERIC_READ or GENERIC_WRITE, 0,
+                                    
nil,OPEN_EXISTING,FILE_FLAG_OVERLAPPED,0);
+  end;
   if fhandle = invalidfilehandle then begin
    sleep(100);
   end;
   inc(int1);
  until (fhandle <> invalidfilehandle) or (int1 > 2);
"

Martin

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to