Author Topic: Any help with this please?  (Read 804 times)

Ascended

  • Member
  • ***
  • Posts: 331
Re: Any help with this please?
« Reply #15 on: April 23, 2018, 10:09:13 AM »
If you build against the DX9 Summer 2004 SDK, you won't have to worry about the DX redists being installed on the end users machine.

It was the last version that static linked to the application.

If you do that, you'll be able to run your application on any clean system from XP and above with no additional requirements.  :t

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Any help with this please?
« Reply #16 on: April 23, 2018, 10:42:28 AM »
Just checked it.
HLSLwithoutEffects.exe = 1110016 bytes for a simple example.  :icon13:
If you like very, very, very, very, bloated executables this is your choice.  :greenclp:
You won't be able to show your executables here on the forum.
Creative coders use backward thinking techniques as a strategy.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Any help with this please?
« Reply #17 on: April 23, 2018, 10:46:33 AM »
Or you could use DX11 and not have to direct your users to download 100MB of pre-requisites to run a 5K application.  :eusa_dance:

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Any help with this please?
« Reply #18 on: April 23, 2018, 10:59:01 AM »
What about the XP users?
Creative coders use backward thinking techniques as a strategy.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Any help with this please?
« Reply #19 on: April 23, 2018, 11:07:53 AM »
Microsoft stopped supporting XP many years ago, so I made a conscious decision to do the same.

Market share for XP is currently 0.2% of operating systems.

http://store.steampowered.com/hwsurvey/

So, I guess that if you want to support XP still, then you cap out at DX9.

Personally, my favourite OS was Windows 2000. It was nice, clean, and did the job without all the rubbish. If I had my way, I'd still be on that.

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Any help with this please?
« Reply #20 on: April 23, 2018, 11:15:33 AM »
Personally, my favourite OS was Windows 2000. It was nice, clean, and did the job without all the rubbish. If I had my way, I'd still be on that.

I share that feeling with you, Windows 2000 never had problems with it.  :t

I use d3d9.dll because it is standard installed on all machines and I can do whatever I need to do with it for my own needs.
And it is supported by XP.  :bgrin:
Creative coders use backward thinking techniques as a strategy.

Prince

  • Guest
Re: Any help with this please?
« Reply #21 on: May 10, 2018, 07:35:42 PM »
Hello, Please use this -
Typedef void (WINAPI *TFUNC)(int, float);

void WINAPI func2(int a, float b)
{
   // do something
   return;
}

void func1(TFUNC somefunc)
{
   somefunc(1, 2.0f);
        return;
}

int main()
{
    func1(&func2);
    return 0;
}

jj2007

  • Member
  • *****
  • Posts: 8776
  • Assembler is fun ;-)
    • MasmBasic
Re: Any help with this please?
« Reply #22 on: May 10, 2018, 08:17:12 PM »
Hi Prince Spammer Choudhary,
Your post will disappear before Google can see it :greensml: