Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jose David Pujo

@Jose David Pujo
About
Posts
24
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Minimizing Windows
    J Jose David Pujo

    I have Windows 7 x64 in Spanish and the line: HWND lHwnd = FindWindow("Shell_TrayWnd",NULL); In my computer returns: lHwnd=0x0002008c {unused=0 } Hope it helps.

    C / C++ / MFC linux question

  • VS2005, Edit and Continue, Apply Code Changes always disabled
    J Jose David Pujo

    Well, good news! Finally I got the clue to this subject: Is seems that deleting the .ilk file of the project solves the problem. It may be necessary to rebuild-all, re-open the project ... Now it's working fine. Jon, let me know if this solution works for you. I made some other changes in my project that may have also affected... cu

    Visual Studio csharp c++ database visual-studio debugging

  • VS2005, Edit and Continue, Apply Code Changes always disabled
    J Jose David Pujo

    I still haven't solved the problem. If you have any clue about it please make me know. Thanks anyways. Now i know i'm not alone.

    Visual Studio csharp c++ database visual-studio debugging

  • Working with DB
    J Jose David Pujo

    Check if you are using transactions among the context

    C / C++ / MFC help database question announcement

  • 22 " Monitor question
    J Jose David Pujo

    Thank you very much for replaying, Now i dubt on buying a 24" panel instead of my first idea of 22 inches. I will use it only for coding, not for gaming, neither watching movies... Then, 24 inches Samsung better than BenQ ? (I'm very happy with my BenQ monitor) What do you think about it?

    The Lounge question csharp visual-studio

  • 22 " Monitor question
    J Jose David Pujo

    I need to buy a new 22" TFT monitor for software developing. I have to replace my old 17 inches BenQ panel. I will use it just for programming (Visual Studio coding) and I need a panel with clear fonts and suitable for spending many hours in front of it (avoiding eye fatigue). Any ideas? brand/models? Thanks in advance,

    The Lounge question csharp visual-studio

  • Automation of excel,word and powerpoint
    J Jose David Pujo

    Just use the no_namespace keywork in the #import "..." Then you must refer each function with the namespace before:

    #import <c:\app\office\office\excel9.olb> no_namespace
    ...
    Excel::_ApplicationPtr excp;
    ...

    C / C++ / MFC question c++ testing tools

  • Zero copy on windows
    J Jose David Pujo

    Hi again, I remembered a way to copy files across network: TransmitFile Function The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets. Note This function is a Microsoft-specific extension to the Windows Sockets specification. http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^] Hope this one works...

    C / C++ / MFC com json question

  • Zero copy on windows
    J Jose David Pujo

    I'm almost sure that there isn't any thing like that in Windows API. The standard functions: CopyFile, CopyFileEx, MoveFile don't work as you want: http://msdn.microsoft.com/en-us/library/aa363851(VS.85).aspx[^] PD: If you find such functionallity please post it. :laugh:

    C / C++ / MFC com json question

  • Convert image to byte array
    J Jose David Pujo

    You can start with GetDIBits GDI API function. GetDIBits The GetDIBits function retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format. int GetDIBits( HDC hdc, // handle to DC HBITMAP hbmp, // handle to bitmap UINT uStartScan, // first scan line to set UINT cScanLines, // number of scan lines to copy LPVOID lpvBits, // array for bitmap bits LPBITMAPINFO lpbi, // bitmap data buffer UINT uUsage // RGB or palette index );

    C / C++ / MFC data-structures help question

  • VS2005, Edit and Continue, Apply Code Changes always disabled
    J Jose David Pujo

    Hello, I can't understand why I have always disabled the "Apply Code Changes" menu item while debugging. Visual Studio 2005. - I have set the Tools / Options / Debug -> enabled Edit and Continue - I have set the C++ option in my project -> Program Database for Edit and Continue - I have deleted all Debug folders and .ncb files (just for case) - I have rebuilded-all my project. Still not working Suprisingly the same project at home is working fine with "Edit and Continue"... I'm just getting mad. Some suggestions? Thanks a lot!. PD: I searched forums and found some replys without success

    Visual Studio csharp c++ database visual-studio debugging

  • DrawText in animatewindow. [modified]
    J Jose David Pujo

    I agree, WM_TIMER will work fine

    C / C++ / MFC graphics help question

  • Framing a window - Not at creation [modified]
    J Jose David Pujo

    Maybe you could use SetWindowsLong + SetWindowPos (with SWP_FRAMECHANGED flag enabled). Look: SWP_FRAMECHANGED Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed. http://msdn.microsoft.com/en-us/library/ms633545.aspx

    C / C++ / MFC php help question

  • DrawText in animatewindow. [modified]
    J Jose David Pujo

    I suggest at the end of the block, after DrawText.

    C / C++ / MFC graphics help question

  • DrawText in animatewindow. [modified]
    J Jose David Pujo

    try

    RedrawWindow (hWnd, 0,0,RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN);

    Maybe parameters should be diferent: Link: http://msdn.microsoft.com/en-us/library/ms534900(VS.85).aspx[^]

    C / C++ / MFC graphics help question

  • Drawing Auto-adjusted proportioned text
    J Jose David Pujo

    I think that there isn't any GDI API function to make such job. try this link: http://msdn.microsoft.com/es-es/library/4acfw2ha(VS.80).aspx#_mfc_cdc_text_functions[^]

    C / C++ / MFC c++ graphics

  • ftp connection in C++
    J Jose David Pujo

    Try the WinINet API. I'm using it in my apps. http://msdn.microsoft.com/en-us/library/aa383630(VS.85).aspx[^]

    C / C++ / MFC c++ sysadmin help tutorial

  • Basic string manipulation question
    J Jose David Pujo

    Good try, i've got another one:

    char *email="myemail@mail.com";
    char *domain= strchr(email,'@')?strchr(email,'@')+1: 0;

    :)

    C / C++ / MFC com question lounge

  • Basic string manipulation question
    J Jose David Pujo

    Simple function:

    int GetDomain (const char /*IN*/*email, char /*OUT*/*domain)
    {
    if (!email || !domain) return -1; // err 1
    char *c= strchr ((char*)email, '@');
    if (!c) return -2; // err 2
    strcpy (domain, c+1);
    return 0;
    }

    ...

    char a[100]="";
    int e= GetDomain ("sample@domain.es", a);

    C / C++ / MFC com question lounge

  • /OPT:WIN98 setting ¿still useful?
    J Jose David Pujo

    Thanks you very much.

    C / C++ / MFC csharp visual-studio algorithms performance question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups