Type: Posts; User: ADSOFT
Search took 0.08 seconds.
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.
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...
So why did it compile on Victor's V6.0 ?
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?
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...
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...
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.
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?
I will have to ask them if they...
I wrote this function which worked in my Formview App(had to do it another way):
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...
temp was already defined yes but I'm trying to initialize it to a string "TEST".
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...
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,...
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...
????, 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...
No it doesn't work. did you try to compile it, or is this something you made up?
What does your compilier tell you?
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.
tried the following it didn't work either?
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.
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...
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
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...
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...
November 19th, 2011 09:59 PM
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...
November 19th, 2011 03:36 PM
btw, Arjay, Could you do something with ACTIVEX and WinApi?
Click Here to Expand Forum to Full Width