Programming/C Win32 MFC2017. 5. 29. 09:07



system(""); 

win32에서도 지원 (유닉스 계열 전용이 아니었군)

[링크 : http://rockdrumy.tistory.com/483]


다만, system()에서 실행되는 동안 멈추는 단점이 있다.

[링크 : https://msdn.microsoft.com/en-us/library/277bwbdz.aspx]


그리고 얘.. 공백 문자 경로 해결을 못하겠네?

[링크 : https://stackoverflow.com/.../how-to-overcome-spaces-in-the-path-while-passing-to-system]

[링크 : https://stackoverflow.com/.../c-system-not-working-when-there-are-spaces-in-two-different-parameters]



WinExec(cmd, SW_SHOW); 

독립된 프로세스로 구동함.

공백문자 문제 없음(따옴표 하나로 해결)


ShellExecute(NULL, _T("open"), _T("cmd"), NULL, NULL, SW_SHOW); 

얘도 독립된 프로세스로 구동



STARTUPINFO StartupInfo = {0};

PROCESS_INFORMATION ProcessInformation;

BOOL ret;

ret = CreateProcess(_T("c:\\windows\\system32\\cmd.exe"),NULL,NULL,NULL,FALSE,0,NULL,NULL,&StartupInfo, &ProcessInformation);

if(!ret) return ;

WaitForSingleObject(ProcessInformation.hProcess, INFINITE); 

독립된 프로세스 이나 종료대기

STARTUPINFO 구조체 초기화 안해주면 오류남


+

[링크 : http://mafa.tistory.com/entry/WinExec-프로세서에서-외부-프로세스-실행하기]

[링크 : http://karfn84.tistory.com/entry/MFC-프로그램-안에서-외부-파일을-실행시키기...CreateProcess]

[링크 : http://zodd.tistory.com/322]


얘는 종료시키는 애

[링크 : https://stackoverflow.com/questions/13193719/kill-process-started-with-shellexecuteex]

'Programming > C Win32 MFC' 카테고리의 다른 글

mfc 파일 경로 얻기  (0) 2017.05.30
MFC CHttpConnection timetout 설정  (0) 2017.05.29
cstring 'null' append 문제?  (0) 2017.05.18
MFC 시간측정(msec)  (0) 2017.04.18
MFC 다이얼로그 자세히(접기)  (0) 2017.04.14
Posted by 구차니
분류가 모호한 글2017. 5. 29. 06:35

아내님이 뜬금없이


옷에 써있는거 해석해줘! 해서 보는데 못 보는 단어 발생


blvd나 blwd라고 있는데 w는 오타인거 같고



street 같은 느낌적인 느낌의 그런 큰 도로를 지칭하는 듯



[링크 : http://kuhn.kr/92]

[링크 : https://en.wikipedia.org/wiki/Boulevard]

'분류가 모호한 글' 카테고리의 다른 글

보청기 관련 원리/프로그램 글  (0) 2017.07.07
어엌ㅋㅋㅋ 혈당측정 검사지 ㅋㅋㅋ  (0) 2017.06.06
럭스블럭 luxblock  (0) 2017.05.25
미세먼지 보는 사이트  (0) 2017.04.19
카라비너 (독일어)  (0) 2017.04.01
Posted by 구차니
개소리 왈왈/자전거2017. 5. 28. 21:29

갈때는 역풍이고 올때는 순풍이라 확실히 속도가 차이가 나네.

그나저나.. 예전에느 도대체 어떻게 저정도 거리를 나름 순조롭게 다녀온거야 -ㅁ-

지금 정말 몸이 골골대긴 한 듯 ㅠㅠ



Posted by 구차니
Programming/web 관련2017. 5. 26. 13:16

html에서 form을 쓰려니 table이 기본인데 너무 귀찮아서 찾다 보니 이런게 있네?!

대충이라도 이제 만들어 봐야지 ㅠㅠ

그런데.. IE9에서 IE5로 해도 뜨는거 보니.. 원래 있던 기능인듯?

HTML5에서 추가된게 아닌가 보네..(하위 속성만 추가된 듯?)


fieldset은 박스를 쳐주고

legend 는 박스의 제목


<!DOCTYPE html>

<html>

<body>


<form>

 <fieldset>

  <legend>Personalia:</legend>

  Name: <input type="text"><br>

  Email: <input type="text"><br>

  Date of birth: <input type="text">

 </fieldset>

</form>


</body>

</html>


[링크 : https://www.w3schools.com/tags/tag_legend.asp]

[링크 : https://www.w3schools.com/tags/tag_fieldset.asp]

'Programming > web 관련' 카테고리의 다른 글

eclipse php sftp  (0) 2017.10.03
aptana studio 설치  (0) 2017.10.03
웹 페이지용 이미지 DB에 저장하기  (0) 2017.04.21
http digest  (0) 2017.03.03
http header  (0) 2017.03.02
Posted by 구차니
분류가 모호한 글2017. 5. 25. 21:15

벼룩시장에서 봤던 녀석

기억을 거슬러보면 유치원에서 가지고 놀았던거 같은데

얼핏 찾기로는 1986년부터 만들어져온 국산장난감이라고


[링크 : http://blog.naver.com/igedarae/220621483954]

[링크 : http://www.luxblock.co.kr/]

'분류가 모호한 글' 카테고리의 다른 글

어엌ㅋㅋㅋ 혈당측정 검사지 ㅋㅋㅋ  (0) 2017.06.06
blvd  (0) 2017.05.29
미세먼지 보는 사이트  (0) 2017.04.19
카라비너 (독일어)  (0) 2017.04.01
샘플 pcb 5만원!  (0) 2017.02.24
Posted by 구차니

c에서 toString()이랑은 다르구만? (응?)



Syntax

number.toString(radix)

Parameter Values

ParameterDescription
radixOptional. Which base to use for representing a numeric value. Must be an integer between 2 and 36.
  • 2 - The number will show as a binary value
  • 8 - The number will show as an octal value
  • 16 - The number will show as an hexadecimal value

[링크 : https://www.w3schools.com/jsref/jsref_tostring_number.asp]

[링크 : http://mwultong.blogspot.com/2007/04/16-hex-2-10-javascript.html]

'Programming > javascript & HTML' 카테고리의 다른 글

jquery 복수 속성 선택하기  (0) 2018.08.30
jqeury 예제 그리고 자바스크립트 익명함수  (0) 2017.06.10
div slide 애니메이션  (0) 2017.01.14
div margin: 0 -200px 0 auto  (0) 2016.01.21
semantic element / HTML5  (0) 2016.01.21
Posted by 구차니
이론 관련/전기 전자2017. 5. 24. 10:33

Low Voltage CMOS/TTL


3.3V면 CMOS 레벨일줄 알았는데

LVTTL 이라고 해서 3.3v TTL 계열도 있네..


[링크 : http://www.ddpp.com/DDPP3_mkt/c03samp2.pdf]



LVCMOS power supply voltage and interface standards for decreasing voltages have been defined by the Joint Electron Device Engineering Council (JEDEC) for 3.3, 3.0, 2.5, 1.5, 1.2 and 1.0 volts.

[링크 : https://en.wikipedia.org/wiki/LVCMOS]

'이론 관련 > 전기 전자' 카테고리의 다른 글

얼터네이터 / 제너레이터  (0) 2017.07.12
배터리 방전율 관련  (0) 2017.07.04
논리회로 게이트  (0) 2017.04.14
크리스탈 정밀도 - PPM  (0) 2016.11.23
자전거 속도계 센서 - 리드 스위치  (0) 2016.11.23
Posted by 구차니
Linux/Ubuntu2017. 5. 23. 15:32

$ sudo hdparm -S 값 장치명

1~240 / 5초 (5초 ~ 20분)

241~251 / 30분 (30분 ~ 5시간 30분)

252 / 21분?

253 / 업체별 상이 (8~ 12시간)

254 / reserved

255 / 21분 15초



 -S Put the drive into idle (low-power) mode, and also set the

              standby (spindown) timeout for the drive. This timeout value is

              used by the drive to determine how long to wait  (with  no  disk
              activity)  before  turning  off the spindle motor to save power.
              Under such circumstances, the drive  may  take  as  long  as  30
              seconds  to  respond  to  a  subsequent disk access, though most
              drives are much quicker.  The encoding of the timeout  value  is
              somewhat   peculiar.   A  value  of  zero  means  "timeouts  are
              disabled": the device will not automatically enter standby mode.
              Values  from  1  to 240 specify multiples of 5 seconds, yielding
              timeouts from 5 seconds to 20 minutes.  Values from 241  to  251
              specify from 1 to 11 units of 30 minutes, yielding timeouts from
              30 minutes to 5.5 hours.  A value of 252 signifies a timeout  of
              21  minutes. A value of 253 sets a vendor-defined timeout period
              between 8 and 12 hours, and the value 254 is reserved.   255  is
              interpreted as 21 minutes plus 15 seconds.  Note that some older
              drives may have very different interpretations of these values.

[링크 : http://manpages.ubuntu.com/manpages/zesty/en/man8/hdparm.8.html]


[링크 : https://askubuntu.com/questions/39760/how-can-i-control-hdd-spin-down-time]

[링크 : http://www.spencerstirling.com/computergeek/powersaving.html]

[링크 : https://wiki.archlinux.org/index.php/Power_management]

    [링크 : https://wiki.archlinux.org/index.php/Hdparm#Power_management_configuration]

'Linux > Ubuntu' 카테고리의 다른 글

리눅스 팩스 서버 구축?  (0) 2018.02.09
cgroups  (0) 2017.08.24
cpulimit / resource quota  (0) 2017.02.15
우분투 루트 인증서 업데이트 내역  (0) 2017.01.18
우분투 창 관리 - 윈7처럼 창분할 단축키  (0) 2017.01.09
Posted by 구차니
Microsoft/Windows2017. 5. 22. 17:32

유선이 우선권을 가지고 무선이 낮은줄 알았는데

그게 아니었군.. 단순하게 Link 속도에 영향을 받는다.


일단 WinXP SP2~win8.1 사이의 경우의 설정값

그런데.. 도대체 300대 값은 어떻게 되는거지?


The following table lists the link speeds and assigned metrics for computers that run Windows XP Service Pack 2 and newer versions of Windows operating systems.

Link SpeedMetric
Greater than or equal to 2 GB5
Greater than 200 Mb10
Greater than 80 Mb, and less than or equal to 200 Mb20
Greater than 20 Mb, and less than or equal to 80 Mb25
Greater than 4 Mb, and less than or equal to 20 Mb30
Greater than 500 Kb, and less than or equal to 4 Mb40
Less than or equal to 500 Kb50

 


[링크 : https://support.microsoft.com/.../an-explanation-of-the-automatic-metric-feature-for-ipv4-routes]

Posted by 구차니
Microsoft/Windows2017. 5. 22. 16:30

모 업체 요청으로 접속을 해서 보는데

읭?


분명 UI 상으로 설정하는 곳에는 이렇게 중복 설정된게 없는데

그리고 마지막으로 설정한 192.168.0.1도 설정 이후 다시 들어가보면 DHCP로 되어 있는데

이거 머지?!?!?!


이더넷 어댑터 이더넷:


   연결별 DNS 접미사. . . . :

   설명. . . . . . . . . . . . : Intel(R) I210 Gigabit Network Connection

   물리적 주소 . . . . . . . . : 0C-C4-7A-00-00-00

   DHCP 사용 . . . . . . . . . : 아니요

   자동 구성 사용. . . . . . . : 예

   IPv4 주소 . . . . . . . . . : 10.1.0.0(기본 설정)

   서브넷 마스크 . . . . . . . : 255.255.255.0

   IPv4 주소 . . . . . . . . . : 192.168.0.1(기본 설정)

   서브넷 마스크 . . . . . . . : 255.255.255.0

   IPv4 주소 . . . . . . . . . : 10.1.0.1(중복)

   서브넷 마스크 . . . . . . . : 255.255.255.0

   기본 게이트웨이 . . . . . . : 10.1.41.254 


영문 키워드로는 duplicated 인듯

[링크 : https://www.youtube.com/watch?v=1KhrM5u0ziw]

[링크 : https://superuser.com/.../what-does-preferred-tentative-and-duplicate-mean-against-an-ipv4-address]


아무튼.. "진단" 눌러서 한번은 되던데 두번은 안되네.

OS 문제인가 잠시 엉긴건가...


[링크 : https://answers.microsoft.com/.../랜카드는/444dd9f5-ed09-453b-883f-27d8407976fc]

[링크 : https://answers.microsoft.com/.../windows-81-다중-ip-address/6f245136-52ed-46d6-82c4-47e91377a7be]

Posted by 구차니