Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~17.8K People Reached
Favorite Tags
c++ x 97
c x 12
Member Avatar for lochnessmonster

Is the only point of string encryption is to hide a hardcoded string from being scanned and found in memory/binaryfile? I dont see how string encryption works 100% of the time though...it seems if any string that needs to be used will be stored in memory. For example, i can …

Member Avatar for TrustyTony
0
141
Member Avatar for lochnessmonster

when i write a program in assembly and i define a variable of "word" size.....is it truly the natural word size of my processor? for example on an i7 64bit processor will it be the size of 64bits.....or will it be defined as how microsoft defines the size of a …

Member Avatar for Ancient Dragon
0
118
Member Avatar for lochnessmonster

I'm rather confused on when i would use and what the following libraries( of frameworks[not sure what they are] ) would be used by a programmer. If anyone could please give a simple understandable definition i would greatly be appreciated. ATL MFC COM pretty much when would the following be …

Member Avatar for cppgangster
0
2K
Member Avatar for lochnessmonster

i'm currently still trying to understand the internals of the following code being executed in c++ [code] int main() { std::cout << "Just now entering inside of main" << std::endl << std::endl; return 0; }[/code] Here is the assembly code i obtained from an assembly line debugger [code] 012E1207 |. …

Member Avatar for Schol-R-LEA
0
712
Member Avatar for lochnessmonster

im curious as to if anyone knows the internals of how cout works? for example the step by step internals of what happens when executing the following statement in c++ cout << "hello world" << endl; -thx

Member Avatar for vijayan121
0
115
Member Avatar for lochnessmonster

i dont see the point or why you would ever want to upcast an object for example class Shape { ..... }; class rectangle : public shape { .... }; int main() { rectangle object1; Shape *shapePtr = &object1; return 0; }

Member Avatar for thekashyap
0
184
Member Avatar for lochnessmonster

[url]http://www.ibm.com/d...rary/pa-dalign/[/url] Can anyone plz explain why , according to this article, an x86 processor can't read simply 4bytes from an odd address and has to make 2 reads then shift bytes to get aligned to the correct value? I dot see why a processor can't read from an odd address …

Member Avatar for mike_2000_17
0
118
Member Avatar for lochnessmonster

how would i assign the following functions address to a function pointer? int sum(int x, int y) { ... }

Member Avatar for abhimanipal
0
56
Member Avatar for lochnessmonster

Local * pLocal = *(Local**)0xE6EB54; // valid How would u interpret these in english i understand it has to do with a pointer to a double pointer? Local * pLocal = (Local**)0xE6EB54; // not sure if this is even valid if the above is valid as well how would u …

Member Avatar for mike_2000_17
0
90
Member Avatar for lochnessmonster

I dont understand how the C/C++ language is portable? 1.) What makes a program compilable on 2 different O/S's? 2.) Doesn't this depend on the O/S manufacturer? How does Microsoft do this? 3.) What determines wether a language is portable or will only work on one operating system?

Member Avatar for JasonHippy
0
375
Member Avatar for lochnessmonster

log.h [CODE] namespace stuff { class log { .......... friend std::wostream& operator<<( std::wostream& oss, const log& error ); }; } [/CODE] log.cpp [CODE]std::wostream& stuff::operator<<( std::wostream& oss, const stuff::log& error ) { oss << log.m_message; // log.m_message is a std::wstring return oss; } [/CODE] 1>c:\users\oso\documents\visual studio 2010\projects\moduleinjector\moduleinjector\cdllinjection.cpp(147): error C2679: binary '<<' …

Member Avatar for NicAx64
0
127
Member Avatar for lochnessmonster

[code]// header moduleinjector - header for class moduleinjector itself // as well as "core" moduleinjector-related functionality namespace Injection { class moduleinjector {...}; ... // ... = core related functionality e.g. non member functions almost all clients need ... } [/code] when you construct a moduleinjectior object you must pass in …

Member Avatar for mike_2000_17
0
122
Member Avatar for lochnessmonster

[CODE] std::string function(std::string buffer) { int Variable1 = 23; if( !buffer.compare("Variable1")) <--- i want the user to input the variable name..and have my program match the input with the variable name of the program and return the value it contains return Variable1; [U]<--- How do i convert this number into …

Member Avatar for Caligulaminus
0
101
Member Avatar for lochnessmonster

I'm haveing a hard time determining wether i should implement certain things as a class or just functions....for example.... Log.h library <--- i could obviously implement a Log class....and i could also have use Log functions(without a class) alternatively...is there any guideline/recommendations i should use when knowing wether i should …

Member Avatar for mike_2000_17
0
112
Member Avatar for maybnxtseasn

i am injecting a dll into oneo my process's and i want it to read the bytes of the file and write those specified bytes to a file on hard disk. The problem is my .dll compiles, but when the .dll isi njected, it never creates the file and writes …

Member Avatar for Ancient Dragon
0
89
Member Avatar for lochnessmonster

what is the difference in the 2? [CODE]class Log { private: // no members attributes public: void createLog( ); }; int main() { Log log1; log1.createLog(); }[/CODE] [CODE]class Log { private: // no members public: static void createLog( ); }; int main() { Log::createLog(); }[/CODE]

Member Avatar for thekashyap
0
106
Member Avatar for lochnessmonster

[CODE]typedef struct _IMAGE_OPTIONAL_HEADER { WORD Magic; BYTE MajorLinkerVersion; BYTE MinorLinkerVersion; DWORD SizeOfCode; DWORD SizeOfInitializedData; DWORD SizeOfUninitializedData; DWORD AddressOfEntryPoint; DWORD BaseOfCode; DWORD BaseOfData; DWORD ImageBase; DWORD SectionAlignment; DWORD FileAlignment; WORD MajorOperatingSystemVersion; WORD MinorOperatingSystemVersion; WORD MajorImageVersion; WORD MinorImageVersion; WORD MajorSubsystemVersion; WORD MinorSubsystemVersion; DWORD Win32VersionValue; DWORD SizeOfImage; DWORD SizeOfHeaders; DWORD CheckSum; WORD Subsystem; …

0
77
Member Avatar for lochnessmonster

Could anyone please explain what memory mapped files are and why this method is better then reading a file with I/O operations when needed? i've read msdn...wiki...and im still confused at why i cant understand how this works/ what it is doing exactly -thx

Member Avatar for rubberman
0
159
Member Avatar for lochnessmonster

when i release a library of code for example my "stack class" where should i put the exception handling code for it? for example... should it be stack.h stack.cpp stackExceptions.h stackExceptions.cpp or..... like this stack.h <--- embed stack exception interface in here stack.cpp <--- embed stack exception implementation in here …

Member Avatar for mike_2000_17
0
154
Member Avatar for lochnessmonster

i recently asked a on a forum how to handle the problem if a user pushes onto a full stack or pops from an empty stack on how to handle this problem..... my question is could anyone give a accurate example code of the first example he gave me below? …

Member Avatar for WaltP
0
91
Member Avatar for lochnessmonster

ok so for most of my error handling i throw and exception and log the info of the error to a file...my question is...what should i do if the program/system is unable to log it to a file? should i throw an uncatched exception? should i just call exit()? i …

Member Avatar for rubberman
0
102
Member Avatar for lochnessmonster

i'm currently wanting to do this in C. store the following into a giant string "======================" '\n' "Month : " [B]st.month[/B] "/n" "Day : " [B]st.day[/B] I could do this easily if i didnt have members of a structure that i need to obtain their value(they are bolded). How do …

Member Avatar for rubberman
0
107
Member Avatar for lochnessmonster

i am currently using the writefile() windows api function in my program, i want to store the follow in 1 buffer but i'm unsure on how to do this exactly [CODE] "===================================" '\n' "Date: " localTime->tm_mon "/" localTime->tm_mday "/" localTime->tm_year '\n' "Time: " localTime->tm_hour ":" localTime->tm_min "." localTime->tm_sec '\n' "===================================" …

Member Avatar for maybnxtseasn
0
2K
Member Avatar for lochnessmonster

whenever u create a string like this... std::string name = "HELLO THUR"; what size buffer does the constructor store the string in when instantiating this string object? im curious thx!

Member Avatar for WaltP
0
160
Member Avatar for lochnessmonster

if a constructor OR public member function throws an exception, will the objects destructor be called automatically?

Member Avatar for mike_2000_17
0
97
Member Avatar for lochnessmonster

I was wanting to try a neat little project while i was bored at work and came up with a CodeInjection class. I understand this class is VERY POORLY DESIGNED. My question is how can i fix this?? what can i do differently to make this class not so tightly …

Member Avatar for mike_2000_17
0
100
Member Avatar for lochnessmonster

i really have a hard time creating classes...it seems as if i always run into the trouble of....should this be a function in the class......should it be private or protected......does this really need to be a member variable of the class.....what all should my constructor have inside of it....how can …

Member Avatar for floatingDivs
0
110
Member Avatar for lochnessmonster

class stinker { private: int *pointer; int age; public: stinker() : pointer(), age() { ;} }; if i don't pass a value to my variables in an initialization list, do they automatically get initialized to 0?

Member Avatar for vijayan121
0
151
Member Avatar for lochnessmonster

when i create an empty project...my compiler is saying _TCHAR* is undefined...what file do i need to include to fix this problem? [code]#include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { //blah blah blah return 0; }[/code]

Member Avatar for Ancient Dragon
0
78
Member Avatar for lochnessmonster

if i want to inline a member function do i need to have it in both places below(decleration and implementation section)? or can i just place it in implementation section only or decleration section only and get the same result? class Ray { public: inline allocate( const int Lize ); …

Member Avatar for mike_2000_17
0
129