|
Max++ wrote: Please help me to solve this problem.
Start here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi, I've set breakpoints in my application. Last night my breakpoints were being hit ok. This morning none of the breakpoints that are set are being hit. So I deleted the project's NCB file. Spurious results at best. I deleted the NCB file again, restarted, cleaned project then rebuilt and my breakpoints are being hit again. Yeah.
However, if I set new breakpoints those breakpoints are missed/skipped.
WTH?
Signed,
Perplexium ad infinitum
|
|
|
|
|
Are you sure you are running a debug build?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
In VC6 at least, breakpoints are stored in the .opt file. .ncb is a pest that gets corrupted regularly by intellisense!
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Didn't know the OPT was used for that! Thank you!! :P
I was able to get it to work - after I deleted all my breakpoints. I'll now next what to do ahead of schedule.
Cheers!!
|
|
|
|
|
how to control Stepper Motor Control drive through serial Port member
hi, nice to meet you good people down there. i am a novice programmer, i will be very grateful if you could help me please
how can i control Stepper Motor Control drive through serial Port instead of parallel port by using language such as c/c++
My kindest regards
Sahih
|
|
|
|
|
sahih wrote: how can i control Stepper Motor Control drive through serial Port instead of parallel port by using language such as c/c++
All depends how the serial port interfaces with the stepper motor compared to the parallel port (do PCs still come with those?).
Here's a good place to start with serial port programming[^], anyway.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Does your stepper motor driver support serial port communication?
If the answer is yes then check out the relative documentation to understand what your application should do. PC side serial communication is a well-trodden path and you will find tons of tutorial, samples, etc...
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am drawing using OpenGL and GDI on top of a picture which were drawn before in CView::OnDraw function.
First 2-3 seconds it draws sucessfully, and then cursor of mouse become "clock"( meanth beasy )
and on the screen is nothing drowning. Also the same problem apear during drawing of progress bar, after some time
it become grey and squares of progress bar isn't drawn.
|
|
|
|
|
I don't know what "meanth beasy" means.
Gastello wrote: on the screen is nothing drowning
Is stuff supposed to be drowning?
Gastello wrote: it become grey and squares of progress bar isn't drawn.
Well you didn't ask any questions but given what you did say it sounds like you should consider getting some good material (books or internet tutorials) designed to teach beginners how Windows Device Contexts and Drawing/Painting works.
good luck
|
|
|
|
|
led mike wrote: I don't know what "meanth beasy" means.
My gibberish translator suggests 'means busy'? I've never seen a keyboard with a lisp before now, though...well, apart from this one[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Sory for my English
"means beasy" means "sand-glass" cursor appear
I am not amateur, and I don't have time to learn in detail how Windows Device Contexts works. I did not put any question because I explained the problem, and usualy peoble understand it that I need help to solve the problem.
|
|
|
|
|
Gastello wrote: I am not amateur, and I don't have time to learn in detail how Windows Device Contexts works.
This is a sad, sad thing. Source of pain also.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Gastello wrote: I am not amateur, and I don't have time to learn in detail how Windows Device Contexts works.
Ok, then are you aware that you just contradicted yourself in one sentence?
|
|
|
|
|
Did you understand my problem? Do you know how Windows Device Contexts works?
|
|
|
|
|
I have limited time on fixing bugs and implementation any tasks. I usualy sleep at nights.
|
|
|
|
|
Hi There.
I am using VS2008, and am facing above problem.
Just FYI, I am calling WmCpyDta_GetMessage_sTagData() function as below...
WmCpyDta_GetMessage_sTagData(NULL, NULL, lParam, strTag.GetBuffer(0), strData.GetBuffer(0));
Signature of above function is...
BOOL WmCpyDta_GetMessage_sTagData(HWND hAcceptFrom, HWND hIdOfSender, const LPARAM lMsgStructure,
char szTag[], char szData[]);
Please suggest.
Thanks
PanB
|
|
|
|
|
wchar_t is not equal to char , hopefully you know that. If you don't nothing I say here is going to help you. So the next thing you do is this[^]
|
|
|
|
|
The obvious implication of the error message is that strTag is a wide string (I suspect strData will be as well).
You'll probably be wanting to look at a function to convert wide strings to ASCII ones[^]...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Simply Great !!! Thanks Buddy.
|
|
|
|
|
You should really avoid pickpockets and CString::GetBuffer (unless, for the latter, you've a special licence from Mark Salsbery).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi
in static texts of the main dialog of my MFC program i've used greek letters like mu, eta, delta, etc. they're displayed properly in resource editor of vs2008. but in runtime they're altered. epsilon is converted to e, delta to d and eta to ?. it's interesting that mu is shown as is.
why is it and how can i resolve it?
thx
|
|
|
|
|
It sounds like a font issue to me. But as you said, it's showing properly in the resource editor.
Are you doing wacky font changing things?
In your OnInitDialog, try getting the text from the controls the text is on, and look at it in a debugger.
Similarly, use GetFont, and GetLogFont to check what font the control is using, and look at it in charmap.exe to check that the letters are shown as you expect them.
Hope that puts you on the right path,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
this is what i did, which indicates that it's not a font issue. if it would be, the resource editor also couldn't show it properly.
what i did was that i assigned an id for the label other than IDC_STATIC and used SetDlgItemTextW to set the text to ε0 in OnInitDialog. it worked. the font is so capable of displaying the greek letters.
i thought the .rc file in which the greek letters are saved might not be capable of holding them and they're altered because it's save is single-byte character set. and my guess was right.
now, i think i've found the reason and the source of the problem.
now, let me know how can i save the .rc file as unicode. am i essentially right? and if so, is there any way to save the .rc file as unicode so that it may hold the non-english letters?
thx
|
|
|
|
|
I know VC6 can't handle unicode resource files - or at least the editor can't. I thought you'd eliminated that issue, but apparently not.
I wonder if you can load the rc file in (eg) notepad, edit your text, then save it explicitly as UNICODE. I'd be surprised if the resource compiler could not handle that, but I'd been unsurprised if the IDE's resource editor choked. I hope not though!
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|