dcsimg
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 1.27 seconds.

  1. Re: Creating FORMVIEW WIN32 style app: How to place Formview Resource in the Mainfo

    Thanks , I have both those books. I went the MFC route and it worked pretty well because I could be productive with it, now that I have time I want to learn WIN32, some of the content in those books...
  2. Re: Creating FORMVIEW WIN32 style app: How to place Formview Resource in the Mainfo

    Thanks, there is some interesting code there.

    It answers my first question of creating controls in the main WindProc function: i.e, the main loop.

    Now if someone can please answer the second...
  3. Re: Creating FORMVIEW WIN32 style app: How to place Formview Resource in the Mainfo

    Ok I got it to create the control in WM_CREATE

    ...here is the snippet


    HWND hWndEdit;

    switch (message)
    {
    //DOESN'T WORK HERE
  4. Re: Creating FORMVIEW WIN32 style app: How to place Formview Resource in the Mainfo

    I do have a message loop for my app: I just posted a snip. I didn't want to post the whole app: here is my message loop. ... the app is working .

    Can you please edit my message loop to display my...
  5. Creating FORMVIEW WIN32 style app: How to place Formview Resource in the Mainform

    Hi Guys and Gals,

    Im an MFC guy who mostly writes Desktop FormView apps. in MFC: Not exprienced in WIN32api's

    I'm trying to create a WIN 32 api FormView sytle app, which enventually I will port...
  6. 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.
  7. 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...
  8. Re: Can't intialize C++ Struct with CString in it??

    Paul,


    So why did it compile on Victor's V6.0 ?
  9. 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?
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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):
  15. 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...
  16. 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".
  17. 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...
  18. 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,...
  19. 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...
  20. 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...
  21. 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?
  22. 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.
  23. Re: Can't intialize C++ Struct with CString in it??

    D_Drmmr ,

    tried the following it didn't work either?
  24. 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.
  25. Replies
    9
    Views
    3,408

    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...
Results 1 to 25 of 1339
Page 1 of 54 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)