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

Search:

Type: Posts; User: Lucky75

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: mfc ASSERT(::IsWindow(m_hWnd)) issue, not sure what's wrong

    Super is just a pointer to the parent class. Not sure what you mean by when "SetMyDoc" is called. Never? I get a pointer to the doc from the callback by attaching to an "ActiveDocChangeEvent" which...
  2. mfc ASSERT(::IsWindow(m_hWnd)) issue, not sure what's wrong

    I'm having a bug in my code that's kicking my ***, so after much attempted debugging I finally decided to see if anyone else knew what my issue was.

    I'm trying to add a grid object to a dialog...
  3. Replies
    3
    Views
    1,127

    Re: Stupid parsing question

    Yeah, thats the part that I don't know how to do, the regex part ;)
  4. Replies
    3
    Views
    1,127

    Stupid parsing question

    Hey,

    I'm being an idiot and I can't figure out how to do parse and get an integer from a string. Could someone give me an example please?

    Something like:

    "The action you going to take costs...
  5. Replies
    0
    Views
    660

    Windows installers, on linux?

    Hi!

    I need a (preferably) scriptable windows installer, and was wondering what my options were?

    1) Wise - discontinuted and awful, not really scriptable
    2) InstallShield - not really...
  6. Thread: Signing Code

    by Lucky75
    Replies
    0
    Views
    1,314

    Signing Code

    Hi!

    I'm attempting to get rid of that "Unknown Publisher" message that appears when you run unsigned code on windows, but I'm a bit confused.

    What I have:

    - a *.cert.pem file. Would this be...
  7. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    Yeah, that's what I've been doing. I've been comparing everything, but they look almost identical to me now :S

    How do sessions work in general? So when I log in, the website will send me back a...
  8. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    up
  9. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    The middleware token looks like it expires in a year, so I don't think it's changing frequently. Doesn't seem to, anyway.

    Here is the data that the program is sending, captured from wireshark:

    ...
  10. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    No, I posted both. Post #7 is captured from httpFox through the browser. The code is what I'm intending to send through the program in post #1.

    It looks like it's sending the same POST data...
  11. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    Not sure I follow what you're asking. You can see what is being sent above in the code. I'm sending the content type, user agent and content length. I'm not sending the other header options, but I...
  12. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    bump
  13. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    I was using HTTPFox to check what was being sent. The post data is simply:

    csrfmiddlewaretoken 82859e53de1351b2a1d2bg3735eb7fb6
    username <myusername>
    password <mypass>

    Here are the...
  14. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    bump
  15. Replies
    20
    Views
    7,191

    Re: Attempting to log into website from java

    Im aware of what a 403 is, but I don't know why I'm getting one. It doesn't even return a 403 when I enter the form data manually (with a wrong password), it just says "incorrect password" on the...
  16. Replies
    20
    Views
    7,191

    Attempting to log into website from java

    Hi!

    I'm attempting to log into a website from java, but it doesn't seem to be working. I get:



    Running the program...
    Problems while reading the response
    Problems encounterd....
  17. Re: All combinations of 0's and 1's in 128 bit character array?

    Hmm, actually, using bitset instead of a vector and then just memcpying into a char array of length 16 (bytes) works :)

    Thanks all!
  18. Re: All combinations of 0's and 1's in 128 bit character array?

    Mhm, that would work fine if I was just printing, but I need to actually store it in a 16 byte character array and pass it to another function.

    And calling next_permutation on the character array...
  19. Re: All combinations of 0's and 1's in 128 bit character array?

    It looks like what Yves M has works. I suppose doing the same thing on a bitset would work as well, although im not sure which one would be better or what to pass to the next_permutation with the...
  20. Re: All combinations of 0's and 1's in 128 bit character array?

    Yeah, I wanted more something like this (but with a character array like the one in the first post):

    With n=1 zero:


    1111110
    1111101
    1111011
    1110111
    1101111
  21. All combinations of 0's and 1's in 128 bit character array?

    Hi!

    I need to generate a character array of all possible values for a known value of zeros.

    i.e. If n=1, I need to somehow cycle through all 128 character arrays with one zero in it.


    ...
  22. Re: CBC Encryption with an Initialization Vector of 0

    Ok, thanks :)
  23. Re: CBC Encryption with an Initialization Vector of 0

    Which I assume I can get from openssl libraries or something?
  24. Re: CBC Encryption with an Initialization Vector of 0

    Whoops, yeah, you're correct.

    But how do I decrypt it with the key? I.e. what do I do to the encrypted data using the key to get the plaintext back?

    And is there any way of using a...
  25. Re: CBC Encryption with an Initialization Vector of 0

    Yeah, I'm pretty sure the client program was written in C++, but have no idea what the plaintext might be. I would assume it would be some sort of silly message, which means probably just ascii.
    ...
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured