My linker is reporting an error as follows:
unresolved external symbol "unsigned char __fastcall BD_CLC(int,int)"...
But I maintain that all references to this function, as well as the definition of the function are of the form:
__forceinline UBYTE BD_CLC(int swap,int elem);
I even did a compilation with "Generate preprocessed file...
I developed a DLL in Managed C++ which loads some plugins (implemented in any .NET language) at runtime using System.Reflection.Assembly.LoadFile. The interface which is implemented by all plugins is implemented in C#. It's used by the Managed C++ code like this:
#using <IMyPluginInterface.dll> // Make the 'IMyPluginInterface' type ava...
When a subclass overrides a baseclass's method, all of the baseclass's overloads are not available from the subclass. In order to use them there should be added a using BaseClass::Method; line in the subclass.
Is there a quick way to inheirt the baseclass's overloads for ALL of the overridden methods? (not needing to explicitly specify ...
I have some struct containig a bitfield, which may vary in size. Example:
struct BitfieldSmallBase {
uint8_t a:2;
uint8_t b:3;
....
}
struct BitfieldLargeBase {
uint8_t a:4;
uint8_t b:5;
....
}
and a union to access all bits at once:
template<typename T>
union Bitfield
{
T bits;
uint8_t all; // <-...
Has anyone built a Qt S60 app (3rd edition, FP2) that plays (streaming or local) video?
I want to play video 'in' a widget, not with (say) QDesktopServices.
I know there's documentation about how to do this with Symbian, such as here and here but I'm still stuck.
(Apologies in advance for cross-posting: I've asked elsewhere, but with ...
I have the following code:
#include <iostream>
#include <string>
void main()
{
std::string str;
std::cin>>str;
if(str == "TheCorrectSerialNumber")
std::cout<<"Hello world!!!"<<std::endl;
}
I need a decompilation or disassemblering tool which can help me by doing below listed steps find the "TheCorrectSerialNumber"....
Hello,
We have a windows service in C++/ MFC which has to carry out a number of tasks on the host workstation some of which may be long running and may fail a few times before they are completed. Each task will only need to be completed once and sequentially.
I was of thinking of some form of callback initially to retry the failed ...
Hello all
I never programmed a winapi so i have a little problem here .
I need turn off my pc from my application .
I found this example link text then i found this example how to change privileges link text
But i have problem how to get that parameter HANDLE hToken // access token handle
I think i need to make it in the next orde...
I have a win32 API application in visual c++ in which I want to save URLs of website viewed by the user to a log file. Can any guide me in trouble shooting above problem.
...
I want to start thread in XPCOM Component.
Here is a code for creating thread
nsresult rv = NS_OK;
nsCOMPtr<Callback> obj = do_CreateInstance("@jscallback.p2psearch.com/f2f;1", &rv);
NS_ENSURE_SUCCESS(rv, rv);
char* str="Hello from C++";
_beginthread( (void(*)(nsCOMPtr<Callback> ))&P2P::test, 0,obj);
return NS_OK;/...
I have a win32 API application in visual c++ in which I want to save recently viewed or opened folder to a log file. I have a code which stores the current window open to a log file. The code for current window opened is as following. Can this code be manipulated to create log file for recently viewed folder.
static TCHAR wndText[100];...
static class EntranceClass {
public:
static void RegisterSomething()
{
}
static int main()
{
RegisterSomething();
return 0;
}
} // <-expected unqualified-id at end
I'm getting following error :
expected unqualified-id at end of input main.cpp Problem
Is there any solution
...
Hi,
I am investigating a crash due to heap corruption. As this issue is non-trivial and involves analyzing the stack and dump results, I have decided to do a code review of files related to the crash.
To be frank, I don't have in-depth knowledge of when the heap could be corrupted.
I would appreciate if you could suggest scenarios whi...
I have an asynchronous application executing several threads doing operations over sockets where operations are scheduled and then executed asynchronously.
I'm trying to avoid a situation when once scheduled a read operation over a socket, the socket gets closed and reopened(by possibly another peer in another operation), before the fir...
I got this c++ macro and wonder what they mean by code%2 (the percentage sign) ?
#define SHUFFLE_STATEMENT_2(code, A, B)
switch (code%2)
{
case 0 : A; B; break;
case 1 : B; A; break;
}
...
Hello,
I am using sockets on my program. Due to I added the WSAStatup.
My application runs fine (It is always up till it gets a signal to stop).
After getting the signal it stops te problem that if I write the WSAClenup function at the end of my program it crashes and if I remove it it termintes fine.
Thanks
...
i keep getting the same errors on my program, any help would be greatly appreciated.
Error 1 error C2784: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &' from 'char' c:\U...
Hi, I'm a TA for an intro C++ class. The following question was asked on a test last week:
What is the output from the following program:
int myFunc(int &x) {
int temp = x * x * x;
x += 1;
return temp;
}
int main() {
int x = 2;
cout << myFunc(x) << endl << myFunc(x) << endl << myFunc(x) << endl;
}
The answer, to me a...
I have a couple questions.
Are all functions inside of a class member functions? or only the ones preceded by the declaration "friend"?
The significance of member functions are that they cannot be accessed by any other classes correct?
What is the difference between an implicit and explicit call?
Which functions can or cannot be imp...
I just discovered the existence of markers in vi. How do you use it, what do you know about them? are they useful, say for a C++ developer?
...