Search:

Type: Posts; User: surgeon

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    503

    _read return null

    Hi, help plz with my problem.
    There is a code:

    while (1) {
    inlen = _read(in, ctext, key_size);
    printf("Read %i bytes\n", inlen);
    if (inlen <= 0) break;
    outlen...
  2. Replies
    2
    Views
    1,374

    any thoughts?

    any thoughts?
  3. Replies
    2
    Views
    1,374

    RSA generate keys without password

    Hi, I'm generating rsa keys using openssl library.


    rsa = RSA_generate_key(bits, RSA_F4, NULL, NULL);

    While generating (and loading key from file), app wants me to enter PEM pass phrase.
    Can...
  4. Replies
    2
    Views
    764

    Error using libclamav

    I'm trying to work with clamav sample code. Application compiled,prints number of signatures, and then crashed.

    Using debugger, I found code with error:

    if ((ret = cl_scandesc(fd, &virname,...
  5. Replies
    0
    Views
    1,542

    Assembly.Load run error

    I have a program, that show messagebox.
    Another app opens it, read and writes to string in text file



    byte[] plain = File.ReadAllBytes(file);
    byte[] encode = encodeBytes(plain, pass); ...
  6. Thread: Send email

    by surgeon
    Replies
    1
    Views
    1,287

    Send email

    Hi.
    I'm looking for a code to send email with ssl. All sources i've found were broken.
    Plz, help with code. Thanks
  7. Replies
    11
    Views
    1,052

    any ideas?

    any ideas?
  8. Replies
    11
    Views
    1,052

    I use _CRT_SECURE_NO_WARNINGS. I think problem...

    I use _CRT_SECURE_NO_WARNINGS.
    I think problem is not in scanf function, because i tried CreateFile(argc[1]) and there was the same problem
  9. Replies
    11
    Views
    1,052

    char szPath[256]; The file i've try to open is...

    char szPath[256];
    The file i've try to open is ollydbg.exe
  10. Replies
    11
    Views
    1,052

    I have two files in one folder, so i enter only...

    I have two files in one folder, so i enter only filename, without full path.
  11. Replies
    11
    Views
    1,052

    CreateFile problems

    Hi, CreateFile always return INVALID_HANDLE_VALUE. I run program into MyDocuments directory, and on C drive. What am i doing wrong?

    printf("Enter path:\n");

    scanf("%s", &szPath);


    ...
  12. Replies
    3
    Views
    580

    HTTP GET problems

    I'm trying to send GET request to generate receiving address (Blockchain api, https://blockchain.info/ru/api/api_receive) On the page i've generated request - "

    ...
  13. Replies
    1
    Views
    461

    Recursive search error

    Hi. I'm trying to search all drives for files and have such code:


    int main()
    {
    TCHAR szCurrDrive[] = L"C:\\";
    TCHAR szPath[MAX_PATH+1];
    DWORD i, dwDisksMask = GetLogicalDrives();

    ...
  14. Replies
    2
    Views
    750

    Thanks, It worked!

    Thanks, It worked!
  15. Replies
    2
    Views
    750

    GetProcAddress failed

    I write a program:


    #include <Windows.h>
    #include <iostream>


    typedef int(__stdcall *message)(HWND, LPCTSTR, LPCTSTR, UINT);

    int main(int argc, wchar_t* argv[])
  16. Replies
    9
    Views
    663

    i change opening mode to r+ cat "hello world" >...

    i change opening mode to r+
    cat "hello world" > test
    ./crypt test abc

    program changed test file
    then, i try to decrypt file with command
    ./crypt test abc

    but file test doesn't changed
  17. Replies
    9
    Views
    663

    #include int main(int argc, char*...

    #include <stdio.h>

    int main(int argc, char* argv[])
    {
    FILE *fp;
    int z,i=0;
    int rbyte;

    printf("One-time pad cryptor.\n");
  18. Replies
    9
    Views
    663

    Yes, Aslaville...

    Yes, Aslaville, you are right.
    Now, next problem.

    if (i==z) i=0;
    rbyte=rbyte^argv[2][i];
    printf("rbyte is %d\n",rbyte);
    fputc(rbyte,fp);
    i++;
  19. Replies
    9
    Views
    663

    You are right. I change while ((rbyte =...

    You are right. I change

    while ((rbyte = fgetc(fp)) != EOF)
    and made
    i==z
    but still got segmentation fault.
    Look:


    while ((rbyte=fgetc(fp))!=EOF)
  20. Replies
    9
    Views
    663

    one-time pad cryptor problem

    Hi guys, plz help. I write simple cryptor:


    #include <stdio.h>

    int main(int argc, char* argv[])
    {
    FILE *fp;
    int z,i=0;
    int rbyte;
  21. Thread: fputc problem

    by surgeon
    Replies
    2
    Views
    776

    Thanks a lot, man! It really helps me!

    Thanks a lot, man! It really helps me!
  22. Thread: fputc problem

    by surgeon
    Replies
    2
    Views
    776

    fputc problem

    Greetings. I wrote next program:

    #include <stdio.h>

    int main(int argc, char *argv[])
    {

    FILE *fp, *fp2;
    int c;
  23. Replies
    3
    Views
    1,011

    Use GetModuleFileName(), it gives you path to a...

    Use GetModuleFileName(), it gives you path to a program.
  24. Replies
    4
    Views
    909

    You are right. I forgot to remove this semicolon....

    You are right. I forgot to remove this semicolon. Thanks.
  25. Replies
    4
    Views
    909

    the_jackass...

    the_jackass, thanks a lot! I did it! my final (and worked) version is:


    #include <stdio.h>
    #include <stdlib.h>

    main()
    {
    FILE *fin,*fout;
    char buff;
Results 1 to 25 of 26
Page 1 of 2 1 2