News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Direct2D ?

Started by K_F, June 13, 2013, 11:59:50 PM

Previous topic - Next topic

dedndave

it looks like the Help Viewer is hosing you up

from this link...
http://blogs.msdn.com/b/vsnetsetup/archive/2012/03/14/unable-to-install-microsoft-windows-sdk-for-windows-7-and-net-framework-4.aspx
Quote
"Windows SDK for Windows 7 & .NET Framework 4" cannot be installed on a machine that has:

1) Microsoft Visual C++ 2010 X86 Runtime - 10.0.40219

2) Microsoft Visual C++ 2010 X86 redistributable 10.0.40219

3) Microsoft Visual C++ 2010 X64 Runtime - 10.0.40219

4) Microsoft Visual C++ 2010 X64 redistributable 10.0.40219

The above Microsoft Visual C++ 2010 packages are part of the "Visual Studio 2010 Service Pack 1" installation. When we try to install "Windows SDK for Windows 7 & .NET Framework 4.0" on a machine that has "Visual Studio 2010 SP1" it will fail with below error message....

are there any error messages displayed ?
have you looked at the system Event log ?


Dubby

or this one...

http://support.microsoft.com/kb/2717426

K_F

I've read through all those Ms pages...
But I think Dave has it... I have Help Viewer and Redistibutable C++2010 installed and .net 4
I'll remove those one at a time and see what happens

Thanks
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

qWord

Quote from: ToutEnMasm on June 15, 2013, 02:56:34 AMI have not even try to register it , I had just put it in the same directory as your application.What I have to do ? (an expect ?)
my thought: you can not simply copy a system DLL from a newer Windows version to an older version unless it somewhere documented that is works. The documentation says there is no support for Windows XP.
MREAL macros - when you need floating point arithmetic while assembling!

TouEnMasm

Quote
The documentation says there is no support for Windows XP
That was for that I said it couldn't work and don't understand wich soluce you have. The _ftol2 function is missing in the msvrt.dll of windows XP and there is no way to solve this.
If you have a way ,I get it.
Fa is a musical note to play with CL

K_F

I have a simple fantasy...
To walk into Msofts development offices...

"So.. you're the proj engineer for the SDK installation package... Pack your bags.. You're FIRED!"
"Ah! and you're the SDK developer.. join your friend over there.. you should have complained, BYE"

I should phone my good fried Donald T.. he's pretty good at firing  :icon_mrgreen:
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

MichaelW

Quote from: ToutEnMasm on June 14, 2013, 04:26:09 PM
The _ftol2 is not in windows XP,it's a not a defaut of my system.It is only in the msvcrt.dll of win7.

FWIW, it's on my Windows XP system, but not in a DLL. It's a compiler support procedure in the RTLs included Microsoft Visual C++ Toolkit 2003. And because it's a compiler support procedure it does not have a normal call interface.

#include <stdio.h>
#include <conio.h>

long long _ftol2(double);

void main( void )
{
    double f = 123.456;
    long long ll;

    printf("%f\n", f);

    ll = (long long)f;       // line 13

    printf("%I64d\n", ll);

    ll = _ftol2(f);

    printf("%I64d\n", ll);

    __asm
    {
        fld QWORD PTR f
        call _ftol2
        mov DWORD PTR ll, eax
        mov DWORD PTR ll+4, edx
    }

    printf("%I64d\n", ll);
    getch();
}


; Listing generated by Microsoft (R) Optimizing Compiler Version 13.10.3077

TITLE test.c
.386P
include listing.inc
if @Version gt 510
.model FLAT
else
_TEXT SEGMENT PARA USE32 PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT DWORD USE32 PUBLIC 'DATA'
_DATA ENDS
CONST SEGMENT DWORD USE32 PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT DWORD USE32 PUBLIC 'BSS'
_BSS ENDS
$$SYMBOLS SEGMENT BYTE USE32 'DEBSYM'
$$SYMBOLS ENDS
_TLS SEGMENT DWORD USE32 PUBLIC 'TLS'
_TLS ENDS
FLAT GROUP _DATA, CONST, _BSS
ASSUME CS: FLAT, DS: FLAT, SS: FLAT
endif

INCLUDELIB LIBC
INCLUDELIB OLDNAMES

_DATA SEGMENT
$SG875 DB '%f', 0aH, 00H
$SG877 DB '%I64d', 0aH, 00H
ORG $+1
$SG878 DB '%I64d', 0aH, 00H
ORG $+1
$SG879 DB '%I64d', 0aH, 00H
_DATA ENDS
PUBLIC _main
PUBLIC __real@405edd2f1a9fbe77
EXTRN _printf:NEAR
EXTRN _getch:NEAR
EXTRN __ftol2:NEAR
EXTRN __ftol2:NEAR
EXTRN __fltused:NEAR
; COMDAT __real@405edd2f1a9fbe77
; File c:\program files\microsoft visual c++ toolkit 2003\my\ftol2\test.c
CONST SEGMENT
__real@405edd2f1a9fbe77 DQ 0405edd2f1a9fbe77r ; 123.456
; Function compile flags: /Odt
CONST ENDS
_TEXT SEGMENT
_ll$ = -16 ; size = 8
_f$ = -8 ; size = 8
_main PROC NEAR
; Line 7
push ebp
mov ebp, esp
sub esp, 16 ; 00000010H
; Line 8
fld QWORD PTR __real@405edd2f1a9fbe77
fst QWORD PTR _f$[ebp]
; Line 11
sub esp, 8
fstp QWORD PTR [esp]
push OFFSET FLAT:$SG875
call _printf
add esp, 12 ; 0000000cH
; Line 13
fld QWORD PTR _f$[ebp]
call __ftol2
mov DWORD PTR _ll$[ebp], eax
mov DWORD PTR _ll$[ebp+4], edx
; Line 15
mov eax, DWORD PTR _ll$[ebp+4]
push eax
mov ecx, DWORD PTR _ll$[ebp]
push ecx
push OFFSET FLAT:$SG877
call _printf
add esp, 12 ; 0000000cH
; Line 17
fld QWORD PTR _f$[ebp]
sub esp, 8
fstp QWORD PTR [esp]
call __ftol2
add esp, 8
mov DWORD PTR _ll$[ebp], eax
mov DWORD PTR _ll$[ebp+4], edx
; Line 19
mov edx, DWORD PTR _ll$[ebp+4]
push edx
mov eax, DWORD PTR _ll$[ebp]
push eax
push OFFSET FLAT:$SG878
call _printf
add esp, 12 ; 0000000cH
; Line 23
fld QWORD PTR _f$[ebp]
; Line 24
call __ftol2
; Line 25
mov DWORD PTR _ll$[ebp], eax
; Line 26
mov DWORD PTR _ll$[ebp+4], edx
; Line 29
mov ecx, DWORD PTR _ll$[ebp+4]
push ecx
mov edx, DWORD PTR _ll$[ebp]
push edx
push OFFSET FLAT:$SG879
call _printf
add esp, 12 ; 0000000cH
; Line 30
call _getch
; Line 31
mov esp, ebp
pop ebp
ret 0
_main ENDP
_TEXT ENDS
END


123.456000
123
-9223372036854775808
123


Well Microsoft, here's another nice mess you've gotten us into.

TouEnMasm


Good sample,
it is also in the VC++ 2010 express with:

Quote
__ftol2 __ftol2_pentium4 __ftol2_sse __ftol2_sse_excpt
the sse version give a different output

Quote
123.456000
123
18981627292024832
18981625144541307
Fa is a musical note to play with CL