Search:

Type: Posts; User: Joelito

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: about windows

    by Joelito
    Replies
    3
    Views
    568

    For the #1, I think you need CreateProcess for...

    For the #1, I think you need CreateProcess for monitoring the external app.
  2. Replies
    1
    Views
    407

    Optimizing the linker in msvc

    I'm sorry if my question don't fit here, I didn't find a proper place to ask.

    When I build from the command line a library with msvc 2010 (the one that comes with psdk win7 & .Net 4.0) I can see...
  3. Segmentation fault: Cannot access memory at address

    This is my code:


    #include <stdio.h>
    #include <limits.h>
    #include <stdlib.h>

    int parse_string (const char *s1, char *s2) {
    int pos = 0;
    while ( (*s1 != '\0') || (*s1 != '\t') ) {
  4. Replies
    5
    Views
    641

    I'll go with the simplest: #include...

    I'll go with the simplest:


    #include <iostream>

    int myprint() {
    return 3; // return this to the stream
    }

    int main() {
  5. Thread: regex and c++

    by Joelito
    Replies
    1
    Views
    763

    regex and c++

    Hi, I'm trying to output only a few files, using regex, from the current directory, this is my main code:


    // main.cpp
    {
    char * _dir = new char[MAX_PATH];
    getcwd(_dir, MAX_PATH);...
  6. Replies
    4
    Views
    7,399

    Yes, I know...but I'm trying to do it for myself...

    Yes, I know...but I'm trying to do it for myself :)
    plus, learn about to use "&buffy"
  7. Replies
    4
    Views
    7,399

    Help to change a file extension

    This is my code:


    #include <stdio.h>
    #include <stdlib.h>

    int parse (char **buf, const char *src, const char *ext)
    {
    const char *cpy = src; /* make a copy */
    int len = 0; /* total size of...
  8. Thanks kmess :)

    Thanks kmess :)
  9. How can I search for an executable in the users $PATH

    Hi!

    I'm trying to find an executable in the users environment PATH, let's say I want to search for "foo.exe", how can I traverse getenv ("PATH");
  10. Replies
    8
    Views
    5,238

    switch(pHdr->code) { ...

    switch(pHdr->code)
    {
    case CDN_SELCHANGE:
    {
    HWND hRealDlg = GetParent(hDlg);
    UINT lenReqd =...
  11. Replies
    8
    Views
    5,238

    Hi adeyblue, I adopted your code with mine: ...

    Hi adeyblue, I adopted your code with mine:


    BOOL CWnd::IsAddressInCurrentThreadStack(PVOID pData)
    {
    NT_TIB* tib = (NT_TIB*)NtCurrentTeb();
    return ((pData < tib->StackBase) && (pData >...
  12. Replies
    8
    Views
    5,238

    avoiding FNERR_BUFFERTOOSMALL

    Hi, in the GetOpenFileName, I want to allow multiple files selection:


    UINT CALLBACK CWnd::OFNHookProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
    {
    switch(message)
    {
    case...
  13. Replies
    7
    Views
    8,602

    Thanks, guys...I read about map and googled...

    Thanks, guys...I read about map and googled around and I came with this:


    ustring CWnd::MakeFilter()
    {
    /* mapped the file extensions that we want to use */
    m_Filtro["Archivos PNG"] =...
  14. Replies
    7
    Views
    8,602

    convert a vector into a string

    This is my vector:


    vector<string> ext;
    exts.push_back(TEXT("png"));
    exts.push_back(TEXT("jpg"));
    exts.push_back(TEXT("gif"));
    exts.push_back(TEXT("bmp"));

    I wan to create the vector into...
  15. Replies
    2
    Views
    997

    Thanks CommonTater, you were close, trackbar uses...

    Thanks CommonTater, you were close, trackbar uses also WM_HSCROLL and WM_VSCROLL :)
  16. Replies
    2
    Views
    997

    Trackbar question

    I have a horizontal trackbar and a static control. What I need is to while I move the slide the current value reflects on the static control...
    While I already set the rang value:
    ...
  17. Replies
    7
    Views
    2,117

    Not necessary, according to msdn => GetMessage...

    Not necessary, according to msdn => GetMessage:

    Since my windows in the only in my current thread
  18. Replies
    7
    Views
    2,117

    @adeyblue: Thanks, I modified the code so I pass...

    @adeyblue: Thanks, I modified the code so I pass the class string...thanks :)
  19. Replies
    7
    Views
    2,117

    C++ Win32 no window, yes on task manager

    I'm having problems with my code...the code doesn't show a window, but is in the taskbar manager list...any ideas

    // CWnd32.h


    #include <windows.h>
    #include <string>

    using std::string;
  20. Replies
    4
    Views
    1,437

    @CommonTater: But is a dialog...all the controls...

    @CommonTater: But is a dialog...all the controls have the dialog hwnd as parent :(
  21. Replies
    4
    Views
    1,437

    Buttons over a static control

    I'm having trouble to put two buttons over a static control, because I need a special color for that static control...
    right now all my dialog background is white, with:


    case WM_CTLCOLORDLG:...
  22. Replies
    1
    Views
    643

    Change a file enconding

    How to change a file encoding from iso-* to UTF-8 from my app?
  23. GDI+ can open, png, gif, jpeg, tiff and some...

    GDI+ can open, png, gif, jpeg, tiff and some other...
    or..try CImage
  24. Replies
    4
    Views
    1,807

    Thanks, I'll try EN_UPDATE

    Thanks, I'll try EN_UPDATE
  25. Replies
    4
    Views
    1,807

    Validate an edit control

    Hi!

    How do you guys validate an edit control to accept only some chars?
    I have a theory about it...

    1.- subclass the edit control
    2.- trap the WM_KEYPRESS or WM_CHAR
    3.- test the character...
Results 1 to 25 of 310
Page 1 of 13 1 2 3 4