Click here to Skip to main content
14,173,121 members
Rate this:
Please Sign up or sign in to vote.
is possible to convert?

struct sKeyState {
    bool bPressed;
    bool bReleased;
    bool bHeld;

int m_numKeys;
Uint8* m_keyOldState;
const Uint8* m_keyNewState;
bool m_mouseOldState[5];
bool m_mouseNewState[5];

    m_keyNewState + m_numKeys,

    m_mouseNewState + 5,

template<class InputIterator, class OutputIterator>
OutputIterator owncopy(InputIterator first, InputIterator last, OutputIterator result)
    while (first != last) {
        *result = *first;
        ++result; ++first;
    return result;

What I have tried:

public struct sKeyState
public bool bPressed;
public bool bReleased;
public bool bHeld;

int m_numKeys;
uint[] m_keyOldState;
uint[] m_keyNewState;
bool[] m_mouseOldState = new bool[5];
bool[] m_mouseNewState = new bool[5];
Updated 18-Nov-18 9:51am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can try the free version of this Converter: C++ to C# Converter[^]
But be warned, these converters are not suited for complex applications !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190524.3 | Last Updated 18 Nov 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100