|
Where exactly is line 54, and what are the values of the variables that are being referenced?
|
|
|
|
|
Single step through the code using the debugger.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
And test one function at a time for each case. Put breakpoint in each branch and ensure you test each one or better yet, make unit test for each one.
Philippe Mori
|
|
|
|
|
element = malloc(sizeof(Liste));
should be
element = malloc(sizeof(Cellule));
You are allocating 4 bytes (on 32 bit platform) instead of approximatively 60 bytes.
The following line is also incorrect:
en_cours=en_cours->succ;
Since you are Inside a function, the pointer is passed by value and a change inside the function has no effect outside of it. You need to have a pointer to a pointer to be able to update the pointer at the caller location.
You don't initialized new list to NULL so first insertion might fails because the pointer is garbage.
Philippe Mori
|
|
|
|
|
Hi ,
I am using a dialog box and there are some text in the dialog box and want to copy that text from the dialog box .
Just want to know how to do it.
|
|
|
|
|
|
Thakur JAI SINGH wrote: I am using a dialog box... So the dialog box is created and displayed via your code, or are you wanting to access a dialog box from some other app?
Thakur JAI SINGH wrote: ...and there are some text in the dialog box... What type of control specifically?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
@DavidCroww
Dialog box is displayed via my code.
And there are lots of text on my dialog box and I have to copy the whole text available there on the dialog box.
|
|
|
|
|
So if the dialog box belongs to your app, and you are populating the controls on it, then don't you already have access to the text?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi
I am trying to run a Legacy MFC application in Debug buil(earlier it was always built in Release Build (with debug info)). While loading resource using LoadToolBar() funtion ::FindResource fails while it succeeds in the Relase build. Can any body help me with this.
Thanks and Regards
|
|
|
|
|
Without seeing the code that is in error it is impossible to guess what the problem may be.
|
|
|
|
|
|
This is the opposite problem of what the OP stated.
OP stated: works in release, fails in debug
things you're referring to: work in debug, fail in release
|
|
|
|
|
My mistake.
(the linked article can still offer hints and tips).
I'd rather be phishing!
|
|
|
|
|
When it comes to resources, it could be any number of things... if you make the call within a dll and not the main application, you have to make sure to have the resources of the main application loaded and not the dll's resources.
In any case, hard to tell without more info and some code.
|
|
|
|
|
3 users are connected to one pc using 3 usb keypads. A record is shown and each user have to input a number like 7.7 or 600 or 7.5 then they will press ENTER. Done.
So as an example problem: user2 starts to type 7 and user1 starts typing 5. the computer is already getting 75. You can see the problem.
I need a utility/code to isolate the input.
I have seen it in an auction software and also using xbox playing games.
In the auction software 3 black boxes are seen in the PC. Once a user starts the black box associated with that user, turn gray. Same as the other users. When all users have pressed ENTER, All boxes are revealed with the entries.
Until now we only had to enter one digit per box, so 3 keypads were no problem. The system right now have the 3 boxes in the screen.
|
|
|
|
|
|
That is the best news I got. Thanks, many thanks.
It definitely address the objective. Now is time to digest all of it.
Thanks again. I will keep you posted
|
|
|
|
|
You're welcome! Good luck
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Can you contact me?
How can I contact a member?
|
|
|
|
|
I would prefer it if you post follow-up questions here
That would probably also be more helpful for you, since I'm not too much into C++; so other members could help out then.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
I am not that good in c+++ and was hoping to find some one to help me to interface the code from Steve Messer and Emma Burrow.
It would be great to reach either one.
But it seems difficult.
|
|
|
|
|
In that case I would suggest to look at the other search results (articles) to find a solution that's already in C++
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
Hi, im a beginner programmer and new to the forum.. HI everyone
is it possible to...
1) code my website so when new customers sign up, they are automatically sign up for the hundrends of websites listed on my website/platform ?
|
|
|
|