Microsoft/Visual Studio2009. 9. 1. 16:50
머.. 가장 편한건 dsw 파일이 있는거지만,
없으면 생성을 해주어야 한다.

방법 1. project wizard의 makefile을 이용해서 프로젝트를 생성

[링크 : http://msdn.microsoft.com/en-us/library/txcwa2xx%28VS.80%29.aspx]
[링크 : http://msdn.microsoft.com/en-us/library/8y48z24a%28VS.80%29.aspx]


방법 2. nmake를 이용해서 프로젝트를 생성

namke /f "project.mak"


[링크 : http://woohaha.egloos.com/301383/]

방법 3. devenv(Visual Studio 2008
그런데 이 nmake는 VC++6 이후로는 포함이 되지 않아서 다른 방법으로 해야 한다고 한다.
devenv라는 녀석으로 하면된다는데.. VC++6 이상을 설치하지 않고, 사용하지 않아서 확인불가 OTL

[링크 : http://blog.daum.net/aswip/8224572]
[링크 : http://msdn.microsoft.com/en-us/library/xee0c8y7.aspx]
Posted by 구차니
Microsoft/Visual Studio2009. 8. 26. 11:04

기본 값은 stack size = 1MB (그분보다 작은 용량이군 ㄱ-)
다르게 말하자면, char array로 1메가 까지 잡을 수 있다(자잘한 변수 선언하면 그 이하가 된다는 의미)

이 용량을 늘리기 위해서는 reserve 부분에 16진수로 넣으면 된다(고 한다.)

[링크 : http://www.eggheadcafe.com/conversation.aspx?messageid=30629613&threadid=30629607]
Posted by 구차니
Microsoft/Windows2009. 7. 5. 23:23
오래전에 상당히 알려진 녀석이었는데 귀찮아서 안하다가
도저히 안되겠다 싶어서 적용을 했다.

프로그램은 아래의 링크에서 직접받는게 그래도 실뢰할 수 있을 것이고
그냥 실행하고나서 USB 자동실행 하지 않기 버튼 누르면 해결!

깜찍한 아이콘

매우 구린 UI

[링크 : http://www.ncsc.go.kr/Global/p_Print.jsp?tbName=IGMSCRDOC&bIndex=1415]
Posted by 구차니
Microsoft2009. 5. 17. 01:06
문득 c#이 먼지 궁금해서 책을 불법하게 다운이라도 받을려고 검색하니
MS에서 제공하는 무료 기술서적이 발견되었다.(한글판)


[링크 : http://www.microsoft.com/korea/msdn/vbrun/staythepath/additionalresources/InsideCSharp/default.aspx]
[마이그레이션 센터 : http://www.microsoft.com/Korea/MSDN/vbasic/migration/default.aspx]

'Microsoft' 카테고리의 다른 글

lsass.exe 바이러스!?!??!?!  (2) 2011.05.24
ISA Server  (0) 2011.05.23
windows embeded  (4) 2010.10.06
Windows server 2008 R2 + Hyper-V  (0) 2010.09.24
안티 디버깅 프로그램 (anti debugging / anti reverse engineering)  (2) 2010.01.07
Posted by 구차니
Microsoft/Windows2009. 4. 15. 11:39
VC++ 6.0 기준으로 사용가능한 방법은 아직 찾지 못했다.
리눅스에서는 ps -ef 하면 실행시의 옵션항목(아규먼트)들이 같이 표기 되는데
윈도우에서는 프로그램 이름만 보이게 되어서, 어떠한 옵션으로 실행이 되었는지 궁금해질때가 있다.

그래서 검색을 해보니 .net framework에서는 process 클래스에 startinfo 라는 항목이 존재한다.
이것을 사용하면 argument를 알아 올수 있겠지만, 난 .net을 싫어하는 관계로.. 다른 방법을 찾아 봐야겠다.

using System; 
using System.Diagnostics; 

namespace ProcessArgsTest 
{ 
  class Test 
  { 
    static void Main()  
    { 
      Process [] localAll = Process.GetProcesses(); 
      foreach (Process p in localAll) 
      {   
        if (p.ProcessName == "notepad") 
        { 
          Console.WriteLine(p.ProcessName + " [" + p.StartInfo.Arguments + "]"); 
        } 
      } 
    } 
  } 
} 


[발견 : http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/669eeaeb-e6fa-403b-86fd-302b24c569fb/]
[process.GetProcesses method : http://msdn.microsoft.com/en-us/library/1f3ys1f9.aspx]
[process.StartInfo method : http://msdn.microsoft.com/en-us/library/system.diagnostics.process.startinfo.aspx]
Posted by 구차니
Microsoft/Windows2009. 3. 27. 16:19
제목은 저렇게 적었지만, 제대로 되는지는 모르겠다.
내꺼에서 해보니.. 의도한 것 처럼 많이 나오지 않는다 ㄱ-

C:\>ipconfig /displaydns

Windows IP Configuration

         1.0.0.127.in-addr.arpa
         ----------------------------------------
         Record Name . . . . . : 1.0.0.127.in-addr.arpa.
         Record Type . . . . . : 12
         Time To Live  . . . . : 579879
         Data Length . . . . . : 4
         Section . . . . . . . : Answer
         PTR Record  . . . . . : localhost


         minimonk.tistory.com
         ----------------------------------------
         Record Name . . . . . : minimonk.tistory.com
         Record Type . . . . . : 1
         Time To Live  . . . . : 2
         Data Length . . . . . : 4
         Section . . . . . . . : Answer
         A (Host) Record . . . : 211.172.252.15



C:\>ipconfig /?

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.



Displaying or clearing the DNS Resolver Cache in Windows

ipconfig /displaydns

With the displaydns option you can display the contents of the DNS Resolver Cache



[발견 1: http://www.myptsmail.com/blog/?p=333]

[발견 2: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/Network/ManagetheDNSresolvercachewithIPCONFIG.html]

Posted by 구차니
Microsoft/Windows2009. 3. 23. 18:20

Basic Naming Conventions

The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:

  • Use a period to separate the base file name from the extension in the name of a directory or file.
  • Use a backslash (\) to separate the components of a path. The backslash divides the file name from the path to it, and one directory name from another directory name in a path. For additional details about what a path is, see the Path Names and Namespaces section below.
  • Use a backslash as required as part of volume names, for example, the "C:\" in "C:\path\file" or the "\\server\share" in "\\server\share\path\file" for Universal Naming Convention (UNC) names. You cannot use a backslash in the actual file or directory name components because it separates the names into components.
  • Use almost any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:

    • The following reserved characters are not allowed:

      < > : " / \ | ? *

    • Characters whose integer representations are in the range from zero through 31 are not allowed.
    • Any other character that the target file system does not allow.
  • Use a period as a directory component in a path to represent the current directory, for example ".\tmp.txt".
  • Use two consecutive periods (..) as a directory component in a path to represent the parent of the current directory, for example "..\tmp.txt".
  • Do not use the following reserved device names for the name of a file:

    CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

    Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended.

  • Do not assume case sensitivity. For example, consider the names OSCAR, Oscar, and oscar to be the same, even though some file systems (such as a POSIX-compliant file system) may consider them as different. Note that NTFS supports POSIX semantics for case sensitivity but this is not the default behavior. For additional information, see CreateFile.
  • Do not end a file or directory name with a trailing space or a period. Although the underlying file system may support such names, the operating system does not. However, it is acceptable to start a name with a period.

[출처 : http://msdn.microsoft.com/en-us/library/aa365247.aspx]




Posted by 구차니
Microsoft/Windows2009. 3. 18. 16:50
Windows generates short file names from long file names in the following manner:
  • Windows deletes any invalid characters and spaces from the file name. Invalid characters include:
    . " / \ [ ] : ; = ,
  • Because short file names can contain only one period (.), Windows removes additional periods from the file name if valid, non-space characters follow the final period in the file name. For example, Windows generates the short file name
    Thisis~1.txt
    from the long file name
    This is a really long filename.123.456.789.txt
    Otherwise, Windows ignores the final period and uses the next to the last period. For example, Windows generates the short file name
    Thisis~1.789
    from the long file name
    This is a really long filename.123.456.789.
  • Windows truncates the file name, if necessary, to six characters and appends a tilde (~) and a digit. For example, each unique file name created ends with "~1." Duplicate file names end with "~2," "~3," and so on.
  • Windows truncates the file name extension to three characters or less.
  • Windows translates all characters in the file name and extension to uppercase.
Note that if a folder or file name contains a space, but less than eight characters, Windows still creates a short file name. This behavior may cause problems if you attempt to access such a file or folder over a network. To work around this situation, substitute a valid character, such as an underscore (_), for the space. If you do so, Windows does not create a different short file name

For example, "Afile~1.doc" is generated from "A file.doc" because the long file name contains a space.

No short file name is generated from "A_file.doc" because the file name contains less than eight characters and does not contain a space.

The short file name "Alongf~1.txt" is generated from the long file name "A long filename.txt" because the long file name contains more than eight characters.


가끔 case sensitive 하지 않은 이 써글 파일 시스템이 저주스럽습니다 ㄱ-


[링크 : http://support.microsoft.com/kb/142982]
Posted by 구차니
Microsoft/Office2009. 2. 26. 22:01
parental control 이라는 아랍문장이라도 생각이 된다(아마도? ㅋ)
아무튼 이녀석을 내가 만든 조합기로 출력을 했더니 엑셀과는 다르게 나왔다.
그런데 이거 먼가 이상하다!!!

클릭만 했을 때

F2를 눌러 문자열 편집을 눌렀을 때

아니 도대체 왜 편집모드랑 보기 모드랑 다른거야!!! 라고 외치고 있었는데, 폰트가 '맑은 고딕' 으로 되어 있었다.
그래서 혹시나 하는 마음에 아랍어 폰트가 내장 되어 있는 다른 폰트로 교체 했다.
참고로 위의 폰트는 Arial 에 포함되어 있는 글자체다.

젠장 제대로 나오잖아!!!

MS는 역시 마소라서 사람말을 제대로 이해 못했나보다
Posted by 구차니
Microsoft/Windows2009. 2. 6. 07:12
윈도우 기준으로 한글폰트중 **체 폰트는 고정폭이다.
(예: 굴림체는 고정폭 , 굴림은 가변폭)
[참고 : http://mwultong.blogspot.com/2006/07/html-css.html]

그러면.. 영문은 어떻게 구분해야 하나?
Courier New
Courier
Lucida Console
Fixedsys
정도 일려나..

[참고 : http://www.lowing.org/fonts/]
Posted by 구차니