Type: Posts; User: ADSOFT
Search took 0.06 seconds.
April 9th, 2013, 09:06 AM
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.
April 9th, 2013, 09:01 AM
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...
April 9th, 2013, 08:39 AM
So why did it compile on Victor's V6.0 ?
April 9th, 2013, 08:36 AM
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?
April 9th, 2013, 08:12 AM
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...
April 9th, 2013, 08:06 AM
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...
April 9th, 2013, 07:53 AM
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.
April 9th, 2013, 07:33 AM
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...
April 9th, 2013, 07:13 AM
I wrote this function which worked in my Formview App(had to do it another way):
April 9th, 2013, 07:03 AM
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...
April 9th, 2013, 06:41 AM
temp was already defined yes but I'm trying to initialize it to a string "TEST".
April 9th, 2013, 04:32 AM
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...
April 9th, 2013, 04:16 AM
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,...
April 9th, 2013, 04:01 AM
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...
April 9th, 2013, 03:18 AM
????, 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...
April 9th, 2013, 02:00 AM
No it doesn't work. did you try to compile it, or is this something you made up?
What does your compilier tell you?
April 9th, 2013, 01:38 AM
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.
April 8th, 2013, 05:55 PM
tried the following it didn't work either?
April 7th, 2013, 02:10 AM
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.
July 26th, 2012, 11:07 PM
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...
July 26th, 2012, 11:00 PM
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
July 25th, 2012, 11:47 AM
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...
July 24th, 2012, 10:24 AM
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, 10: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, 04:36 PM
btw, Arjay, Could you do something with ACTIVEX and WinApi?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!