Search Results - CodeGuru Forums
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. 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...
  2. Replies
    2
    Views
    1,563

    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...
  3. Replies
    2
    Views
    1,563

    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...
  4. 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...
  5. Replies
    6
    Views
    762

    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?
  6. Replies
    6
    Views
    762

    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...
  7. Replies
    6
    Views
    762

    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...
  8. Replies
    2
    Views
    598

    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.
    ...
  9. Replies
    4
    Views
    3,775

    Re: Browse for File Win32 API

    thanks. that was just what i was looking for
  10. 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...
  11. Replies
    4
    Views
    3,775

    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...
  12. Replies
    2
    Views
    1,011

    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...
  13. Replies
    4
    Views
    588

    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.
  14. Replies
    4
    Views
    588

    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....
  15. Replies
    4
    Views
    588

    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...
  16. Replies
    6
    Views
    2,655

    Re: Random DWORD between 0 and 0xffffffff

    Is this correct now?



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

    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.
  18. Replies
    6
    Views
    2,655

    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...
  19. Replies
    5
    Views
    4,880

    Re: Radio Buttons and BS_AUTORADIOBUTTON

    thanks!
  20. Replies
    5
    Views
    4,880

    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...
  21. Thread: DLL advice

    by c0ldshadow
    Replies
    0
    Views
    516

    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...
  22. Replies
    9
    Views
    1,041

    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...
  23. Replies
    9
    Views
    1,041

    Re: Recursion in DLL

    My code is actually not working properly at all; I don't know what the problem is. I've been looking at what I have for hours but have been unable to stop the crash. When I call the function from the...
  24. Replies
    9
    Views
    1,041

    Re: Recursion in DLL

    thanks for the responses.

    calculator, i was wondering what would happen though if tbe same process calls the dcmp32 function twice. could this cause problems?
  25. Replies
    9
    Views
    1,041

    Recursion in DLL

    **EDIT**
    the code is actual not working properly at all. it crashes quickly after only searching a few files out. it only started generating error reports when i added a few messageboxes to the code...
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center