|
toxcct wrote: BTW, you might be missing a closing '}' somewhere,
That was it...miles from where the compiler error showed up. Sorry for wasting your time...
|
|
|
|
|
Steve_Harris wrote: miles from where the compiler error showed up
the compiler error was maybe not throwing you at the right place, but the message was talking enough for an insider
Steve_Harris wrote: Sorry for wasting your time
man, i'm glad to help, know it
|
|
|
|
|
did you forget a ; somewhere ?
Me think you should try to have one namespace per header file.
|
|
|
|
|
None missing that I can see.
If I put one namespace I get the namespace error in one place; if I wrap several class declarations individually one of them (not the first) gets the error.
I think it must be a compiler limitation.
|
|
|
|
|
Maximilien wrote: did you forget a ; somewhere ?
No......a } .....duuuuh. Problem was that the compiler error was miles from the code error...
|
|
|
|
|
I have a modeless dialog that I'm using for several different things in my program in developement. I need to be able to GRAYOUT or eliminate certain editboxes present on the dialog for certain uses in the program. Those GRAYEDOUT editboxes need to be unuseable for certain displays. How can I do this. Please include code in your response.
A C++ programming language novice, but striving to learn
|
|
|
|
|
pEdit->EnableWindow(FALSE);
?
|
|
|
|
|
Yes that works. Thanks
A C++ programming language novice, but striving to learn
|
|
|
|
|
Does this [^] and this[^] help you?
Oh, yes, you wanted code:
++++++++++
[
>+++++++>++++++++++>+++>+<<<<-
]
>++.
>+.
+++++++.
.
+++.
>++.
<<+++++++++++++++.
>.
+++.
------.
--------.
>+.
>.
This may actually print "Hello World!". Its in Brainfuck.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
jhwurmbach wrote: This may actually print "Hello World!". Its in Brainfuck.
Hell, I write in that language all the time!
|
|
|
|
|
jeron1 wrote: Hell, I write in that language all the time!
Boring - I normally use Whitespace[^]
Actually, it makes me wonder every time again that some people really bother inventing such nonsense...
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
|
WTF is that?
Can that code be translated back to normal code? or is just one direction like the encryption MD5?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Nelek wrote: WTF is that?
Whitespace[^] is a esoteric programming language.
It seems to be Turing-complete, so in theory, it would be possible to write any program in it.
The theory does say nothing about fast (or just finite) execution time or low (or even finite) memory consumption, though.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Larry Mills Sr wrote: How can I do this.
Check out EnableWindow() and ShowWindow() .
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hey Guys,
I'm working on a graphics app that designs CD/DVD labels. Right now, the data is output to conventional paper labels. I am wanting to incorporate the direct-disk printers. (printers that apply the ink to the disk itself)
Does anybody know of a resource that explains the API to communicate with such a printer? With the growing popularity of these printers, there has to be some standard way to access them.
Thanks in advance
Richard
may your code be error free.
(okay, maybe two lines.)
|
|
|
|
|
Hi,
How can I auto-detect which COM port a certain hardware device I have is mapped to?
I essentially want to have an "auto-detect" button that a user clicks which will then iterate through the COM ports and return the port that a specific hardware device is mapped to, using either MFC or Windows API.
Thanks!
KR
|
|
|
|
|
IMHO, unfortunately you have to open COM (I suppose you have standard COM) ports and communicate with the devices to obtain such info (hence devices need to be connected and switched ON).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
As CPallini says, you're just plain out of luck. RS232 is nothing like USB. It has no intelligence what so ever.
And if you set handshaking to none, you can even successfully write to a com port that's not connected to anything.
Not only will you have to iterate through all the com ports, you'll have to go through all the baud rates, bit size, handshaking, parity...
Amd for each of the combinations, you'll have to hope the hardware you're looking for will have a meaningful reply to a message you send it.
In short - pop up a COM configuration box, and let the user do the work.
Going back to the first sentence, there's good reasons that USB was invented!
Iain.
|
|
|
|
|
Is it possible to set up the text object in Crystal Report from C++? Can I use the c-class CRPEJob for write a text or string in a CR report?
thanks.
|
|
|
|
|
Hi,
I have to made a program that uses C functions from a .dll library.
How can i do to use that functions from Matlab?
Thanks.
matfico
|
|
|
|
|
I think you should ask this question on a MatLab forum
regards
Bram van Kampen
|
|
|
|
|
Hi, I'm using an MFC graph control to display several lines of stored data, on a graph dialog.
I want to be able to display and drag a vertical line along the x-axis (using OnLButtonDown?) which would automatically display the intersecting line values in, for example, a grid.
I'm new to this forum, so if I'm being a big vague, I can provide more details.
Any help would be much appreciated
|
|
|
|
|
I don't think you're that new to this forum - I'm pretty sure I saw this message a few days ago.
If you're using an MFC graph control, then the answer depends on the graph control. If you got it from a codeproject article, then try posting on that article.
Otherwise, the control may already respond to OnLButtonDown - have a look at the code there.
Or, see if you can modify the OnDraw to include a horizontal line.
Basically, your question has lots of bits - start small, and build your way up. There's no generic answer for you.
Iain.
|
|
|
|
|
You are right, the question was already asked a week ago. If he/she didn't understand the answers there... will not understand them now.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|