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

Search:

Type: Posts; User: ADSOFT

Page 1 of 54 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Can't intialize C++ Struct with CString in it??

    Victor I agree.

    Thanks for help, what can you do, Pre-Ansi, that's a tough one to deal with, but it a wierd way it was fun figuring it out.


    Thanks again.
  2. Re: Can't intialize C++ Struct with CString in it??

    Well, I'm glad we got to the bottom of it. I knew there was a logical explination.

    It explains why just about every contruction I tried of the CString didn't work, lol.

    Thanks to everyone for...
  3. Re: Can't intialize C++ Struct with CString in it??

    Paul,


    So why did it compile on Victor's V6.0 ?
  4. Re: Can't intialize C++ Struct with CString in it??

    Victor tried the ctor (copied your code directly) same compiler message ?:




    ?? maybe you updated your V6.0 sdk, on this computer it's not updated?


    strange?
  5. Re: Can't intialize C++ Struct with CString in it??

    Igor and Victor,

    It's starting to look like the compiler V6.0 , lol. Or maybe the constructor definitions of CString got updated.

    The compiler error message seems to imply that there might be...
  6. Re: Can't intialize C++ Struct with CString in it??

    Victor and Igor

    Also created a console app w\MFC support and copied the initialization section of Igor's program:




    got the following error messages for each line of the struct member...
  7. Re: Can't intialize C++ Struct with CString in it??

    Igor and Victor:

    I copied Igor's code to V6.0 compiler in a Console "Hello world app" which doesn't supply mfc support for CString so I added "#include <afx.h>" to the stdafx.h file.

    When I...
  8. Re: Can't intialize C++ Struct with CString in it??

    thanks for that example,

    I copied the area where you defined the vars and struct, still won't compile. Maybe it's the compiler these guys are using?
    V6.0, lol.

    I will have to ask them if they...
  9. Re: Can't intialize C++ Struct with CString in it??

    I wrote this function which worked in my Formview App(had to do it another way):
  10. Re: Can't intialize C++ Struct with CString in it??

    GCDEF,

    In my case I defined the struct "print form[]" globally in a FORMVIEW app, in you case you defined it local to "_tmain".

    I tried sticking your example inside a my FormView::OnPrint...
  11. Re: Can't intialize C++ Struct with CString in it??

    Philip,


    data is

    CString data;

    and

    temp was already defined yes but I'm trying to initialize it to a string "TEST".
  12. Re: Can't intialize C++ Struct with CString in it??

    Changed the code to the following



    tried many different ways to initalize the CString all of which are okay with the Constructor definitions of CString.


    I'm getting the following compiler...
  13. Re: Can't intialize C++ Struct with CString in it??

    Here is some more info:


    I'm getting the following message from the compiler:




    Compiler doesn't specifically state which var in the struct is the problem, but it seems to be the CString,...
  14. Re: Can't intialize C++ Struct with CString in it??

    Mr Victor,

    Well I'm not looking to redesign the program, I think you should learn to read, my question was:

    "How can I get the CString to intialize.", that's what I'm looking to do. If you...
  15. Re: Can't intialize C++ Struct with CString in it??

    D_Drmmr,


    ????, it's obvious that you don't know the answer.

    My question to you is why are you making recomendations that don't work. Again if you don't know the answer, which you should know...
  16. Re: Can't intialize C++ Struct with CString in it??

    GCDEF,

    No it doesn't work. did you try to compile it, or is this something you made up?

    What does your compilier tell you?
  17. Re: Can't intialize C++ Struct with CString in it??

    Victor

    because that's what the program calls for. I'm looking for answers not commentaries. You seem to want to redesign the program insteadof answering the questions.
  18. Re: Can't intialize C++ Struct with CString in it??

    D_Drmmr ,

    tried the following it didn't work either?
  19. Can't intialize C++ Struct with CString in it??

    Since CString is part of MFC I think this is the right forum.

    I'm trying to compile the following and it doesn't work? How can I get the CString to intialize.
  20. Replies
    9
    Views
    1,213

    Re: Printing in Console application the DOS way

    it's hard to answer posts with this new forum software. I like the other one better, anyhow.

    If your doing printing alignment, it might be tough since you can't set the font size. However there...
  21. Replies
    9
    Views
    1,213

    Re: Printing in Console application the DOS way

    OReubens,

    writing to a file is a Great suggestion, but printf will still not open up the default printer in a Win32 environment see. http://forums.anandtech.com/showthread.php?t=812272

    However...
  22. Replies
    9
    Views
    1,213

    Re: Printing in Console application the DOS way

    It shouldn't be too hard to create a Winfprintf function that opens a spool if one is not open, prints a line of text and brings down the carriage for the next fprintf. I was going to, and still...
  23. Replies
    9
    Views
    1,213

    Re: Printing in Console application the DOS way

    Paul is right, yet I still use fprintf and write dos stuff . This is how I do it.

    I use fprintf a usually pointing to Lpt1 , Lpt2, ... etc.

    You have to share the printer and map LPT1, LPT2, etc...
  24. Replies
    6
    Views
    570

    Re: Forview inside a Webpage.

    Thanks, Arjay, I sort of remembered that, I just wanted someone MORE knowledgable than me to verify it.


    I guess C# MIGHT be the best way to leverage your VC++ knowledge toward website design? Do...
  25. Replies
    6
    Views
    570

    Re: Forview inside a Webpage.

    btw, Arjay, Could you do something with ACTIVEX and WinApi?
Results 1 to 25 of 1334
Page 1 of 54 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center