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

Search:

Type: Posts; User: acerunner316

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,419

    Return code from command line call

    I have a dialog based app written in MFC. I am now adding the option for command line arguments when calling the executable from command line. For this, I used CCommandLineInfo.

    I want to be able...
  2. using an already loaded dll in another dll within same process

    I wrote a dll in VC++ to be used in VBA/excel, possibly also used for other apps in the future. For testing I wrote a quick dialog-based app in VC++ that access this dll.

    The dll implements the...
  3. Replies
    6
    Views
    1,324

    Re: scanf format string problem

    oh! thanks for the clarification. Indeed, the scanf documentation can be a bit lacking, and even confusing. I've seen examples that use the leading % for expected characters, like I have done, and...
  4. Replies
    6
    Views
    1,324

    Re: scanf format string problem

    i am actually using the "security enhanced" version of scanf, sscanf_s, which requires the additional size specification that u highlighted in magenta for strings, and (I just found out) for chars...
  5. Replies
    6
    Views
    1,324

    scanf format string problem

    I need to parse a line of text in this format, where required delimiters are bolded and the rest of the data need to be captured.


    varname : 0|8@1- (1.0,0.0) [0.0|0.0] description

    my scanf...
  6. Re: array of CStatic on heap, delete cause crash

    Ok, I just thought I'd avoid cluttering the post by pasting large chunks of irrelevant code.

    anyway, i think i figured it out.

    This dialog is implemented as a modeless window, called and...
  7. Re: array of CStatic on heap, delete cause crash

    "Unhandled exception at 0x0026c0f5 in TableDlg.exe: 0xC0000005: Access violation reading location 0xfeeefef2."
  8. array of CStatic on heap, delete cause crash

    I have a dialog window CTableDlg derived from CDialog.
    I've declared a pointer to CStatic object as a member of CTableDlg.
    It is allocated on the heap when the dialog window is initialized, and is...
  9. Re: Visual Studio keeps asking to rebuild project

    @John E:
    Separating the compile and build step didn't fix the problem. It would still ask to rebuild.
    I don't know how to set the modify date of a file as you mention, but I made sure all source...
  10. Visual Studio keeps asking to rebuild project

    I recently switched to VS2010 from VS 6.0. I've converted my project and compiled successfully. But everytime I run the program from VS (ie by click "Start Debugging" or "Start without Debugging"),...
  11. Replies
    4
    Views
    1,587

    Re: String Change

    somethign like this?
    i'll let you figure out how to take in a string and find the length.

    for (i=0; i<Length/2; i++)
    {
    tempchar = myString[i];
    myString[i] = myString[Length-1-i];
    ...
  12. Replies
    1
    Views
    638

    Combobox Scrolling Problem

    I have a combobox whose only message that's mapped is ON_CBN_SELCHANGE. However, I am getting a bug that only occurs when I have the list box dropped down and I scroll through the list of items using...
  13. Replies
    5
    Views
    1,844

    Re: Using CEdit as status log display.

    Whats the parameters to pass into SetSel() to make it go to the end?
    I tried SetSel(-1,0), but that doesn't do it?
    This would work fine if the user never clicked anywhere in the editbox, but if...
  14. Replies
    5
    Views
    1,844

    Using CEdit as status log display.

    I am using a read only editbox as a status log display. As tasks are completed in the application, the editbox will add a new line of text for status. ie "Task1...Done\r\nTask2...Done" etc.

    I want...
  15. Replies
    4
    Views
    896

    Re: CEdit box with variable fonts

    i mean how do you select certain portions of the text to be a specific font?
    CRichEditCtrl uses SetFont() but that sets the entire control to that font.
  16. Replies
    4
    Views
    896

    Re: CEdit box with variable fonts

    how do I do that with visual c++ 6.0?
  17. Replies
    4
    Views
    896

    CEdit box with variable fonts

    I want to change the fonts of the text in my mutli-line editbox. I've found how to change the default font of the entire control, but it is possible to just change one line to either bold or...
  18. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    any recommendations on where I should start learning multi thread programming. Given that I am a self-taught programmer...well, windows programming. I learned intro C++ in school.
  19. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    alin, yes I did read your post. thanks for that btw.

    I am not familiar with multi-threading. I have only ever written simple dialog-based apps that perform a single task for each control item. Is...
  20. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    codeplug, thanks for the details explanations and the code sample.

    I've implemented the CanReadWait taht you describe above. Everything seems to work ok.
    However, I have a read-only editbox that...
  21. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    I am using Kvaser, VectorCAN, and PeakCAN. If you know of such a function in those libraries, please advise. Thanks!
  22. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    That's odd, I've tried using the SetTimer, and it is much much slower.
    Btw, I'm running on a XP system.
  23. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    no, i'm not familiar with multi-threading. I realize that's probably the better way to go in this situation...

    Can you elaborate on the modal dialog method? thanks
  24. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    not sure what you mean by "counting crow", but this is how this part of my program works

    In response to user clicking start button, I do this:
    while (!sequence complete)
    {
    //fill local buffer...
  25. Replies
    32
    Views
    6,489

    Re: while loop w/ sleep(1) doesnt work

    Thanks for providing the correct terminology. Yes, I want to avoid a busy wait at all costs.




    what I mean is that there are so many cmd & response pairs of CAN messages that all of them in...
Results 1 to 25 of 60
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)