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

Search:

Type: Posts; User: Mark Xa

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    1,002

    List available wifi networks

    Which APIs are available to do this?

    Thanks

    Mark
  2. Replies
    1
    Views
    2,957

    Writing a unicode string to a file

    Why does the following code write nothing to the file and enter the 'Failed' branch?


    int wmain()
    {
    std::wofstream f("hello.txt");
    if (f)
    {
    f << L"яблоко";
    if (f)
  3. Re: Setting dependencies to compile generated .c files

    OK, but they are not really sources - they are generated files that I never want to open in the editor. Also "Build/Clean Solution" should delete them.
  4. Setting dependencies to compile generated .c files

    Hi,

    Wow - long time since using visual studio and my brain is incredibly rusty! :)

    So... I have a VC++ project - it's all C++, except for a couple of .c files generated by flex and bison (I got...
  5. Replies
    4
    Views
    513

    Re: Detecting the + key on the main keyboard

    Thanks GCDEF, I misunderstood the first time.

    Yes, an accelerator does work if it is set up for VK_OEM_PLUS.
  6. Replies
    4
    Views
    513

    Re: Detecting the + key on the main keyboard

    CTRL and the plus key will increase the font size in the main window of the application (It only has one window). Ctrl and the minus key will reduce the font size.

    My understanding is that an...
  7. Replies
    4
    Views
    513

    Detecting the + key on the main keyboard

    Many will know that applications like firefox allow you to press CTRL + or CTRL - to increase or decrease the size of the rendered HTML or in some applications the font size etc. You can either use...
  8. GdiPlus::Status - how to get a printable error message?

    Using FormatMessage I can get a description of a win32 error obtained from GetLastError. However, I wish to do this for a GdiPlus::Status. Is this possible?

    Thanks

    Mark
  9. Replies
    4
    Views
    3,710

    Re: Array of WaitHandles from process handles

    Thanks for your reply. Yes, that was definitely a mistake, but it doesn't solve the problem. Exactly the same runtime error occurs.
  10. Replies
    4
    Views
    3,710

    Array of WaitHandles from process handles

    Hi,

    I am trying to create an array of WaitHandles that contain process handles returned from Process.GetProcesses. The code compiles but at runtime I get a System.NullReferenceException - "Object...
  11. Re: Equivalent to #pragma dataseg, #pragma comment - need to create shared seciton

    I am aware of this, but still, any ideas how to do what I want?
  12. Equivalent to #pragma dataseg, #pragma comment - need to create shared seciton

    When using MS C++, I can share data between two instances of an application by defining it within a shared data segment viz:

    #pragma data_seg(".sdata")
    int sharedint = 0;
    #pragma data_seg()
    ...
  13. Replies
    1
    Views
    728

    Resizing an image using GDI+

    The following code attempts to load a ".jpg" file, resize the image and save it to a ".jpg" file. The .jpg file is created but the image is the same size. What am I doing wrong?


    Gdiplus::Image...
  14. Re: IOCompletionPort: GetQueuedCompletionStatus returns listen socket

    You might want to have a look at this: http://www.microsoft.com/mspress/books/sampchap/5726.aspx (Or even buy the book).

    If you are expecting many clients, post more than one AcceptEx call at a...
  15. Re: IOCompletionPort: GetQueuedCompletionStatus returns listen socket

    It is the IO on the listen socket that completes after you call AcceptEx. You don't need to associate the client socket with the completion port until AcceptEx completes.

    In order for you to know...
  16. Number of outstanding OVERLAPPED WSARecv calls

    Is it wise to post a number of WSARecv calls at a time per socket (accepted with AcceptEx)? Or is it better to post one WSARecv call on accepting a new connection and then another when the first one...
  17. Copying Visual Studio macros from one computer to another

    I have bought a new PC recently and have reinstalled visual studio 2005. As suggested in http://support.microsoft.com/kb/320851, I have copied the entire tree under <User Profile Path>\My...
  18. Replies
    0
    Views
    500

    Capturing frames from videos

    I'm interested in capturing frames from video files as JPG or bitmap files. Video files could be wmv, avi or mpg.

    Can someone please point me in the right direction using MFC and/or win32 API...
  19. Replies
    1
    Views
    544

    Best way to play an MP3

    What is the easiest and or best way to play an MP3 without using MFC?

    Thanks

    Mark
  20. Replies
    11
    Views
    1,023

    Re: read files from a directory and rename a file

    I wouldn't ever recommend using MFC unless you absolutely have to. The FindFirstFile, FindNextFile APIs are so simple that they do not need a class wrapper.

    If you use API functions rather than...
  21. Replies
    6
    Views
    513

    Re: i'm such a moron...

    [/QUOTE]

    This means that nearly all windows programs do not comply with the ISO C++ standard! :)
  22. WSARecv - multiple buffers for Scatter/Gather IO

    Has anyone ever used WSARecv with multiple buffers?

    I can't see an obvious use for it - anyone care to enlighten me?
  23. Thread: Date Format

    by Mark Xa
    Replies
    13
    Views
    1,122

    Re: Date Format

    Well, could you not change if for everyone then? :)

    My proposal would be to still keep it in "American" order to please the Americans here, but to use a 3-letter month name thus: Sep 06 2007.
    ...
  24. Re: Exception handling: Divison by zero, access violation, ...

    I apologise if this is not directly relevant but you might want to consider handling win32 exceptions as C++ exceptions. To do this you need the _set_se_translator function:...
  25. Thread: Date Format

    by Mark Xa
    Replies
    13
    Views
    1,122

    Date Format

    The date format of the forums seems to be in "North American" format (mm/dd/yyyy) - how do I change to international format (dd/mm/yyyy). Even better would be able to display the name of the month.
    ...
Results 1 to 25 of 120
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