Search:

Type: Posts; User: Pecado

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,276

    Hmm, probably the first option, language isn't a...

    Hmm, probably the first option, language isn't a problem luckily.

    Anyways, yes I know the basics in C, that's why I was asking how to do this. Whiteflags answer was probably right but I don't know...
  2. Replies
    6
    Views
    2,276

    Question regarding void () in C.

    Hello everyone. I'd like to get some help with this issue...

    I've got a program that consists in 1 initialization of a library and 2 voids, like this:


    init_library()
    {
    ...
    first(); // Once...
  3. Replies
    54
    Views
    7,169

    Yes I know. I just thought that, as it said that...

    Yes I know. I just thought that, as it said that that part of the code was necessary to clear the data if nothing was selected, it was needed for the code to work. Probably not now, but eventually I...
  4. Replies
    54
    Views
    7,169

    I have this dialog: BOOL CALLBACK...

    I have this dialog:



    BOOL CALLBACK ConcesDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
    {switch(Message)
    {case WM_INITDIALOG:
    SendDlgItemMessage(hwnd, IDC_COMBOBOX,...
  5. Replies
    54
    Views
    7,169

    I've tried a million different ways, but it...

    I've tried a million different ways, but it doesn't get past the BOOL.
    Correct me if I'm wrong, but shouldn't there be mentioned the Picture Control Handle (like IDC_PICCONTROL) and the declared...
  6. Replies
    54
    Views
    7,169

    Well thanks for the help to both. For once,...

    Well thanks for the help to both.

    For once, I've tried this:



    BOOL SetStaticImg(HWND Dlg, INT Item, PCHAR ImageFile)
    { HANDLE img;
    img =...
  7. Replies
    54
    Views
    7,169

    I see, no the problem is I just had to get used...

    I see, no the problem is I just had to get used to it...
    Now there's a little problem here...

    I've found this in the SDK docs, but it doesn't seem to apply:


    lResult=SendMessage( //...
  8. Replies
    54
    Views
    7,169

    Now that you mention that, I've downloaded all...

    Now that you mention that, I've downloaded all the SDK files, documents, compilers debuggers (about 1GB of stuff), and avoided to install .NET stuff.
    However I find it all rather confusing, I...
  9. Replies
    54
    Views
    7,169

    Well, once again thanks. Now that you said...

    Well, once again thanks.

    Now that you said that the way I was "getting the IDs" was just a count of letters, it's true, and that is why I had two different strings giving me the same value.
    I've...
  10. Replies
    54
    Views
    7,169

    Uhh, it's going to take a while to take that all...

    Uhh, it's going to take a while to take that all in, I was getting the IDs like this:


    void obtcomboconces(HWND hwnd)
    {char buffer[256]; int id=0;
    id=GetDlgItemText(hwnd,...
  11. Replies
    54
    Views
    7,169

    Is there something like: ...

    Is there something like:


    LoadBitmap(hwnd,IDB_MYBMP);

    in WinAPI to load a bitmap upon selecting a combobox item? Thanks.
  12. Replies
    54
    Views
    7,169

    @morongo, thanks man but I wasn't talking about...

    @morongo, thanks man but I wasn't talking about an editbox, but of a listbox/combobx. thanks anyways.

    @Tater yes, I know I still put them inside, it's just that I come from C/C++ programming where...
  13. Replies
    54
    Views
    7,169

    Since it's still followed... I've another simple...

    Since it's still followed... I've another simple question:

    If I want to display a selected string from a Combobox, into a Static, by pressing a Button... what is missing/wrong here?:


    char...
  14. Replies
    54
    Views
    7,169

    Sorry to have taken so long to answer xD a...

    Sorry to have taken so long to answer xD a toolbar is giving me a hard time...

    But yes, having replaced every "break;" with a "return 1;" solved it and now it works, thanks again!
  15. Replies
    54
    Views
    7,169

    Well I've tried doing it as you told me, but...

    Well I've tried doing it as you told me, but strangely it keeps closing both main and seconday dialogs, here is how it's going:



    //PRINCIPAL DLG

    case IDCANCEL:
    ...
  16. Replies
    54
    Views
    7,169

    Since the thread was continued, I'll throw a...

    Since the thread was continued, I'll throw a question:

    I have a main dialog(dlg1), and a dialog that pops up after pressing a button in the main one (dlg2).
    dlg2 has the DS_CONTROL in the...
  17. Replies
    54
    Views
    7,169

    1º You read the first post which was accidentally...

    1º You read the first post which was accidentally posted(sorry), but was basically the same.

    2º IT WORKS, you're a real life saver!! All I needed to do is add the hwnd declaration in the MoveVar...
  18. Replies
    54
    Views
    7,169

    Sure, thanks for the help man... I don't know how...

    Sure, thanks for the help man... I don't know how else to search for this problem on the internet... no solution.
    Here it goes:


    HWND hwnd; //I've done this because if not it'd say hwnd is not...
  19. Replies
    54
    Views
    7,169

    Thanks a lot for the advice, yes it may be better...

    Thanks a lot for the advice, yes it may be better to call functions from the cases rather than writing them there.

    I understand the code you wrote for me (thanks by the way), and after reforming...
  20. Replies
    54
    Views
    7,169

    .... ?

    .... ?
  21. Replies
    54
    Views
    7,169

    Simple WinAPI code problem.

    Well I'm new in WinAPI, and can't figure why this does not work.
    All I want to do is write a number in the edit box, and press a button to make the number appear in a CTEXT just below it. (and if...
  22. Replies
    4
    Views
    2,863

    Yes, currently, lack of time to study c++. (Just...

    Yes, currently, lack of time to study c++. (Just realised I posted it on C++ forum, sorry for that.)
    But is it really better or simpler in C++? I mean, C one is pretty much simple.


    Well...
  23. Replies
    4
    Views
    2,863

    Using 'For' with fprintf/fscanf

    Hello.
    My question is the following, I want to save in a file / read from a file, an entire vector with different values in each position. But, if it is a very long vector... instead of doing...
  24. Replies
    8
    Views
    3,587

    Thank you "cas" and QuadraticFighte". ...

    Thank you "cas" and QuadraticFighte".

    Regarding the first, I've decided to do it the old fashioned way as I have many vectors and would rather not have so many for's.

    And for the second one, I...
  25. Replies
    8
    Views
    3,587

    Took them off. Well, yes, the declaration...

    Took them off.



    Well, yes, the declaration should be a vector[5] you are right, but anyways the question doesn't have to do with that... I've put the declaration in the main post. Thanks for...
Results 1 to 25 of 36
Page 1 of 2 1 2