Search:

Type: Posts; User: Kal-El

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: Retrieve associated text with 'Edit Control' - C++/MFC

    Try msdn...is even on your signature :)
  2. Re: what is difference with "char * str" and "char str[]"?

    This is pointer:

    char * str = "hello";
    memset(str, 'x', 1); //you can't change a string pointer allocated

    BTW: Are you aware what memset does?
  3. Replies
    4
    Views
    495

    Re: Create A File/Add To

    I don't understand..what do you mean by add to it?
  4. Replies
    7
    Views
    1,839

    Re: "split" Command on VB

    1) Try atoi or atol.
    2) Use char *ft_Name instead.
    3) You should use cx323's code.
  5. Replies
    7
    Views
    643

    Re: Functions In Headers?

    @chemicalNova: While the code is for you and you don't have an ANSI evaluator in your back, we can code as we please ;) :p
  6. Thread: dynamic array

    by Kal-El
    Replies
    6
    Views
    525

    Re: dynamic array

    because you are allocating pointers of the array. You actually don't need to allocate dynamically the array, since you know the dimmensions.
  7. Replies
    7
    Views
    1,839

    Re: "split" Command on VB

    See string functions.
    Try with strtok.
  8. Replies
    7
    Views
    643

    Re: Functions In Headers?

    yes, you can :)
    Include first the header and later use the function

    #include <iostream>
    #include "myheader.h"

    int main() {
    myheaderfunc(0); // this function is declared in "myheader.h"
    ...
  9. Replies
    8
    Views
    738

    Re: Check Edit Control

    First, please see the docs about it...clearly says windows handle (HWND) not integers, you must used the control id than the handle.

    Second, that error:

    Is because I gave you in C++ style, no...
  10. Replies
    8
    Views
    738

    Re: Check Edit Control

    Well..you can check if there's something on the edit by GetWindowTextLength.
    Maybe like:

    case MY_BUTTON_ID:
    {
    int iLen = GetWindowTextLength(hwEdit);
    if (!iLen) {
    // Do...
  11. Thread: FirGUI

    by Kal-El
    Replies
    9
    Views
    23,643

    Re: FirGUI

    Yeah, I made one once...is horrible :(
    Better use the old API..mean and clean :)
  12. Thread: Icon & Location

    by Kal-El
    Replies
    4
    Views
    452

    Re: Icon & Location

    Since you are not using WNDCLASS or WNDCLASSEX you can do it using on if this methods:

    1) SetClassLongPtr and change GCLP_HICONSM or GCLP_HICON. If you compiler doesn't recognize SetClassLongPtr,...
  13. Thread: If, then, else

    by Kal-El
    Replies
    6
    Views
    531

    Re: If, then, else

    You can try strlwr
  14. Replies
    7
    Views
    539

    Re: Shutdown Logoff, Restart

    Yes, include <windows.h> and some of this
    ExitWindowsEx(uFlags, dwReason)
    uFlags:
    EWX_LOGOFF: Logoff the current user.
    EWX_RESTART: Simply restart the computer.
    EWX_SHUTDOWN: Shut down but 'AT'...
  15. Thread: If, then, else

    by Kal-El
    Replies
    6
    Views
    531

    Re: If, then, else

    try using string is easier:

    int main() {
    string str;
    cout << "What would you like to do?\nLeave, or Stay?" << endl;
    cin >> str;
    if (str == "Leave") {
    cout << "You are leaving" << endl;...
  16. Replies
    7
    Views
    1,390

    Re: vb6 compile err

    Try debug to see ini which line is the error
  17. Replies
    9
    Views
    1,259

    Re: VB for Fortran via WinAPI...

    Dependes...If you only to send messages between..I think will be more proper to use FindWindow - SendMessage.

    If you need continue communication...detect keystroks, etc., yeah Hooking is bette.
  18. Replies
    9
    Views
    1,259

    Re: VB for Fortran via WinAPI...

    There are few ways to comunicate with other applications..sure is SendMessage, subclasing, but also is hooking, see SetWindowsHook.
  19. Re: could you please explain the shell execute function

    1) Params of ShellExecute are well explain in here.

    2) GetDesktopWindow returns a window handle of the desktop.
  20. Thread: Ide

    by Kal-El
    Replies
    2
    Views
    426

    Re: Ide

    I know...but I was looking something like code::blocks.... :)
  21. Thread: Ide

    by Kal-El
    Replies
    2
    Views
    426

    Ide

    I was wondering...is there are any good alternative IDE so we can use the platform SDK...I tired of using the VC++ express edition for only compile and build :confused:
  22. Replies
    12
    Views
    863

    Re: making of a program

    1) Do you actually have Visual Basic 6? :)
    2) You'll need learn to use Timers and ShellExecute.
    3) Alternaty, you can learn the Internet control.
  23. Re: Launching IE in a **new** instance

    This will give you a clue.
  24. Re: Difference between and

    What chemicalNova said :wave:
  25. Replies
    5
    Views
    457

    Re: Looking for reference

    Google around :)
  26. Replies
    5
    Views
    457

    Re: Looking for reference

    try here.
  27. Re: Difference between and

    In my opinion is much better to use <iostream> because using <iostream.h> and later using namespace std all the stl and class are dump into the executable, so to have it much smaller and optimized, I...
  28. Replies
    6
    Views
    665

    Re: Console App, Copy Files

    I do this:
    1) Traverse the source folder three with FindFirstFile.
    2) get the file, for example: s:\file.txt
    3) Parse the string to get onlt the file and use it with the user folder input, for...
  29. Thread: Including Files

    by Kal-El
    Replies
    10
    Views
    1,497

    Re: Including Files

    And I don't why are you using this kinda code :p
  30. Replies
    6
    Views
    665

    Re: Console App, Copy Files

    easy :p

    char out[128];
    cout << "imput your dest. folder" << endl;
    cin.getline(out, sizeof(out));
    // use here out as users path
    // CopyFile("x:\\path\\", out);
    cout << out << endl;

    My...
  31. Thread: Including Files

    by Kal-El
    Replies
    10
    Views
    1,497

    Re: Including Files

    Correct! But see this:
    Even is "in used" the header, it never reashes the end of the header MainClass.
  32. Thread: Including Files

    by Kal-El
    Replies
    10
    Views
    1,497

    Re: Including Files

    I think because never reashes to the end of the class...
    See, is like this:
    1) start header A.
    2) header A calls header B.
    3) start header B.
    4) header B calls header A.
    5) start header A.
    6)...
  33. Replies
    2
    Views
    584

    Re: Limit Textbox

    1) Set edit text limit with EM_LIMITTEXT.
    2) trap the EN_MAXTEXT notification.
  34. Replies
    6
    Views
    665

    Re: Console App, Copy Files

    Well..

    1) You can use CopyFile.
    2) Use system with copy command
  35. Replies
    3
    Views
    752

    Re: Extract string ressource from DLL

    That's why I use DWORD values in my win32 apps ;)
  36. Replies
    3
    Views
    752

    Re: Extract string ressource from DLL

    See LoadString.
  37. Replies
    5
    Views
    701

    Re: OPEN FILE ... function

    See this, will give you the geneal idea.
  38. Re: How to detect if my postmessage call fails?

    I recommend use GetLastError.
    Is german but you'll se the code :)
  39. Replies
    2
    Views
    513

    Re: Console Replace 'cin'

    replacing cin as...? input stuff?
    You can always to return to the old scanf :p
  40. Replies
    5
    Views
    519

    Re: preprocessor help (windows and unix)

    if is windows must be something like
    _WINDOWS_
    You can use something like:

    #ifdef _WINDOWS_
    // we are in a windows enviroment
    #else
    // other than windows
    #endif
Results 1 to 40 of 179
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width