| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| X-Originating-IP: | [210.221.76.65] |
| From: | "·ù½ÅÇü" <redblue2000 AT hanmail DOT net> |
| Reply-To: | "·ù½ÅÇü" <redblue2000 AT hanmail DOT net> |
| Organization: | ¿¬¼¼´ëÇб³Àü±â,ÄÄÇ»ÅͰøÇаúÁö´ÉÁ¦¾î½Ã½ºÅÛ¿¬±¸½Ç |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | [Re]:Segfault when call kernel32 function |
| X-Mailer: | Daum Web Mailer 1.0 |
| Date: | Sun, 14 Jan 2001 13:11:55 KST |
| Message-Id: | <20010114131155.HM.40000000001NANK@www5.hanmail.net> |
| MIME-Version: | 1.0 |
To: Cygwin Mailing List <cygwin at sourceware dot cygnus dot com>
Subject: [Re]:Segfault when call kernel32 function
From: ShinHyung-Ryu
I had the same problem of calling BuildCommDCB().
(segfaults when BuildCommDCB() hits that call (running under Win98).)
now I find a solution about it.
but I don't know about the difference, using "char coms[]=" and "char *coms=".
see & run below.
#include "stdafx.h"
#include <windows.h>
int main(int argc, char* argv[])
{
DCB dcb;
char coms[]="baud=1200 parity=N data=8 stop=1";
BuildCommDCB(coms , &dcb);
printf("%d\n",dcb.BaudRate);
return 0;
}
==================================================
==================================================
¿ì¸® ÀÎÅͳÝ, Daum
Æò»ý ¾²´Â ¹«·á E-mail ÁÖ¼Ò ÇѸÞÀϳÝ
Áö±¸ÃÌ ÇÑ±Û °Ë»ö¼ºñ½º Daum FIREBALL
http://www.daum.net
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |