CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Rehorav

Page 1 of 12 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: how to Protect application process from ReadProcessMemory and WriteProcessMemory

    Well there are several ways you can attempt to go about this. First you need to make sure you have some sort of software protection. (Themida is easily broken now so I suggest looking into something...
  2. Thread: Odd Crash

    by Rehorav
    Replies
    1
    Views
    589

    Odd Crash

    Hey everyone, what I'm doing is putting a big list of words into a buffer which is then put out to a file (paragraphs, this is for putting words together letter by letter, etc).

    I'm getting this...
  3. Re: Inserting New Value In Iteration (Should be easy?)

    Yeah I have heard about the pre-increment being more effecient.

    Paul, I listened to what you had to say in that last post, and I have to say everything is sorted now. It took me around 12 hours...
  4. Re: Inserting New Value In Iteration (Should be easy?)

    Ok I have now been doing test code with the STL, and it does make things quite a bit easier as you all said. Here is my current test code (when I try something new, I always open a new VS to test the...
  5. Re: Inserting New Value In Iteration (Should be easy?)

    Yes I'm aware that its ineffecient. But I'm honestly not chasing performance right now. As I said before, I really just want it operational first, THEN I'll worry about optimizations and squeazing...
  6. Re: Inserting New Value In Iteration (Should be easy?)

    I suppose index is acceptable, but instead of just counting the # of words and basing the address on what # it is in the list, I've changed it up to be based on the letter (spaces taken into...
  7. Re: Inserting New Value In Iteration (Should be easy?)

    Ok it looks like if I want to make this work I'm going to end up using the STL lol.

    Paul, you use std::string for newWord and afterWord, but is integer possible for the sake of searching by...
  8. Re: Inserting New Value In Iteration (Should be easy?)

    In this case, WordIter is the first param as you saw. I would be passing the current "WordIter" to that param.

    I iterate through all of the words via:



    for ( WordIter = MasterWordList;...
  9. Re: Inserting New Value In Iteration (Should be easy?)

    Ok so am I hearing this is impossible to do without using something with the STL or something of the sort?

    And can you elaborate on what you don't understand? If you say what you don't understand...
  10. Re: Inserting New Value In Iteration (Should be easy?)

    Paul, my descriptions weren't meant to be very colorful, but I gave them as a basic description so you could get a crude idea of how the application operated.

    The rest of the code does not effect...
  11. Re: Inserting New Value In Iteration (Should be easy?)

    Paul, I agree with what you are saying, and I wish I had learned the STL before, and I plan on recoding this later as an update with the STL, but currently I am literally completely done other than...
  12. Inserting New Value In Iteration (Should be easy?)

    Hey everyone, I'm working with a custom struct where I have a series of values represented by characters. I have my class setup like:




    struct CharacterList
    {
    char CharWord[255];
    unsigned...
  13. Read File Into Buffer And Write That Buffer To Another File?

    Hey everyone, I'm trying to play around with a few things. Now I'm playing around with reading binary files (and now I'm playing with writing). Now heres something weird, I'm reading a file into a...
  14. CreatFile/CreateFileMapping failing in MFC but not a console app?

    Here is the situation, I'm using a multi-select listbox for some code I'm working on, so it will iterate through each file and retrieve the needed information on them (SHA1 hashes, etc). When I...
  15. Replies
    4
    Views
    1,061

    Re: Parse Binary for Hex Value

    I have been looking around on how I would read the file then search for the value, I'm still stumped :sick:. I get how to open a file, but I don't get how to look for that exact value.
  16. Replies
    4
    Views
    1,061

    Re: Parse Binary for Hex Value

    Ah alright thank you! I've been googling about looking for how to search for an exact value with fread, but I couldn't find anything to help me :(.
  17. Replies
    4
    Views
    1,061

    Parse Binary for Hex Value

    Hey everyone, I'm trying to parse a binary file for a certain file, and I found a way but its a inefficient. Basically, what I'm trying to do is find a value, and then write over it. But right now...
  18. Replies
    1
    Views
    400

    Listing all the links on a web page

    Ok, first off I'm not sure if I'm posting this in the right section, if not then I'm sorry :(.

    I have never done any HTTP related code, but I'm looking to get into it. I've looked over some of the...
  19. Replies
    11
    Views
    1,304

    Re: String Encryption Not Working With Pointers

    Alright I get it. So how could I possible re-use arrays then if the strings I need to use are different sizes?

    For example, array #1 may need to be 8 characters, and array #2 lets say needs to be...
  20. Replies
    11
    Views
    1,304

    Re: String Encryption Not Working With Pointers

    char *Encryption ( char *TargetString, const char *KeyString )

    This is how I was calling it with the arrays:


    char StringToEnc[] = "whatever";
    char Key [] = "sdkhf37uhjd";
    Encryption (...
  21. Replies
    11
    Views
    1,304

    Re: String Encryption Not Working With Pointers

    I'm sorry I guess I wasn't clear. I'm not modifying the string, I'm trying to use pointers INSTEAD of arrays. I was just showing how the array works and the pointer doesn't. When I try the pointer...
  22. Replies
    11
    Views
    1,304

    String Encryption Not Working With Pointers

    Firstly, I want to post my source because I know you all can help much more when you can see the source, but its for a private project for basic software protection, and I agreed I wouldn't allow...
  23. Replies
    5
    Views
    474

    Re: Accessing Structures in a Unique Way

    The first example you posted is basically exactly what I was looking for. However there is a slight issue. When I try the code:


    typedef struct
    {
    union
    {
    DWORD ALarge;
    union
    {
  24. Replies
    6
    Views
    1,705

    Re: Accuracy of timeval usec

    While I'm not sure of the accuracy of timeval usec, you also need to take into consideration what is going on in the background, apart from your application. That could easily be whats causing the...
  25. Replies
    5
    Views
    474

    Re: Accessing Structures in a Unique Way

    Well, in the example I showed its only one case. I have another case where the structure has multiple union's in it to share the same space (lower bits, higher bits). So thats really not applicable...
Results 1 to 25 of 284
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured