Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8539691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:25:35+00:00 2026-06-11T11:25:35+00:00

I am using this to initialize Directx vectors. LPD3DXVECTOR3 sat_map[] = { { -1.5f,

  • 0

I am using this to initialize Directx vectors.

LPD3DXVECTOR3 sat_map[] = 
{
    { -1.5f,  0.0f,  1.5f},
    {  1.5f, -1.5f,  1.5f},
};

Even when I try without doing an array, I always get the same error:

error C2440: ‘initializing’ : cannot convert from ‘float’ to ‘LPD3DXVECTOR3’

I tried doing doubles, but I got a similar error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:25:36+00:00Added an answer on June 11, 2026 at 11:25 am

    LPD3DXVECTOR3 is a pointer to a D3DXVECTOR3, and you can’t initialize a pointer with a structure (only with a pointer to a structure). Therefore, you just want

    D3DXVECTOR3 sat_map[] = 
    {
        { -1.5f,  0.0f,  1.5f},
        {  1.5f, -1.5f,  1.5f},
    };
    

    or

    D3DXVECTOR3 v1 = { -1.5f,  0.0f,  1.5f};
    D3DXVECTOR3 v2 = {  1.5f, -1.5f,  1.5f};
    LPD3DXVECTOR3 sat_map[] = { &v1, &v2 };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While using this code, i can't get any results... Ext.define('Teste.view.Main', { extend: 'Ext.Container', initialize:
We can initialize a container deque by using standard input like this: deque<int> c((istream_iterator<int>(cin)),(istream_iterator<int>()));
I am using this: byte[] buffer = new byte[10240]; As I understand this initialize
I've been using this pattern to initialize static data in my classes. It looks
Since C99 (and C++20), it's possible to initialize structs using this syntax: struct info
I have implement Wikitude SDK and I manage to initialize using this code: -(IBAction)launchAR:(id)sender{
I’m using this gem, Artii: http://rubydoc.info/gems/artii/1.0.2/frames I’m trying to initialize with Artii.new , but
I'm using this code: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize
I´m using this method to initialize an nsmutablearray - (void)getAllContacts { Contact *contact =
I am using this code to initialize datatable and after Delete link is clicked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.