News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Am I right defining the GUID?

Started by Farabi, June 07, 2009, 03:39:59 AM

Previous topic - Next topic

UtillMasm

 :naughty:
no, the man is a master now.

i don't know about the 'tchar.sdk' file.
how to generate the file or where can download Newer 'sdk.zip'?

dedndave

i found tchar.h
it is an include file
C:\Program Files\Microsoft Visual Studio 9.0\VC\include
maybe you need to have an environment variable set
set include=C:\Program Files\Microsoft Visual Studio 9.0\VC\include
better to go into the control panel
system icon
advanced tab
environment variables
create new system variable

UtillMasm

9.0? Visual Studio 2003?
tchar.h is very helpful information! :U@echo off
echo Generating C Volume Structure to File...
dir c:\ /a-d/s/b>CVolumeFiles.txt
echo Finding character strings...
find.exe/i"\tchar.h" "CVolumeFiles.txt"
echo Done, ready to exit.
pause
echo Generating C Volume Structure to File...
Finding character strings...

---------- CVOLUMEFILES.TXT
c:\Cygwin\usr\include\mingw\tchar.h
c:\Program Files\Microsoft SDKs\Windows\v6.0\VC\INCLUDE\tchar.h
c:\WinDDK\6001.18001\inc\crt\tchar.h
c:\wrk\wrk-v1.2\public\sdk\inc\crt\tchar.h
Done, ready to exit.
Press any key to continue . . .

.h is not .SDK.

dedndave

the only SDK file i have is makefile.sdk
it is a makefile

ToutEnMasm


A little explain seem needed on the missing files in the sdk translate.
The windows SDK include header files that can be found only in the c++ express edition or better edition of the c++.
To solve this,put them in comment adding a ; in the include files.
It isn't obligatory to have them in the set of files.
In case of need just translate them with the translator and add them to the set of files of the SDK.
If i have a few minutes i put them here in a zip files.

UtillMasm

 :U
waiting for your zip! and hope you have more time be here.

ToutEnMasm


UtillMasm

 :U
Assembling: SAPI.asm
..\sdk\sdkrc7\crtdefs.SDK(220) : error A2005: symbol redefinition : __GOT_SECURE
_LIB__
..\sdk\sdkrc7\crtdefs.SDK(549) : error A2008: syntax error : [
..\sdk\sdkrc7\crtdefs.SDK(552) : error A2005: symbol redefinition : refcount
..\sdk\sdkrc7\crtdefs.SDK(554) : fatal error A1010: unmatched block nesting
Press any key to continue . . .

ToutEnMasm


put the one redefined in comment

Quote
   STRUCT   lc_category[6]
   locale DWORD ?
   wlocale DWORD ?
   refcount DWORD ?
   wrefcount DWORD ?
   ENDS

This nested structure is repeated 6
Masm don't accept this.
Put it out of the "threadlocinfo   STRUCT" like this



Quote

IFNDEF _THREADLOCALEINFO
LC_CATEGORY STRUCT   
   locale DWORD ?
   wlocale DWORD ?
   refcount DWORD ?
   wrefcount DWORD ?
LC_CATEGORY ENDS


threadlocinfo   STRUCT
   refcount DWORD ?
   lc_codepage DWORD ?
   lc_collate_cp DWORD ?
   lc_handle DWORD 6 dup (?) ;/* LCID */
   lc_id LC_ID 6 dup (<>)
   lc_category LC_CATEGORY 6 dup (<>)
   lc_clike DWORD ?
   mb_cur_max DWORD ?
   lconv_intl_refcount DWORD ?
   lconv_num_refcount DWORD ?
   lconv_mon_refcount DWORD ?
   lconv DWORD ?
   ctype1_refcount DWORD ?
   ctype1 DWORD ?
   pctype DWORD ?
   pclmap DWORD ?
   pcumap DWORD ?
   lc_time_curr DWORD ?
threadlocinfo      ENDS










UtillMasm

 :U Assembling: SAPI.asm
..\sdk\sdkrc7\crtdefs.SDK(220) : error A2005: symbol redefinition : __GOT_SECURE
_LIB__
SAPI.asm(51) : error A2006: undefined symbol : GetInterfaceFromProgId
SAPI.asm(65) : error A2006: undefined symbol : GetInterfaceFromProgId
SAPI.asm(101) : fatal error A1010: unmatched block nesting : if-else
Press any key to continue . . .

ToutEnMasm


That's just a mistake cutting comments in the source I have posted,just add
Quote
   GetInterfaceFromProgId PROTO :DWORD,:DWORD

For the .if missing , look at the lines (all conditions are in the source posted).The  GetInterfaceFromProgId  used two if .Perhaps have you cut some words ?.

UtillMasm

 :U
Assembling: SAPI.asm
..\sdk\sdkrc7\crtdefs.SDK(220) : error A2005: symbol redefinition : __GOT_SECURE
_LIB__
SAPI.asm(101) : fatal error A1010: unmatched block nesting : if-else
Press any key to continue . . .

[attachment deleted by admin]

ToutEnMasm


You have cuted a if in the crtdefs.sdk and masm search a if at the end of the files , that is in the asm file.
here is the corrected crtdefs

[attachment deleted by admin]

UtillMasm

 :U
Assembling: SAPI.asm
..\sdk\sdkrc7\adoctint.sdk(1637) : fatal error A1010: unmatched block nesting
Press any key to continue . . .

ToutEnMasm

Put this include file in comment , it was for another answer in the forum.YOU DON'T NEED IT.