Using Windows 7 and VS 2010 (soon 2015).
I’m writing a C++ managed code dll (managed.dll)which will be an intermediary between our unmanaged C++ code (program.exe) and a third party C# driver dll (tcbDriver.dll).
I don’t have access to the code for tcbDriver.dll. However, in the following example of managed.dll code, I use a TcbDriver class which accesses the tcbDriver.dll. So program.exe calls "__declspec(dllexport) int ConnectTCB()" in managed.dll, which in turns calls Connect() in tcbDriver.dll.
The problem is, I don’t know how get the managed.dll code to preserve the same instance of "work" or "tcb" for other methods that program.exe will call.
For example, in this case tcbDriver.dll will eventually make tcb.Initialized equal to "true", indicating it is done initializing the hardware.
However, managed.dll needs to use the same instance of "work" or "tcb" in another exposed function that it used to call Connect().
The exposed function "__declspec(dllexport) bool IsInitialized()" makes a new instance, so tcbDriver.dll doesn't ever make tcb.Initialized equal to "true", even after TcbDriver is done initializing.
I have the following code.
Why does not my x is displayed.
I do not understand, X is returned by the getX() function wich is called from the derived class SecondClass() through an object of type FirstClass().
Initialization of X was done using constructor function FirstClass(int x).
I did not want to use the initialization function like setX ().
I am a student of BS(CS) "Computer Science" .
I have a project of "AES Code implementation in C++" and i have submit that project on 28 JUNE 2016
I have a technical issue in my code
Only serious programmers were needed. I can provide any sort of help (to understand my code)
i have seen these web pages and code it according to that algorithm
i am now in final position in that code and the problem is that it is not encoding correctly and decoding as well so could you help me in that case
thank you very much
Without seeing your code neither I nor any other here can help.
If you just need working code, use an existing implementation.
Otherwise show your code and what you have tried / where it fails. To do this, edit your question and add the relevant code formatting it using the 'code' option above the edit window (should be not too much code).
Another tip is using an existing implementation with the same arguments and comparing the results. So you can detect if encryption, decryption or both are failing.
[Note: Enquirer has send a mail to me containing the code]
You had asked for help in a public forum. Then you should let others participate in the discussion.
But the complete code would be too much to be posted here and I have no time to step through that amount of code. Especially because it does not contain comments and begins with the inclusion of other source files which is bad C/C++ style.
If you find someone who can help you should at least tell which of these "web pages" has been used by you and which code parts has been written by you or has been copied.
Write a simple expression evaluator that takes a string like the following as input: 1+2*(3+4).
-Only integers need to be supported
-The following operators should be supported: +, -, *.
-Expressions within parenthesis should be evaluated first.
-Then the resulting expressions should be evaluated from left to right (no operator precedence)
4+(4-(2*3)+1)+4 = 7
The code should be written in such a way to support additional operators.
Assume the existence of a function tokenise, which could take a string and return an array of strings, for instance
tokenise(‘1+(2*3)+4’) would return [‘1’,’+’,’(‘,’2’,’*’,’3’,’)’,’+’,’4’]
and the functions isNumber and asNumber which would return a Boolean and integer respectively on a single string input.