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

Search:

Type: Posts; User: j0nas

Page 1 of 68 1 2 3 4

Search: Search took 0.57 seconds.

  1. Re: How to write to bootsector in C for custom bootloader...

    Use CreateFile(\\.\PhysicalDrive0...)... See KB: http://support.microsoft.com/kb/100027
  2. Replies
    1
    Views
    2,896

    Re: String matching algorithm

    Try searching on fuzzy string matching... Wikipedia gives you this:
    http://en.wikipedia.org/wiki/Bitap_algorithm
  3. Thread: VoIP Help

    by j0nas
    Replies
    3
    Views
    2,813

    Re: VoIP Help

    A bit off-topic to ask about audio here... Have search for audio/sound/recording on www.codeguru.com and www.codeproject.com (there are several good articles) ... look at waveInOpen for instance
    ...
  4. Replies
    8
    Views
    4,509

    Re: strcmp stdout, stderr and stdin .. more

    op = stdin looks like an bug to me... It should probably be ip = stdin

    The string compares are needed to allow "in_file_name" and "out_file_name" to support standard input, output and stderr...
  5. Replies
    4
    Views
    1,670

    Re: winsock chat program: problem with I/O

    sizeof buf -1 is due to your logic where you zero-terminate the string using the return value from recv(). Think what would happened if your buffer is 100 bytes and you specify 100 bytes to read,...
  6. Replies
    7
    Views
    6,449

    Re: Hook procedure (SetWindowHookEx)

    It depends on the hook type. Some hooks can actually reside in an EXE, but most of them require a DLL.

    You can also have a thread specific hook in your own app, ie the thread id must belong to the...
  7. Replies
    4
    Views
    1,670

    Re: winsock chat program: problem with I/O

    Your recv() call in the server is wrong.
    Replace
    strlen(buff2)
    with
    sizeof buff2 - 1
  8. Replies
    5
    Views
    978

    Re: Getting screen return from system()?

    Use popen() :
    http://linux.die.net/man/3/popen
  9. Thread: Proxy Server

    by j0nas
    Replies
    8
    Views
    2,038

    Re: Proxy Server

    Hi,

    You first need to know what kind of proxy server you need to implement. What kind of application will it proxy? If it is purely for HTTP, then you should look into a "web proxy". If it more...
  10. Replies
    6
    Views
    939

    Re: How hard would this be to do?

    Use the TAP driver implemented by OpenVPN. Use some tcp tunnel (ssh or your own) as a tunnel. Implement the tunnel server end on your Linux box, together with a TAP kernel driver. This is basically a...
  11. Replies
    8
    Views
    4,293

    Re: Audio over IP, Receiving audio UDP packets

    What kind of uncompressed audio is it? (you need to know number of samples, channels etc)... make sure it is PCM data

    Use waveOutOpen with the WAVEFORMATEX and format tag WAVE_FORMAT_PCM

    You...
  12. Replies
    16
    Views
    3,369

    Re: Voice over UDP problem

    Suggestions:

    1. Don't send the whole WAVEHDR
    - Send WAVEHDR::lpData and WAVEHDR::dwBytesRecorded
    (dwBytesRecorded will probably be the same except for last sample)

    2. Include a seqence...
  13. Replies
    5
    Views
    1,351

    Re: Need to block url in all browsers

    dglienna solution's is very a pragmatic one. Other solutions probably need lots of development, for instance writing a web or socks proxy with user auth etc.

    Maybe you can find a free web proxy...
  14. Replies
    22
    Views
    25,305

    Re: Bind to a local port that is already in use

    Well, it's only security issue if you do TCP bind to ANY address. If you bind to a specific address, no other TCP server can "steal" that specific address+port.
  15. Replies
    15
    Views
    4,361

    Re: winpcap search pkt_data for string

    Yeah... You are of course right. I was thinking about the last step, so a quick fix:


    int i;
    for (i = 0; i < header->caplen; i++)
    {
    if (pkt_data[i] == searchStr[0] &&
    ...
  16. Replies
    15
    Views
    4,361

    Re: winpcap search pkt_data for string

    Cast pkt_data to (const char *)

    strncmp returns 0 upon match... Hmm.. I see a bug in my code now. Re-write compare statement as:


    if (header->caplen >= searchStrLen &&
    strncmp((const...
  17. Replies
    15
    Views
    4,361

    Re: winpcap search pkt_data for string

    Remember that if pkt_data is a raw PCAP packet (wireshark), you'll get the ethernet frame etc... So, if you for instance is only interested in the TCP data (without headers), you must "parse" the...
  18. Re: How to detect name of application that has locked File/Folder?

    About Handle.exe etc...

    You should probably not close handles with it except in rare conditions, cause it will mess with the state of the application which use the handle in question.

    Anyway,...
  19. Re: How to detect name of application that has locked File/Folder?

    For above, try:
    handle -c 190 -p 3136
  20. Re: How to detect name of application that has locked File/Folder?

    You can use the free utility Handle to list/enum all handles (like opened file objects).

    For many years ago, I posted a question about something like this:
    Enum HANDLEs for current process...
  21. Replies
    10
    Views
    1,706

    Re: Compiler Problems [VC++ 2005]

    http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
  22. Replies
    6
    Views
    1,072

    Re: desktop application integration with php site

    Do you have control over the server side app? In that case, I would suggest that the server pass back a cookie that the client return for each request. The cookie is a timestamp with a valid time...
  23. Thread: Winsock

    by j0nas
    Replies
    1
    Views
    840

    Re: Winsock

    Try to separate the UI and network stuff from each other. It is a bad idea to use network calls directly in Windows Form code. Add one or two abstraction layers... If you for instance want to...
  24. Replies
    2
    Views
    545

    Re: problem with unicode and files

    (Make sure ReadFile returns TRUE)

    So what does szUnicode contain?

    Did you write the sting to the file yourself (from your program)? If the file/content was created with an editor, you should...
  25. Re: how to implement the "remember password" feature

    From .NET Framework 2.0 or higher you can use Data Protection API (DPAPI) in Windows. It encrypts secrets based on currently logged on user, so the security is as good as it gets in Windows.

    It is...
Results 1 to 25 of 1678
Page 1 of 68 1 2 3 4





Click Here to Expand Forum to Full Width

Featured