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

Search:

Type: Posts; User: c0ldshadow

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. deprecation - how to compile string/wstring conversion functions without it

    Hi, does anyone know how to rewrite these function to work without the inclusion of the header <codecvt> ? If I include include <locale> without <codecvt> code at bottom of this post doesn't...
  2. Re: PCRE2 Regex Trouble - unable to extract subgroup matches of regex

    I found solution.... i put errorcount instead of groupcount below b/c that tells how many matches not groupcount.... regexbuddy software generates bad/incorrect C++ code



    for (int i = 0; i...
  3. [RESOLVED] PCRE2 Regex Trouble - unable to extract subgroup matches of regex

    Hi Guys,

    I'm having some trouble extracting subgroup patterns from a regex match with PCRE2... sample code below....



    #include <iostream>
    #include <string>
    #include <windows.h>
    #include...
  4. MySQL query, find next Friday for each date returned

    Hi, I am trying to make a MySQL query that returns the date of the next friday for each line... right now I only have it so it prints the date of the friday after the LAST date value returned in the...
  5. Replies
    2
    Views
    1,899

    Re: Print file to network printer

    so basically i could just manually add the network printers to the workstation my program runs on, and then somehow tell my application to print to that printer?

    what functions/etc to i need to...
  6. Replies
    2
    Views
    1,899

    Print file to network printer

    I would like to be able to print a file to a network printer in C#

    i have researched this thoroughly on google but I haven't found a working solution with example code.


    my program will...
  7. Intercept data to be printed & pause printing

    Hey fellow gurus, I was wondering how I can go about intercepting data to be printed & pausing the printing.

    For example, if a user tries to print something, I would like be able to pause the...
  8. Replies
    6
    Views
    1,007

    Re: Problems with send/recv file

    Thanks for your help, MikeAThon

    So if only one thread is going to be accessing the variable for the IP address, it is safe to use the global variable?
  9. Replies
    6
    Views
    1,007

    Re: Problems with send/recv file

    sorry i wasn't more specific.

    gethostbyaddr is returning zero, i tried adding a message box in there.

    my sendingThread function is the IP address passed to it via CreateThread. I think the...
  10. Replies
    6
    Views
    1,007

    Problems with send/recv file

    Hey guys

    Below I have two functions, sendingThread() and listenThread()

    These two functions are used in a program that allows a user to either receive files or send files. Two people can use...
  11. Replies
    2
    Views
    718

    Thread Safety Question

    i have a global variable:



    static SOCKET mysock;


    My program calls CreateThread() and launches a thread ThreadProc() that causes my application to listen for a connection on a TCP port.
    ...
  12. Replies
    4
    Views
    7,090

    Re: Browse for File Win32 API

    thanks. that was just what i was looking for
  13. Common Problem with windows programs, easy solution?

    A common problem with windows programs that I see today is that when a user clicks a button to perform a complex task, and the code is not executed in a new thread, the program stops responding when...
  14. Replies
    4
    Views
    7,090

    Browse for File Win32 API

    I am writing a program in C++ and want add a button that when clicked opens a dialog box to allow a user to browse for a file

    I am using raw C++ and the Win32 API

    What functions do I need to...
  15. Replies
    2
    Views
    1,285

    send/recv file with TCP

    I am working on a program to send and receive files with TCP. The program can either listen for a connection, or try attempting to another computer to send a file.

    Does anyone see a problem with...
  16. Replies
    4
    Views
    702

    Re: Registry Secure Data Removal

    Everything appears to be working ok. I know there are lots of more experienced coders than me though, all I'm asking is for tips or potential problems with the functionallity of my regshred function.
  17. Replies
    4
    Views
    702

    Re: Registry Secure Data Removal

    Secure means overwriting data on the disk. This is to make it harder to recover data. This involves the registry, because the data in the registry is stored on hard drive just like any other data....
  18. Replies
    4
    Views
    702

    Registry Secure Data Removal

    I have been working on a static link library with a function to securely remove data from the registry. I was wondering if anyone sees any problems with my code. I am aware that the overwriting...
  19. Replies
    6
    Views
    6,727

    Re: Random DWORD between 0 and 0xffffffff

    Is this correct now?



    int b0=rand();
    if(b0>(RAND_MAX-RAND_MAX%256))
    {
    b0=rand()%256;
    }
    ...
  20. Replies
    6
    Views
    6,727

    Re: Random DWORD between 0 and 0xffffffff

    for each BYTE should i just do


    b0=rand()%256;
    b1=rand()%256;


    etc?

    Thanks for the help as usual, wildfrog.
  21. Replies
    6
    Views
    6,727

    Random DWORD between 0 and 0xffffffff

    What is the simplest way to generate a random DWORD between 0 and 0xffffffff using rand() and srand()? I am constrained by RAND_MAX otherwise I would just do rand()%(0xffffffff)+1

    My guess is that...
  22. Replies
    5
    Views
    7,281

    Re: Radio Buttons and BS_AUTORADIOBUTTON

    thanks!
  23. Replies
    5
    Views
    7,281

    Radio Buttons and BS_AUTORADIOBUTTON

    Is it possible to use auto radio buttons for 2 different areas in the same interface?

    I want to be able to have an area like:

    option1 option2 option3 (user can check an option here)


    other1...
  24. Thread: DLL advice

    by c0ldshadow
    Replies
    0
    Views
    607

    DLL advice

    I'm working on a DLL that has a dcmp32() function to decompress all compressed NTFS files on a drive. My code seems to be working well, but I was wondering if anyone sees any problems. The main thing...
  25. Replies
    9
    Views
    6,429

    Re: Recursion in DLL

    Calculator, I was going to implement another function to return the contents of megabuffer.


    I think I found part of the problem... the program crashes when realloc returns NULL.

    something is...
Results 1 to 25 of 121
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured