|
Hi,
Could any of you knowledgable types tell me how to turn a static text control into a hyperlink ? my current system of buttons is somewhat crude.
Any help appreciated
|
|
|
|
|
Check David Calabro's CButtonST [^].
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a problem . When I want to create .INI file with some SECTIONs and I want to insert SPACE among them . Ex. :
[Section1]
data1 = ...
data2 = ...
<= there I want to create the SPACE
[Section2]
Best regards.
Tomas
|
|
|
|
|
?? huh? Does:
outfile << "data2 = " << data2 << "\n\n" << "[Section2]\n";
not work??
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
this can be right, but I adding rows to the ini file by WritPrivateProfileString and I can`t make the SPACE !!! I tryied many ways to make the SPACE but I don`t be successful .
thank you
Tomas
|
|
|
|
|
I think you would need to flush the file after doing your WritePrivateProfileStrings(), and then go back and open it using something like a CStdioFile to write the blank lines. You could also do it with a binary file, I don't know which would be easier.
The point is that WritePrivateProfileString does not have an option to do this as far as I know. I have been using this function for a long time, and have never seen a way to do this wihtout manually writing to the file. I could be wrong. It's happened many times before.
Good luck.
|
|
|
|
|
Can someone help me with the RS422 programing? I have a device that can be controlled via RS232 or RS422. I can write a program to control this device in RS232 mode. My question is, does this program still work if I switch the device to RS422 mode? What do I need to do to make this program work in RS422 mode? Do I need a RS232 - RS422 converter?
thanks,peter.
|
|
|
|
|
Yes, you would need a RS232-RS422 converter. Other than that, you won't have to change your software. Except...
I can never remember if it is the RS422 or the RS485 converter that might use a control signal to know when it send or receive data. Your flow control settings should hand this without problem (CTS/RTS or DSR/DTR). However, this is usually important only for multi-drop system.
If you want your RS232 application to support RS422 and RS485, just make sure you support both your hardware flow control settings. In 8 years of process control with our product, we have never run into a RS422 or RS485 issue.
FYI: For distance applications or high noise, RS422 is much better. You will find it commonly used in any type of hostile environment.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I have tons and tons of experience in C++. Infact I spend my day as in 24/7 mostly. Just programming applications and such. By writing usualy all of my code alone. I have for like 4-5 years all I do is make Win32 apps and win32 direct x games all day. I even learned C++ fully on my own. Even though when I took one college class I barely really paied attention yet I finished the class with a 97% all assignments and tests I did were A's. I have already written small versions of compilers that convert my designed language into assembly. I've also made win apps that process file types as a scripting language. Still I find that I won't be making very much money on a job considering I never have had one. As well as I only learned most everything on my own through trial and error. Even the teacher at my college suggested I get a PhD in computer science she thought I was extremely capable of doing it. I took that class when I was 14 and now im 17 and I know about 9x more then based on my own practice of programming constantly at home.
- LiquidKnight
|
|
|
|
|
What is your problem!?
This is a Lounge/Soapbox message!
Please, don't post such messages here in future!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
Relax!
New in these forums? 23 messages so I made a guess!
I'll contact you... now...
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
BTW!
LiquidKnight wrote:
I have already written small versions of compilers that convert my designed language into assembly.
Could you show me some example in how you do this!?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Sure. You can contact me on email It wont be for awhile but if you can send me an email to killereaglesoftware@yahoo.com I will get it to you because currently my computer that I was programming on crashed because my motherboard died. Or you can even contact me on AIM if you have it my name is AIM: LiquidIceKnight or AIM: vethax0r or AIM: ally0urba5e feel free to contact me I really have nothing else to do right now. Or even my MSN: spartacushaxor@hotmail.com
I really would enjoy explaing it to you
- LiquidKnight
|
|
|
|
|
Rickard Andersson wrote:
Could you show me some example in how you do this!?
Try here[^]. Look towards the bottom for a series of links labelled "Scripting Language Tutorial Series". Very useful.
J
"We cross our bridges when we come to them and burn them behind us, with nothing to show for our progress except a memory of the smell of smoke, and a presumption that once our eyes watered." - Tom Stoppard - Rosencrantz and Guildenstern are Dead.
|
|
|
|
|
Cool!
Thank you very much!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I didn't want to discourage you, in my response to your other messages I was simply explaining my experiences in this field.
It is definetly possible to get a job without a degree, I did. My first programming job only paid 10 dollars an hour, but as I gained a background to my career my salary quickly increased. Also if you can prove your self to an employer once you get your foot in the door, anything can happen. There are a lot of good people out there that recognize talent and like to hold onto it, however there are a lot of idiots that dont know what talent is, so watchout for them.
Also its great how well that you did in your college course, I would suggest that you keep taking them if you can. There is a lot more to learn than just the languages.
Write the next big shareware app yourself from home. The kid who wrote Winamp was only 19 and was able to sell it to AOL for a massive profit.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Ladies and Gentlemen,
Is there any way to debug signals and threads under Windows, using VC ( 7, in my case ), which actually works..?
- The VC debugger displays a list of the active threads. Great...
- The VC debugger doesn't tell me which signals, mutex'es or semaphores a thread is waiting for, ( or even if the thread is blocking ).
- Spy++ tells me a little more, but still no news about which signal/mutex/sem is being waited for. ( How many context switches a thread does isn't really that usefull... )
- Signals/mutexes/semaphores are global under windows. I know they are ring0 objects, but why can't I see them, peek them and poke them ?
( It's no wonder perhaps, that most of Microsoft's apps are hopelessly single-threaded... )
Sorry for the rant, btw, I'm just frustrated at having to write tons of debugging code which someone else should have provided aeons ago...
Help ? Anyone ?
-=jarl=-
|
|
|
|
|
check out sysinternals.com we (Microsoft programmers ) usually use tools from there.
PS>
On that note could you point me to development environment that provides at least as much information as VS?
|
|
|
|
|
ah......hello there!
Ok, I'll check out sysinternals...
No, can't do. Nope. Nada. No-one does it right...( however, if I was evil overlord.... )
Well, actually, I used to work for a company which had their own "os" which supported multithreading on a host of platforms. They had an internal suite of tools which provided such things as;
- global signal monitoring
- signal/mutex/sem usage logging
- priority inversion workarounds that worked...
- break on set/reset
- break on multiple threads waiting on same signal
etc. Since the "os" was custom, ( based on the Amiga OS, will you believe it...? ), this
was possible. I think Microsoft and its brilliant programmers...( cough ), should
be able to provide the same....
Anyways...moving on....
-=jarl=-
|
|
|
|
|
Actually...there is a concrete problem here....
I have threads A, B, C and D and signals 1, 2, 3 and 4.
A waits for 1, B for 2,
C waits for 3, D for 4
I set signal 2 from thread A and....C wakes up!
This is why I would like to be able to know for certain that signal 2 is actually set.
(From the windows kernel's point of view )
Currently I have a debug-info structure stored with each signal, and set/reset/create/wait wrappers which update this information.
Such as;
waiting-thread id
number of waiting threads, ( is allways 1 in this case )
id of thread which last set this signal
id of thread which last cleared this signal
etc.
Imagine my frustration.... I know for certain that the two signals 2 and 3 are distinct.
I know for certain that C is waiting for 3, ( and not for 2 ).
I know for certain that I am going mad.
Any ideas, inspirational thoughts, haiku's or anything such which might
give me a push in the right direction would be much appreciated.
p.s.
Signal = Event, in Windows speak
p.p.s
ProcExp from the Sysinternals homepage doesn't do what I need. I am concerned now
that I have found out that the Windows Native API doesn't have any methods for
monitoring signals...
-=jarl=-
|
|
|
|
|
Man, that must suck!
Any chance we can see some code? It's the only way to verify what you "know for certain".
It might also help to isolate this code into a little sample project and see if it still breaks. If so, then it would be a lot easier for any of us to help you debug it.
Regards,
Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
|
|
|
|
|
And, the one thing which annoys me the most, is the knowledge, ( or assumption ), that there is going to be some exceedingly stupid thing somewhere which is causing this...
Anyways, let me get on with isolating this in some form or other so that I can share my grief in a more concrete form.
cheers!
-=jarl=-
|
|
|
|
|
I'll go an shoot myself now....
This is just too stupid.....
I had a name...a const char*...and I used it...twice....and you can all figure
out the rest from there and tell me I'm a monkey...thanks, I knew that...
oh...well..
-=jarl=-
|
|
|
|
|
We help all kinds here, even monkeys.
Sometimes it helps to take a tenth look at the code, doesn't it?
Regards,
Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
|
|
|
|