That makes sense now. The stepping is actually not a macro because I obtain the stepping of the device at run time. Some devices can have some odd memory alignment requirements so I could not just...
Type: Posts; User: cmajor28
That makes sense now. The stepping is actually not a macro because I obtain the stepping of the device at run time. Some devices can have some odd memory alignment requirements so I could not just...
I'm a little confused on what you are saying @King Mir.
I have a question about an algorithm/operation question.
Lets say I'm given a minimum value and max value and a stepping. The user passes in a value and I have to find the value between the min...
I'm trying to get some device IDs but for some reason when I run this code, sometimes I'll get a corrupt heap and sometimes I won't. Any ideas?
#include <assert.h>
#include <wchar.h>...
template <class T>
class A {
public:
A& operator = (A<T> var) {
So I have this templated class with a class<T> = class<T> operator overload and a conversion operator from class<U> to class<T>. When I do this, I get a operator '=' is ambiguous error. How can I fix...
Nothing is known at compile time. It's all determined at execution time. I basically have a enum for all of the input types and the 4 types I can process with (int32, int64, float32, and float64).
...
I'm writing some audio processing software and I need a big table to convert between different sample types. The problem is a multiple int32_to_int32 conversions (with different params) and a few...
I'm implementing some audio processing software and a requirement is that I be able to process channels independently. So essentially I need an audio processing tree. Here's an example...
...
My return codes are always S_OK (0).
1419914200
I'm working on a project where I need to write to the system registry in windows and I can't seem to get it to work. I am running as an admin and all my return codes are 0 meaning...
I'm in the process of writing a user mode driver for audio streaming. So I'm trying to design my program and it seems like I need to communicate with PortCls.sys and Ks.sys. However, these are Kernel...
That should work fine.
Because class A will be a totally different class for each platform I compile for. However all of the class As inherit from class C.
It isn't an unnamed namespace, it's some API namespace. I need to define the class I made as the class type they use.
// A.h
class A {
...
}
// B.h
namespace {
class B;
If you look at the bottom though it has errors. I fixed the problem. Some important Windows header file doesn't have an ifndef guard so it causes problems if you try to include Windows.h. The fix is...
I'm using visual studio professional 2013 and I just opened up a new project.
#include <Windows.h>
#include <portcls.h>
int main() {
How do I index them if I can't do []? Add and deference? Because that's really really ugly.
I put it together really quick. I overloaded all of the assignment stuff because actual pointers let you do that. As for + - and such, the conversion operator takes care of those. I'm looking at my...
So is this kinda what you are saying?
#ifndef __POINTER_H
#define __POINTER_H
#include <iostream>
Yes with a counter but if each smart pointer has its own counter, then they will all have different values and it wouldn't help you at all.
I was reading into std::shared_ptr and I got to thinking...how does it keep up with a reference count?
Error 1 error C1001: An internal error has occurred in the compiler.
That's my error
This is my header file for a linked list class. When I try to compile it says an internal error has occurred. What is wrong with my code.
#pragma once
#ifndef LINKED_LIST
#define...