CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Antwerpen

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    2,520

    Re: VS2008: ctime error!!!

    The only effect of that is to avoid the warning message to be displayed...and after that the access violation happens as usual.
    For the code I did show the significant part...what i can do is try to...
  2. Replies
    6
    Views
    2,520

    Re: VS2008: ctime error!!!

    There is no more code than that I reported above.
    The message is displayed at the second line of the code I reported above, but It is not blocking. Afterwards I get an access violation when I use...
  3. Replies
    6
    Views
    2,520

    VS2008: ctime error!!!

    Hello,
    I want to shift from VS 2005 to VS 2008 and I tried to convert a project into a solution of VS2008, but I got a runtime error using ctime function.
    The essential code:



    ...
    time_t...
  4. Replies
    4
    Views
    1,023

    Re: Load a configuration file and after...

    Of course you are right, I try to be more specific. I want to read the name of a file by selecting it from a browse folder. After I open a stream and I read, from this configuration file, the name of...
  5. Replies
    4
    Views
    1,023

    Load a configuration file and after...

    Hello,
    I have to do this project that has two main steps:

    1) load a configuration file (or some configuration files) and use them to do some calculations and checks. I would like to do the gui...
  6. Replies
    4
    Views
    640

    Re: Get back, get back...

    Yes, it works...I tried to have the same effect with the backslash, but it didn't work. Thank you and thanks also to JohnW@Wessex that was likely to have guessed the problem too :D
  7. Replies
    4
    Views
    640

    Re: Get back, get back...

    std::string

    Edit: To be more clear:



    std::string log_msg
    log_msg+="n°: ";
    stringstream ss;
    ss<<Counter+1;
  8. Replies
    4
    Views
    640

    Get back, get back...

    Hello,
    like the beatles I want something to get back too...it's the cursor of my string. Let's start from the beginning.
    I use a function (ctime, see the other thread) that allows me to convert an...
  9. Replies
    7
    Views
    34,640

    Re: From int to time_t

    Actually I solved that in this way:



    long* pts_sec=(long*)&ts_sec;
    std::string msg;
    msg=ctime(pts_sec);


    I know maybe someone will not agree, but it works:D
  10. Replies
    1
    Views
    673

    Re: 2 Dialog Boxes problem

    I have found the problem:


    afx_msg void CMainWin::OnShowMLDialog()
    {
    if(!dlgVisible)
    { //CTestModelessDialog
    testMLDlg.Create("TestModelessDialog", this);
    dlgVisible = TRUE;
    }
  11. Replies
    1
    Views
    673

    2 Dialog Boxes problem

    Hello,
    I wanted to use an application using MFC with 2 dialog boxes: 1 modal, 1 modeless. But when I call the modeless one it seems the modal is called, but I cannot explain myself why.
    This is the...
  12. Replies
    10
    Views
    1,420

    Re: What to choose?

    Thanks to all for your answers & sorry if I didn't answered soon.
    Actually I am able to program in C++ (OOP & stuff like that) and I am quite good to use STL and other pretty things. I also started...
  13. Replies
    2
    Views
    882

    Re: Window with H_Scroll and bitmap

    Well,
    I am really a beginner in this field.
    Just think about the fact I have learned from an article of Mitchell Harper how to create modal and modeless dialog boxes, but I am not able to put the...
  14. Replies
    2
    Views
    882

    Window with H_Scroll and bitmap

    Hello,
    I would like to create an MFC based application with a window containing one or more bitmap as background and an horizontal scroll that allows me to navigate through this large background....
  15. Replies
    5
    Views
    1,164

    Re: precompiled header

    It seems to be solved by cleaning and compiling...anyway it's quite delicate and I think I will try VS 2008 too.

    Anyway, 1 more time thank you;)
  16. Replies
    5
    Views
    1,164

    Re: precompiled header

    Actually I include StdAfx.h that has already "block.h" included (that's the reason for that "//#include block.h"). So I think I don't have to include block 2 times. Moreover I did another thing: I...
  17. Replies
    5
    Views
    1,164

    precompiled header

    Hello,
    I have some problems with precompiled header in VC++ 6.0.

    This is what I get:


    my_project\read_write.cpp(5) : fatal error C1083: Cannot open precompiled header file:...
  18. Replies
    7
    Views
    10,142

    Re: Construct a bitset from a string

    Yes, of course I am checking that and I found I have to decode the string that represents hex bytes (e.g. ff d4...) to a string of bits, and I am doing it. That's not a problem. Anyway I would like...
  19. Replies
    7
    Views
    10,142

    Re: Construct a bitset from a string

    Ok, at compile time it works at least. Ty.
    Now I have a runtime error: I guess 10 is the dimension and my string has more bits. Right?
  20. Replies
    7
    Views
    10,142

    Re: Construct a bitset from a string

    Sorry,
    but that's a code sample copied from another site, not an useful answer. I would like to understand the reason(s) of the compile error and I would like to correct it. Ty.
  21. Replies
    7
    Views
    10,142

    Construct a bitset from a string

    Hello,
    I have some trouble with the construction of a bitset from a string. I have a greater string and I take a subset of it, afterwards I try to construct the biset this way:



    ...
    string...
  22. Replies
    7
    Views
    1,203

    Re: File stream and size

    Ok, in the end I used reserve, and moreover I don't need to keep all the data...the latter saved a lot of memory and avoided the runtime error. Just for the moment I will use reserve with some "good"...
  23. Replies
    7
    Views
    1,203

    Re: File stream and size

    Well,
    now I am really working with vectors and I have a runtime error:


    First-chance exception in My_Program.exe: 0xC0000005: Access Violation.

    I guess it's a memory access problem. In fact I...
  24. Replies
    7
    Views
    34,640

    Re: From int to time_t

    The problem is that I don't have to get the time from my system. I already have a log file and I know the int representing the time (e.g. 1235135860).
    This int corresponds to a date and I would like...
  25. Replies
    7
    Views
    34,640

    Re: From int to time_t

    The 4 bytes represent an int that represents the seconds since January 1, 1970 00:00:00 GMT; this is also known as a UN*X time_t. I am able to get the int, but I would like to have the time_t object.
Results 1 to 25 of 63
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured