Search:

Type: Posts; User: mvanrijnbach

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Hi, thanks for the suggestions. I thought of...

    Hi,

    thanks for the suggestions.
    I thought of this as well so when I tried to locate the .c files I couldn't find it. Apparently I didn't separately save the .c files back then.
    Stupid, so I...
  2. Can not open project anymore in Visual Studio

    Hi,

    I don't know if it is really appropriate to ask questions about a specific compiler, but I actually hope somebody has a simple answer to this problem.

    I made a C project in Visual Studio...
  3. @Salem: I don't understand why you have to get...

    @Salem: I don't understand why you have to get nasty about this, I'm simply asking a question. As I wrote several times before it is the real code, there is nothing more to it. As for perror() I have...
  4. @nonoob: I agree with that. @rags_to_riches:...

    @nonoob: I agree with that.
    @rags_to_riches: apart from the line: int getImageInfo(FILE*, long, int); in functions.h it is the entirety of the code. For the filename I enter "C:\bitmapje.bmp" which...
  5. @quzah: ok, I'm just following what I find on...

    @quzah:
    ok, I'm just following what I find on the internet about argc and argv:
    - argc is greater than zero.
    - argv[argc] is a null pointer.
    - argv[0] through to argv[argc-1] are...
  6. @laserlight: If I print the values they are...

    @laserlight: If I print the values they are correct. The filename is correct if I print it to the console, even though the variable in the Debugger starts with 1'r' (or something), then 6 zeros and...
  7. Hi Quzah, they are in there for future...

    Hi Quzah,

    they are in there for future purposes. According to the description of these arguments argc should just return 1 and argv should contain the name of the program if you don't enter any...
  8. Hi rags_to_riches, thanks for your reply. I...

    Hi rags_to_riches,

    thanks for your reply.
    I read before that there is something like 'Command arguments' in the Project Properties, but my program doesn't need any arguments yet. The strange...
  9. argc and argv not initialized properly (Visual Studio)

    Hi,

    I'm writing some code that can read some data from a bitmap file. The code works fine, but when I debug the code in Visual Studio (2010) it seems that argc and argv are not initialized...
  10. Replies
    0
    Views
    1,622

    Resource load failed

    I know I have solved this before but I don't remember how. I just copied a working project into another directory and tried to run it. I get the error: error result 1 returned from rc.exe.
    If I try...
  11. Replies
    3
    Views
    848

    awesome, that works. I didn't know it was...

    awesome, that works. I didn't know it was possible to use a member function of a member function. Thanks.
  12. Replies
    3
    Views
    848

    creating dynamical output file names

    I'm trying to write to output files that have dynamically created names. I can do this (I think) by using an ostringstream variable, but the file variable expects a pointer to a constant char. How do...
  13. Replies
    5
    Views
    2,410

    hi novavain, indeed, I don't need multiple...

    hi novavain, indeed, I don't need multiple arguments so I could definitely use a simpler function. I used the Petzold function a while ago, because I actually do need to turn both integers as well as...
  14. Replies
    5
    Views
    2,410

    ok, I understand what I did now. The original...

    ok, I understand what I did now. The original function I changed was MessageBoxPrintf, that is why you mentioned that name. I figured that I didn't just want the function to print the string, but...
  15. Replies
    5
    Views
    2,410

    yeah, I guess you're right that the function will...

    yeah, I guess you're right that the function will return a pointer that is not be valid anymore. I wonder if I changed something to Charles Petzold's function, because I'm sure he wouldn't write a...
  16. Replies
    5
    Views
    2,410

    printing integer in Edit control

    I wrote this program that has several Edit controls in the main window and numbers printed in them when you start the application. In most Edit controls I print doubles, but in one Edit control I...
  17. Replies
    6
    Views
    5,934

    ok, that did it :) I don't know why I put them...

    ok, that did it :) I don't know why I put them there in the first place. I must say that I think the compiler's error message is not the clearest I've ever seen.
  18. Replies
    6
    Views
    5,934

    ok, thank you, that works. Now I get an error...

    ok, thank you, that works.

    Now I get an error C2059: syntax error: ',' though


    int Matrixmult((std::complex<double>)* , (std::complex<double>)* , (std::complex<double>)* );


    I don't see...
  19. Replies
    6
    Views
    5,934

    'complex' undeclared identifier

    I am writing a program using complex numbers. By #including the <complex> library in my .cpp file I can work with it just fine. If I want to define a function in a header file like this:

    int...
  20. Installing programs with Windows Installer

    Did anyone use Windows Installer to make an .msi package that can install your own programs? I made a very simple installation package which will install 4 files in different directories, but when I...
  21. Replies
    3
    Views
    1,312

    ok, this is pretty stupid. I fixed it myself :)...

    ok, this is pretty stupid. I fixed it myself :) The 'i+3' after (HMENU) in CreateWindow has to be in between brackets, otherwise only the handle to ID equal to 3 is known.
  22. Replies
    3
    Views
    1,312

    hmmm, still this doesn't work though....

    hmmm, still this doesn't work though....
  23. Replies
    3
    Views
    1,312

    Actually I think I should use hChild =...

    Actually I think I should use hChild = GetDlgItem(GetParent(hwnd), 8), because hwnd is the handle to the Dialog Window. The child window with ID 8 also has the parent of the Dialog Window as its...
  24. Replies
    3
    Views
    1,312

    Child window handle not known

    I defined a child window in my Window procedure as follows:



    for(i = 3; i < 13; i++) hwndEdit[i] = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT(""), WS_CHILD | WS_VISIBLE | WS_BORDER |...
  25. Replies
    2
    Views
    5,005

    ok, I clearly didn't pay attention. Thanx.

    ok, I clearly didn't pay attention. Thanx.
Results 1 to 25 of 44
Page 1 of 2 1 2