|
Darth_Sulfur wrote: How do I remove all of the breakpoints?
Ravi Bhavnani wrote: Edit | Breakpoints | Remove All
Ctrl + Shift + F9
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 9:41 Thursday 3rd November, 2005
|
|
|
|
|
|
THANKS very much to both of you!
[Edit]
Nope, didn't work... I did what you said but there are no breakpoints listed! I try to run the application but I get this message box:
User breakpoint called from code at 0x7c901230.
And then it shows me an assembler code file with an arrow before this line:
7C901230 int 3
How do I fix that? Thanks!
[/Edit]
Sulfurik K. Nosferathus (Darth_Sulfur)
www.SulfurMidis.com
www.SulfurSoft.tk
http://www.BeepXtreme.tk
[ftp://][http://][hotline://]tsfc.ath.cx
-- modified at 16:27 Thursday 3rd November, 2005
|
|
|
|
|
Check the call stack to see what caused this to happen. It's possible that your code called a Windows or C run-time library API with a bad argument.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I started with the Scribble Tutorial[^].
It's a *very* simple MDI "art" program that takes you through most of the common stuff such as events, doc/view architecture, dialog boxes, device contexts, file I/O etc...
Good Luck
The StartPage Randomizer
|
|
|
|
|
|
It seems Visual C++ dialog boxes limit the number of controls to 255. I tried adding more controls but it keeps reverting to the select tool. How do I get around this? Thanks!
|
|
|
|
|
why the he** would you EVER wanna put more controls than that on a form?
My articles
BlackDice
|
|
|
|
|
But seriously, I think if you really need to do that, you might wanna try adding them at runtime.
My articles
BlackDice
|
|
|
|
|
Client requirements. So there's no way of changing the limit? Adding it at run-time is my best bet? Doing that might complicate things?
|
|
|
|
|
i think you can add more controls by changing the id of the control from default to your custom names ( ie IDC_XXXXX1, IDC_XXXXX2 in to custom ones)
BTW: how u tried to create the controls? simply copy-> paste ?
Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
|
|
|
|
|
renjith_sree wrote: think you can add more controls by changing the id of the control from default to your custom names
no, this is a know issue... the only way to get rid of it is to add the 256+ controls at runtime...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
elephantstar wrote: So there's no way of changing the limit?
Correct. It is a design-time limitation. Why do you not use a tabbed dialog instead? Surely you can put 255 controls into meaningful groups.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
The editor limits the number of controls to 255, you can add more dynamically. But as the previous poster said, any dialog with that many controls is going to be a usability nightmare.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi,
If you need to put so many controls on a single dialog, there is something wrong with your design. This is most definitely not manageable.
There are different ways to implement a manageable dialog, which does the same (or even better):
- property sheets
- sub dialogs
- child controls
- status bars
- toolbars
So the real question is why do you need so many controls on a single dialog.
codito ergo sum
|
|
|
|
|
Hallo everyone,
For the last two days I am stuck at a very silly problem. I want to call GNU zip (gzip.exe) from within a C++ program and redirect the output (compressed/uncompressed) files to a filename of my choice.
The command for compression/decompression is:
<br />
gzip.exe uncomp.txt > nuncomp.gz<br />
gzip.exe -d uncomp.gz > nuncomp.txt
I tried using different API functions :
<br />
With ShellExecute I have tried:<br />
ShellExecute(NULL, "open", "cmd", "/A /C \"D:\\gzip.exe\" D:\\uncomp.txt >D:\\nuncomp.gz", ".",<br />
SW_HIDE);<br />
ShellExecute(NULL, "open", "D:\\gzip.exe", "D:\\uncomp.txt >D:\\nuncomp.gz", ".", SW_HIDE);<br />
and some other variations. I have similarly tried to use the redirection operator > under system (STDLIB) and CreateProcess. But none seem to work. If any of you have perhaps used the redirection of output to a file in past please let me know.
I should mention that the functions work as expected when not using the redirection operator. The possible effects of adding a redirection are:
* the redirected file is never created and the function behaves as if there is no redirection
* a redirection file is created but the output is still written to the default file
* a redirection file is created but the executable (gzip.exe in this case) never exits or flushes the file.
Thank you
-- modified at 13:06 Wednesday 2nd November, 2005
|
|
|
|
|
One of the parameters to CreateProcess is a pointer to a STARTUPINFO structure. This has members that allow you to specify file handles to be used for standard input and output for the process you are starting with the CreateProcess call.
|
|
|
|
|
|
|
Yes.
Lose the DllMain.
Create a object dervied from CWinApp, declare global instance of it.
Whatever was done in DLL_PROCESS_ATTACH, do it in CWinApp::InitInstance
Whatever was done in DLL_PROCESS_DETACH do it in CWinApp::ExitInstance.
Link with appropriate MFC library (static or dynamic).
There may be a few other compiler or linker settings to tweak, but that is the gist of it.
|
|
|
|
|
Hi All,
Sorry to post such an open ended question, but does anyone have an opinion on the best way for an experienced developer to learn C++?
I have worked with VB6(Don't tell me - a toy language! ) and C# for some time now and I would consider myself to be pretty competent with both of these and SQL. I have also done a considerable amount of Web Development using ASP/ASP.NET and Javascript. Recently I did some reading on C++ and decided I would like to learn this too, however I am unsure where to start. A lot of the articles I have found start at a very low level - understandably aimed at novice developers. Does anyone have any suggestions/links/books that they would recomend for someone in my position?
Thanks.
MCSD(VB6/SQL7)
MCAD(C#/SQL2000)
MCSD(C#/SQL2000)
|
|
|
|
|
I assume that you have basic understandings in the area of OOP. If so then I really recommend you this book : Teach Yourself C++ by Herb Schildt - 3rd Edition
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Yes I am very familar with OOP
Thanks for your response - I will take a look at this book.
MCSD(VB6/SQL7)
MCAD(C#/SQL2000)
MCSD(C#/SQL2000)
|
|
|
|
|
You should be aware that many C++ gurus consider Schildt to be very poor. For example, look at the book reviews at http://www.accu.org[^]
Kevin
|
|
|
|
|
I remember reading one of his Turco C books back in the early 90s. That, coupled with Petzold's Windows book, did wonders for me.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|